public class GISShape
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
GISShape() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getBoundsHeight() |
java.lang.Double |
getBoundsLeft() |
java.lang.Double |
getBoundsTop() |
java.lang.Double |
getBoundsWidth() |
java.lang.String |
getInteractionCommand() |
GISMapPoint[] |
getPoints() |
java.lang.String |
getShapeType()
Circle : Single x/y point for circle center, parameter specifies radius
Polygon : Multiple x/y points.
|
java.lang.String |
getTooltip() |
void |
setEllipse(java.lang.Integer x,
java.lang.Integer y,
java.lang.Double width,
java.lang.Double height)
Set the shape as a ellipse
|
void |
setInteractionCommand(java.lang.String interactionCommand) |
void |
setPolygon(GISMapPoint[] points,
java.lang.Double boundsLeft,
java.lang.Double boundsTop,
java.lang.Double boundsWidth,
java.lang.Double boundsHeight)
Set the shape as a polygon
|
void |
setTooltip(java.lang.String tooltip) |
public java.lang.String getShapeType()
public void setPolygon(GISMapPoint[] points, java.lang.Double boundsLeft, java.lang.Double boundsTop, java.lang.Double boundsWidth, java.lang.Double boundsHeight)
xpoints - - List of xpointsypoints - - List of ypointspublic void setEllipse(java.lang.Integer x,
java.lang.Integer y,
java.lang.Double width,
java.lang.Double height)
x - - ellipse centery - - ellipse centerwidth - - ellipse widthheight - - ellipse heightpublic GISMapPoint[] getPoints()
public java.lang.String getTooltip()
public void setTooltip(java.lang.String tooltip)
public java.lang.String getInteractionCommand()
public void setInteractionCommand(java.lang.String interactionCommand)
public java.lang.Double getBoundsLeft()
public java.lang.Double getBoundsTop()
public java.lang.Double getBoundsWidth()
public java.lang.Double getBoundsHeight()