Package 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.- Author:
- Richard
-
-
Constructor Summary
Constructors Constructor Description PaintPropertyEditor()Creates a new instance of PainterPropertyEditor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAsText()StringgetJavaInitializationString()String[]getTags()PaintgetValue()booleanisPaintable()voidpaintValue(Graphics gfx, Rectangle box)voidsetAsText(String text)-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
-
-
-
Method Detail
-
getTags
public String[] getTags()
- Specified by:
getTagsin interfacePropertyEditor- Overrides:
getTagsin classPropertyEditorSupport
-
getValue
public Paint getValue()
- Specified by:
getValuein interfacePropertyEditor- Overrides:
getValuein classPropertyEditorSupport
-
getJavaInitializationString
public String getJavaInitializationString()
- Specified by:
getJavaInitializationStringin interfacePropertyEditor- Overrides:
getJavaInitializationStringin classPropertyEditorSupport
-
setAsText
public void setAsText(String text) throws IllegalArgumentException
- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport- Throws:
IllegalArgumentException
-
getAsText
public String getAsText()
- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classPropertyEditorSupport
-
paintValue
public void paintValue(Graphics gfx, Rectangle box)
- Specified by:
paintValuein interfacePropertyEditor- Overrides:
paintValuein classPropertyEditorSupport
-
isPaintable
public boolean isPaintable()
- Specified by:
isPaintablein interfacePropertyEditor- Overrides:
isPaintablein classPropertyEditorSupport
-
-