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 classPainterPropertyEditor.AffineTransformDelegatestatic classPainterPropertyEditor.Arc2DDelegatestatic classPainterPropertyEditor.AreaDelegatestatic classPainterPropertyEditor.CubicCurve2DDelegatestatic classPainterPropertyEditor.Ellipse2DDelegatestatic classPainterPropertyEditor.GeneralPathDelegatestatic classPainterPropertyEditor.GradientPaintDelegatestatic classPainterPropertyEditor.InsetsDelegatestatic classPainterPropertyEditor.Line2DDelegatestatic classPainterPropertyEditor.LinearGradientPaintDelegatestatic classPainterPropertyEditor.Point2DDelegatestatic classPainterPropertyEditor.QuadCurve2DDelegatestatic classPainterPropertyEditor.RadialGradientPaintDelegatestatic classPainterPropertyEditor.Rectangle2DDelegatestatic classPainterPropertyEditor.RoundRectangle2DDelegatestatic classPainterPropertyEditor.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 StringgetJavaInitializationString()PaintergetValue()static voidmain(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:
getValuein interfacePropertyEditor- Overrides:
getValuein classPropertyEditorSupport
-
getJavaInitializationString
public String getJavaInitializationString()
- Specified by:
getJavaInitializationStringin interfacePropertyEditor- Overrides:
getJavaInitializationStringin classPropertyEditorSupport
-
main
public static void main(String... args)
-
-