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: * A selection that IS a EditGeom.
19: *
20: * @author Jesse
21: * @since 1.1.0
22: */
23: public class EditGeomSelection extends Selection {
24:
25: private EditGeom geom;
26:
27: public EditGeomSelection(EditGeom geom) {
28: super (geom.getEditBlackboard());
29: this .geom = geom;
30: for (PrimitiveShape shape : geom) {
31: for (Point point : shape) {
32: add(point, shape.getMutator().getLazyCoordsAt(point));
33: }
34: }
35: }
36:
37: public EditGeom getGeom() {
38: return geom;
39: }
40:
41: }
|