Package org.jfree.chart.renderer.xy
Class SamplingXYLineRenderer.State
- java.lang.Object
-
- org.jfree.chart.renderer.RendererState
-
- org.jfree.chart.renderer.xy.XYItemRendererState
-
- org.jfree.chart.renderer.xy.SamplingXYLineRenderer.State
-
- Enclosing class:
- SamplingXYLineRenderer
public static class SamplingXYLineRenderer.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 (package private) doublecloseYThe final y-coordinate for the current x-coordinate.(package private) doubledXThe minimum change in the x-value needed to trigger an update to the seriesPath.(package private) doublehighYThe highest y-coordinate for the current x-coordinate.(package private) java.awt.geom.GeneralPathintervalPathA second path that draws vertical intervals to cover any extreme values.(package private) booleanlastPointGoodA flag that indicates if the last (x, y) point was 'good' (non-null).(package private) doublelastXThe last x-coordinate visited by the seriesPath.(package private) doublelowYThe lowest y-coordinate for the current x-coordinate.(package private) doubleopenYThe initial y-coordinate for the current x-coordinate.(package private) java.awt.geom.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 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
java.awt.geom.GeneralPath seriesPath
The path for the current series.
-
intervalPath
java.awt.geom.GeneralPath intervalPath
A second path that draws vertical intervals to cover any extreme values.
-
dX
double dX
The minimum change in the x-value needed to trigger an update to the seriesPath.
-
lastX
double lastX
The last x-coordinate visited by the seriesPath.
-
openY
double openY
The initial y-coordinate for the current x-coordinate.
-
highY
double highY
The highest y-coordinate for the current x-coordinate.
-
lowY
double lowY
The lowest y-coordinate for the current x-coordinate.
-
closeY
double closeY
The final y-coordinate for the current x-coordinate.
-
lastPointGood
boolean lastPointGood
A flag that indicates if the last (x, y) point was 'good' (non-null).
-
-
Constructor Detail
-
State
public State(PlotRenderingInfo info)
Creates a new state instance.- Parameters:
info- the plot rendering info.
-
-
Method Detail
-
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)
-
-