|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.rover.AbstractRoverShape<T>
com.partnersoft.maps.rover.AbstractRoverPointShape<T>
public abstract class AbstractRoverPointShape<T extends AbstractRoverPointShape>
Contains fields common to RoverImage, RoverPoint and RoverText.
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 Summary | |
|---|---|
AbstractRoverPointShape(int id,
int dataId,
int drawId,
boolean selectable,
XyPoint point,
XyRotation rotation,
int offsetX,
int offsetY)
Constructs an AbstractRoverPointShape with all values set. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.partnersoft.maps.rover.AbstractRoverShape |
|---|
getDataId, getDrawId, getId, hasZ, isSelectable, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.partnersoft.maps.rover.RoverShape |
|---|
withDataId, withDrawId, withId, withIds |
| Constructor Detail |
|---|
public AbstractRoverPointShape(int id,
int dataId,
int drawId,
boolean selectable,
XyPoint point,
XyRotation rotation,
int offsetX,
int offsetY)
| Method Detail |
|---|
public XyBounds getBounds()
RoverShape
public XyPoint getCentroid()
RoverShape
public XyPoint getEndPoint()
RoverShape
public XyPoint getStartPoint()
RoverShape
public XyPoint getPoint()
public XyRotation getRotation()
public byte getOffsetX()
public byte getOffsetY()
public boolean isOffset()
RoverShape
isOffset in interface RoverShape<T extends AbstractRoverPointShape>isOffset in class AbstractRoverShape<T extends AbstractRoverPointShape>public boolean isRotated()
RoverShape
isRotated in interface RoverShape<T extends AbstractRoverPointShape>isRotated in class AbstractRoverShape<T extends AbstractRoverPointShape>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||