Package de.gsi.chart.renderer.spi
Class ReducingLineRenderer
- java.lang.Object
-
- de.gsi.chart.renderer.spi.AbstractDataSetManagement<ReducingLineRenderer>
-
- de.gsi.chart.renderer.spi.ReducingLineRenderer
-
- All Implemented Interfaces:
Renderer
public class ReducingLineRenderer extends AbstractDataSetManagement<ReducingLineRenderer> implements Renderer
Simple, uncomplicated reducing line renderer- Author:
- braeun
-
-
Field Summary
-
Fields inherited from class de.gsi.chart.renderer.spi.AbstractDataSetManagement
showInLegend
-
-
Constructor Summary
Constructors Constructor Description ReducingLineRenderer()ReducingLineRenderer(int maxPoints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.canvas.CanvasdrawLegendSymbol(de.gsi.dataset.DataSet dataSet, int dsIndex, int width, int height)intgetMaxPoints()protected ReducingLineRenderergetThis()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)voidsetMaxPoints(int maxPoints)-
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
getAxes, getDatasets, getDatasetsCopy, setShowInLegend, showInLegend, showInLegendProperty
-
-
-
-
Method Detail
-
drawLegendSymbol
public javafx.scene.canvas.Canvas drawLegendSymbol(de.gsi.dataset.DataSet dataSet, int dsIndex, int width, int height)- Specified by:
drawLegendSymbolin interfaceRenderer- Parameters:
dataSet- the data set for which the representative icon should be generateddsIndex- index within renderer setwidth- requested width of the returning Canvasheight- requested height of the returning Canvas- Returns:
- a graphical icon representation of the given data sets
-
getMaxPoints
public int getMaxPoints()
-
getThis
protected ReducingLineRenderer getThis()
- Specified by:
getThisin classAbstractDataSetManagement<ReducingLineRenderer>- Returns:
- the instance of this ReducingLineRenderer.
-
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- 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)
-
setMaxPoints
public void setMaxPoints(int maxPoints)
-
-