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.support;
16:
17: /**
18: * Indicates the different ways that snapping can behave.
19: * @author Jesse
20: * @since 1.1.0
21: */
22: public enum SnapBehaviour {
23: /**
24: * No snapping
25: */
26: OFF,
27: /**
28: * Snap to features selected (on the edit blackboard)
29: */
30: SELECTED,
31: /**
32: * Search the current layer and the selected features
33: */
34: CURRENT_LAYER,
35: /**
36: * Search all layers
37: */
38: ALL_LAYERS,
39: /**
40: * Snap to a grid defined in the preferences
41: */
42: GRID
43: }
|