|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsPolyline
Implementation of an ArcIMS polygon object which can be placed in an Acetate layer of a map.
| 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 | |
AimsPolyline()
Creates a new point object with no arguments. |
|
AimsPolyline(AimsPoints pts)
Creates a new polyline object with an AimsPoints object. |
|
| Method Summary | |
AimsPath |
addPath()
Adds a new path to the polyline, and returns the path object. |
void |
addPath(AimsPath path)
Adds a new path to the polyline. |
AimsPolygon |
buffer(double distance)
|
java.lang.Object |
clone()
|
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. |
AimsPoint |
getClosestVertex(AimsPoint pt)
Gets the closest vertex in the AimsPolyline to the specified point. |
AimsEnvelope |
getExtent()
Returns the extent of the polygon, or null if the polygon has no points. |
double |
getLength()
Gets the length of the polyline. |
java.util.Vector |
getPaths()
|
AimsPoints |
getPoints()
Gets a points object containing copies of the points of the polyline. |
int |
getShapeType()
|
AimsPolyline |
intersection(AimsPolygon polygon)
|
boolean |
intersects(AimsPolygon polygon)
|
boolean |
isValid()
Returns a boolean indicator of whether this shape is valid. |
void |
offsetBy(AimsPoint offset)
Offsets the points in the polyline by the x and y in a point. |
AimsPolyline |
project(Projection projection)
Projects this object to the specified projection. |
AimsPolyline |
project(Projection fromProjection,
Projection toProjection)
Projects this object from one projection to another. |
void |
setPoints(AimsPoints pts)
Sets the points of the polyline 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.Geometry |
toJtsGeometry()
|
java.lang.String |
toString()
Returns a text representation of of this object. |
AimsPolyline |
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 AimsPolyline()
public AimsPolyline(AimsPoints pts)
| Method Detail |
public int getShapeType()
getShapeType in interface AimsShapeObjectpublic double getLength()
public AimsPath addPath()
public void addPath(AimsPath path)
path - The path to add to the polyline.public AimsPoints getPoints()
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 AimsPoint getClosestVertex(AimsPoint pt)
pt - The point to compare the vertexes to.
public java.util.Vector getPaths()
public void setPoints(AimsPoints pts)
public AimsEnvelope getExtent()
public java.lang.String toString()
public java.lang.String toAxlString()
toAxlString in interface AimsShapeObjectpublic java.lang.String toAxlString(AimsEnvironment env)
toAxlString in interface AimsShapeObjectpublic java.lang.Object clone()
clone in interface AimsShapeObjectpublic java.lang.String toGmlString()
toGmlString in interface AimsShapeObjectpublic com.vividsolutions.jts.geom.Geometry toJtsGeometry()
toJtsGeometry in interface AimsShapeObjectpublic AimsPolygon buffer(double distance)
public AimsPolyline intersection(AimsPolygon polygon)
public boolean intersects(AimsPolygon polygon)
public boolean isValid()
isValid in interface AimsShapeObject
public AimsPolyline project(Projection fromProjection,
Projection toProjection)
fromProjection - The projection of this object.toProjection - The target projection.
public AimsPolyline project(Projection projection)
projection - The original projection system.
public AimsPolyline unproject(Projection projection)
projection - The projection system.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||