public enum MapEditMode extends java.lang.Enum<MapEditMode>
| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final MapEditMode BROWSE
public static final MapEditMode ADD
public static final MapEditMode ADD_MANY
public static final MapEditMode MOVE
public static final MapEditMode ROTATE
public static final MapEditMode CONNECT
public static MapEditMode[] values()
for (MapEditMode c : MapEditMode.values()) System.out.println(c);
public static MapEditMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract void setup(MapApp app)
public abstract void teardown(MapApp app)