public class GeomComponent extends GeomElementList
Modified by: Joseph A. Huwaldt
subElements
Constructor and Description |
---|
GeomComponent()
Create an empty component (one that does not contain any networks).
|
GeomComponent(java.lang.String name)
Create an empty component with the specified name.
|
GeomComponent(java.lang.String name,
java.util.Collection networks)
Create a component made up of any networks found in the
specified collection.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.Object element)
Inserts the specified network at the specified position in this
component.
|
java.util.Iterator |
networks()
Return an enumeration of all the networks in this component.
|
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the network at the specified position in this component
with the specified network.
|
clear, clone, equals, get, getAllData, getArea, getBoundsMax, getBoundsMin, getData, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getName, getNumberOfPanels, hashCode, iterator, putData, remove, scale, setName, size, toString, translate
add, addAll, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
public GeomComponent()
public GeomComponent(java.lang.String name)
public GeomComponent(java.lang.String name, java.util.Collection networks)
name
- The name to be assigned to this component.networks
- A collection that contains a set of networks.public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
set
in class java.util.AbstractList
index
- The index of the network to replace.element
- The network to be stored a the specified position.java.lang.ClassCastException
- - if the specified element is not a
GeomNetwork type object.public void add(int index, java.lang.Object element)
add
in interface java.util.List
add
in class java.util.AbstractList
index
- Index at which the specified network is to be
inserted.element
- Network to be inserted.java.lang.ClassCastException
- - if the specified element is not a
GeomNetwork type object.public java.util.Iterator networks()