Revision 37138 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/gui/cad/tools/RectangleCADTool.java
RectangleCADTool.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
|
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
|
2 | 2 |
* |
3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
5 | 6 |
* This program is free software; you can redistribute it and/or |
6 | 7 |
* modify it under the terms of the GNU General Public License |
7 | 8 |
* as published by the Free Software Foundation; either version 2 |
8 | 9 |
* of the License, or (at your option) any later version. |
9 |
* |
|
10 |
*
|
|
10 | 11 |
* This program is distributed in the hope that it will be useful, |
11 | 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | 14 |
* GNU General Public License for more details. |
14 |
* |
|
15 |
*
|
|
15 | 16 |
* You should have received a copy of the GNU General Public License |
16 | 17 |
* along with this program; if not, write to the Free Software |
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ib??ez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
40 | 21 |
*/ |
41 | 22 |
package org.gvsig.editing.gui.cad.tools; |
42 | 23 |
|
43 |
import java.awt.Image; |
|
44 | 24 |
import java.awt.event.InputEvent; |
45 | 25 |
import java.awt.geom.Point2D; |
46 | 26 |
|
... | ... | |
49 | 29 |
import org.gvsig.editing.gui.cad.exception.CommandException; |
50 | 30 |
import org.gvsig.editing.gui.cad.tools.smc.RectangleCADToolContext; |
51 | 31 |
import org.gvsig.editing.gui.cad.tools.smc.RectangleCADToolContext.RectangleCADToolState; |
52 |
import org.gvsig.editing.layers.VectorialLayerEdited; |
|
53 | 32 |
import org.gvsig.fmap.geom.Geometry; |
54 |
import org.gvsig.fmap.geom.operation.Draw; |
|
55 |
import org.gvsig.fmap.geom.operation.DrawOperationContext; |
|
56 |
import org.gvsig.fmap.geom.operation.GeometryOperationException; |
|
57 |
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException; |
|
58 | 33 |
import org.gvsig.fmap.geom.primitive.GeneralPathX; |
59 | 34 |
import org.gvsig.fmap.geom.primitive.OrientablePrimitive; |
60 | 35 |
import org.gvsig.fmap.mapcontrol.MapControlDrawer; |
Also available in: Unified diff