Class TimeSeriesList2<K,​Y extends Number>

  • Type Parameters:
    K - Item from which data is extracted.
    Y - Value type.
    All Implemented Interfaces:
    Iterable<javafx.scene.chart.XYChart.Series<Long,​Y>>, Collection<javafx.scene.chart.XYChart.Series<Long,​Y>>, List<javafx.scene.chart.XYChart.Series<Long,​Y>>, javafx.beans.Observable, javafx.collections.ObservableList<javafx.scene.chart.XYChart.Series<Long,​Y>>

    public class TimeSeriesList2<K,​Y extends Number>
    extends javafx.collections.ObservableListBase<javafx.scene.chart.XYChart.Series<Long,​Y>>
    List of data series derived from mutating observable values.
    • Constructor Detail

      • TimeSeriesList2

        public TimeSeriesList2​(javafx.collections.ObservableList<K> pItems,
                               Function<? super K,​? extends javafx.beans.value.ObservableValue<String>> pNameFunction,
                               Function<? super K,​? extends javafx.beans.value.ObservableValue<? extends Y>> pValFunction)
    • Method Detail

      • get

        public javafx.scene.chart.XYChart.Series<Long,​Y> get​(int pIdx)
        Specified by:
        get in interface List<K>
        Specified by:
        get in class AbstractList<javafx.scene.chart.XYChart.Series<Long,​Y extends Number>>
      • get

        public javafx.scene.chart.XYChart.Series<Long,​Y> get​(K pItem)
      • disposeSeries

        public void disposeSeries​(K pItem)
        Unnecessarily maintaining series can lead to increased CPU/memory usages. For example, series data may maintain properties, graphical node for displaying node item, etc. Thus, it is encouraged to dispose series whenever they are not in use.