Package org.jfree.beans.editors
Class RotationEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.jfree.beans.editors.RotationEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
public class RotationEditor extends java.beans.PropertyEditorSupport
A JavaBeans property editor for theRotationclass.
-
-
Constructor Summary
Constructors Constructor Description RotationEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAsText()Returns a string representing the current value.java.lang.StringgetJavaInitializationString()Returns a string for the property value.java.lang.String[]getTags()Returns the valid string values for this property.voidsetAsText(java.lang.String text)Sets the current value by parsing the supplied string.
-
-
-
Constructor Detail
-
RotationEditor
public RotationEditor()
-
-
Method Detail
-
getAsText
public java.lang.String getAsText()
Returns a string representing the current value. This will be one ofRotation.CLOCKWISEandRotation.ANTICLOCKWISE.- Specified by:
getAsTextin interfacejava.beans.PropertyEditor- Overrides:
getAsTextin classjava.beans.PropertyEditorSupport- Returns:
- A string representing the current value.
-
setAsText
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
Sets the current value by parsing the supplied string.- Specified by:
setAsTextin interfacejava.beans.PropertyEditor- Overrides:
setAsTextin classjava.beans.PropertyEditorSupport- Parameters:
text- the string value.- Throws:
java.lang.IllegalArgumentException- iftextis not one of the values listed ingetAsText().
-
getTags
public java.lang.String[] getTags()
Returns the valid string values for this property.- Specified by:
getTagsin interfacejava.beans.PropertyEditor- Overrides:
getTagsin classjava.beans.PropertyEditorSupport- Returns:
- The valid string values for this property.
-
getJavaInitializationString
public java.lang.String getJavaInitializationString()
Returns a string for the property value.- Specified by:
getJavaInitializationStringin interfacejava.beans.PropertyEditor- Overrides:
getJavaInitializationStringin classjava.beans.PropertyEditorSupport- Returns:
- A string for the property value.
-
-