@Override
  public void mouseReleased(final MouseEvent e) {
    final IMouseStateChange result = m_state.mouseReleased(e, m_graph);

    m_state = result.getNextState();

    if (result.notifyYFiles()) {
      super.mouseReleased(e);
    }
  }
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