public static class

XYLineAndShapeRenderer.State

extends XYItemRendererState
java.lang.Object
   ↳ org.jfree.chart.renderer.RendererState
     ↳ org.jfree.chart.renderer.xy.XYItemRendererState
       ↳ org.jfree.chart.renderer.xy.XYLineAndShapeRenderer.State
Known Direct Subclasses

Class Overview

Records the state for the renderer. This is used to preserve state information between calls to the drawItem() method for a single chart drawing.

Summary

Fields
public GeneralPath seriesPath The path for the current series.
[Expand]
Inherited Fields
From class org.jfree.chart.renderer.xy.XYItemRendererState
Public Constructors
XYLineAndShapeRenderer.State(PlotRenderingInfo info)
Creates a new state instance.
Public Methods
boolean isLastPointGood()
Returns a flag that indicates if the last point drawn (in the current series) was 'good' (non-null).
void setLastPointGood(boolean good)
Sets a flag that indicates if the last point drawn (in the current series) was 'good' (non-null).
void startSeriesPass(XYDataset dataset, int series, int firstItem, int lastItem, int pass, int passCount)
This method is called by the XYPlot at the start of each series pass.
[Expand]
Inherited Methods
From class org.jfree.chart.renderer.xy.XYItemRendererState
From class org.jfree.chart.renderer.RendererState
From class java.lang.Object

Fields

public GeneralPath seriesPath

The path for the current series.

Public Constructors

public XYLineAndShapeRenderer.State (PlotRenderingInfo info)

Creates a new state instance.

Parameters
info the plot rendering info.

Public Methods

public boolean isLastPointGood ()

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

Returns
  • A boolean.

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.

public void startSeriesPass (XYDataset dataset, int series, int firstItem, int lastItem, int pass, int passCount)

This method is called by the XYPlot at the start of each series pass. We reset the state for the current series.

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.