swingx
Version 2005-08-19

org.jdesktop.swingx.editors
Class PainterPropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.jdesktop.swingx.editors.PainterPropertyEditor
All Implemented Interfaces:
PropertyEditor

public class PainterPropertyEditor
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 painters.


Nested Class Summary
static class PainterPropertyEditor.AffineTransformDelegate
           
static class PainterPropertyEditor.Arc2DDelegate
           
static class PainterPropertyEditor.AreaDelegate
           
static class PainterPropertyEditor.CubicCurve2DDelegate
           
static class PainterPropertyEditor.Ellipse2DDelegate
           
static class PainterPropertyEditor.GeneralPathDelegate
           
static class PainterPropertyEditor.GradientPaintDelegate
           
static class PainterPropertyEditor.Line2DDelegate
           
static class PainterPropertyEditor.LinearGradientPaintDelegate
           
static class PainterPropertyEditor.Point2DDelegate
           
static class PainterPropertyEditor.QuadCurve2DDelegate
           
static class PainterPropertyEditor.RadialGradientPaintDelegate
           
static class PainterPropertyEditor.Rectangle2DDelegate
           
static class PainterPropertyEditor.RoundRectangle2DDelegate
           
 
Constructor Summary
PainterPropertyEditor()
          Creates a new instance of PainterPropertyEditor
 
Method Summary
 String getJavaInitializationString()
           
 Painter getValue()
           
static void main(String... args)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PainterPropertyEditor

public PainterPropertyEditor()
Creates a new instance of PainterPropertyEditor

Method Detail

getValue

public Painter 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

main

public static void main(String... args)

swingx
Version 2005-08-19