org.jdesktop.swingx.editors
Class PainterPropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.jdesktop.swingx.editors.PainterPropertyEditor
- All Implemented Interfaces:
- PropertyEditor
public class PainterPropertyEditor
- 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 painters.
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PainterPropertyEditor
public PainterPropertyEditor()
- Creates a new instance of PainterPropertyEditor
getValue
public Painter 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
main
public static void main(String... args)