net.refractions.udig.tools.edit
Enum EditState

java.lang.Object
  extended by java.lang.Enum<EditState>
      extended by net.refractions.udig.tools.edit.EditState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EditState>

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

Enumerates the various states an editing tool may be in.

Since:
1.1.0
Author:
jones

Enum Constant Summary
BUSY
          Something is going on
COMMITTING
          A commit is taking place.
CREATING
          A new feature is being created
ILLEGAL
          Editing is not permitted
MODIFYING
          An existing feature is being modified
MOVING
          A vertex or geom or shape (or something) is being moved
NONE
          No editing has occured
 
Method Summary
static EditState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EditState[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final EditState NONE
No editing has occured


MODIFYING

public static final EditState MODIFYING
An existing feature is being modified


MOVING

public static final EditState MOVING
A vertex or geom or shape (or something) is being moved


CREATING

public static final EditState CREATING
A new feature is being created


ILLEGAL

public static final EditState ILLEGAL
Editing is not permitted


BUSY

public static final EditState BUSY
Something is going on


COMMITTING

public static final EditState COMMITTING
A commit is taking place.

Method Detail

values

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

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

valueOf

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