01: /* uDig - User Friendly Desktop Internet GIS client
02: * http://udig.refractions.net
03: * (C) 2004, Refractions Research Inc.
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation;
08: * version 2.1 of the License.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: */
15: package net.refractions.udig.tools.edit;
16:
17: /**
18: * Enumerates the various states an editing tool may be in.
19: *
20: * @author jones
21: * @since 1.1.0
22: */
23: public enum EditState {
24: /**
25: * No editing has occured
26: */
27: NONE,
28: /**
29: * An existing feature is being modified
30: */
31: MODIFYING,
32: /**
33: * A vertex or geom or shape (or something) is being moved
34: */
35: MOVING,
36: /**
37: * A new feature is being created
38: */
39: CREATING,
40: /**
41: * Editing is not permitted
42: */
43: ILLEGAL,
44: /**
45: * Something is going on
46: */
47: BUSY,
48: /**
49: * A commit is taking place.
50: */
51: COMMITTING
52:
53: }
|