Class ConflatingList2<X,​Y>

  • Type Parameters:
    X - Type of horizontal (X) axis.
    Y - Type of vertical (Y) axis.
    All Implemented Interfaces:
    PermutableObservableList<javafx.util.Pair<X,​Y>>, Iterable<javafx.util.Pair<X,​Y>>, Collection<javafx.util.Pair<X,​Y>>, List<javafx.util.Pair<X,​Y>>, javafx.beans.Observable, javafx.collections.ObservableList<javafx.util.Pair<X,​Y>>

    public class ConflatingList2<X,​Y>
    extends ObservableArrayList<javafx.util.Pair<X,​Y>>
    Removes redundant datapoints. Also, merges points that are temporally proximate.
    • Constructor Detail

      • ConflatingList2

        public ConflatingList2​(Function<X,​Long> pXToLongFunction)
      • ConflatingList2

        public ConflatingList2​(Function<X,​Long> pXToLongFunction,
                               long pMinInterval)
    • Method Detail

      • addDataPoint

        public void addDataPoint​(X pX,
                                 Y pY)
        If this list is not a root, meaning it has a source list, the data point is added to the root list. Otherwise, it is processed by this list.