org.jfree.chart.renderer.xy

Class XYItemRendererState

public class XYItemRendererState extends RendererState

The state for an XYItemRenderer.
Field Summary
Line2DworkingLine
A line object that the renderer can reuse to save instantiating a lot of objects.
Constructor Summary
XYItemRendererState(PlotRenderingInfo info)
Creates a new state.
Method Summary
voidendSeriesPass(XYDataset dataset, int series, int firstItem, int lastItem, int pass, int passCount)
This method is called by the XYPlot when it ends a pass through the (visible) items in a series.
intgetFirstItemIndex()
Returns the first item index (this is updated with each call to XYItemRendererState.
intgetLastItemIndex()
Returns the last item index (this is updated with each call to XYItemRendererState.
booleangetProcessVisibleItemsOnly()
Returns the flag that controls whether the plot passes all data items in each series to the renderer, or just the visible items.
voidsetProcessVisibleItemsOnly(boolean flag)
Sets the flag that controls whether the plot passes all data items in each series to the renderer, or just the visible items.
voidstartSeriesPass(XYDataset dataset, int series, int firstItem, int lastItem, int pass, int passCount)
This method is called by the XYPlot when it starts a pass through the (visible) items in a series.

Field Detail

workingLine

public Line2D workingLine
A line object that the renderer can reuse to save instantiating a lot of objects.

Constructor Detail

XYItemRendererState

public XYItemRendererState(PlotRenderingInfo info)
Creates a new state.

Parameters: info the plot rendering info.

Method Detail

endSeriesPass

public void endSeriesPass(XYDataset dataset, int series, int firstItem, int lastItem, int pass, int passCount)
This method is called by the XYPlot when it ends a pass through the (visible) items in a series. The default implementation does nothing, but you can override this method to implement specialised behaviour.

Parameters: dataset the dataset. series the series index. firstItem the index of the first item in the series. lastItem the index of the last item in the series. pass the pass index. passCount the number of passes.

Since: 1.0.11

See Also:

getFirstItemIndex

public int getFirstItemIndex()
Returns the first item index (this is updated with each call to XYItemRendererState.

Returns: The first item index.

Since: 1.0.11

getLastItemIndex

public int getLastItemIndex()
Returns the last item index (this is updated with each call to XYItemRendererState.

Returns: The last item index.

Since: 1.0.11

getProcessVisibleItemsOnly

public boolean getProcessVisibleItemsOnly()
Returns the flag that controls whether the plot passes all data items in each series to the renderer, or just the visible items. The default value is true.

Returns: A boolean.

Since: 1.0.6

See Also: XYItemRendererState

setProcessVisibleItemsOnly

public void setProcessVisibleItemsOnly(boolean flag)
Sets the flag that controls whether the plot passes all data items in each series to the renderer, or just the visible items.

Parameters: flag the new flag value.

Since: 1.0.6

startSeriesPass

public void startSeriesPass(XYDataset dataset, int series, int firstItem, int lastItem, int pass, int passCount)
This method is called by the XYPlot when it starts a pass through the (visible) items in a series. The default implementation records the first and last item indices - override this method to implement additional specialised behaviour.

Parameters: dataset the dataset. series the series index. firstItem the index of the first item in the series. lastItem the index of the last item in the series. pass the pass index. passCount the number of passes.

Since: 1.0.11

See Also:

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.