|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphicLineString
Defines a common abstraction for implementations of 1-dimensional lines made up of one or more line segments.
Field Summary |
---|
Fields inherited from interface Graphic |
---|
DEFAULT_AUTO_EDIT, DEFAULT_BLINK_PATTERN, DEFAULT_BLINKING, DEFAULT_DRAG_SELECTABLE, DEFAULT_MAX_SCALE, DEFAULT_MIN_SCALE, DEFAULT_PICKABLE, DEFAULT_SELECTED, DEFAULT_VISIBLE, DEFAULT_Z_ORDER |
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. |
LineSymbolizer |
getLineSymbolizer()
Returns the GraphicStyle for this GraphicLineString ,
which is required to be a LineSymbolizer . |
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. |
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 (its first and last points are the same) or open. |
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 |
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 |
setPoints(DirectPosition[] coords)
Sets the positions that make up the line segments. |
Method Detail |
---|
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()
LineSymbolizer getLineSymbolizer()
GraphicStyle
for this GraphicLineString
,
which is required to be a LineSymbolizer
.
GraphicStyle
.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |