Esempio n. 1
0
 public void pan(boolean enabled) {
   if (enabled) {
     _plot.setMouseActions(
         PlotMouseActionList.getDefaultPanActions().getActions(), SWT.CURSOR_HAND);
   } else {
     _plot.setMouseActions(new IPlotMouseAction[0], SWT.CURSOR_ARROW);
   }
 }
Esempio n. 2
0
 public void zoomWindow(boolean enabled) {
   if (enabled) {
     _plot.setMouseActions(
         PlotMouseActionList.getDefaultZoomWindowActions().getActions(), SWT.CURSOR_CROSS);
   } else {
     _plot.setMouseActions(new IPlotMouseAction[0], SWT.CURSOR_ARROW);
   }
 }