Package de.gsi.chart.renderer.spi
Class AbstractDataSetManagement<R extends Renderer>
- java.lang.Object
-
- de.gsi.chart.renderer.spi.AbstractDataSetManagement<R>
-
- Type Parameters:
R- renderer generics
- All Implemented Interfaces:
Renderer
- Direct Known Subclasses:
AbstractPointReductionManagment,LabelledMarkerRenderer,ReducingLineRenderer
public abstract class AbstractDataSetManagement<R extends Renderer> extends java.lang.Object implements Renderer
- Author:
- rstein
-
-
Field Summary
Fields Modifier and Type Field Description protected javafx.beans.property.BooleanPropertyshowInLegend
-
Constructor Summary
Constructors Constructor Description AbstractDataSetManagement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javafx.collections.ObservableList<Axis>getAxes()javafx.collections.ObservableList<de.gsi.dataset.DataSet>getDatasets()javafx.collections.ObservableList<de.gsi.dataset.DataSet>getDatasetsCopy()protected javafx.collections.ObservableList<de.gsi.dataset.DataSet>getDatasetsCopy(javafx.collections.ObservableList<de.gsi.dataset.DataSet> localDataSets)AxisgetFirstAxis(javafx.geometry.Orientation orientation)protected AxisgetFirstAxis(javafx.geometry.Orientation orientation, XYChart fallback)Returns the first axis for a specific orientation and falls back to the first axis of the chart if no such axis exists.protected abstract RgetThis()RsetShowInLegend(boolean state)Sets whether DataSets attached to this renderer shall be shown in the legendbooleanshowInLegend()Sets whether DataSets attached to this renderer shall be shown in the legendjavafx.beans.property.BooleanPropertyshowInLegendProperty()Sets whether DataSets attached to this renderer shall be shown in the legend-
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, render
-
-
-
-
Method Detail
-
getAxes
public javafx.collections.ObservableList<Axis> getAxes()
-
getDatasets
public javafx.collections.ObservableList<de.gsi.dataset.DataSet> getDatasets()
- Specified by:
getDatasetsin interfaceRenderer
-
getDatasetsCopy
public javafx.collections.ObservableList<de.gsi.dataset.DataSet> getDatasetsCopy()
- Specified by:
getDatasetsCopyin interfaceRenderer
-
getDatasetsCopy
protected javafx.collections.ObservableList<de.gsi.dataset.DataSet> getDatasetsCopy(javafx.collections.ObservableList<de.gsi.dataset.DataSet> localDataSets)
-
getFirstAxis
public Axis getFirstAxis(javafx.geometry.Orientation orientation)
-
getFirstAxis
protected Axis getFirstAxis(javafx.geometry.Orientation orientation, XYChart fallback)
Returns the first axis for a specific orientation and falls back to the first axis of the chart if no such axis exists. The chart will automatically return a default axis in case no axis is present. Because this code adds axes automatically, it should not be called during chart setup but only inside of rendering routines. Otherwise there is risk of duplicate axes if things are called in the wrong order.- Parameters:
orientation- specifies if a horizontal or vertical axis is requestedfallback- The chart from which to get the axis if no axis is present- Returns:
- The requested axis
-
getThis
protected abstract R getThis()
- Returns:
- the instance of this AbstractDataSetManagement.
-
setShowInLegend
public R setShowInLegend(boolean state)
Sets whether DataSets attached to this renderer shall be shown in the legend- Specified by:
setShowInLegendin interfaceRenderer- Parameters:
state- true (default) if data sets are supposed to be drawn- Returns:
- the renderer class
-
showInLegend
public boolean showInLegend()
Sets whether DataSets attached to this renderer shall be shown in the legend- Specified by:
showInLegendin interfaceRenderer- Returns:
- true (default) if data sets are supposed to be drawn
-
showInLegendProperty
public final javafx.beans.property.BooleanProperty showInLegendProperty()
Sets whether DataSets attached to this renderer shall be shown in the legend- Specified by:
showInLegendPropertyin interfaceRenderer- Returns:
- true (default) if data sets are supposed to be drawn
-
-