- java.lang.Object
-
- org.jfree.chart.renderer.RendererState
-
- org.jfree.chart.renderer.xy.XYItemRendererState
-
- org.jfree.chart.renderer.xy.XYLineAndShapeRenderer.State
-
- Direct Known Subclasses:
DeviationRenderer.State,XYBezierRenderer.XYBezierState,XYSplineRenderer.XYSplineState
- Enclosing class:
- XYLineAndShapeRenderer
public static class XYLineAndShapeRenderer.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
Fields Modifier and Type Field Description GeneralPathseriesPathThe path for the current series.-
Fields inherited from class org.jfree.chart.renderer.xy.XYItemRendererState
workingLine
-
-
Constructor Summary
Constructors Constructor Description State(PlotRenderingInfo info)Creates a new state instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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).voidstartSeriesPass(XYDataset dataset, int series, int firstItem, int lastItem, int pass, int passCount)This method is called by theXYPlotat the start of each series pass.-
Methods inherited from class org.jfree.chart.renderer.xy.XYItemRendererState
endSeriesPass, getFirstItemIndex, getLastItemIndex, getProcessVisibleItemsOnly, setProcessVisibleItemsOnly
-
Methods inherited from class org.jfree.chart.renderer.RendererState
getElementHinting, getEntityCollection, getInfo, setElementHinting
-
-
-
-
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
-
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.
-
startSeriesPass
public void startSeriesPass(XYDataset dataset, int series, int firstItem, int lastItem, int pass, int passCount)
This method is called by theXYPlotat the start of each series pass. We reset the state for the current series.- Overrides:
startSeriesPassin classXYItemRendererState- Parameters:
dataset- the dataset.series- the series index.firstItem- the first item index for this pass.lastItem- the last item index for this pass.pass- the current pass index.passCount- the number of passes.- See Also:
XYItemRendererState.endSeriesPass(XYDataset, int, int, int, int, int)
-
-