Package org.jdesktop.swingx.editors
Class PaintPropertyEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.jdesktop.swingx.editors.PaintPropertyEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
public class PaintPropertyEditor extends java.beans.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.
-
-
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 java.lang.String
getAsText()
java.lang.String
getJavaInitializationString()
java.lang.String[]
getTags()
java.awt.Paint
getValue()
boolean
isPaintable()
void
paintValue(java.awt.Graphics gfx, java.awt.Rectangle box)
void
setAsText(java.lang.String text)
-
-
-
Method Detail
-
getTags
public java.lang.String[] getTags()
- Specified by:
getTags
in interfacejava.beans.PropertyEditor
- Overrides:
getTags
in classjava.beans.PropertyEditorSupport
-
getValue
public java.awt.Paint getValue()
- Specified by:
getValue
in interfacejava.beans.PropertyEditor
- Overrides:
getValue
in classjava.beans.PropertyEditorSupport
-
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- Specified by:
getJavaInitializationString
in interfacejava.beans.PropertyEditor
- Overrides:
getJavaInitializationString
in classjava.beans.PropertyEditorSupport
-
setAsText
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
- Specified by:
setAsText
in interfacejava.beans.PropertyEditor
- Overrides:
setAsText
in classjava.beans.PropertyEditorSupport
- Throws:
java.lang.IllegalArgumentException
-
getAsText
public java.lang.String getAsText()
- Specified by:
getAsText
in interfacejava.beans.PropertyEditor
- Overrides:
getAsText
in classjava.beans.PropertyEditorSupport
-
paintValue
public void paintValue(java.awt.Graphics gfx, java.awt.Rectangle box)
- Specified by:
paintValue
in interfacejava.beans.PropertyEditor
- Overrides:
paintValue
in classjava.beans.PropertyEditorSupport
-
isPaintable
public boolean isPaintable()
- Specified by:
isPaintable
in interfacejava.beans.PropertyEditor
- Overrides:
isPaintable
in classjava.beans.PropertyEditorSupport
-
-