org.jdesktop.swingx.editors
Class PaintPropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.jdesktop.swingx.editors.PaintPropertyEditor
- All Implemented Interfaces:
- PropertyEditor
public class PaintPropertyEditor
- extends PropertyEditorSupport
Two parts to this property editor. The first part is a simple dropdown.
The second part is a complicated UI for constructing multiple "layers" of
various different Painters, including gradient paints.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PaintPropertyEditor
public PaintPropertyEditor()
- Creates a new instance of PainterPropertyEditor
getTags
public String[] getTags()
- Specified by:
getTags in interface PropertyEditor- Overrides:
getTags in class PropertyEditorSupport
getValue
public Paint getValue()
- Specified by:
getValue in interface PropertyEditor- Overrides:
getValue in class PropertyEditorSupport
getJavaInitializationString
public String getJavaInitializationString()
- Specified by:
getJavaInitializationString in interface PropertyEditor- Overrides:
getJavaInitializationString in class PropertyEditorSupport
setAsText
public void setAsText(String text)
throws IllegalArgumentException
- Specified by:
setAsText in interface PropertyEditor- Overrides:
setAsText in class PropertyEditorSupport
- Throws:
IllegalArgumentException
getAsText
public String getAsText()
- Specified by:
getAsText in interface PropertyEditor- Overrides:
getAsText in class PropertyEditorSupport
paintValue
public void paintValue(Graphics gfx,
Rectangle box)
- Specified by:
paintValue in interface PropertyEditor- Overrides:
paintValue in class PropertyEditorSupport
isPaintable
public boolean isPaintable()
- Specified by:
isPaintable in interface PropertyEditor- Overrides:
isPaintable in class PropertyEditorSupport