|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsHole
Implementation of an ArcIMS polygon ring hole object.
| Constructor Summary | |
AimsHole()
Creates a new hole object with no arguments. |
|
AimsHole(AimsPoints pts)
Creates a new hole object with an AimsPoints object. |
|
| Method Summary | |
void |
addPoint(AimsPoint pt)
Adds a point to the hole. |
protected boolean |
addVertexToSegmentAtDistance(AimsPoint pt,
double segmentDistance)
|
java.lang.Object |
clone()
Creates a copy of this symbol. |
boolean |
contains(AimsPoint pt)
Tests to see if the hole contains a point. |
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 hole, in square map units. |
AimsPoint |
getClosestVertex(AimsPoint pt)
Gets the point in the hole boundary that is closest to the indicated point. |
double |
getDistanceToClosestLineSegment(AimsPoint pt)
|
AimsEnvelope |
getExtent()
Returns the extent of the hol3, or null if the hole has no points. |
AimsPoints |
getPoints()
Gets the points of the hole object. |
boolean |
movePoint(AimsPoint ptFrom,
AimsPoint ptTo)
Moves a point of the polygon hole to a new position. |
void |
offsetBy(AimsPoint offset)
Offsets the points in the hole by the x and y in a point. |
AimsHole |
project(Projection projection)
Projects this object to the specified projection. |
AimsHole |
project(Projection fromProjection,
Projection toProjection)
Projects this object from one projection to another. |
boolean |
removePoint(AimsPoint pt)
Removes a point from the hole, retaining matching first and last point. |
void |
setPoints(AimsPoints points)
Sets the points of the ring hole 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()
|
java.lang.String |
toString()
Returns a text representation of of this object. |
AimsHole |
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 AimsHole()
public AimsHole(AimsPoints pts)
pts - The points of the boundary.| Method Detail |
public double getArea()
public AimsPoint getClosestVertex(AimsPoint pt)
pt - The point to test.
public double getDistanceToClosestLineSegment(AimsPoint pt)
protected boolean addVertexToSegmentAtDistance(AimsPoint pt,
double segmentDistance)
public void addPoint(AimsPoint pt)
pt - The point to add to the hole.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(AimsPoint pt)
pt - A point to test to see if it is contained in the hole.
public AimsEnvelope getExtent()
public AimsPoints getPoints()
public void setPoints(AimsPoints points)
points - An AimsPoints object containing the ring hole points.public java.lang.String toString()
public java.lang.String toAxlString()
public java.lang.String toAxlString(AimsEnvironment env)
env - The AimsEnvironment object used to generate the proper AXL
for the ArcIMS version in use.
public java.lang.String toGmlString()
public java.lang.Object clone()
public com.vividsolutions.jts.geom.LinearRing toJtsLinearRing()
public AimsHole project(Projection fromProjection,
Projection toProjection)
fromProjection - The projection of this object.toProjection - The target projection.
public AimsHole project(Projection projection)
projection - The original projection system.
public AimsHole unproject(Projection projection)
projection - The projection system.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||