swingx
Version 2005-08-19

org.jdesktop.swingx.editors
Class PaintPropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by 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.


Constructor Summary
PaintPropertyEditor()
          Creates a new instance of PainterPropertyEditor
 
Method Summary
 String getAsText()
           
 String getJavaInitializationString()
           
 String[] getTags()
           
 Paint getValue()
           
 boolean isPaintable()
           
 void paintValue(Graphics gfx, Rectangle box)
           
 void setAsText(String text)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaintPropertyEditor

public PaintPropertyEditor()
Creates a new instance of PainterPropertyEditor

Method Detail

getTags

public String[] getTags()
Specified by:
getTags in interface PropertyEditor
Overrides:
getTags in class PropertyEditorSupport

getValue

public Paint getValue()
Specified by:
getValue in interface PropertyEditor
Overrides:
getValue in class PropertyEditorSupport

getJavaInitializationString

public String getJavaInitializationString()
Specified by:
getJavaInitializationString in interface PropertyEditor
Overrides:
getJavaInitializationString in class PropertyEditorSupport

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport

paintValue

public void paintValue(Graphics gfx,
                       Rectangle box)
Specified by:
paintValue in interface PropertyEditor
Overrides:
paintValue in class PropertyEditorSupport

isPaintable

public boolean isPaintable()
Specified by:
isPaintable in interface PropertyEditor
Overrides:
isPaintable in class PropertyEditorSupport

swingx
Version 2005-08-19