org.jfree.chart.plot

Class DefaultDrawingSupplier

Implemented Interfaces:
Cloneable, DrawingSupplier, PublicCloneable, Serializable

public class DefaultDrawingSupplier
extends java.lang.Object
implements DrawingSupplier, Cloneable, PublicCloneable, Serializable

A default implementation of the DrawingSupplier interface. All Plot instances have a new instance of this class installed by default.

Field Summary

static Paint[]
DEFAULT_OUTLINE_PAINT_SEQUENCE
The default outline paint sequence.
static Stroke[]
DEFAULT_OUTLINE_STROKE_SEQUENCE
The default outline stroke sequence.
static Paint[]
DEFAULT_PAINT_SEQUENCE
The default fill paint sequence.
static Shape[]
DEFAULT_SHAPE_SEQUENCE
The default shape sequence.
static Stroke[]
DEFAULT_STROKE_SEQUENCE
The default stroke sequence.

Constructor Summary

DefaultDrawingSupplier()
Creates a new supplier, with default sequences for fill paint, outline paint, stroke and shapes.
DefaultDrawingSupplier(Paint[] paintSequence, Paint[] outlinePaintSequence, Stroke[] strokeSequence, Stroke[] outlineStrokeSequence, Shape[] shapeSequence)
Creates a new supplier.

Method Summary

Object
clone()
Returns a clone.
static Shape[]
createStandardSeriesShapes()
Creates an array of standard shapes to display for the items in series on charts.
boolean
equals(Object obj)
Tests this object for equality with another object.
Paint
getNextOutlinePaint()
Returns the next outline paint in the sequence.
Stroke
getNextOutlineStroke()
Returns the next outline stroke in the sequence.
Paint
getNextPaint()
Returns the next paint in the sequence.
Shape
getNextShape()
Returns the next shape in the sequence.
Stroke
getNextStroke()
Returns the next stroke in the sequence.

Field Details

DEFAULT_OUTLINE_PAINT_SEQUENCE

public static final Paint[] DEFAULT_OUTLINE_PAINT_SEQUENCE
The default outline paint sequence.

DEFAULT_OUTLINE_STROKE_SEQUENCE

public static final Stroke[] DEFAULT_OUTLINE_STROKE_SEQUENCE
The default outline stroke sequence.

DEFAULT_PAINT_SEQUENCE

public static final Paint[] DEFAULT_PAINT_SEQUENCE
The default fill paint sequence.

DEFAULT_SHAPE_SEQUENCE

public static final Shape[] DEFAULT_SHAPE_SEQUENCE
The default shape sequence.

DEFAULT_STROKE_SEQUENCE

public static final Stroke[] DEFAULT_STROKE_SEQUENCE
The default stroke sequence.

Constructor Details

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.

Method Details

clone

public Object clone()
            throws CloneNotSupportedException
Returns a clone.
Returns:
A clone.

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.

equals

public boolean equals(Object obj)
Tests this object for equality with another object.
Parameters:
obj - the object (null permitted).
Returns:
A boolean.

getNextOutlinePaint

public Paint getNextOutlinePaint()
Returns the next outline paint in the sequence.
Specified by:
getNextOutlinePaint in interface DrawingSupplier
Returns:
The paint.

getNextOutlineStroke

public Stroke getNextOutlineStroke()
Returns the next outline stroke in the sequence.
Specified by:
getNextOutlineStroke in interface DrawingSupplier
Returns:
The stroke.

getNextPaint

public Paint getNextPaint()
Returns the next paint in the sequence.
Specified by:
getNextPaint in interface DrawingSupplier
Returns:
The paint.

getNextShape

public Shape getNextShape()
Returns the next shape in the sequence.
Specified by:
getNextShape in interface DrawingSupplier
Returns:
The shape.

getNextStroke

public Stroke getNextStroke()
Returns the next stroke in the sequence.
Specified by:
getNextStroke in interface DrawingSupplier
Returns:
The stroke.