Beispiel #1
0
 private void fireMouseWheelEvent(MouseWheelEvent e) {
   for (MouseWheelListener l : mMouseWheelListeners) {
     if (e.getID() == MouseEvent.MOUSE_WHEEL) {
       l.mouseWheelMoved(e);
     }
   }
 }
 @Override
 public void mouseWheelMoved(MouseWheelEvent e) {
   if (mouseEnabled || e instanceof BotEvent) {
     for (MouseWheelListener l : defaultMouseWheelListeners) {
       l.mouseWheelMoved(e);
     }
     mouseOnCanvas = true;
   }
 }
 protected void processMouseWheelEvent(MouseWheelEvent e) {
   MouseWheelEvent transformedEvent = (MouseWheelEvent) transformMouseEvent(e);
   MouseWheelListener[] mouseWheelListeners =
       transformedEvent.getComponent().getMouseWheelListeners();
   for (MouseWheelListener listener : mouseWheelListeners) {
     listener.mouseWheelMoved(transformedEvent);
   }
   super.processMouseWheelEvent(e);
 }
 /**
  * Handles the mouseWheelMoved event by invoking the mouseWheelMoved methods on listener-a and
  * listener-b.
  *
  * @param e the mouse event
  * @since 1.4
  */
 public void mouseWheelMoved(MouseWheelEvent e) {
   ((MouseWheelListener) a).mouseWheelMoved(e);
   ((MouseWheelListener) b).mouseWheelMoved(e);
 }