public interface IDirectPositionList extends Serializable
DirectPositions.| Modifier and Type | Method and Description |
|---|---|
void |
add(com.mapinfo.midev.geometry.DirectPosition dp)
Append the given
DirectPosition to the end of this list. |
void |
add(double x,
double y)
Append the given
DirectPosition values to the end of this list. |
void |
add(double x,
double y,
double z)
Append the given
DirectPosition values to the end of this list. |
void |
add(double x,
double y,
double z,
com.mapinfo.midev.geometry.MValue m)
Append the given
DirectPosition values to the end of this list. |
void |
add(double x,
double y,
com.mapinfo.midev.geometry.MValue m)
Append the given
DirectPosition values to the end of this list. |
void |
add(int index,
com.mapinfo.midev.geometry.DirectPosition dp)
Inserts the given
DirectPosition at the specified index in this list. |
void |
add(int index,
double x,
double y)
Add the
DirectPosition values to the specified index in this array. |
void |
add(int index,
double x,
double y,
double z)
Add the
DirectPosition values to the specified index in this array. |
void |
add(int index,
double x,
double y,
double z,
com.mapinfo.midev.geometry.MValue m)
Add the
DirectPosition values to the specified index in this array. |
void |
add(int index,
double x,
double y,
com.mapinfo.midev.geometry.MValue m)
Add the
DirectPosition values to the specified index in this array. |
void |
addAll(IDirectPositionList dpl)
Append all the direct positions in the input
IDirectPositionList
to this list in the order they are returned by the input
objects iterator. |
void |
applyMutator(com.mapinfo.midev.geometry.IDirectPositionMutator dpm)
Apply the given
IDirectPositionMutator to every direct position
in this list. |
void |
clear()
Removes all of the
DirectPositions from this list. |
boolean |
contains(com.mapinfo.midev.geometry.DirectPosition dp)
Does this list contain a direct position with the same
value as dp?
This method returns true if there is at least one direct
position (a) in this list such that dp.equals(a) == true.
|
com.mapinfo.midev.geometry.DirectPosition |
getDirectPosition(int i,
com.mapinfo.midev.geometry.DirectPosition dp)
Copy the DirectPosition at the given index into the supplied
DirectPosition. |
IDirectPositionIterator |
getDirectPositionIterator()
Get an iterator over the direct positions in this list.
|
int |
indexOf(com.mapinfo.midev.geometry.DirectPosition dp)
Find the index of the first
DirectPosition that is equal to the given DirectPosition. |
boolean |
isEmpty()
Does this list contain any
DirectPositions. |
boolean |
isReadOnly()
Determine if this list is modifiable.
|
int |
lastIndexOf(com.mapinfo.midev.geometry.DirectPosition dp)
Find the index of the last
DirectPosition that is equal to the given DirectPosition. |
boolean |
mAllSet()
Does this direct position list have all non-null MValues.
|
boolean |
mSet()
Does this direct position list have at least one non-null MValue.
|
void |
remove(int index)
Remove the
DirectPosition at the specified index from the list. |
IDirectPositionList |
reverse()
Get a copy of this list with the direct positions in reverse order.
|
void |
set(int index,
com.mapinfo.midev.geometry.DirectPosition dp)
Replace the
DirectPosition at the given index with the given
DirectPosition. |
void |
set(int index,
double x,
double y)
Replace the
DirectPosition values at the given index with the given
DirectPosition values. |
void |
set(int index,
double x,
double y,
double z)
Replace the
DirectPosition values at the given index with the given
DirectPosition values. |
void |
set(int index,
double x,
double y,
double z,
com.mapinfo.midev.geometry.MValue m)
Replace the
DirectPosition values at the given index with the given
DirectPosition values. |
void |
set(int index,
double x,
double y,
com.mapinfo.midev.geometry.MValue m)
Replace the
DirectPosition values at the given index with the
given DirectPosition values. |
int |
size()
Return the number of
DirectPositions in this list. |
boolean |
zAllSet()
Do all the Z values in this direct position list have a value that is not
Double.NaN. |
boolean |
zSet()
Does at least one Z value in this direct position list have a value that is not
Double.NaN. |
IDirectPositionIterator getDirectPositionIterator()
IDirectPositionIterator.com.mapinfo.midev.geometry.DirectPosition getDirectPosition(int i,
com.mapinfo.midev.geometry.DirectPosition dp)
DirectPosition.i - zero-based index of the DirectPosition to copy.dp - the DirectPosition to copy into, cannot be nullDirectPosition dp after being changedvoid addAll(IDirectPositionList dpl) throws UnsupportedOperationException
IDirectPositionList
to this list in the order they are returned by the input
objects iterator.dpl - IDirectPositionList to append to this listUnsupportedOperationException - if the list is read onlyIDirectPositionList.isReadOnly()boolean zSet()
Double.NaN.
The implementation of this method may execute in linear time on the
first invocation but must execute in constant time for all
subsequent calls if this object has not changed.Double.NaNboolean zAllSet()
Double.NaN.
The implementation of this method may execute in linear time on the
first invocation but must execute in constant time for all
subsequent calls if this object has not changed.Double.NaNboolean mSet()
boolean mAllSet()
boolean isReadOnly()
int size()
DirectPositions in this list.
The implementation of this method may execute in linear time on the
first invocation but must execute in constant time for all
subsequent calls if this object has not changed.void set(int index,
com.mapinfo.midev.geometry.DirectPosition dp)
throws UnsupportedOperationException
DirectPosition at the given index with the given
DirectPosition.index - zero based indexdp - DirectPosition to set at indexUnsupportedOperationException - if the list is read onlyIndexOutOfBoundsException - - if the index is out of range, index < 0 || index >= size()IDirectPositionList.isReadOnly()void set(int index,
double x,
double y)
throws UnsupportedOperationException
DirectPosition values at the given index with the given
DirectPosition values. Note that this method behaves just as
IDirectPositionList.set(int,DirectPosition) were called with a DirectPosition
in which only x and y were set.index - zero based indexx - x coordinate, a valid double valuey - y coordinate, a valid double valueUnsupportedOperationException - if the list is read onlyIndexOutOfBoundsException - - if the index is out of range, index < 0 || index >= size()IDirectPositionList.isReadOnly(),
DirectPosition.DirectPosition(double,double)void set(int index,
double x,
double y,
double z)
throws UnsupportedOperationException
DirectPosition values at the given index with the given
DirectPosition values. Note that this method behaves just as
IDirectPositionList.set(int,DirectPosition) were called with a DirectPosition
in which only x, y, and z were set.index - zero based indexx - x coordinate, a valid double valuey - y coordinate, a valid double valuez - z coordinate, a valid double valueUnsupportedOperationException - if the list is read onlyIndexOutOfBoundsException - - if the index is out of range, index < 0 || index >= size()IDirectPositionList.isReadOnly(),
DirectPosition.DirectPosition(double,double,double)void set(int index,
double x,
double y,
com.mapinfo.midev.geometry.MValue m)
throws UnsupportedOperationException
DirectPosition values at the given index with the
given DirectPosition values. Note that this method behaves just as
IDirectPositionList.set(int, com.mapinfo.midev.geometry.DirectPosition) were called with a DirectPosition
in which only x, y, and m were set.index - zero based indexx - x coordinate, a valid double valuey - y coordinate, a valid double valuem - an MValue or null if unassignedUnsupportedOperationException - if the list is read onlyIndexOutOfBoundsException - - if the index is out of range, index < 0 || index >= size()IDirectPositionList.isReadOnly(),
DirectPosition.DirectPosition(double,double, com.mapinfo.midev.geometry.MValue)void set(int index,
double x,
double y,
double z,
com.mapinfo.midev.geometry.MValue m)
throws UnsupportedOperationException
DirectPosition values at the given index with the given
DirectPosition values.index - zero based indexx - x coordinate, a valid double valuey - y coordinate, a valid double valuez - z coordinate, a valid double valuem - an MValue or null if unassignedUnsupportedOperationException - if the list is read onlyIndexOutOfBoundsException - - if the index is out of range, index < 0 || index >= size()IDirectPositionList.isReadOnly(),
DirectPosition.DirectPosition(double,double,double,MValue)void add(int index,
com.mapinfo.midev.geometry.DirectPosition dp)
throws UnsupportedOperationException
DirectPosition at the specified index in this list.
Shifts the DirectPosition at that index
and any subsequent DirectPositions one position to the right (adds one to their indices).index - zero based index. Must be >=0 and <= size().dp - DirectPosition to add, cannot be nullUnsupportedOperationException - if the list is read onlyIndexOutOfBoundsException - - if the index is out of range, index < 0 || index > size()IDirectPositionList.isReadOnly()void add(int index,
double x,
double y)
throws UnsupportedOperationException
DirectPosition values to the specified index in this array. Note that this method behaves just as
IDirectPositionList.add(int,DirectPosition) were called with a DirectPosition in which only x and y were set.index - zero based index. Must be >=0 and <= size() so the new direct position either is
inserted into an existing spot and direct positions to the right are shifted one position or it
is put immediately adjacent to the last direct position.x - x coordinate, a valid double valuey - y coordinate, a valid double valueUnsupportedOperationException - if the list is read onlyIndexOutOfBoundsException - - if the index is out of range, index < 0 || index > size()IDirectPositionList.isReadOnly(),
DirectPosition.DirectPosition(double,double)void add(int index,
double x,
double y,
double z)
throws UnsupportedOperationException
DirectPosition values to the specified index in this array. Note that this method behaves just as
IDirectPositionList.add(int,DirectPosition) were called with a DirectPosition in which only x, y, and z were set.index - zero based index. Must be >=0 and <= size() so the new direct position either is
inserted into an existing spot and direct positions to the right are shifted one position or it
is put immediately adjacent to the last direct position.x - x coordinate, a valid double valuey - y coordinate, a valid double valuez - z coordinate, a valid double valueUnsupportedOperationException - if the list is read onlyIndexOutOfBoundsException - - if the index is out of range, index < 0 || index > size()IDirectPositionList.isReadOnly(),
DirectPosition.DirectPosition(double,double,double)void add(int index,
double x,
double y,
com.mapinfo.midev.geometry.MValue m)
throws UnsupportedOperationException
DirectPosition values to the specified index in this array. Note that this method behaves just as
IDirectPositionList.add(int, com.mapinfo.midev.geometry.DirectPosition) were called with a DirectPosition in which only x, y, and m were set.index - zero based index. Must be >=0 and <= size() so the new direct position either is
inserted into an existing spot and direct positions to the right are shifted one position or it
is put immediately adjacent to the last direct position.x - x coordinate, a valid double valuey - y coordinate, a valid double valuem - an MValue or null if unassignedUnsupportedOperationException - if the list is read onlyIndexOutOfBoundsException - - if the index is out of range, index < 0 || index > size()IDirectPositionList.isReadOnly(),
DirectPosition.DirectPosition(double,double,MValue)void add(int index,
double x,
double y,
double z,
com.mapinfo.midev.geometry.MValue m)
throws UnsupportedOperationException
DirectPosition values to the specified index in this array.index - zero based index. Must be >=0 and <= size() so the new direct position either is
inserted into an existing spot and direct positions to the right are shifted one position or it
is put immediately adjacent to the last direct position.x - x coordinate, a valid double valuey - y coordinate, a valid double valuez - z coordinate, a valid double valuem - an MValue or null if unassignedUnsupportedOperationException - if the list is read onlyIndexOutOfBoundsException - - if the index is out of range, index < 0 || index > size()IDirectPositionList.isReadOnly(),
DirectPosition.DirectPosition(double,double,double,MValue)void remove(int index)
throws UnsupportedOperationException
DirectPosition at the specified index from the list.index - zero based index of the DirectPosition to remove.UnsupportedOperationException - if the list is read onlyIndexOutOfBoundsException - - if the index is out of range, index < 0 || index > size()IDirectPositionList.isReadOnly()int indexOf(com.mapinfo.midev.geometry.DirectPosition dp)
DirectPosition that is equal to the given DirectPosition.dp - DirectPosition to matchIndexOutOfBoundsException - - if the index is out of range, index < 0 || index > size()DirectPosition.equals(Object)int lastIndexOf(com.mapinfo.midev.geometry.DirectPosition dp)
DirectPosition that is equal to the given DirectPosition.dp - DirectPosition to matchDirectPosition.equals(Object)void add(com.mapinfo.midev.geometry.DirectPosition dp) throws UnsupportedOperationException
DirectPosition to the end of this list.
The values in dp are appended to this list but the object dp is not retained by this list.dp - DirectPosition to append, cannot be nullUnsupportedOperationException - if the list is read onlyIDirectPositionList.isReadOnly()void add(double x,
double y)
throws UnsupportedOperationException
DirectPosition values to the end of this list. Note that this method behaves just as
IDirectPositionList.add(DirectPosition) were called with a DirectPosition
in which only x and y were set.x - x coordinate, a valid double valuey - y coordinate, a valid double valueUnsupportedOperationException - if the list is read onlyIDirectPositionList.isReadOnly(),
DirectPosition.DirectPosition(double,double)void add(double x,
double y,
double z)
throws UnsupportedOperationException
DirectPosition values to the end of this list. Note that this method behaves just as
IDirectPositionList.add(com.mapinfo.midev.geometry.DirectPosition) were called with a DirectPosition
in which only x, y, and z were set.x - x coordinate, a valid double valuey - y coordinate, a valid double valuez - z coordinate, a valid double valueUnsupportedOperationException - if the list is read onlyIDirectPositionList.isReadOnly(),
DirectPosition.DirectPosition(double,double,double)void add(double x,
double y,
com.mapinfo.midev.geometry.MValue m)
throws UnsupportedOperationException
DirectPosition values to the end of this list. Note that this method behaves just as
IDirectPositionList.add(com.mapinfo.midev.geometry.DirectPosition) were called with a DirectPosition
in which only x, y, and m were set.x - x coordinate, a valid double valuey - y coordinate, a valid double valuem - an MValue or null if unassignedUnsupportedOperationException - if the list is read onlyIDirectPositionList.isReadOnly(),
DirectPosition.DirectPosition(double,double,MValue)void add(double x,
double y,
double z,
com.mapinfo.midev.geometry.MValue m)
throws UnsupportedOperationException
DirectPosition values to the end of this list.x - x coordinate, a valid double valuey - y coordinate, a valid double valuez - z coordinate, a valid double valuem - an MValue or null if unassignedUnsupportedOperationException - if the list is read onlyIDirectPositionList.isReadOnly(),
DirectPosition.DirectPosition(double,double,double,MValue)boolean contains(com.mapinfo.midev.geometry.DirectPosition dp)
dp - DirectPosition to test for containment in this listDirectPosition.equals(Object),
IDirectPositionList.indexOf(com.mapinfo.midev.geometry.DirectPosition)void clear()
throws UnsupportedOperationException
DirectPositions from this list.
This list will be empty after this call returns.UnsupportedOperationException - if the list is read onlyIDirectPositionList.isEmpty(),
IDirectPositionList.isReadOnly()boolean isEmpty()
DirectPositions.DirectPosition.void applyMutator(com.mapinfo.midev.geometry.IDirectPositionMutator dpm)
throws UnsupportedOperationException
IDirectPositionMutator to every direct position
in this list.dpm - mutator to apply to this listUnsupportedOperationException - if the list is read onlyIDirectPositionList.isReadOnly()IDirectPositionList reverse()