Package com.j3d.engine.scene.nodes.layer
Class LayerList
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Layer>,Collection<Layer>,List<Layer>,RandomAccess,SequencedCollection<Layer>
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Finds aLayerby its identifier.static LayerListprivate voidinternalSwap(Layer l1, Layer l2) move(Layer layer, LayerMoveOperation moveOperation) Swaps the positions of two layers in the list.voidswingAddAll(Collection<Layer> values) Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
LayerList
public LayerList() -
LayerList
public LayerList(int initialCapacity)
-
-
Method Details
-
from
-
clear
public void clear() -
find
Finds aLayerby its identifier.- Parameters:
id- The identifier of the layer to finder.- Returns:
- The
Layerwith the matching identifier, ornullif no such layer is found.
-
internalSwap
-
swap
Swaps the positions of two layers in the list.- Parameters:
l1- The first layer to swap.l2- The second layer to swap.- Returns:
- A
VoidActionthat performs the swap and can be undone. - Throws:
IllegalArgumentException- if either layer is not found in the list.
-
move
-
swingAddAll
-
objectStream
-
thingStream
-