Revision 25943 branches/v2_0_0_prep/extensions/extEditing/src/com/iver/cit/gvsig/gui/cad/tools/InternalPolygonCADTool.java
InternalPolygonCADTool.java | ||
---|---|---|
159 | 159 |
* @param y par?metro y del punto que se pase en esta transici?n. |
160 | 160 |
*/ |
161 | 161 |
public void addPoint(double x, double y,InputEvent event) { |
162 |
if (((MouseEvent)event).getClickCount()==2){ |
|
163 |
addOption(PluginServices.getText(this,"InternalPolygonCADTool.end")); |
|
164 |
return; |
|
165 |
} |
|
162 | 166 |
VectorialLayerEdited vle=getVLE(); |
163 | 167 |
FeatureSet featureCollection=null; |
164 | 168 |
try { |
... | ... | |
290 | 294 |
// vle.setSelectionCache(VectorialLayerEdited.NOTSAVEPREVIOUS, rows); |
291 | 295 |
} |
292 | 296 |
points.clear(); |
297 |
refresh(); |
|
293 | 298 |
|
294 |
|
|
295 | 299 |
}else if (s.equals(PluginServices.getText(this,"cancel"))){ |
296 | 300 |
points.clear(); |
297 | 301 |
} |
... | ... | |
388 | 392 |
} |
389 | 393 |
return true; |
390 | 394 |
} |
391 |
public void endTransition(double x, double y, MouseEvent event) { |
|
392 |
_fsm.endPoint(x, y, event); |
|
393 |
} |
|
394 |
|
|
395 | 395 |
} |
Also available in: Unified diff