T
- the type of the elements which this collection can store.public class ElementCollection<T extends ChartNode> extends ArrayList<T>
ChartElement
instances that is used by the Chart engine to build up the parent-child relations
between the separate elements comprising a single Chart.Constructor and Description |
---|
ElementCollection(ChartElement owner)
Creates an instance of the
ElementCollection class
with a specified owner. |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T object) |
boolean |
add(T object) |
void |
clear() |
T |
remove(int index) |
boolean |
remove(Object obj) |
addAll, addAll, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
containsAll, equals, hashCode
parallelStream, stream
public ElementCollection(ChartElement owner)
ElementCollection
class
with a specified owner.owner
- an instance of the ChartElement
that will be owner of this collection.