T
- The sub-type of this AbstractPointGeomList list.E
- The type of PointGeometry element contained in this geometry list.public abstract class AbstractPointGeomList<T extends AbstractPointGeomList,E extends PointGeometry> extends AbstractGeomList<T,E> implements PointGeometry<T>
PointGeometry
objects.
WARNING: This list allows geometry to be stored in different units. If consistent units are required, then the user must specifically convert the list items.
Modified by: Joseph A. Huwaldt
RESOURCES
Constructor and Description |
---|
AbstractPointGeomList() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
E value)
Inserts the specified
PointGeometry at the specified position in this list. |
int |
getNumberOfPoints()
Return the total number of points in this geometry element.
|
int |
getPhyDimension()
Returns the number of physical dimensions of the geometry element.
|
E |
set(int index,
E element)
Replaces the <@link PointGeometry> at the specified position in this list with the
specified element.
|
add, add, add, addAll, addAll, addAll, addAll, clear, contains, containsAll, containsGeometry, equals, get, get, getAll, getBoundsMax, getBoundsMin, getFirst, getIndexFromName, getLast, getLimitPoint, getParDimension, getRange, getUnit, hashCode, indexOf, isEmpty, isValid, iterator, lastIndexOf, listIterator, listIterator, remove, remove, remove, removeAll, reset, retainAll, reverse, size, subList, toArray, toArray, toText, unmodifiableList
addChangeListener, clone, compareTo, getAllUserData, getID, getName, getUserData, putAllUserData, putUserData, removeChangeListener, removeUserData, setName, toString
to
addChangeListener, copy, copyToReal, getAllUserData, getBoundsMax, getBoundsMin, getID, getLimitPoint, getName, getParDimension, getUnit, getUserData, isValid, putAllUserData, putUserData, removeChangeListener, removeUserData, setName, size, toDimension, toText
to, toDimension
getTransformed
public AbstractPointGeomList()
public E set(int index, E element)
set
in interface java.util.List<E extends PointGeometry>
set
in class AbstractGeomList<T extends AbstractPointGeomList,E extends PointGeometry>
index
- The index of the element to replace. (0 returns the 1st element, -1
returns the last, -2 returns the 2nd from last, etc).element
- The element to be stored at the specified position. May not be null.java.lang.IndexOutOfBoundsException
- - if index > thisSize()
DimensionException
- if the input element's dimensions are different from
this list's dimensions.public void add(int index, E value)
PointGeometry
at the specified position in this list.
Shifts the element currently at that position (if any) and any subsequent elements
to the right (adds one to their indices). Null values are ignored. The input
value must have the same physical dimensions as the other items in this list, or
an exception is thrown.
Note: If this method is used concurrent access must be synchronized (the table is not thread-safe).
add
in interface java.util.List<E extends PointGeometry>
add
in class AbstractGeomList<T extends AbstractPointGeomList,E extends PointGeometry>
index
- the index at which the specified element is to be inserted. (0 returns
the 1st element, -1 returns the last, -2 returns the 2nd from last,
etc).value
- the element to be inserted. May not be null.java.lang.IndexOutOfBoundsException
- if index > thisSize()
DimensionException
- if the input element's dimensions are different from
this list's dimensions.public int getPhyDimension()
PointGeometry
objects or 0 if this list has no PointGeometry objects in it.getPhyDimension
in interface GeomElement<T extends AbstractPointGeomList>
getPhyDimension
in class AbstractGeomList<T extends AbstractPointGeomList,E extends PointGeometry>
public int getNumberOfPoints()
getNumberOfPoints
in interface PointGeometry<T extends AbstractPointGeomList>