public class Paint2PropertyEditor extends PropertyEditorSupport
Constructor and Description |
---|
Paint2PropertyEditor()
Creates a new instance of Paint2PropertyEditor
|
Modifier and Type | Method and Description |
---|---|
String |
getAsText() |
Component |
getCustomEditor() |
String |
getJavaInitializationString() |
Paint |
getValue() |
boolean |
isPaintable() |
void |
paintValue(Graphics g,
Rectangle box) |
void |
setAsText(String text) |
void |
setValue(Object object) |
boolean |
supportsCustomEditor() |
addPropertyChangeListener, firePropertyChange, getSource, getTags, removePropertyChangeListener, setSource
public Paint2PropertyEditor()
public Paint getValue()
getValue
in interface PropertyEditor
getValue
in class PropertyEditorSupport
public void setValue(Object object)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport
public String getJavaInitializationString()
getJavaInitializationString
in interface PropertyEditor
getJavaInitializationString
in class PropertyEditorSupport
public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
public void paintValue(Graphics g, Rectangle box)
paintValue
in interface PropertyEditor
paintValue
in class PropertyEditorSupport
public boolean isPaintable()
isPaintable
in interface PropertyEditor
isPaintable
in class PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
supportsCustomEditor
in class PropertyEditorSupport
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
getCustomEditor
in class PropertyEditorSupport
Copyright © 2015. All rights reserved.