|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.Vector
com.moximedia.aims.AimsPoints
AimsPoints is an ordered collection of AimsPoint objects. An AimsPoints object is used to construct lines and polygons.
| Field Summary |
| Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
AimsPoints()
Creates new AimsPoints |
|
AimsPoints(com.vividsolutions.jts.geom.Point[] points)
Creates a new AimsPoints object from a com.vividsolutions.jts.geom.Point array. |
|
AimsPoints(java.lang.String commaSeparatedPoints)
Creates a new AimsPoints collection from a string of x,y values that are separated by commas between the x and y values and the other coordinates (e.g. |
|
AimsPoints(java.lang.String points,
java.lang.String coordinateSeparator,
java.lang.String tupleSeparator)
Creates a new AimsPoints collection from a coords string. |
|
| Method Summary | |
boolean |
addPoint(AimsPoint pt)
Adds an AimsPoint to the end of the collection. |
boolean |
addPoint(AimsPointObject pt)
Adds an AimsPoint to the end of the collection using the coordinates of an AimsPointObject. |
void |
addPoints(AimsPoints pts)
Adds the points in another points object to the end of this points object. |
void |
clear()
Clears the AimsPoints (removes all points from the collection). |
java.lang.Object |
clone()
Returns a clone of this object |
void |
close()
Closes the points, so that the end point is the same as the starting point. |
void |
densify(double distance)
Densifies the points in the points list by a distance. |
void |
generalize(double distance)
Generalizes the points in the points list by a distance. |
AimsPoint |
getClosestPointTo(AimsPoint pt)
Returns the point in the points list that is closest to the specified point. |
int |
getCount()
Returns the number of AimsPoints contained in the collection. |
AimsEnvelope |
getExtent()
Returns the extent of the points list, or null if the list has no points. |
AimsPoint |
getPoint(int index)
Returns the AimsPoint at the specified index position |
boolean |
insertPoint(AimsPoint pt)
Adds an AimsPoint to the beginning of the collection. |
boolean |
insertPoint(AimsPoint pt,
int index)
Adds an AimsPoint to the collection at the specified position. |
boolean |
isClockwise()
Returns whether the points list is clockwise. |
void |
offsetBy(AimsPoint offset)
Offsets the points in the points list by the x and y in a point. |
AimsPoints |
project(Projection projection)
Projects this object to the specified projection. |
AimsPoints |
project(Projection fromProjection,
Projection toProjection)
Projects the points from one projection to another. |
boolean |
removePoint(int index)
Removes the AimsPoint at specified index |
boolean |
replacePoint(int index,
AimsPoint pt)
Replaces the AimsPoint at specified index |
void |
reverse()
Reverses the points in the points list |
void |
setClockwise()
Sets the points list to clockwise. |
void |
setCoordinates(java.lang.String coordinates)
|
void |
setCounterClockwise()
Sets the points list to counterclockwise. |
java.lang.String |
toAxlString(AimsEnvironment env)
Returns a string containing the points in |
java.lang.String |
toCoordsAxlString()
Returns a string containing the points in coords format, enclosed in the |
java.lang.String |
toCoordsAxlString(AimsEnvironment env)
Returns a string containing the points in coords format, enclosed in the |
java.lang.String |
toCoordsString()
Returns a string containing the points in coords format. |
java.lang.String |
toCoordsString(AimsEnvironment env)
Returns a string containing the points in coords format, using the separators in the specified environment object. |
java.lang.String |
toCoordsString(java.lang.String coordinateSeparator,
java.lang.String tupleSeparator)
Returns a string containing the points in coords format, using the specified separators. |
java.lang.String |
toGmlString()
Returns the GML string representing this object. |
com.vividsolutions.jts.geom.Coordinate[] |
toJtsCoordinateArray()
Returns this object as a com.vividsolutions.jts.geom.Coordinate array. |
com.vividsolutions.jts.geom.LinearRing |
toJtsLinearRing()
Returns this object as a com.vividsolutions.jts.geom.LinearRing |
com.vividsolutions.jts.geom.Geometry |
toJtsLineString()
Returns this object as a com.vividsolutions.jts.geom.LineString |
com.vividsolutions.jts.geom.Geometry |
toJtsMultiPoint()
Returns this object as a com.vividsolutions.jts.geom.MultiPoint |
com.vividsolutions.jts.geom.Point[] |
toJtsPointArray()
Returns this object as a com.vividsolutions.jts.geom.Point array. |
java.util.Vector |
toLineSegments()
Returns the points array as a vector of java.awt.geom.Line2D.Double objects representing the line segments between points. |
java.lang.String |
toString()
Returns a string representation of this object |
AimsPoints |
unproject(Projection projection)
Unprojects this object to geographic from the specified projection. |
| Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
| Constructor Detail |
public AimsPoints()
public AimsPoints(java.lang.String commaSeparatedPoints)
commaSeparatedPoints - The string containing coordinates.public AimsPoints(com.vividsolutions.jts.geom.Point[] points)
points - A com.vividsolutions.jts.geom.Point array.
public AimsPoints(java.lang.String points,
java.lang.String coordinateSeparator,
java.lang.String tupleSeparator)
points - The coordinate string.coordinateSeparator - The separator between the point's x and y values.tupleSeparator - The separator between pairs of points.| Method Detail |
public void setCoordinates(java.lang.String coordinates)
public com.vividsolutions.jts.geom.Coordinate[] toJtsCoordinateArray()
public com.vividsolutions.jts.geom.Point[] toJtsPointArray()
public com.vividsolutions.jts.geom.LinearRing toJtsLinearRing()
public com.vividsolutions.jts.geom.Geometry toJtsLineString()
public com.vividsolutions.jts.geom.Geometry toJtsMultiPoint()
public void close()
public void densify(double distance)
distance - The densify distance.public void generalize(double distance)
distance - The generalize distance.public void offsetBy(AimsPoint offset)
offset - An AimsPoint object containing the offset.public void reverse()
public void setCounterClockwise()
public void setClockwise()
public boolean isClockwise()
public AimsEnvelope getExtent()
public AimsPoint getClosestPointTo(AimsPoint pt)
pt - The point used in the search.
public boolean addPoint(AimsPoint pt)
pt - An AimsPoint object.
public boolean insertPoint(AimsPoint pt)
pt - An AimsPoint object.
public boolean insertPoint(AimsPoint pt,
int index)
pt - An AimsPoint object.index - The zero based position of the position to add the point.
public boolean addPoint(AimsPointObject pt)
pt - An AimsPointObject object.
public void addPoints(AimsPoints pts)
pts - A set of points to add to this one.public AimsPoint getPoint(int index)
index - The index position of the pointpublic int getCount()
public java.util.Vector toLineSegments()
public boolean replacePoint(int index,
AimsPoint pt)
index - The index of the AimsPoint to replace.pt - The AimsPoint to replace.
public boolean removePoint(int index)
index - The index of the AimsPoint to remove.
public void clear()
clear in interface java.util.Listpublic java.lang.String toString()
public java.lang.String toCoordsString()
public java.lang.String toCoordsString(java.lang.String coordinateSeparator,
java.lang.String tupleSeparator)
coordinateSeparator - The separator between coordinates.tupleSeparator - The separator between coordinate pairs.
public java.lang.String toCoordsString(AimsEnvironment env)
env - The AimsEnvironment containing coordinate settings.
public java.lang.String toCoordsAxlString()
public java.lang.String toCoordsAxlString(AimsEnvironment env)
public java.lang.String toAxlString(AimsEnvironment env)
public java.lang.String toGmlString()
public java.lang.Object clone()
public AimsPoints project(Projection fromProjection,
Projection toProjection)
fromProjection - The projection or this point.toProjection - The target projection.
public AimsPoints project(Projection projection)
projection - The original projection system.
public AimsPoints unproject(Projection projection)
projection - The projection system.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||