Module com.iamsoft.util.ui
Class ConflatingList2<X,Y>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- javafx.collections.ObservableListBase<E>
-
- javafx.collections.ModifiableObservableListBase<T>
-
- com.iamsoft.util.ui.javafx.collections.DefaultObservableList<E>
-
- com.iamsoft.util.ui.javafx.collections.ObservableArrayList<javafx.util.Pair<X,Y>>
-
- com.iamsoft.util.ui.javafx.collections.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.iamsoft.util.ui.javafx.collections.ObservableArrayList
ObservableArrayList.Exposed<E>
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ConflatingList2(ConflatingList2<X,Y> pSourceList, Function<X,Long> pXToLongFunction, long pMinInterval)
ConflatingList2(Function<X,Long> pXToLongFunction)
ConflatingList2(Function<X,Long> pXToLongFunction, long pMinInterval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.ConflatingList2<X,Y>
getRootList()
ConflatingList2<X,Y>
getSourceList()
-
Methods inherited from class com.iamsoft.util.ui.javafx.collections.ObservableArrayList
addAll, addAll, removeRange
-
Methods inherited from class com.iamsoft.util.ui.javafx.collections.DefaultObservableList
addElementObserver, addElementObservers, clear, contains, doAdd, doRemove, doSet, get, getDelegate, indexOf, lastIndexOf, permutate, removeElementObserver, removeElementObservers, resetElementObserver, size
-
Methods inherited from class javafx.collections.ModifiableObservableListBase
add, remove, remove, removeAll, retainAll, set, setAll, subList
-
Methods inherited from class javafx.collections.ObservableListBase
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll
-
Methods inherited from class java.util.AbstractList
add, equals, hashCode, iterator, listIterator, listIterator
-
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, add, containsAll, equals, hashCode, isEmpty, iterator, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
-
-
-
-
Method Detail
-
getSourceList
public ConflatingList2<X,Y> getSourceList()
-
getRootList
public ConflatingList2<X,Y> getRootList()
-
-