public class

DefaultDrawingSupplier

extends Object
implements Serializable Cloneable DrawingSupplier
java.lang.Object
   ↳ org.jfree.chart.plot.DefaultDrawingSupplier

Class Overview

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

Summary

Fields
public static final Paint[] DEFAULT_FILL_PAINT_SEQUENCE The default fill paint sequence.
public static final Paint[] DEFAULT_OUTLINE_PAINT_SEQUENCE The default outline paint sequence.
public static final Stroke[] DEFAULT_OUTLINE_STROKE_SEQUENCE The default outline stroke sequence.
public static final Paint[] DEFAULT_PAINT_SEQUENCE The default fill paint sequence.
public static final Shape[] DEFAULT_SHAPE_SEQUENCE The default shape sequence.
public static final Stroke[] DEFAULT_STROKE_SEQUENCE The default stroke sequence.
Public Constructors
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.
DefaultDrawingSupplier(Paint[] paintSequence, Paint[] fillPaintSequence, Paint[] outlinePaintSequence, Stroke[] strokeSequence, Stroke[] outlineStrokeSequence, Shape[] shapeSequence)
Creates a new supplier.
Public Methods
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 getNextFillPaint()
Returns the next fill paint in the sequence.
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.jfree.chart.plot.DrawingSupplier

Fields

public static final Paint[] DEFAULT_FILL_PAINT_SEQUENCE

The default fill paint sequence.

public static final Paint[] DEFAULT_OUTLINE_PAINT_SEQUENCE

The default outline paint sequence.

public static final Stroke[] DEFAULT_OUTLINE_STROKE_SEQUENCE

The default outline stroke sequence.

public static final Paint[] DEFAULT_PAINT_SEQUENCE

The default fill paint sequence.

public static final Shape[] DEFAULT_SHAPE_SEQUENCE

The default shape sequence.

public static final Stroke[] DEFAULT_STROKE_SEQUENCE

The default stroke sequence.

Public Constructors

public DefaultDrawingSupplier ()

Creates a new supplier, with default sequences for fill paint, outline paint, stroke and shapes.

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.

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.

Public Methods

public Object clone ()

Returns a clone.

Returns
  • A clone.
Throws
CloneNotSupportedException if a component of the supplier does not support cloning.

public static Shape[] createStandardSeriesShapes ()

Creates an array of standard shapes to display for the items in series on charts.

Returns
  • The array of shapes.

public boolean equals (Object obj)

Tests this object for equality with another object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public Paint getNextFillPaint ()

Returns the next fill paint in the sequence.

Returns
  • The paint.

public Paint getNextOutlinePaint ()

Returns the next outline paint in the sequence.

Returns
  • The paint.

public Stroke getNextOutlineStroke ()

Returns the next outline stroke in the sequence.

Returns
  • The stroke.

public Paint getNextPaint ()

Returns the next paint in the sequence.

Returns
  • The paint.

public Shape getNextShape ()

Returns the next shape in the sequence.

Returns
  • The shape.

public Stroke getNextStroke ()

Returns the next stroke in the sequence.

Returns
  • The stroke.