Class AbstractDataSetManagement<R extends Renderer>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javafx.beans.property.BooleanProperty showInLegend  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void copyMetaData​(de.gsi.dataset.DataSet from, de.gsi.dataset.DataSet to)  
      javafx.collections.ObservableList<Axis> getAxes()  
      protected static de.gsi.dataset.spi.DoubleDataSet getDataSetCopy​(de.gsi.dataset.DataSet dataSet)  
      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)  
      protected static de.gsi.dataset.spi.DoubleErrorDataSet getErrorDataSetCopy​(de.gsi.dataset.DataSetError dataSet)  
      Axis getFirstAxis​(javafx.geometry.Orientation orientation)  
      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.
      protected abstract R getThis()  
      R setShowInLegend​(boolean state)
      Sets whether DataSets attached to this renderer shall be shown in the legend
      boolean showInLegend()
      Sets whether DataSets attached to this renderer shall be shown in the legend
      javafx.beans.property.BooleanProperty showInLegendProperty()
      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
    • Field Detail

      • showInLegend

        protected javafx.beans.property.BooleanProperty showInLegend
    • Constructor Detail

      • AbstractDataSetManagement

        public AbstractDataSetManagement()
    • Method Detail

      • getAxes

        public javafx.collections.ObservableList<Axis> getAxes()
        Specified by:
        getAxes in interface Renderer
        Returns:
        observable list of axes that are supposed to be used by the renderer
      • getDatasets

        public javafx.collections.ObservableList<de.gsi.dataset.DataSet> getDatasets()
        Specified by:
        getDatasets in interface Renderer
      • getDatasetsCopy

        public javafx.collections.ObservableList<de.gsi.dataset.DataSet> getDatasetsCopy()
        Specified by:
        getDatasetsCopy in interface Renderer
      • 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 requested
        fallback - 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:
        setShowInLegend in interface Renderer
        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:
        showInLegend in interface Renderer
        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:
        showInLegendProperty in interface Renderer
        Returns:
        true (default) if data sets are supposed to be drawn
      • copyMetaData

        protected static void copyMetaData​(de.gsi.dataset.DataSet from,
                                           de.gsi.dataset.DataSet to)
      • getDataSetCopy

        protected static final de.gsi.dataset.spi.DoubleDataSet getDataSetCopy​(de.gsi.dataset.DataSet dataSet)
      • getErrorDataSetCopy

        protected static final de.gsi.dataset.spi.DoubleErrorDataSet getErrorDataSetCopy​(de.gsi.dataset.DataSetError dataSet)