Package de.gsi.chart.renderer.spi
Class HistoryDataSetRenderer
- java.lang.Object
-
- de.gsi.chart.renderer.spi.AbstractDataSetManagement<R>
-
- de.gsi.chart.renderer.spi.AbstractPointReductionManagment<R>
-
- de.gsi.chart.renderer.spi.AbstractErrorDataSetRendererParameter<ErrorDataSetRenderer>
-
- de.gsi.chart.renderer.spi.ErrorDataSetRenderer
-
- de.gsi.chart.renderer.spi.HistoryDataSetRenderer
-
- All Implemented Interfaces:
Renderer
public class HistoryDataSetRenderer extends ErrorDataSetRenderer implements Renderer
Renders the data set with the pre-described- Author:
- R.J. Steinhagen
-
-
Field Summary
Fields Modifier and Type Field Description protected javafx.collections.ObservableList<de.gsi.dataset.DataSet>chartDataSetsCopyprotected static intDEFAULT_HISTORY_DEPTHprotected javafx.collections.ObservableList<de.gsi.dataset.DataSet>emptyListprotected booleanitselfprotected javafx.collections.ObservableList<ErrorDataSetRenderer>renderers-
Fields inherited from class de.gsi.chart.renderer.spi.AbstractErrorDataSetRendererParameter
DEFAULT_HISTORY_INTENSITY_FADING
-
Fields inherited from class de.gsi.chart.renderer.spi.AbstractDataSetManagement
showInLegend
-
-
Constructor Summary
Constructors Constructor Description HistoryDataSetRenderer()HistoryDataSetRenderer(int historyDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaxisChanged(javafx.collections.ListChangeListener.Change<? extends Axis> change)voidclearHistory()clear renderer historyprotected voidmodifyStyle(de.gsi.dataset.DataSet dataSet, int dataSetIndex)java.util.List<de.gsi.dataset.DataSet>render(javafx.scene.canvas.GraphicsContext gc, Chart chart, int dataSetOffset, javafx.collections.ObservableList<de.gsi.dataset.DataSet> datasets)voidshiftHistory()-
Methods inherited from class de.gsi.chart.renderer.spi.ErrorDataSetRenderer
drawBars, drawBubbles, drawDefaultNoErrors, drawErrorBars, drawErrorSurface, drawErrorSurfaceNaNCompatible, drawLegendSymbol, drawMarker, drawPolyLine, drawPolyLineArea, drawPolyLineHistogram, drawPolyLineHistogramBezier, drawPolyLineHistogramFilled, drawPolyLineLine, drawPolyLineStairCase, getDefaultMarker, getMarker, getThis, setMarker
-
Methods inherited from class de.gsi.chart.renderer.spi.AbstractErrorDataSetRendererParameter
allowNaNsProperty, barWidthPercentageProperty, barWidthProperty, bind, dashSizeProperty, drawBarsProperty, drawBubblesProperty, drawChartDataSetsProperty, drawMarkerProperty, dynamicBarWidthProperty, errorStyleProperty, getBarWidth, getBarWidthPercentage, getDashSize, getErrorType, getIntensityFading, getMarkerSize, getPolyLineStyle, getRendererDataReducer, getShiftBarOffset, intensityFadingProperty, isallowNaNs, isDrawBars, isDrawBubbles, isDrawChartDataSets, isDrawMarker, isDynamicBarWidth, isShiftBar, markerSizeProperty, polyLineStyleProperty, rendererDataReducerProperty, setAllowNaNs, setBarWidth, setBarWidthPercentage, setDashSize, setDrawBars, setDrawBubbles, setDrawChartDataSets, setDrawMarker, setDynamicBarWidth, setErrorType, setIntensityFading, setMarkerSize, setPolyLineStyle, setRendererDataReducer, setShiftBar, setshiftBarOffset, shiftBarOffsetProperty, shiftBarProperty, unbind
-
Methods inherited from class de.gsi.chart.renderer.spi.AbstractPointReductionManagment
actualPointReductionProperty, assumeSortedDataProperty, getMinRequiredReductionSize, isActualReducePoints, isAssumeSortedData, isParallelImplementation, isReducePoints, minRequiredReductionSizeProperty, parallelImplementationProperty, pointReductionProperty, setAssumeSortedData, setMinRequiredReductionSize, setParallelImplementation, setPointReduction
-
Methods inherited from class de.gsi.chart.renderer.spi.AbstractDataSetManagement
getAxes, getDatasets, getDatasetsCopy, getDatasetsCopy, getFirstAxis, getFirstAxis, setShowInLegend, showInLegend, showInLegendProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.gsi.chart.renderer.Renderer
drawLegendSymbol, getAxes, getDatasets, getDatasetsCopy, setShowInLegend, showInLegend, showInLegendProperty
-
-
-
-
Field Detail
-
DEFAULT_HISTORY_DEPTH
protected static final int DEFAULT_HISTORY_DEPTH
- See Also:
- Constant Field Values
-
emptyList
protected final javafx.collections.ObservableList<de.gsi.dataset.DataSet> emptyList
-
chartDataSetsCopy
protected final javafx.collections.ObservableList<de.gsi.dataset.DataSet> chartDataSetsCopy
-
renderers
protected final javafx.collections.ObservableList<ErrorDataSetRenderer> renderers
-
itself
protected boolean itself
-
-
Method Detail
-
axisChanged
protected void axisChanged(javafx.collections.ListChangeListener.Change<? extends Axis> change)
-
clearHistory
public void clearHistory()
clear renderer history
-
modifyStyle
protected void modifyStyle(de.gsi.dataset.DataSet dataSet, int dataSetIndex)
-
render
public java.util.List<de.gsi.dataset.DataSet> render(javafx.scene.canvas.GraphicsContext gc, Chart chart, int dataSetOffset, javafx.collections.ObservableList<de.gsi.dataset.DataSet> datasets)- Specified by:
renderin interfaceRenderer- Overrides:
renderin classErrorDataSetRenderer- Parameters:
gc- the Canvas' GraphicsContext the renderer should draw uponchart- the corresponding chartdataSetOffset- global offset of the last drawn DataSetdatasets- list of globally (ie. in Chart) stored DataSets- Returns:
- List of drawn DataSets (N.B. return '0' in case
Renderer.showInLegend()is false)
-
shiftHistory
public void shiftHistory()
-
-