public class RoverArea extends AbstractRoverShape<RoverArea>
Copyright 2008 Partner Software, Inc.
| Constructor and Description |
|---|
RoverArea(int drawId,
boolean selectable,
XyPolygon polygon)
Creates a RoverArea with zero id and dataId.
|
RoverArea(int id,
int dataId,
int drawId,
boolean selectable,
XyPolygon polygon)
Construct a RoverArea with all parameters set.
|
RoverArea(int id,
int dataId,
int drawId,
XyPolygon polygon)
Construct a selectable RoverArea.
|
RoverArea(int drawId,
XyPolygon polygon)
Creates a RoverArea with zero id and dataId.
|
| Modifier and Type | Method and Description |
|---|---|
XyBounds |
getBounds()
The bounds of the shape.
|
XyPoint |
getCentroid()
The center of the bounds of the shape.
|
XyPoint |
getEndPoint()
The last point in the shape.
|
XyPolygon |
getPolygon()
Polygon geometry for this area.
|
XyPoint |
getStartPoint()
The first point in the shape.
|
java.lang.String |
toString() |
RoverArea |
withDataId(int dataId)
Returns a copy of this shape with the given data ID.
|
RoverArea |
withDrawId(int drawId)
Returns a copy of this shape with the given drawable ID.
|
RoverArea |
withId(int id)
Returns a copy of this shape with the given ID.
|
RoverArea |
withIds(int id,
int dataId,
int drawId)
Returns a copy of this shape with the given IDs set.
|
getDataId, getDrawId, getId, hasZ, isOffset, isRotated, isSelectablepublic RoverArea(int id,
int dataId,
int drawId,
boolean selectable,
XyPolygon polygon)
public RoverArea(int drawId,
boolean selectable,
XyPolygon polygon)
public RoverArea(int id,
int dataId,
int drawId,
XyPolygon polygon)
public RoverArea(int drawId,
XyPolygon polygon)
public XyBounds getBounds()
RoverShapepublic XyPoint getCentroid()
RoverShapepublic XyPoint getEndPoint()
RoverShapepublic XyPoint getStartPoint()
RoverShapepublic RoverArea withDataId(int dataId)
RoverShapepublic RoverArea withDrawId(int drawId)
RoverShapepublic RoverArea withId(int id)
RoverShapepublic RoverArea withIds(int id, int dataId, int drawId)
RoverShapepublic java.lang.String toString()
toString in class AbstractRoverShape<RoverArea>public XyPolygon getPolygon()