com.partnersoft.maps.rover
Class AbstractRoverShape<T extends AbstractRoverShape>

java.lang.Object
  extended by com.partnersoft.maps.rover.AbstractRoverShape<T>
All Implemented Interfaces:
Immutable, RoverShape<T>
Direct Known Subclasses:
AbstractRoverPointShape, RoverArea, RoverLine

public abstract class AbstractRoverShape<T extends AbstractRoverShape>
extends java.lang.Object
implements RoverShape<T>

Abstract, convenience implementation of RoverShape.

Copyright 2008 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
AbstractRoverShape(int id, int dataId, int drawId, boolean selectable)
           
 
Method Summary
 int getDataId()
          The data ID for this shape.
 int getDrawId()
          The Drawable ID for this shape.
 int getId()
          The ID for this shape, used to identify it in a database or other store.
 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.
 java.lang.String 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
getBounds, getCentroid, getEndPoint, getStartPoint, withDataId, withDrawId, withId, withIds
 

Constructor Detail

AbstractRoverShape

public AbstractRoverShape(int id,
                          int dataId,
                          int drawId,
                          boolean selectable)
Method Detail

getId

public int getId()
Description copied from interface: RoverShape
The ID for this shape, used to identify it in a database or other store. If zero, it is unassigned.

Specified by:
getId in interface RoverShape<T extends AbstractRoverShape>

getDataId

public int getDataId()
Description copied from interface: RoverShape
The data ID for this shape. If zero, it is not associated with data.

Specified by:
getDataId in interface RoverShape<T extends AbstractRoverShape>

getDrawId

public int getDrawId()
Description copied from interface: RoverShape
The Drawable ID for this shape. If zero, it is not associated with a Drawable.

Specified by:
getDrawId in interface RoverShape<T extends AbstractRoverShape>

hasZ

public boolean hasZ()
Description copied from interface: RoverShape
Returns true if this shape has a Z coordinate.

Specified by:
hasZ in interface RoverShape<T extends AbstractRoverShape>

isOffset

public boolean isOffset()
Description copied from interface: RoverShape
Returns true if this shape has a rotation.

Specified by:
isOffset in interface RoverShape<T extends AbstractRoverShape>

isRotated

public boolean isRotated()
Description copied from interface: RoverShape
Returns true if this shape has a rotation.

Specified by:
isRotated in interface RoverShape<T extends AbstractRoverShape>

isSelectable

public boolean isSelectable()
Description copied from interface: RoverShape
Returns true if this shape is selectable.

Specified by:
isSelectable in interface RoverShape<T extends AbstractRoverShape>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object