org.jfree.chart.renderer
Class DefaultDrawingSupplier

java.lang.Object
  |
  +--org.jfree.chart.renderer.DefaultDrawingSupplier
All Implemented Interfaces:
DrawingSupplier, java.io.Serializable

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

A default implementation of the DrawingSupplier interface.

Author:
David Gilbert
See Also:
Serialized Form

Field Summary
static java.awt.Paint[] DEFAULT_OUTLINE_PAINT_SEQUENCE
          The default outline paint sequence.
static java.awt.Stroke[] DEFAULT_OUTLINE_STROKE_SEQUENCE
          The default outline stroke sequence.
static java.awt.Paint[] DEFAULT_PAINT_SEQUENCE
          The default fill paint sequence.
static java.awt.Shape[] DEFAULT_SHAPE_SEQUENCE
          The default shape sequence.
static java.awt.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(java.awt.Paint[] paintSequence, java.awt.Paint[] outlinePaintSequence, java.awt.Stroke[] strokeSequence, java.awt.Stroke[] outlineStrokeSequence, java.awt.Shape[] shapeSequence)
          Creates a new supplier.
 
Method Summary
static java.awt.Shape[] createStandardSeriesShapes()
          Creates an array of standard shapes to display for the items in series on charts.
 boolean equals(java.lang.Object obj)
          Tests this object for equality with another object.
 java.awt.Paint getNextOutlinePaint()
          Returns the next outline paint in the sequence.
 java.awt.Stroke getNextOutlineStroke()
          Returns the next outline stroke in the sequence.
 java.awt.Paint getNextPaint()
          Returns the next paint in the sequence.
 java.awt.Shape getNextShape()
          Returns the next shape in the sequence.
 java.awt.Stroke getNextStroke()
          Returns the next stroke in the sequence.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PAINT_SEQUENCE

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


DEFAULT_OUTLINE_PAINT_SEQUENCE

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


DEFAULT_STROKE_SEQUENCE

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


DEFAULT_OUTLINE_STROKE_SEQUENCE

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


DEFAULT_SHAPE_SEQUENCE

public static final java.awt.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(java.awt.Paint[] paintSequence,
                              java.awt.Paint[] outlinePaintSequence,
                              java.awt.Stroke[] strokeSequence,
                              java.awt.Stroke[] outlineStrokeSequence,
                              java.awt.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 Detail

getNextPaint

public java.awt.Paint getNextPaint()
Returns the next paint in the sequence.

Specified by:
getNextPaint in interface DrawingSupplier
Returns:
The paint.

getNextOutlinePaint

public java.awt.Paint getNextOutlinePaint()
Returns the next outline paint in the sequence.

Specified by:
getNextOutlinePaint in interface DrawingSupplier
Returns:
The paint.

getNextStroke

public java.awt.Stroke getNextStroke()
Returns the next stroke in the sequence.

Specified by:
getNextStroke in interface DrawingSupplier
Returns:
The stroke.

getNextOutlineStroke

public java.awt.Stroke getNextOutlineStroke()
Returns the next outline stroke in the sequence.

Specified by:
getNextOutlineStroke in interface DrawingSupplier
Returns:
The stroke.

getNextShape

public java.awt.Shape getNextShape()
Returns the next shape in the sequence.

Specified by:
getNextShape in interface DrawingSupplier
Returns:
The shape.

createStandardSeriesShapes

public static java.awt.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(java.lang.Object obj)
Tests this object for equality with another object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the other object.
Returns:
A boolean.