Revision 4458 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/RotateCADTool.java
RotateCADTool.java | ||
---|---|---|
46 | 46 |
import java.awt.geom.AffineTransform; |
47 | 47 |
import java.awt.geom.Point2D; |
48 | 48 |
import java.io.IOException; |
49 |
import java.util.ArrayList; |
|
49 | 50 |
|
50 | 51 |
import com.iver.andami.PluginServices; |
51 | 52 |
import com.iver.cit.gvsig.CADExtension; |
... | ... | |
61 | 62 |
import com.iver.cit.gvsig.gui.cad.DefaultCADTool; |
62 | 63 |
import com.iver.cit.gvsig.gui.cad.tools.smc.RotateCADToolContext; |
63 | 64 |
import com.iver.cit.gvsig.gui.cad.tools.smc.RotateCADToolContext.RotateCADToolState; |
65 |
import com.iver.cit.gvsig.layers.VectorialLayerEdited; |
|
64 | 66 |
|
65 | 67 |
|
66 | 68 |
/** |
... | ... | |
186 | 188 |
VectorialEditableAdapter vea = getCadToolAdapter().getVectorialAdapter(); |
187 | 189 |
FBitSet selection = vea.getSelection(); |
188 | 190 |
|
189 |
try { |
|
191 |
/* try {
|
|
190 | 192 |
drawHandlers(g, selection, |
191 | 193 |
getCadToolAdapter().getMapControl().getViewPort() |
192 | 194 |
.getAffineTransform()); |
193 | 195 |
} catch (DriverIOException e) { |
194 | 196 |
e.printStackTrace(); |
195 | 197 |
} |
196 |
|
|
198 |
*/ |
|
199 |
VectorialLayerEdited vle = (VectorialLayerEdited) CADExtension |
|
200 |
.getEditionManager().getActiveLayerEdited(); |
|
201 |
ArrayList selectedRow = vle.getSelectedRow(); |
|
202 |
drawHandlers(g, selectedRow, |
|
203 |
getCadToolAdapter().getMapControl().getViewPort() |
|
204 |
.getAffineTransform()); |
|
197 | 205 |
if (status.equals("Rotate.AngleOrPoint")) { |
198 | 206 |
/*Point2D point = getCadToolAdapter().getMapControl().getViewPort() |
199 | 207 |
.fromMapPoint(firstPoint.getX(), |
Also available in: Unified diff