public abstract class AbstractRoverPointShape<T extends AbstractRoverPointShape> extends AbstractRoverShape<T>
The rationale for this class is that having e.g. RoverText extend RoverPoint is a bad idea, since it causes unwarranted assumptions with instanceof.
Copyright 2008 Partner Software, Inc.
| Constructor and Description |
|---|
AbstractRoverPointShape(int id,
int dataId,
int drawId,
boolean selectable,
XyPoint point,
XyRotation rotation,
int offsetX,
int offsetY)
Constructs an AbstractRoverPointShape with all values set.
|
| 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.
|
byte |
getOffsetX()
Pixel offset on the X axis of the graphics for this shape.
|
byte |
getOffsetY()
Pixel offset on the Y axis of the graphics for this shape.
|
XyPoint |
getPoint()
The geographic anchor point for this shape.
|
XyRotation |
getRotation()
Rotation of the graphics for this shape.
|
XyPoint |
getStartPoint()
The first point in the shape.
|
boolean |
isOffset()
Returns true if this shape has a rotation.
|
boolean |
isRotated()
Returns true if this shape has a rotation.
|
getDataId, getDrawId, getId, hasZ, isSelectable, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwithDataId, withDrawId, withId, withIdspublic AbstractRoverPointShape(int id,
int dataId,
int drawId,
boolean selectable,
XyPoint point,
XyRotation rotation,
int offsetX,
int offsetY)
public XyBounds getBounds()
RoverShapepublic XyPoint getCentroid()
RoverShapepublic XyPoint getEndPoint()
RoverShapepublic XyPoint getStartPoint()
RoverShapepublic XyPoint getPoint()
public XyRotation getRotation()
public byte getOffsetX()
public byte getOffsetY()
public boolean isOffset()
RoverShapeisOffset in interface RoverShape<T extends AbstractRoverPointShape>isOffset in class AbstractRoverShape<T extends AbstractRoverPointShape>public boolean isRotated()
RoverShapeisRotated in interface RoverShape<T extends AbstractRoverPointShape>isRotated in class AbstractRoverShape<T extends AbstractRoverPointShape>