Module org.jhotdraw8.draw
Package org.jhotdraw8.draw.model
Class DrawingModelFigureChildrenObservableList
- All Implemented Interfaces:
Iterable<Figure>,Collection<Figure>,List<Figure>,SequencedCollection<Figure>,javafx.beans.Observable,javafx.collections.ObservableList<Figure>
public class DrawingModelFigureChildrenObservableList
extends javafx.collections.transformation.TransformationList<Figure,Figure>
This class allows to provide a proxy for the children list of a figure,
the proxy performs all changes on the children list via the DrawingModel.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDrawingModelFigureChildrenObservableList(@NonNull DrawingModel model, @NonNull Figure parent) Creates a new Transformation list wrapped around the source list. -
Method Summary
Modifier and TypeMethodDescriptionvoidget(int index) intgetSourceIndex(int index) intgetViewIndex(int index) remove(int index) booleanintsize()protected voidsourceChanged(javafx.collections.ListChangeListener.Change<? extends Figure> c) Methods inherited from class javafx.collections.transformation.TransformationList
getSource, getSourceIndexFor, isInTransformationChainMethods 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, setAllMethods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, subList, toArray, toArrayMethods inherited from interface javafx.beans.Observable
subscribeMethods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
Constructor Details
-
DrawingModelFigureChildrenObservableList
public DrawingModelFigureChildrenObservableList(@NonNull DrawingModel model, @NonNull Figure parent) Creates a new Transformation list wrapped around the source list.
-
-
Method Details
-
sourceChanged
-
getSourceIndex
public int getSourceIndex(int index) -
getViewIndex
public int getViewIndex(int index) -
get
-
size
public int size()- Specified by:
sizein interfaceCollection<Figure>- Specified by:
sizein interfaceList<Figure>- Specified by:
sizein classAbstractCollection<Figure>
-
add
-
remove
-
remove
- Specified by:
removein interfaceCollection<Figure>- Specified by:
removein interfaceList<Figure>- Overrides:
removein classAbstractCollection<Figure>
-
set
-