org.jdesktop.swingx.editors
Class PainterPropertyEditor

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

public class PainterPropertyEditor
extends java.beans.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.InsetsDelegate
           
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
           
static class PainterPropertyEditor.TestStuff
           
 
Constructor Summary
PainterPropertyEditor()
          Creates a new instance of PainterPropertyEditor
 
Method Summary
 java.lang.String getJavaInitializationString()
           
 Painter getValue()
           
static void main(java.lang.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 java.beans.PropertyEditor
Overrides:
getValue in class java.beans.PropertyEditorSupport

getJavaInitializationString

public java.lang.String getJavaInitializationString()
Specified by:
getJavaInitializationString in interface java.beans.PropertyEditor
Overrides:
getJavaInitializationString in class java.beans.PropertyEditorSupport

main

public static void main(java.lang.String... args)