|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.beans.PropertyEditorSupport
org.jfree.beans.editors.PaintEditor
public class PaintEditor
A JavaBeans property editor for Paint
instances. Obviously, we
can't provide editing for every type of Paint
, but we'll try
to cover Paint
and GradientPaint
.
Constructor Summary | |
---|---|
PaintEditor()
Creates a new instance. |
Method Summary | |
---|---|
java.awt.Component |
getCustomEditor()
Returns a component for editing a Paint instance. |
java.lang.String |
getJavaInitializationString()
Returns a string for the property value. |
java.lang.Object |
getValue()
|
boolean |
isPaintable()
|
void |
paintValue(java.awt.Graphics g,
java.awt.Rectangle clipRect)
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
setValue(java.lang.Object value)
|
boolean |
supportsCustomEditor()
Returns true to indicate that we provide a custom editor
via the getCustomEditor() method. |
Methods inherited from class java.beans.PropertyEditorSupport |
---|
addPropertyChangeListener, firePropertyChange, getAsText, getSource, getTags, removePropertyChangeListener, setAsText, setSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaintEditor()
Method Detail |
---|
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public boolean isPaintable()
isPaintable
in interface java.beans.PropertyEditor
isPaintable
in class java.beans.PropertyEditorSupport
public void paintValue(java.awt.Graphics g, java.awt.Rectangle clipRect)
paintValue
in interface java.beans.PropertyEditor
paintValue
in class java.beans.PropertyEditorSupport
public java.lang.Object getValue()
getValue
in interface java.beans.PropertyEditor
getValue
in class java.beans.PropertyEditorSupport
public void setValue(java.lang.Object value)
setValue
in interface java.beans.PropertyEditor
setValue
in class java.beans.PropertyEditorSupport
public java.lang.String getJavaInitializationString()
getJavaInitializationString
in interface java.beans.PropertyEditor
getJavaInitializationString
in class java.beans.PropertyEditorSupport
public java.awt.Component getCustomEditor()
Paint
instance.
getCustomEditor
in interface java.beans.PropertyEditor
getCustomEditor
in class java.beans.PropertyEditorSupport
public boolean supportsCustomEditor()
true
to indicate that we provide a custom editor
via the getCustomEditor()
method.
supportsCustomEditor
in interface java.beans.PropertyEditor
supportsCustomEditor
in class java.beans.PropertyEditorSupport
true
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |