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 StringgetAsText()ComponentgetCustomEditor()StringgetJavaInitializationString()PaintgetValue()booleanisPaintable()voidpaintValue(Graphics g, Rectangle box)voidsetAsText(String text)voidsetValue(Object object)booleansupportsCustomEditor()-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getSource, getTags, removePropertyChangeListener, setSource
-
-
-
-
Method Detail
-
getValue
public Paint getValue()
- Specified by:
getValuein interfacePropertyEditor- Overrides:
getValuein classPropertyEditorSupport
-
setValue
public void setValue(Object object)
- Specified by:
setValuein interfacePropertyEditor- Overrides:
setValuein 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 g, Rectangle box)
- Specified by:
paintValuein interfacePropertyEditor- Overrides:
paintValuein classPropertyEditorSupport
-
isPaintable
public boolean isPaintable()
- Specified by:
isPaintablein interfacePropertyEditor- Overrides:
isPaintablein classPropertyEditorSupport
-
supportsCustomEditor
public boolean supportsCustomEditor()
- Specified by:
supportsCustomEditorin interfacePropertyEditor- Overrides:
supportsCustomEditorin classPropertyEditorSupport
-
getCustomEditor
public Component getCustomEditor()
- Specified by:
getCustomEditorin interfacePropertyEditor- Overrides:
getCustomEditorin classPropertyEditorSupport
-
-