Revision 3832 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/RectangleCADTool.java
RectangleCADTool.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package com.iver.cit.gvsig.gui.cad.tools; |
42 | 42 |
|
43 |
import java.awt.Graphics; |
|
44 |
import java.awt.Graphics2D; |
|
45 |
import java.awt.geom.Point2D; |
|
46 |
|
|
43 | 47 |
import com.iver.cit.gvsig.fmap.core.GeneralPathX; |
44 | 48 |
import com.iver.cit.gvsig.fmap.core.ShapeFactory; |
45 |
import com.iver.cit.gvsig.fmap.layers.FBitSet; |
|
46 | 49 |
import com.iver.cit.gvsig.gui.cad.CADTool; |
50 |
import com.iver.cit.gvsig.gui.cad.DefaultCADTool; |
|
47 | 51 |
import com.iver.cit.gvsig.gui.cad.tools.smc.RectangleCADToolContext; |
48 | 52 |
import com.iver.cit.gvsig.gui.cad.tools.smc.RectangleCADToolContext.RectangleCADToolState; |
49 | 53 |
|
50 |
import java.awt.Graphics; |
|
51 |
import java.awt.Graphics2D; |
|
52 |
import java.awt.geom.Point2D; |
|
53 | 54 |
|
54 |
|
|
55 | 55 |
/** |
56 | 56 |
* DOCUMENT ME! |
57 | 57 |
* |
... | ... | |
87 | 87 |
/* (non-Javadoc) |
88 | 88 |
* @see com.iver.cit.gvsig.gui.cad.CADTool#transition(com.iver.cit.gvsig.fmap.layers.FBitSet, double, double) |
89 | 89 |
*/ |
90 |
public void transition(FBitSet sel, double x, double y) {
|
|
91 |
_fsm.addPoint(sel, x, y);
|
|
90 |
public void transition(double x, double y) { |
|
91 |
_fsm.addPoint(x, y); |
|
92 | 92 |
} |
93 | 93 |
|
94 | 94 |
/* (non-Javadoc) |
95 | 95 |
* @see com.iver.cit.gvsig.gui.cad.CADTool#transition(com.iver.cit.gvsig.fmap.layers.FBitSet, double) |
96 | 96 |
*/ |
97 |
public void transition(FBitSet sel, double d) {
|
|
97 |
public void transition(double d) { |
|
98 | 98 |
//_fsm.addvalue(sel,d); |
99 | 99 |
} |
100 | 100 |
|
101 | 101 |
/* (non-Javadoc) |
102 | 102 |
* @see com.iver.cit.gvsig.gui.cad.CADTool#transition(com.iver.cit.gvsig.fmap.layers.FBitSet, java.lang.String) |
103 | 103 |
*/ |
104 |
public void transition(FBitSet sel, String s) {
|
|
105 |
_fsm.addOption(sel, s);
|
|
104 |
public void transition(String s) { |
|
105 |
_fsm.addOption(s); |
|
106 | 106 |
} |
107 | 107 |
|
108 | 108 |
/** |
... | ... | |
113 | 113 |
* @param x par?metro x del punto que se pase en esta transici?n. |
114 | 114 |
* @param y par?metro y del punto que se pase en esta transici?n. |
115 | 115 |
*/ |
116 |
public void addPoint(FBitSet sel, double x, double y) {
|
|
116 |
public void addPoint(double x, double y) { |
|
117 | 117 |
RectangleCADToolState actualState = (RectangleCADToolState) _fsm.getPreviousState(); |
118 | 118 |
|
119 | 119 |
String status = actualState.getName(); |
... | ... | |
170 | 170 |
* @param x par?metro x del punto que se pase para dibujar. |
171 | 171 |
* @param y par?metro x del punto que se pase para dibujar. |
172 | 172 |
*/ |
173 |
public void drawOperation(Graphics g, FBitSet selectedGeometries, double x,
|
|
173 |
public void drawOperation(Graphics g, double x, |
|
174 | 174 |
double y) { |
175 | 175 |
RectangleCADToolState actualState = _fsm.getState(); |
176 | 176 |
String status = actualState.getName(); |
... | ... | |
217 | 217 |
* @param sel DOCUMENT ME! |
218 | 218 |
* @param s Diferent option. |
219 | 219 |
*/ |
220 |
public void addOption(FBitSet sel, String s) {
|
|
220 |
public void addOption(String s) { |
|
221 | 221 |
RectangleCADToolState actualState = (RectangleCADToolState) _fsm.getPreviousState(); |
222 | 222 |
String status = actualState.getName(); |
223 | 223 |
|
... | ... | |
231 | 231 |
/* (non-Javadoc) |
232 | 232 |
* @see com.iver.cit.gvsig.gui.cad.CADTool#addvalue(double) |
233 | 233 |
*/ |
234 |
public void addValue(FBitSet sel, double d) {
|
|
234 |
public void addValue(double d) { |
|
235 | 235 |
} |
236 | 236 |
} |
Also available in: Unified diff