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
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
FieldsModifier and TypeFieldDescription(package private) doubleThe final y-coordinate for the current x-coordinate.(package private) doubleThe minimum change in the x-value needed to trigger an update to the seriesPath.(package private) doubleThe highest y-coordinate for the current x-coordinate.(package private) GeneralPathA second path that draws vertical intervals to cover any extreme values.(package private) booleanA flag that indicates if the last (x, y) point was 'good' (non-null).(package private) doubleThe last x-coordinate visited by the seriesPath.(package private) doubleThe lowest y-coordinate for the current x-coordinate.(package private) doubleThe initial y-coordinate for the current x-coordinate.(package private) GeneralPathThe path for the current series.Fields inherited from class org.jfree.chart.renderer.xy.XYItemRendererState
workingLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstartSeriesPass(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, setProcessVisibleItemsOnlyMethods inherited from class org.jfree.chart.renderer.RendererState
getElementHinting, getEntityCollection, getInfo, setElementHinting
-
Field Details
-
seriesPath
GeneralPath seriesPathThe path for the current series. -
intervalPath
GeneralPath intervalPathA second path that draws vertical intervals to cover any extreme values. -
dX
double dXThe minimum change in the x-value needed to trigger an update to the seriesPath. -
lastX
double lastXThe last x-coordinate visited by the seriesPath. -
openY
double openYThe initial y-coordinate for the current x-coordinate. -
highY
double highYThe highest y-coordinate for the current x-coordinate. -
lowY
double lowYThe lowest y-coordinate for the current x-coordinate. -
closeY
double closeYThe final y-coordinate for the current x-coordinate. -
lastPointGood
boolean lastPointGoodA flag that indicates if the last (x, y) point was 'good' (non-null).
-
-
Constructor Details
-
State
Creates a new state instance.- Parameters:
info- the plot rendering info.
-
-
Method Details
-
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:
-