public void onMouseMove ( MouseMoveEvent event ) { if ( isMeasuring ( ) && distanceLine . getOriginalLocation ( ) != null ) { updateMeasure ( event , false ) ; dispatchState ( State . MOVE ) ; } }
Update the drawing while moving the mouse .