コード例 #1
0
 @Override
 public void mouseWheelMoved(MouseWheelEvent e) {
   if (mouseEnabled || e instanceof BotEvent) {
     for (MouseWheelListener l : defaultMouseWheelListeners) {
       l.mouseWheelMoved(e);
     }
     mouseOnCanvas = true;
   }
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 /**
  * 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);
 }