com.partnersoft.maps.rover
Enum RoverShapeType

java.lang.Object
  extended by java.lang.Enum<RoverShapeType>
      extended by com.partnersoft.maps.rover.RoverShapeType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RoverShapeType>

public enum RoverShapeType
extends java.lang.Enum<RoverShapeType>

The different types of supported shape geometries in Rover. This enumeration allows you to consider them independently of the RoverShape class structure, and includes specific numeric codes to use in binary storage.

Copyright 2008 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Enum Constant Summary
AREA
          A polygonal vector area.
IMAGE
          A scaled raster image.
LINE
          A vector polyline.
POINT
          A vector point.
TEXT
          A text label.
 
Method Summary
static RoverShapeType forCode(int code)
           
static RoverShapeType forMapDataGraphic(MapDataGraphic graphic)
           
static RoverShapeType forName(java.lang.String name)
           
static RoverShapeType forShape(RoverShape shape)
           
 int getCode()
           
 java.lang.String getName()
           
static RoverShapeType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RoverShapeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IMAGE

public static final RoverShapeType IMAGE
A scaled raster image.


AREA

public static final RoverShapeType AREA
A polygonal vector area.


LINE

public static final RoverShapeType LINE
A vector polyline.


POINT

public static final RoverShapeType POINT
A vector point.


TEXT

public static final RoverShapeType TEXT
A text label.

Method Detail

values

public static RoverShapeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RoverShapeType c : RoverShapeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RoverShapeType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getName

public java.lang.String getName()

getCode

public int getCode()

forName

public static RoverShapeType forName(java.lang.String name)

forCode

public static RoverShapeType forCode(int code)

forShape

public static RoverShapeType forShape(RoverShape shape)

forMapDataGraphic

public static RoverShapeType forMapDataGraphic(MapDataGraphic graphic)