com.partnersoft.maps.app
Enum MapEditMode

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

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


Enum Constant Summary
ADD
          Add mode is when the user is adding new graphics by clicking on the map; after one click it reverts to browse mode.
ADD_MANY
          Add many mode adds multiple point until the mode is changed.
BROWSE
          Browse mode is the default mode, when a user is navigating around in the map and making selections.
CONNECT
          Connect mode is when the user is connecting or associating one graphic with another.
MOVE
          Move mode is when the user is moving a graphic by clicking on the map.
ROTATE
          Rotate mode is when the user is rotating a graphic by clicking on the map.
 
Method Summary
abstract  void setup(MapApp app)
          Things to do when entering the mode.
abstract  void teardown(MapApp app)
          Things to do when leaving the mode.
static MapEditMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MapEditMode[] 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

BROWSE

public static final MapEditMode BROWSE
Browse mode is the default mode, when a user is navigating around in the map and making selections.


ADD

public static final MapEditMode ADD
Add mode is when the user is adding new graphics by clicking on the map; after one click it reverts to browse mode.


ADD_MANY

public static final MapEditMode ADD_MANY
Add many mode adds multiple point until the mode is changed.


MOVE

public static final MapEditMode MOVE
Move mode is when the user is moving a graphic by clicking on the map.


ROTATE

public static final MapEditMode ROTATE
Rotate mode is when the user is rotating a graphic by clicking on the map.


CONNECT

public static final MapEditMode CONNECT
Connect mode is when the user is connecting or associating one graphic with another.

Method Detail

values

public static MapEditMode[] 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 (MapEditMode c : MapEditMode.values())
    System.out.println(c);

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

valueOf

public static MapEditMode 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

setup

public abstract void setup(MapApp app)
Things to do when entering the mode.


teardown

public abstract void teardown(MapApp app)
Things to do when leaving the mode.