|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsRing
Implementation of an ArcIMS polygon ring object.
| Constructor Summary | |
AimsRing()
Creates a new point object with no arguments. |
|
AimsRing(AimsPoints pts)
Creates a new ring object with an AimsPoints object. |
|
| Method Summary | |
AimsHole |
addHole()
Adds a new hole to the ring, and returns the hole object. |
void |
addHole(AimsHole hole)
Adds a new hole to the ring. |
void |
addPoint(AimsPoint pt)
Adds a point to the ring. |
boolean |
addVertexToClosestLineSegment(AimsPoint pt)
|
protected boolean |
addVertexToSegmentAtDistance(AimsPoint pt,
double segmentDistance)
|
java.lang.Object |
clone()
|
boolean |
contains(AimsPoint pt)
Tests to see if the ring contains a point, not included in any holes within the ring. |
boolean |
contains(AimsPoints pts)
Tests to see if the ring contains a point from a points list, not included in any holes within the ring. |
boolean |
contains(AimsPolygon polygon)
|
void |
densify(double distance)
Densifies the points in the shape by a distance. |
void |
generalize(double distance)
Generalizes the points in the shape by a distance. |
double |
getArea()
Returns the area of the ring, in square map units. |
AimsPoint |
getClosestVertex(AimsPoint pt)
Gets the closest vertex in the AimsRing to the specified point. |
double |
getDistanceToClosestLineSegment(AimsPoint pt)
|
AimsEnvelope |
getExtent()
Returns the extent of the ring, or null if the ring has no points. |
AimsPoints |
getExteriorPoints()
Gets the exterior points of the ring object. |
java.util.Vector |
getHoles()
Gets the holes in a Vector object. |
AimsPoints |
getPoints()
Gets the points of the ring object and associated holes. |
boolean |
hasHoles()
Reports whether the ring contains holes. |
boolean |
movePoint(AimsPoint ptFrom,
AimsPoint ptTo)
Moves a point of the polygon ring to a new position. |
void |
offsetBy(AimsPoint offset)
Offsets the points in the ring by the x and y in a point. |
AimsRing |
project(Projection projection)
Projects this object to the specified projection. |
AimsRing |
project(Projection fromProjection,
Projection toProjection)
Projects this object from one projection to another. |
boolean |
removePoint(AimsPoint pt)
Removes a point from the ring or one of it's holes. |
void |
setPoints(AimsPoints points)
Sets the points of the ring object. |
java.lang.String |
toAxlString()
Returns the AXL string to refresh this object. |
java.lang.String |
toAxlString(AimsEnvironment env)
Returns the AXL string to refresh this object. |
java.lang.String |
toGmlString()
|
com.vividsolutions.jts.geom.LinearRing |
toJtsLinearRing()
Returns tthe exterior of this object as a JTS linear ring object. |
com.vividsolutions.jts.geom.Geometry |
toJtsPolygon()
Returns this object as a JTS Polygon object. |
java.lang.String |
toString()
Returns a text representation of of this object. |
AimsRing |
unproject(Projection projection)
Unprojects this object to geographic from the specified projection. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AimsRing()
public AimsRing(AimsPoints pts)
| Method Detail |
public double getArea()
public AimsPoint getClosestVertex(AimsPoint pt)
pt - The point to compare the vertexes to.
public boolean addVertexToClosestLineSegment(AimsPoint pt)
public double getDistanceToClosestLineSegment(AimsPoint pt)
protected boolean addVertexToSegmentAtDistance(AimsPoint pt,
double segmentDistance)
public AimsHole addHole()
public void addHole(AimsHole hole)
hole - The hole to add to the ring.public void addPoint(AimsPoint pt)
pt - The point to add to the ring.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 boolean removePoint(AimsPoint pt)
pt - The point to remove,
public boolean movePoint(AimsPoint ptFrom,
AimsPoint ptTo)
ptFrom - The point to move.ptTo - Where to move it.
public boolean contains(AimsPoints pts)
public boolean contains(AimsPoint pt)
public boolean hasHoles()
public java.util.Vector getHoles()
public AimsPoints getPoints()
public AimsPoints getExteriorPoints()
public void setPoints(AimsPoints points)
points - An AimsPoints object containing the ring points.public AimsEnvelope getExtent()
public java.lang.String toString()
public java.lang.String toAxlString()
public java.lang.String toAxlString(AimsEnvironment env)
public java.lang.String toGmlString()
public java.lang.Object clone()
public com.vividsolutions.jts.geom.LinearRing toJtsLinearRing()
public com.vividsolutions.jts.geom.Geometry toJtsPolygon()
public boolean contains(AimsPolygon polygon)
public AimsRing project(Projection fromProjection,
Projection toProjection)
fromProjection - The projection of this object.toProjection - The target projection.
public AimsRing project(Projection projection)
projection - The original projection system.
public AimsRing unproject(Projection projection)
projection - The projection system.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||