Package org.jfree.beans.editors
Class LegendPositionEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.jfree.beans.editors.LegendPositionEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
public class LegendPositionEditor extends java.beans.PropertyEditorSupport
A JavaBeans property editor for theLegendPosition
class.
-
-
Constructor Summary
Constructors Constructor Description LegendPositionEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAsText()
Returns a string representing the current value.java.lang.String
getJavaInitializationString()
Returns a string for the property value.java.lang.String[]
getTags()
Returns the valid string values for this property.void
setAsText(java.lang.String text)
Sets the current value by parsing the supplied string.
-
-
-
Constructor Detail
-
LegendPositionEditor
public LegendPositionEditor()
-
-
Method Detail
-
getAsText
public java.lang.String getAsText()
Returns a string representing the current value. This will be one ofTOP
,BOTTOM
,LEFT
,RIGHT
andNULL
.- Specified by:
getAsText
in interfacejava.beans.PropertyEditor
- Overrides:
getAsText
in 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:
setAsText
in interfacejava.beans.PropertyEditor
- Overrides:
setAsText
in classjava.beans.PropertyEditorSupport
- Parameters:
text
- the string value.- Throws:
java.lang.IllegalArgumentException
- iftext
is not one of the values listed ingetAsText()
.
-
getTags
public java.lang.String[] getTags()
Returns the valid string values for this property.- Specified by:
getTags
in interfacejava.beans.PropertyEditor
- Overrides:
getTags
in 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:
getJavaInitializationString
in interfacejava.beans.PropertyEditor
- Overrides:
getJavaInitializationString
in classjava.beans.PropertyEditorSupport
- Returns:
- A string for the property value.
-
-