com.ijchart.xychart.ui.supplier
Interface IDrawingSupplier

All Known Implementing Classes:
DefaultDrawingSupplier

public interface IDrawingSupplier

Title: IJChart

Description: a chart library for the Java(tm) platform.

A supplier of Paint,Stroke and Shape objects for use by plots and renders.By providing a central place for obtaining these items, we can ensure that duplication is avoided.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.

Method Summary
 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.
 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.
 

Method Detail

getNextPaint

java.awt.Paint getNextPaint()
Returns the next paint in a sequence maintained by the supplier.

Returns:
Paint The paint (never null).

getNextBorderPaint

java.awt.Paint getNextBorderPaint()
Returns the next border paint in a sequence maintained by the supplier.

Returns:
Paint The paint (never null).

getNextFillPaint

java.awt.Paint getNextFillPaint()
Returns the next fill paint in a sequence maintained by the supplier.

Returns:
Paint The paint (never null).

getNextStroke

java.awt.Stroke getNextStroke()
Returns the next Stroke object in a sequence maintained by the supplier.

Returns:
Stroke The Stroke (never null).

getNextBorderStroke

java.awt.Stroke getNextBorderStroke()
Returns the next Stroke object in a sequence maintained by the supplier.

Returns:
Stroke The Stroke (never null).

getNextShape

java.awt.Shape getNextShape()
Returns the next Shape object in a sequence maintained by the supplier.

Returns:
Shape The shape (never null).

reset

void reset()
Reset this class to first initiate state.


isCanReset

boolean isCanReset()
Whether or not can reset.

Returns:
boolean A boolean.

setCanReset

void setCanReset(boolean flag)
Sets whether or not can reset.

Parameters:
flag - boolean A boolean.

saveState

void saveState()
Save current state.


restoreState

void restoreState()
Restore state to old.