public IMouseState createNodeDraggedLeftState(
      final Node n, final MouseEvent event, final double xDist, final double yDist) {
    final CNodeDraggedLeftState<NodeType, EdgeType> state =
        new CNodeDraggedLeftState<NodeType, EdgeType>(this, m_graph, n, event, xDist, yDist);

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

    return state;
  }
Creates a new state object when a node is dragged.

@param n The node which is dragged
@param xDist The x distance which the node will be dragged by.
@param yDist The y distance which the node will be dragged by.
@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