Revision 23657 branches/v2_0_0_prep/extensions/extCAD/src/com/iver/cit/gvsig/layers/VectorialLayerEdited.java
VectorialLayerEdited.java | ||
---|---|---|
31 | 31 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
32 | 32 |
import org.gvsig.fmap.mapcontext.rendering.legend.ILegend; |
33 | 33 |
import org.gvsig.fmap.mapcontext.rendering.symbols.FGraphicUtilities; |
34 |
import org.gvsig.fmap.mapcontrol.MapControl; |
|
34 | 35 |
import org.gvsig.tools.observer.Observable; |
35 | 36 |
import org.gvsig.tools.observer.Observer; |
36 | 37 |
|
... | ... | |
134 | 135 |
} |
135 | 136 |
// Se comprueba si se pincha en una gemometr?a |
136 | 137 |
ViewPort vp = getLayer().getMapContext().getViewPort(); |
137 |
double tol = vp.toMapDistance(SelectionCADTool.tolerance);
|
|
138 |
double tol = vp.toMapDistance(MapControl.tolerance);
|
|
138 | 139 |
|
139 | 140 |
FeatureCollection newSelection = ((FLyrVect) getLayer()) |
140 | 141 |
.queryByPoint(firstPoint, tol, getFeatureStore() |
... | ... | |
503 | 504 |
drawHandlers(geom.cloneGeometry(), gh, vp); |
504 | 505 |
// y miramos los handlers de cada entidad seleccionada |
505 | 506 |
min = cta.getMapControl().getViewPort().toMapDistance( |
506 |
SelectionCADTool.tolerance);
|
|
507 |
MapControl.tolerance);
|
|
507 | 508 |
for (int j = 0; j < handlers.length; j++) { |
508 | 509 |
Point2D handlerPoint = handlers[j].getPoint(); |
509 | 510 |
double distance = firstPoint.distance(handlerPoint); |
Also available in: Unified diff