Revision 3832 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/PolylineCADTool.java
PolylineCADTool.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 |
import java.util.ArrayList; |
|
47 |
|
|
43 | 48 |
import com.iver.cit.gvsig.fmap.core.FGeometryCollection; |
44 | 49 |
import com.iver.cit.gvsig.fmap.core.FShape; |
45 | 50 |
import com.iver.cit.gvsig.fmap.core.GeneralPathX; |
46 | 51 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
47 | 52 |
import com.iver.cit.gvsig.fmap.core.ShapeFactory; |
48 | 53 |
import com.iver.cit.gvsig.fmap.edition.UtilFunctions; |
49 |
import com.iver.cit.gvsig.fmap.layers.FBitSet; |
|
50 | 54 |
import com.iver.cit.gvsig.gui.cad.CADTool; |
55 |
import com.iver.cit.gvsig.gui.cad.DefaultCADTool; |
|
51 | 56 |
import com.iver.cit.gvsig.gui.cad.tools.smc.PolylineCADToolContext; |
52 | 57 |
import com.iver.cit.gvsig.gui.cad.tools.smc.PolylineCADToolContext.PolylineCADToolState; |
53 | 58 |
|
54 |
import java.awt.Graphics; |
|
55 |
import java.awt.Graphics2D; |
|
56 |
import java.awt.geom.Point2D; |
|
57 | 59 |
|
58 |
import java.util.ArrayList; |
|
59 |
|
|
60 |
|
|
61 | 60 |
/** |
62 | 61 |
* DOCUMENT ME! |
63 | 62 |
* |
... | ... | |
97 | 96 |
/* (non-Javadoc) |
98 | 97 |
* @see com.iver.cit.gvsig.gui.cad.CADTool#transition(com.iver.cit.gvsig.fmap.layers.FBitSet, double, double) |
99 | 98 |
*/ |
100 |
public void transition(FBitSet sel, double x, double y) {
|
|
101 |
_fsm.addPoint(sel, x, y);
|
|
99 |
public void transition(double x, double y) { |
|
100 |
_fsm.addPoint(x, y); |
|
102 | 101 |
} |
103 | 102 |
|
104 | 103 |
/* (non-Javadoc) |
105 | 104 |
* @see com.iver.cit.gvsig.gui.cad.CADTool#transition(com.iver.cit.gvsig.fmap.layers.FBitSet, double) |
106 | 105 |
*/ |
107 |
public void transition(FBitSet sel, double d) {
|
|
106 |
public void transition(double d) { |
|
108 | 107 |
//_fsm.addValue(sel,d); |
109 | 108 |
} |
110 | 109 |
|
111 | 110 |
/* (non-Javadoc) |
112 | 111 |
* @see com.iver.cit.gvsig.gui.cad.CADTool#transition(com.iver.cit.gvsig.fmap.layers.FBitSet, java.lang.String) |
113 | 112 |
*/ |
114 |
public void transition(FBitSet sel, String s) {
|
|
115 |
_fsm.addOption(sel, s);
|
|
113 |
public void transition(String s) { |
|
114 |
_fsm.addOption(s); |
|
116 | 115 |
} |
117 | 116 |
|
118 | 117 |
/** |
... | ... | |
123 | 122 |
* @param x par?metro x del punto que se pase en esta transici?n. |
124 | 123 |
* @param y par?metro y del punto que se pase en esta transici?n. |
125 | 124 |
*/ |
126 |
public void addPoint(FBitSet sel, double x, double y) {
|
|
125 |
public void addPoint(double x, double y) { |
|
127 | 126 |
PolylineCADToolState actualState = (PolylineCADToolState) _fsm.getPreviousState(); |
128 | 127 |
String status = actualState.getName(); |
129 | 128 |
|
... | ... | |
265 | 264 |
* @param x par?metro x del punto que se pase para dibujar. |
266 | 265 |
* @param y par?metro x del punto que se pase para dibujar. |
267 | 266 |
*/ |
268 |
public void drawOperation(Graphics g, FBitSet selectedGeometries, double x,
|
|
267 |
public void drawOperation(Graphics g, double x, |
|
269 | 268 |
double y) { |
270 | 269 |
PolylineCADToolState actualState = _fsm.getState(); |
271 | 270 |
String status = actualState.getName(); |
... | ... | |
387 | 386 |
* @param sel DOCUMENT ME! |
388 | 387 |
* @param s Diferent option. |
389 | 388 |
*/ |
390 |
public void addOption(FBitSet sel, String s) {
|
|
389 |
public void addOption(String s) { |
|
391 | 390 |
PolylineCADToolState actualState = (PolylineCADToolState) _fsm.getPreviousState(); |
392 | 391 |
String status = actualState.getName(); |
393 | 392 |
|
... | ... | |
423 | 422 |
/* (non-Javadoc) |
424 | 423 |
* @see com.iver.cit.gvsig.gui.cad.CADTool#addvalue(double) |
425 | 424 |
*/ |
426 |
public void addValue(FBitSet sel, double d) {
|
|
425 |
public void addValue(double d) { |
|
427 | 426 |
} |
428 | 427 |
} |
Also available in: Unified diff