Package org.jdesktop.swingx.editors
Class Paint2PropertyEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.jdesktop.swingx.editors.Paint2PropertyEditor
-
- All Implemented Interfaces:
PropertyEditor
public class Paint2PropertyEditor extends PropertyEditorSupport
- Author:
- joshy
-
-
Constructor Summary
Constructors Constructor Description Paint2PropertyEditor()
Creates a new instance of Paint2PropertyEditor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAsText()
Component
getCustomEditor()
String
getJavaInitializationString()
Paint
getValue()
boolean
isPaintable()
void
paintValue(Graphics g, Rectangle box)
void
setAsText(String text)
void
setValue(Object object)
boolean
supportsCustomEditor()
-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getSource, getTags, removePropertyChangeListener, setSource
-
-
-
-
Method Detail
-
getValue
public Paint getValue()
- Specified by:
getValue
in interfacePropertyEditor
- Overrides:
getValue
in classPropertyEditorSupport
-
setValue
public void setValue(Object object)
- Specified by:
setValue
in interfacePropertyEditor
- Overrides:
setValue
in classPropertyEditorSupport
-
getJavaInitializationString
public String getJavaInitializationString()
- Specified by:
getJavaInitializationString
in interfacePropertyEditor
- Overrides:
getJavaInitializationString
in classPropertyEditorSupport
-
setAsText
public void setAsText(String text) throws IllegalArgumentException
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
-
getAsText
public String getAsText()
- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
-
paintValue
public void paintValue(Graphics g, Rectangle box)
- Specified by:
paintValue
in interfacePropertyEditor
- Overrides:
paintValue
in classPropertyEditorSupport
-
isPaintable
public boolean isPaintable()
- Specified by:
isPaintable
in interfacePropertyEditor
- Overrides:
isPaintable
in classPropertyEditorSupport
-
supportsCustomEditor
public boolean supportsCustomEditor()
- Specified by:
supportsCustomEditor
in interfacePropertyEditor
- Overrides:
supportsCustomEditor
in classPropertyEditorSupport
-
getCustomEditor
public Component getCustomEditor()
- Specified by:
getCustomEditor
in interfacePropertyEditor
- Overrides:
getCustomEditor
in classPropertyEditorSupport
-
-