@Override
  public void mouseMoved(final MouseEvent e) {
    Preconditions.checkNotNull(e, "Error: mouse event can not be null");

    final IMouseStateChange result = m_state.mouseMoved(e, m_graph);

    m_state = result.getNextState();

    if (result.notifyYFiles()) {
      m_inMouseMoved = true;
      try {
        super.mouseMoved(e);
      } finally {
        m_inMouseMoved = false;
      }
    }
  }
Adds a listener object that is notified about changes in the edit mode.

@param listener The listener object to add.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/editmode/ZyEditMode.java