|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsPoint
Implementation of an ArcIMS point. If you intend to use the point in an Acetate layer of a map, use an AimsPointObject instead.
| Field Summary |
| Fields inherited from interface com.moximedia.aims.AimsShapeObject |
SHAPE_TYPE_ENVELOPE, SHAPE_TYPE_MULTIPOINT, SHAPE_TYPE_POINT, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYLINE |
| Constructor Summary | |
AimsPoint()
Creates a new point with no arguments. |
|
AimsPoint(AimsPoint pt)
Creates a new point with coordinate from another AimsPoint |
|
AimsPoint(double x,
double y)
Creates a new point with coordinate values. |
|
AimsPoint(java.awt.geom.Point2D pt)
Creates a new point using a Point2D |
|
AimsPoint(java.lang.String xy)
Creates a new point with comma separated coordinate values contained in a String. |
|
AimsPoint(java.lang.String point,
java.lang.String cs)
Creates a new point with specified separated coordinate values contained in a String. |
|
| Method Summary | |
AimsPolygon |
buffer(double distance)
Buffers the point by a specified distance and returns a polygon result. |
AimsPoint |
calculatePositionAt(double distance,
double degrees)
Calculates the position at a specified distance and angle from this point using a trigonometric calculation. |
java.lang.Object |
clone()
Creates a copy of this object. |
boolean |
equals(AimsPoint pt)
|
double |
getAngleTo(AimsPoint pt)
Returns the trigonometric angle to another point. |
double |
getDistanceTo(AimsPoint pt)
Returns the distance between two points. |
AimsPoint |
getOffsetFrom(AimsPoint anotherPoint)
Returns the x and y offset from another point to this point. |
int |
getShapeType()
|
double |
getX()
Gets the X coordinate location of the point. |
double |
getY()
Gets the Y coordinate location of the point object. |
boolean |
isValid()
Returns a boolean indicator of whether this shape is valid. |
void |
offsetBy(AimsPoint offset)
Sets the position of the point by adjusting it by the X and Y values contained in another point. |
void |
offsetBy(double deltaX,
double deltaY)
Sets the position of the point by adjusting it by X and Y offset values. |
AimsPoint |
project(Projection projection)
Projects the point. |
AimsPoint |
project(Projection fromProjection,
Projection toProjection)
Projects the point from one projection to another. |
void |
setAxlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value)
Sets one of the attributes of this object using a string value. |
void |
setLocation(AimsPoint pt)
Sets the location of the object using another AimsPoint. |
void |
setLocation(AimsPointObject pt)
Sets the location of the object using an AimsPointObject. |
void |
setLocation(double x,
double y)
Sets the location of the object using coordinates. |
void |
setLocation(java.lang.String xy)
Sets the location of the point using a comma separated text string. |
void |
setLocation(java.lang.String xy,
java.lang.String cs)
Sets the location of the point using a text string. |
void |
setX(double x)
Sets the X coordinate location of the point. |
void |
setX(java.lang.String x)
|
void |
setY(double y)
Sets the Y coordinate location of the point. |
void |
setY(java.lang.String y)
|
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()
Returns the GML text string representing this point. |
com.vividsolutions.jts.geom.Coordinate |
toJtsCoordinate()
Returns this object as a JTS Coordinate |
com.vividsolutions.jts.geom.Geometry |
toJtsGeometry()
Returns this object as a JTS Geometry |
com.vividsolutions.jts.geom.Point |
toJtsPoint()
Returns this object as a JTS Point |
java.awt.geom.Point2D |
toPoint2D()
Returns this object as a Point2D |
java.lang.String |
toString()
Returns a text representation of of this object. |
AimsPoint |
unproject(Projection projection)
Unrojects the point. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AimsPoint()
public AimsPoint(double x,
double y)
x - The x location of the objecty - The y location of the object.public AimsPoint(java.lang.String xy)
xy - The xy location of the point
public AimsPoint(java.lang.String point,
java.lang.String cs)
cs - The separator between the point's x and y values.public AimsPoint(AimsPoint pt)
pt - The AimsPoint containing the location of the objectpublic AimsPoint(java.awt.geom.Point2D pt)
| Method Detail |
public void setLocation(java.lang.String xy)
xy - A text string like "1234,5673".
public void setLocation(java.lang.String xy,
java.lang.String cs)
xy - A text string like "1234,5673".cs - The coordinate separator, e.g. ",".public int getShapeType()
getShapeType in interface AimsShapeObjectpublic java.lang.Object clone()
clone in interface AimsShapeObjectpublic com.vividsolutions.jts.geom.Coordinate toJtsCoordinate()
public com.vividsolutions.jts.geom.Geometry toJtsGeometry()
toJtsGeometry in interface AimsShapeObjectpublic com.vividsolutions.jts.geom.Point toJtsPoint()
public java.awt.geom.Point2D toPoint2D()
public AimsPolygon buffer(double distance)
distance - The buffer distance
public double getDistanceTo(AimsPoint pt)
pt - The other point.
public double getAngleTo(AimsPoint pt)
pt - The other point.
public AimsPoint getOffsetFrom(AimsPoint anotherPoint)
anotherPoint - The point to compare this one to.
public AimsPoint calculatePositionAt(double distance,
double degrees)
distance - The distance from this point.degrees - The angle from this point.
public void offsetBy(AimsPoint offset)
offset - A point containing the X and Y delta offsets.
public void offsetBy(double deltaX,
double deltaY)
deltaX - The amount of X adjustment.deltaY - The amount of Y adjustment.public boolean equals(AimsPoint pt)
public void setLocation(double x,
double y)
x - The x location of the objecty - The y location of the object.public void setLocation(AimsPoint pt)
pt - The point containing coordinates to use.public void setLocation(AimsPointObject pt)
pt - The point object containing coordinates to use.public void setX(double x)
public void setY(double y)
public void setY(java.lang.String y)
public double getX()
public void setX(java.lang.String x)
public double getY()
public java.lang.String toString()
public void setAxlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value)
tag - The AXL element tag containing this attribute (not used).name - The AXL attribute name.value - The AXL attribute value.public java.lang.String toAxlString()
toAxlString in interface AimsShapeObjectpublic java.lang.String toAxlString(AimsEnvironment env)
toAxlString in interface AimsShapeObjectpublic java.lang.String toGmlString()
toGmlString in interface AimsShapeObjectpublic boolean isValid()
isValid in interface AimsShapeObject
public AimsPoint project(Projection fromProjection,
Projection toProjection)
fromProjection - The projection or this point.toProjection - The target projection.
public AimsPoint project(Projection projection)
projection - The projection used to project the point.
public AimsPoint unproject(Projection projection)
projection - The projection used to unproject the point.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||