コード例 #1
0
 /** Handles mouse drag events. The events are forwarded to the current tracker. */
 public void mouseDrag(MouseEvent e, int x, int y) {
   if (fChild != null) { // JDK1.1 doesn't guarantee mouseDown, mouseDrag, mouseUp
     fChild.mouseDrag(e, x, y);
   }
 }
コード例 #2
0
 /**
  * Called when the mouse has been dragged within a Viewer.
  *
  * @param mouseEvent The SWT mouse event
  * @param viewer The source of the event.
  */
 public void mouseDrag(MouseEvent mouseEvent, EditPartViewer viewer) {
   Tool tool = getActiveTool();
   if (tool != null) tool.mouseDrag(mouseEvent, viewer);
 }