org.jfree.chart.renderer.xy

Class StandardXYItemRenderer.State

public static class StandardXYItemRenderer.State extends XYItemRendererState

Records the state for the renderer. This is used to preserve state information between calls to the drawItem() method for a single chart drawing.
Field Summary
GeneralPathseriesPath
The path for the current series.
Constructor Summary
State(PlotRenderingInfo info)
Creates a new state instance.
Method Summary
intgetSeriesIndex()
Returns the series index for the current path.
booleanisLastPointGood()
Returns a flag that indicates if the last point drawn (in the current series) was 'good' (non-null).
voidsetLastPointGood(boolean good)
Sets a flag that indicates if the last point drawn (in the current series) was 'good' (non-null).
voidsetSeriesIndex(int index)
Sets the series index for the current path.

Field Detail

seriesPath

public GeneralPath seriesPath
The path for the current series.

Constructor Detail

State

public State(PlotRenderingInfo info)
Creates a new state instance.

Parameters: info the plot rendering info.

Method Detail

getSeriesIndex

public int getSeriesIndex()
Returns the series index for the current path.

Returns: The series index for the current path.

isLastPointGood

public boolean isLastPointGood()
Returns a flag that indicates if the last point drawn (in the current series) was 'good' (non-null).

Returns: A boolean.

setLastPointGood

public void setLastPointGood(boolean good)
Sets a flag that indicates if the last point drawn (in the current series) was 'good' (non-null).

Parameters: good the flag.

setSeriesIndex

public void setSeriesIndex(int index)
Sets the series index for the current path.

Parameters: index the index.