/// <summary> /// Constructor</summary> /// <param name="renderer">Graph renderer</param> /// <param name="graphAdapter">Graph adapter</param> /// <param name="transformAdapter">Transform adapter</param> public D2dGraphNodeEditAdapter( D2dGraphRenderer <TNode, TEdge, TEdgeRoute> renderer, D2dGraphAdapter <TNode, TEdge, TEdgeRoute> graphAdapter, ITransformAdapter transformAdapter) { m_renderer = renderer; m_graphAdapter = graphAdapter; m_transformAdapter = transformAdapter; }
/// <summary> /// Constructor</summary> /// <param name="renderer">Graph renderer</param> /// <param name="graphAdapter">Graph adapter</param> /// <param name="transformAdapter">Transform adapter</param> public D2dGraphEdgeEditAdapter( D2dGraphRenderer <TNode, TEdge, TEdgeRoute> renderer, D2dGraphAdapter <TNode, TEdge, TEdgeRoute> graphAdapter, ITransformAdapter transformAdapter) { m_renderer = renderer; m_graphAdapter = graphAdapter; m_draggingContext = new EdgeDraggingContext(this); }
/// <summary> /// Constructor</summary> /// <param name="renderer">Graph renderer</param> /// <param name="graphAdapter">Graph adapter</param> /// <param name="transformAdapter">Transform adapter</param> public D2dGraphEdgeEditAdapter( D2dGraphRenderer <TNode, TEdge, TEdgeRoute> renderer, D2dGraphAdapter <TNode, TEdge, TEdgeRoute> graphAdapter, ITransformAdapter transformAdapter) { m_renderer = renderer; m_graphAdapter = graphAdapter; m_draggingContext = new EdgeDraggingContext(this); OverRouteCursor = Cursors.Cross; FromPlaceCursor = Cursors.PanWest; ToPlaceCursor = Cursors.PanEast; InadmissibleCursor = Cursors.Cross; }