|
GeoAPI 1.0 Build 2004-05-18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines common abstractions for implementations of 1-dimensional lines made up of
one or more line segments and of 2-dimensional lines made up of a closed set of
three or more line segments. The isClosed() method provides the distinction.
| Method Summary | |
|---|---|
void |
addPoint(DirectPosition coord)
Appends the given position to the graphic linestring's array of positions. |
void |
deletePoint(int index)
Removes the postion at the specified index from the array of positions. |
CurveSegment |
getCurveSegment()
Returns the geometry based on ISO 19107 geometric forms. |
PathType |
getPathType()
Retrieves the methods that is used in computing the "in-between" pixels between vertices when this object is rendered on the screen. |
DirectPosition |
getPoint(int index)
Returns the position at the specified index in the array of positions. |
PointArray |
getPointArray()
Returns this GraphicCurveSegment's set of positions as a
PointArray. |
DirectPosition[] |
getPoints()
Returns the positions that make up the line segments. |
void |
insertPoint(int index,
DirectPosition coord)
Inserts the given position at the specified index in the array of positions. |
boolean |
isAllowingNewVertices()
Indicates whether clicking on an edge of this graphic linestring should insert a new vertex at that location when the object is in edit mode. |
boolean |
isClosed()
Returns the boolean flag indicating whether the graphic linestring is closed (representing a polygon) or open (a graphic linestring). |
void |
setAllowingNewVertices(boolean newValue)
Sets the boolean that indicates whether clicking on an edge of this graphic linestring should insert a new vertex at that location. |
void |
setClosed(boolean closed)
Sets the graphic linestring open (false) or closed (true). |
void |
setCurveSegment(CurveSegment curveSegment)
Sets the geometry based on ISO 19107 geometric forms. |
void |
setPathType(PathType pathType)
Sets the method that is used in computing the "in-between" pixels between vertices when this object is rendered on the screen. |
void |
setPoint(int index,
DirectPosition coord)
Replaces the position at the specified index in the array of positions with the new, specified position. |
void |
setPointArray(PointArray pointArray)
Sets this GraphicCurveSegment's set of positions to the
given PointArray. |
void |
setPoints(DirectPosition[] coords)
Sets the positions that make up the line segments. |
| Method Detail |
|---|
void setCurveSegment(CurveSegment curveSegment)
curveSegment - a geometry CurveSegment.CurveSegment getCurveSegment()
PointArray getPointArray()
GraphicCurveSegment's set of positions as a
PointArray. The returned PointArray
may or may not be identical to a PointArray passed in
to the setPointArray method. It will definitely not
be the same PointArray if any positions have been
added, inserted, or deleted.
Value is acquired from the underlying LineString geometry for this Graphic.
PointArray.void setPointArray(PointArray pointArray)
GraphicCurveSegment's set of positions to the
given PointArray. Any changes made to the given
PointArray after calling this method may adversly affect
this GraphicCurveSegment.
Value is set on the underlying LineString geometry for this Graphic.
pointArray - The new set of positions.DirectPosition[] getPoints()
void setPoints(DirectPosition[] coords)
coords - the array positions.void addPoint(DirectPosition coord)
coord - the postion to add.void deletePoint(int index)
index - the index of the position to remove.DirectPosition getPoint(int index)
index - the index of the position to return.
void insertPoint(int index,
DirectPosition coord)
index - the index to insert the new position at.coord - the position to insert.
void setPoint(int index,
DirectPosition coord)
index - the index of the position to replace.coord - the position to store at the specified index.boolean isClosed()
void setClosed(boolean closed)
closed - the flag indicating closed (true) or open (false).boolean isAllowingNewVertices()
void setAllowingNewVertices(boolean newValue)
void setPathType(PathType pathType)
pathType - The new path type. This must be one of the static constants in
the PathType class or one of its subclasses.PathType getPathType()
|
GeoAPI 1.0 Build 2004-05-18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
Symbols, terms and definitions | Copyright OpenGIS® Consortium |