Revision 3832 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/smc/EllipseCADToolContext.java
EllipseCADToolContext.java | ||
---|---|---|
6 | 6 |
package com.iver.cit.gvsig.gui.cad.tools.smc; |
7 | 7 |
|
8 | 8 |
import com.iver.cit.gvsig.gui.cad.tools.EllipseCADTool; |
9 |
import com.iver.cit.gvsig.fmap.layers.FBitSet; |
|
10 | 9 |
|
11 | 10 |
public final class EllipseCADToolContext |
12 | 11 |
extends statemap.FSMContext |
... | ... | |
24 | 23 |
ExecuteMap.Initial.Entry(this); |
25 | 24 |
} |
26 | 25 |
|
27 |
public void addPoint(FBitSet sel, double pointX, double pointY)
|
|
26 |
public void addPoint(double pointX, double pointY) |
|
28 | 27 |
{ |
29 | 28 |
_transition = "addPoint"; |
30 |
getState().addPoint(this, sel, pointX, pointY);
|
|
29 |
getState().addPoint(this, pointX, pointY); |
|
31 | 30 |
_transition = ""; |
32 | 31 |
return; |
33 | 32 |
} |
34 | 33 |
|
35 |
public void addValue(FBitSet sel, double d)
|
|
34 |
public void addValue(double d) |
|
36 | 35 |
{ |
37 | 36 |
_transition = "addValue"; |
38 |
getState().addValue(this, sel, d);
|
|
37 |
getState().addValue(this, d); |
|
39 | 38 |
_transition = ""; |
40 | 39 |
return; |
41 | 40 |
} |
... | ... | |
82 | 81 |
protected void Entry(EllipseCADToolContext context) {} |
83 | 82 |
protected void Exit(EllipseCADToolContext context) {} |
84 | 83 |
|
85 |
protected void addPoint(EllipseCADToolContext context, FBitSet sel, double pointX, double pointY)
|
|
84 |
protected void addPoint(EllipseCADToolContext context, double pointX, double pointY) |
|
86 | 85 |
{ |
87 | 86 |
Default(context); |
88 | 87 |
} |
89 | 88 |
|
90 |
protected void addValue(EllipseCADToolContext context, FBitSet sel, double d)
|
|
89 |
protected void addValue(EllipseCADToolContext context, double d) |
|
91 | 90 |
{ |
92 | 91 |
Default(context); |
93 | 92 |
} |
... | ... | |
177 | 176 |
return; |
178 | 177 |
} |
179 | 178 |
|
180 |
protected void addPoint(EllipseCADToolContext context, FBitSet sel, double pointX, double pointY)
|
|
179 |
protected void addPoint(EllipseCADToolContext context, double pointX, double pointY) |
|
181 | 180 |
{ |
182 | 181 |
EllipseCADTool ctxt = context.getOwner(); |
183 | 182 |
|
... | ... | |
187 | 186 |
try |
188 | 187 |
{ |
189 | 188 |
ctxt.setQuestion("Insertar punto final de eje de elipse"); |
190 |
ctxt.addPoint(sel, pointX, pointY);
|
|
189 |
ctxt.addPoint(pointX, pointY); |
|
191 | 190 |
} |
192 | 191 |
finally |
193 | 192 |
{ |
... | ... | |
214 | 213 |
super (name, id); |
215 | 214 |
} |
216 | 215 |
|
217 |
protected void addPoint(EllipseCADToolContext context, FBitSet sel, double pointX, double pointY)
|
|
216 |
protected void addPoint(EllipseCADToolContext context, double pointX, double pointY) |
|
218 | 217 |
{ |
219 | 218 |
EllipseCADTool ctxt = context.getOwner(); |
220 | 219 |
|
... | ... | |
224 | 223 |
try |
225 | 224 |
{ |
226 | 225 |
ctxt.setQuestion("Insertar distancia al otro eje"); |
227 |
ctxt.addPoint(sel, pointX, pointY);
|
|
226 |
ctxt.addPoint(pointX, pointY); |
|
228 | 227 |
} |
229 | 228 |
finally |
230 | 229 |
{ |
... | ... | |
251 | 250 |
super (name, id); |
252 | 251 |
} |
253 | 252 |
|
254 |
protected void addPoint(EllipseCADToolContext context, FBitSet sel, double pointX, double pointY)
|
|
253 |
protected void addPoint(EllipseCADToolContext context, double pointX, double pointY) |
|
255 | 254 |
{ |
256 | 255 |
EllipseCADTool ctxt = context.getOwner(); |
257 | 256 |
|
... | ... | |
260 | 259 |
context.clearState(); |
261 | 260 |
try |
262 | 261 |
{ |
263 |
ctxt.addPoint(sel, pointX, pointY);
|
|
262 |
ctxt.addPoint(pointX, pointY); |
|
264 | 263 |
ctxt.end(); |
265 | 264 |
} |
266 | 265 |
finally |
... | ... | |
271 | 270 |
return; |
272 | 271 |
} |
273 | 272 |
|
274 |
protected void addValue(EllipseCADToolContext context, FBitSet sel, double d)
|
|
273 |
protected void addValue(EllipseCADToolContext context, double d) |
|
275 | 274 |
{ |
276 | 275 |
EllipseCADTool ctxt = context.getOwner(); |
277 | 276 |
|
... | ... | |
280 | 279 |
context.clearState(); |
281 | 280 |
try |
282 | 281 |
{ |
283 |
ctxt.addValue(sel, d);
|
|
282 |
ctxt.addValue(d); |
|
284 | 283 |
ctxt.end(); |
285 | 284 |
} |
286 | 285 |
finally |
Also available in: Unified diff