public class GeomVehicle extends GeomElementList
Modified by: Joseph A. Huwaldt
subElements
Constructor and Description |
---|
GeomVehicle()
Create an empty vehicle (one that does not contain any components).
|
GeomVehicle(java.lang.String name)
Create an empty vehicle with the specified name.
|
GeomVehicle(java.lang.String name,
java.util.Collection components)
Create a vehicle made up of any components found in the specified collection.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.Object element)
Inserts the specified component at the specified position in this vehicle.
|
java.util.Iterator |
components()
Return an enumeration of all the components in this vehicle.
|
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the component at the specified position in this vehicle with the specified
component.
|
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 GeomVehicle()
public GeomVehicle(java.lang.String name)
public GeomVehicle(java.lang.String name, java.util.Collection components)
name
- The name to be assigned to this vehicle.components
- A collection that contains a set of components.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 component to replace.element
- The component to be stored a the specified position.java.lang.ClassCastException
- - if the specified element is not a GeomComponent 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 component is to be inserted.element
- Component to be inserted.java.lang.ClassCastException
- - if the specified element is not a GeomComponent type
object.public java.util.Iterator components()