@Override
  public void mouseWheelMoved(final MouseWheelEvent event) {
    final int ticks = Math.abs(event.getUnitsToScroll());

    // When the user holds down control, we switch between the two modes
    final boolean changeMode = event.isControlDown();

    for (int i = 0; i < ticks; ++i) {
      if (((m_zyGraph.getSettings().getMouseSettings().getMouseWheelAction()
                  == MouseWheelAction.ZOOM)
              && !changeMode)
          || ((m_zyGraph.getSettings().getMouseSettings().getMouseWheelAction()
                  == MouseWheelAction.SCROLL)
              && changeMode)) {
        handleInZoomMode(event);
      } else {
        handleInMoveMode(event);
      }
    }

    m_zyGraph.updateViews();
  }
Listens to mouse wheel events in edit mode.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/editmode/ZyEditModeMouseWheelListener.java