public void startDragOrResize(final MouseEvent e,final Point origin,boolean allowResize){
  if (getSelected() == null) {
    return;
  }
  if (!SwingUtilities.isLeftMouseButton(e)) {
    return;
  }
  if (getSelected() instanceof OperatorAnnotation) {
    allowResize=false;
  }
  ResizeDirection direction=null;
  if (allowResize) {
    direction=AnnotationResizeHelper.getResizeDirectionOrNull(getSelected(),origin);
  }
  if (direction != null) {
    resized=new AnnotationResizeHelper(selected,direction,origin);
  }
 else {
    dragged=new AnnotationDragHelper(selected,origin,model);
  }
}

public void startDragOrResize ( final MouseEvent e , final Point origin , boolean allowResize ) { if ( getSelected ( ) == null ) { return ; } if ( ! SwingUtilities . isLeftMouseButton ( e ) ) { return ; } if ( getSelected ( ) instanceof OperatorAnnotation ) { allowResize = false ; } ResizeDirection direction = null ; if ( allowResize ) { direction = AnnotationResizeHelper . getResizeDirectionOrNull ( getSelected ( ) , origin ) ; } if ( direction != null ) { resized = new AnnotationResizeHelper ( selected , direction , origin ) ; } else { dragged = new AnnotationDragHelper ( selected , origin , model ) ; } }
starts a drag or resizing of the selected annotation , depending on whether the drag starts on the annotation or one of the resize " knobs " . if no annotation is selected , does nothing . if the triggering action was not a left - click , does nothing .
