|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.ui.supplier.DefaultDrawingSupplier
public class DefaultDrawingSupplier
Title: IJChart
Description: a chart library for the Java(tm) platform.
The default implementation of interfaceDefaultDrawingSupplier
.
Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static java.awt.Paint[] |
DEFAULT_BORDER_PAINT_SEQUENCE
The default border paint sequence. |
static java.awt.Stroke[] |
DEFAULT_BORDER_STROKE_SEQUENCE
The default border stroke sequence. |
static boolean |
DEFAULT_CAN_RESET
A default boolean flag controls whether or not can reset. |
static java.awt.Paint[] |
DEFAULT_FILL_PAINT_SEQUENCE
The default fill paint sequence. |
static java.awt.Paint[] |
DEFAULT_PAINT_SEQUENCE
The default 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, border paint, stroke and shapes. |
|
DefaultDrawingSupplier(java.awt.Paint[] paintSequence,
java.awt.Paint[] fillPaintSequence,
java.awt.Paint[] borderPaintSequence,
java.awt.Stroke[] strokeSequence,
java.awt.Stroke[] borderStrokeSequence,
java.awt.Shape[] shapeSequence)
Creates a new supplier (null not permitted). |
|
DefaultDrawingSupplier(java.awt.Paint[] paintSequence,
java.awt.Paint[] borderPaintSequence,
java.awt.Stroke[] strokeSequence,
java.awt.Stroke[] borderStrokeSequence,
java.awt.Shape[] shapeSequence)
Creates a new supplier (null not permitted). |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone. |
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 |
getNextBorderPaint()
Returns the next border paint in a sequence maintained by the supplier. |
java.awt.Stroke |
getNextBorderStroke()
Returns the next Stroke object in a sequence maintained by the supplier. |
java.awt.Paint |
getNextFillPaint()
Returns the next fill paint in a sequence maintained by the supplier. |
java.awt.Paint |
getNextPaint()
Returns the next paint in a sequence maintained by the supplier. |
java.awt.Shape |
getNextShape()
Returns the next Shape object in a sequence maintained by the supplier. |
java.awt.Stroke |
getNextStroke()
Returns the next Stroke object in a sequence maintained by the supplier. |
int |
hashCode()
Returns a hash code value for the object |
boolean |
isCanReset()
Whether or not can reset. |
void |
reset()
Reset this class to first initiate state. |
void |
restoreState()
Restore state to old. |
void |
saveState()
Save current state. |
void |
setCanReset(boolean flag)
Sets whether or not can reset. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Paint[] DEFAULT_PAINT_SEQUENCE
public static final java.awt.Paint[] DEFAULT_BORDER_PAINT_SEQUENCE
public static final java.awt.Paint[] DEFAULT_FILL_PAINT_SEQUENCE
public static final java.awt.Stroke[] DEFAULT_STROKE_SEQUENCE
public static final java.awt.Stroke[] DEFAULT_BORDER_STROKE_SEQUENCE
public static final java.awt.Shape[] DEFAULT_SHAPE_SEQUENCE
public static final boolean DEFAULT_CAN_RESET
Constructor Detail |
---|
public DefaultDrawingSupplier()
public DefaultDrawingSupplier(java.awt.Paint[] paintSequence, java.awt.Paint[] borderPaintSequence, java.awt.Stroke[] strokeSequence, java.awt.Stroke[] borderStrokeSequence, java.awt.Shape[] shapeSequence)
paintSequence
- Paint[]
The paint sequence (null not permitted).borderPaintSequence
- Paint[]
The border paint sequence (null not permitted).strokeSequence
- Stroke[]
The stroke sequence (null not permitted).borderStrokeSequence
- Stroke[]
The border stroke sequence (null not permitted).shapeSequence
- Shape[]
The shape sequence (null not permitted).public DefaultDrawingSupplier(java.awt.Paint[] paintSequence, java.awt.Paint[] fillPaintSequence, java.awt.Paint[] borderPaintSequence, java.awt.Stroke[] strokeSequence, java.awt.Stroke[] borderStrokeSequence, java.awt.Shape[] shapeSequence)
paintSequence
- Paint[]
The paint sequence (null not permitted).fillPaintSequence
- Paint[]
The fill paint sequence (null not permitted).borderPaintSequence
- Paint[]
The border paint sequence (null not permitted).strokeSequence
- Stroke[]
The stroke sequence (null not permitted).borderStrokeSequence
- Stroke[]
The border stroke sequence (null not permitted).shapeSequence
- Shape[]
The shape sequence (null not permitted).Method Detail |
---|
public java.awt.Paint getNextPaint()
getNextPaint
in interface IDrawingSupplier
public java.awt.Paint getNextBorderPaint()
getNextBorderPaint
in interface IDrawingSupplier
public java.awt.Paint getNextFillPaint()
getNextFillPaint
in interface IDrawingSupplier
public java.awt.Stroke getNextStroke()
getNextStroke
in interface IDrawingSupplier
public java.awt.Stroke getNextBorderStroke()
getNextBorderStroke
in interface IDrawingSupplier
public java.awt.Shape getNextShape()
getNextShape
in interface IDrawingSupplier
public static java.awt.Shape[] createStandardSeriesShapes()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null permitted).
public int hashCode()
hashCode
in class java.lang.Object
public boolean isCanReset()
isCanReset
in interface IDrawingSupplier
public void setCanReset(boolean flag)
setCanReset
in interface IDrawingSupplier
flag
- boolean
A boolean.public void reset()
reset
in interface IDrawingSupplier
public void saveState()
saveState
in interface IDrawingSupplier
public void restoreState()
restoreState
in interface IDrawingSupplier
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if a component of the supplier does
not support cloning.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |