|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RoverShape<T extends RoverShape>
A renderable geographic shape in a RoverLayer.
Includes generic methods to get the center, bounds, etc. Note that for points and text many of these are trivial or degenerate.
These are immutable to facilitate safe exchange.
Copyright 2008 Partner Software, Inc.
| Method Summary | |
|---|---|
XyBounds |
getBounds()
The bounds of the shape. |
XyPoint |
getCentroid()
The center of the bounds of the shape. |
int |
getDataId()
The data ID for this shape. |
int |
getDrawId()
The Drawable ID for this shape. |
XyPoint |
getEndPoint()
The last point in the shape. |
int |
getId()
The ID for this shape, used to identify it in a database or other store. |
XyPoint |
getStartPoint()
The first point in the shape. |
boolean |
hasZ()
Returns true if this shape has a Z coordinate. |
boolean |
isOffset()
Returns true if this shape has a rotation. |
boolean |
isRotated()
Returns true if this shape has a rotation. |
boolean |
isSelectable()
Returns true if this shape is selectable. |
T |
withDataId(int dataId)
Returns a copy of this shape with the given data ID. |
T |
withDrawId(int dataId)
Returns a copy of this shape with the given drawable ID. |
T |
withId(int id)
Returns a copy of this shape with the given ID. |
T |
withIds(int id,
int dataId,
int drawIds)
Returns a copy of this shape with the given IDs set. |
| Method Detail |
|---|
int getId()
int getDataId()
int getDrawId()
XyPoint getCentroid()
XyPoint getStartPoint()
XyPoint getEndPoint()
XyBounds getBounds()
boolean hasZ()
boolean isRotated()
boolean isOffset()
boolean isSelectable()
T withId(int id)
T withDataId(int dataId)
T withDrawId(int dataId)
T withIds(int id,
int dataId,
int drawIds)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||