{
if (!isFreeHand() || (!measureTool.getMeasureShapeType().equals(GfrEditorObjShpSegWiseTool.SHAPE_PATH) /*&& !measureTool.getMeasureShapeType().equals(GfrEditorObjShpSegWiseTool.SHAPE_POLYGON)*/))
{
// Rubber band - Move control point and update shape
Position lastPosition = rubberBandTarget.getPosition();
PickedObjectList pol = measureTool.getWwd().getObjectsAtCurrentPosition();
PickedObject to = pol.getTerrainObject();
rubberBandTarget.setPosition(new Position(to.getPosition(), 0));
measureTool.moveControlPoint(rubberBandTarget);
measureTool.firePropertyChange(GfrEditorObjShpSegWiseTool.EVENT_POSITION_REPLACE,
lastPosition, rubberBandTarget.getPosition());
measureTool.getWwd().redraw();