Package org.jdesktop.swingx.editors
Class PainterPropertyEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- 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.- Author:
- Richard
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description 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
Constructors Constructor Description PainterPropertyEditor()
Creates a new instance of PainterPropertyEditor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
getValue
public Painter getValue()
- Specified by:
getValue
in interfacePropertyEditor
- Overrides:
getValue
in classPropertyEditorSupport
-
getJavaInitializationString
public String getJavaInitializationString()
- Specified by:
getJavaInitializationString
in interfacePropertyEditor
- Overrides:
getJavaInitializationString
in classPropertyEditorSupport
-
main
public static void main(String... args)
-
-