org.opengis.go.display.primitive
Interface GraphicLineString
-
-
Field Summary
-
Fields inherited from interface org.opengis.go.display.primitive.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
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddPoint(DirectPosition coord)Appends the given position to the graphic linestring's array of positions.voiddeletePoint(int index)Removes the postion at the specified index from the array of positions.LineSymbolizergetLineSymbolizer()Returns theGraphicStylefor thisGraphicLineString, which is required to be aLineSymbolizer.PathTypegetPathType()Retrieves the methods that is used in computing the "in-between" pixels between vertices when this object is rendered on the screen.DirectPositiongetPoint(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.voidinsertPoint(int index, DirectPosition coord)Inserts the given position at the specified index in the array of positions.booleanisAllowingNewVertices()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.booleanisClosed()Returns the boolean flag indicating whether the graphic linestring is closed (its first and last points are the same) or open.voidsetAllowingNewVertices(boolean newValue)Sets the boolean that indicates whether clicking on an edge of this graphic linestring should insert a new vertex at that location.voidsetPathType(PathType pathType)Sets the method that is used in computing the "in-between" pixels between vertices when this object is rendered on the screen.voidsetPoint(int index, DirectPosition coord)Replaces the position at the specified index in the array of positions with the new, specified position.voidsetPoints(DirectPosition[] coords)Sets the positions that make up the line segments.-
Methods inherited from interface org.opengis.go.display.primitive.Graphic
addGraphicListener, cloneGraphic, dispose, fireGraphicEvent, getAutoEdit, getBlinking, getBlinkPattern, getClientProperty, getDragSelectable, getGraphicStyle, getMaxScale, getMinScale, getName, getParent, getPickable, getSelected, getSymbology, getVisible, getZOrderHint, isPassingEventsToParent, isShowingAnchorHandles, isShowingEditHandles, putClientProperty, refresh, removeGraphicListener, setAutoEdit, setBlinking, setBlinkPattern, setDragSelectable, setGraphicStyle, setMaxScale, setMinScale, setName, setParent, setPassingEventsToParent, setPickable, setSelected, setShowingAnchorHandles, setShowingEditHandles, setSymbology, setVisible, setZOrderHint
-
-
-
-
Method Detail
-
getPoints
DirectPosition[] getPoints()
Returns the positions that make up the line segments. Value is acquired from the underlying LineString geometry for this Graphic.- Returns:
- the array positions.
-
setPoints
void setPoints(DirectPosition[] coords)
Sets the positions that make up the line segments. Value is set on the underlying LineString geometry for this Graphic.- Parameters:
coords- the array positions.
-
addPoint
void addPoint(DirectPosition coord)
Appends the given position to the graphic linestring's array of positions. Value is set on the underlying LineString geometry for this Graphic.- Parameters:
coord- the postion to add.
-
deletePoint
void deletePoint(int index)
Removes the postion at the specified index from the array of positions. Value is deleted on the underlying LineString geometry for this Graphic.- Parameters:
index- the index of the position to remove.
-
getPoint
DirectPosition getPoint(int index)
Returns the position at the specified index in the array of positions. Value is acquired from the underlying LineString geometry for this Graphic.- Parameters:
index- the index of the position to return.- Returns:
- the position at the given index.
-
insertPoint
void insertPoint(int index, DirectPosition coord)Inserts the given position at the specified index in the array of positions. Value is inserted on the underlying LineString geometry for this Graphic.- Parameters:
index- the index to insert the new position at.coord- the position to insert.
-
setPoint
void setPoint(int index, DirectPosition coord)Replaces the position at the specified index in the array of positions with the new, specified position. Value is set on the underlying LineString geometry for this Graphic.- Parameters:
index- the index of the position to replace.coord- the position to store at the specified index.
-
isClosed
boolean isClosed()
Returns the boolean flag indicating whether the graphic linestring is closed (its first and last points are the same) or open.- Returns:
- whether or not the graphic linestring is closed.
-
getLineSymbolizer
LineSymbolizer getLineSymbolizer()
Returns theGraphicStylefor thisGraphicLineString, which is required to be aLineSymbolizer.- Returns:
- the GraphicLineString's
GraphicStyle.
-
isAllowingNewVertices
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.
-
setAllowingNewVertices
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.
-
setPathType
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.- Parameters:
pathType- The new path type. This must be one of the static constants in the PathType class or one of its subclasses.
-
getPathType
PathType getPathType()
Retrieves the methods that is used in computing the "in-between" pixels between vertices when this object is rendered on the screen.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG