Revision 3832 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/ArcCADTool.java
ArcCADTool.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.IGeometry; |
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.ArcCADToolContext; |
48 | 52 |
import com.iver.cit.gvsig.gui.cad.tools.smc.ArcCADToolContext.ArcCADToolState; |
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) {
|
|
104 |
public void transition(String s) { |
|
105 | 105 |
//_fsm.addOption(sel,s); |
106 | 106 |
} |
107 | 107 |
|
... | ... | |
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 |
ArcCADToolState actualState = (ArcCADToolState) _fsm.getPreviousState(); |
118 | 118 |
String status = actualState.getName(); |
119 | 119 |
|
... | ... | |
141 | 141 |
* @param x par?metro x del punto que se pase para dibujar. |
142 | 142 |
* @param y par?metro x del punto que se pase para dibujar. |
143 | 143 |
*/ |
144 |
public void drawOperation(Graphics g, FBitSet selectedGeometries, double x,
|
|
144 |
public void drawOperation(Graphics g, double x, |
|
145 | 145 |
double y) { |
146 | 146 |
ArcCADToolState actualState = _fsm.getState(); |
147 | 147 |
String status = actualState.getName(); |
... | ... | |
173 | 173 |
* @param sel DOCUMENT ME! |
174 | 174 |
* @param s Diferent option. |
175 | 175 |
*/ |
176 |
public void addOption(FBitSet sel, String s) {
|
|
176 |
public void addOption(String s) { |
|
177 | 177 |
// TODO Auto-generated method stub |
178 | 178 |
} |
179 | 179 |
|
180 | 180 |
/* (non-Javadoc) |
181 | 181 |
* @see com.iver.cit.gvsig.gui.cad.CADTool#addvalue(double) |
182 | 182 |
*/ |
183 |
public void addValue(FBitSet sel, double d) {
|
|
183 |
public void addValue(double d) { |
|
184 | 184 |
} |
185 | 185 |
} |
Also available in: Unified diff