- java.lang.Object
-
- org.jfree.chart.plot.DefaultDrawingSupplier
-
- All Implemented Interfaces:
Serializable,Cloneable,PublicCloneable,DrawingSupplier
public class DefaultDrawingSupplier extends Object implements DrawingSupplier, Cloneable, PublicCloneable, Serializable
A default implementation of theDrawingSupplierinterface. AllPlotinstances have a new instance of this class installed by default.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Paint[]DEFAULT_FILL_PAINT_SEQUENCEThe default fill paint sequence.static Paint[]DEFAULT_OUTLINE_PAINT_SEQUENCEThe default outline paint sequence.static Stroke[]DEFAULT_OUTLINE_STROKE_SEQUENCEThe default outline stroke sequence.static Paint[]DEFAULT_PAINT_SEQUENCEThe default fill paint sequence.static Shape[]DEFAULT_SHAPE_SEQUENCEThe default shape sequence.static Stroke[]DEFAULT_STROKE_SEQUENCEThe default stroke sequence.
-
Constructor Summary
Constructors Constructor Description DefaultDrawingSupplier()Creates a new supplier, with default sequences for fill paint, outline paint, stroke and shapes.DefaultDrawingSupplier(Paint[] paintSequence, Paint[] fillPaintSequence, Paint[] outlinePaintSequence, Stroke[] strokeSequence, Stroke[] outlineStrokeSequence, Shape[] shapeSequence)Creates a new supplier.DefaultDrawingSupplier(Paint[] paintSequence, Paint[] outlinePaintSequence, Stroke[] strokeSequence, Stroke[] outlineStrokeSequence, Shape[] shapeSequence)Creates a new supplier.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Returns a clone.static Shape[]createStandardSeriesShapes()Creates an array of standard shapes to display for the items in series on charts.booleanequals(Object obj)Tests this object for equality with another object.PaintgetNextFillPaint()Returns the next fill paint in the sequence.PaintgetNextOutlinePaint()Returns the next outline paint in the sequence.StrokegetNextOutlineStroke()Returns the next outline stroke in the sequence.PaintgetNextPaint()Returns the next paint in the sequence.ShapegetNextShape()Returns the next shape in the sequence.StrokegetNextStroke()Returns the next stroke in the sequence.
-
-
-
Field Detail
-
DEFAULT_PAINT_SEQUENCE
public static final Paint[] DEFAULT_PAINT_SEQUENCE
The default fill paint sequence.
-
DEFAULT_OUTLINE_PAINT_SEQUENCE
public static final Paint[] DEFAULT_OUTLINE_PAINT_SEQUENCE
The default outline paint sequence.
-
DEFAULT_FILL_PAINT_SEQUENCE
public static final Paint[] DEFAULT_FILL_PAINT_SEQUENCE
The default fill paint sequence.
-
DEFAULT_STROKE_SEQUENCE
public static final Stroke[] DEFAULT_STROKE_SEQUENCE
The default stroke sequence.
-
DEFAULT_OUTLINE_STROKE_SEQUENCE
public static final Stroke[] DEFAULT_OUTLINE_STROKE_SEQUENCE
The default outline stroke sequence.
-
DEFAULT_SHAPE_SEQUENCE
public static final Shape[] DEFAULT_SHAPE_SEQUENCE
The default shape sequence.
-
-
Constructor Detail
-
DefaultDrawingSupplier
public DefaultDrawingSupplier()
Creates a new supplier, with default sequences for fill paint, outline paint, stroke and shapes.
-
DefaultDrawingSupplier
public DefaultDrawingSupplier(Paint[] paintSequence, Paint[] outlinePaintSequence, Stroke[] strokeSequence, Stroke[] outlineStrokeSequence, Shape[] shapeSequence)
Creates a new supplier.- Parameters:
paintSequence- the fill paint sequence.outlinePaintSequence- the outline paint sequence.strokeSequence- the stroke sequence.outlineStrokeSequence- the outline stroke sequence.shapeSequence- the shape sequence.
-
DefaultDrawingSupplier
public DefaultDrawingSupplier(Paint[] paintSequence, Paint[] fillPaintSequence, Paint[] outlinePaintSequence, Stroke[] strokeSequence, Stroke[] outlineStrokeSequence, Shape[] shapeSequence)
Creates a new supplier.- Parameters:
paintSequence- the paint sequence.fillPaintSequence- the fill paint sequence.outlinePaintSequence- the outline paint sequence.strokeSequence- the stroke sequence.outlineStrokeSequence- the outline stroke sequence.shapeSequence- the shape sequence.
-
-
Method Detail
-
getNextPaint
public Paint getNextPaint()
Returns the next paint in the sequence.- Specified by:
getNextPaintin interfaceDrawingSupplier- Returns:
- The paint.
-
getNextOutlinePaint
public Paint getNextOutlinePaint()
Returns the next outline paint in the sequence.- Specified by:
getNextOutlinePaintin interfaceDrawingSupplier- Returns:
- The paint.
-
getNextFillPaint
public Paint getNextFillPaint()
Returns the next fill paint in the sequence.- Specified by:
getNextFillPaintin interfaceDrawingSupplier- Returns:
- The paint.
-
getNextStroke
public Stroke getNextStroke()
Returns the next stroke in the sequence.- Specified by:
getNextStrokein interfaceDrawingSupplier- Returns:
- The stroke.
-
getNextOutlineStroke
public Stroke getNextOutlineStroke()
Returns the next outline stroke in the sequence.- Specified by:
getNextOutlineStrokein interfaceDrawingSupplier- Returns:
- The stroke.
-
getNextShape
public Shape getNextShape()
Returns the next shape in the sequence.- Specified by:
getNextShapein interfaceDrawingSupplier- Returns:
- The shape.
-
createStandardSeriesShapes
public static Shape[] createStandardSeriesShapes()
Creates an array of standard shapes to display for the items in series on charts.- Returns:
- The array of shapes.
-
clone
public Object clone() throws CloneNotSupportedException
Returns a clone.- Specified by:
clonein interfacePublicCloneable- Overrides:
clonein classObject- Returns:
- A clone.
- Throws:
CloneNotSupportedException- if a component of the supplier does not support cloning.
-
-