com.partnersoft.maps.rover
Class RoverDrawable

java.lang.Object
  extended by com.partnersoft.maps.rover.RoverDrawable
All Implemented Interfaces:
Immutable

public class RoverDrawable
extends java.lang.Object
implements Immutable

A predefined category of shapes that share the same symbology.

The Rover format, and RoverShape, does not specify how the shapes will be rendered. This is left to the MapLegend and MapStyle framework. However, we have to distinguish shapes that will receive the same styles in a legend, and we do this by declaring them to have the same drawable.

Drawables have a name, for human use, and are assigned numeric IDs when stored in the rover format. These are called drawName and drawID since that sounds better than drawableName and drawableId.

They don't have any other state; they act simply as identifiers.

Copyright 2009 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
RoverDrawable(RoverShapeType shapeType, java.lang.String name, int id)
           
 
Method Summary
 int getId()
           
 java.lang.String getName()
           
 RoverShapeType getShapeType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoverDrawable

public RoverDrawable(RoverShapeType shapeType,
                     java.lang.String name,
                     int id)
Method Detail

getShapeType

public RoverShapeType getShapeType()

getName

public java.lang.String getName()

getId

public int getId()