public IMouseState createEdgePressedRightState(final Edge e, final MouseEvent event) {
    final CEdgePressedRightState state = new CEdgePressedRightState(this, m_graph, e, event);

    m_factory.createEdgePressedRightAction().execute(state, event);

    return state;
  }
Creates a new state object when an edge is pressed with the right mouse button.

@param e The edge which was pressed.
@param event The mouse event that caused the state change.
@return The state object that describes the mouse state.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/editmode/CStateFactory.java