C# Class nHydrate.Dsl.ViewLinkConnectAction

Handles interaction between the ConnectionBuilder and the corresponding ConnectionTool.
Inheritance: DslDiagrams::ConnectAction
Mostrar archivo Open project: nHydrate/nHydrate

Public Methods

Method Description
GetCursor ( global currentCursor, global::Microsoft.VisualStudio.Modeling.Diagrams diagramClientView, global::Microsoft.VisualStudio.Modeling.Diagrams mousePosition ) : global::System.Windows.Forms.Cursor

Gets the cursor corresponding to the given mouse position.

Changes the cursor to Cursors.No before the first mouse click if the source shape is not valid.

ViewLinkConnectAction ( global::Microsoft.VisualStudio.Modeling.Diagrams diagram )

Constructs a new ViewLinkConnectAction for the given Diagram.

Protected Methods

Method Description
GetConnectionTypes ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement ) : DslDiagrams::ConnectionType[]

Returns the ViewLinkConnectionType associated with this action.

Method Details

GetConnectionTypes() protected method

Returns the ViewLinkConnectionType associated with this action.
protected GetConnectionTypes ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement ) : DslDiagrams::ConnectionType[]
sourceShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
targetShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
return DslDiagrams::ConnectionType[]

GetCursor() public method

Gets the cursor corresponding to the given mouse position.
Changes the cursor to Cursors.No before the first mouse click if the source shape is not valid.
public GetCursor ( global currentCursor, global::Microsoft.VisualStudio.Modeling.Diagrams diagramClientView, global::Microsoft.VisualStudio.Modeling.Diagrams mousePosition ) : global::System.Windows.Forms.Cursor
currentCursor global
diagramClientView global::Microsoft.VisualStudio.Modeling.Diagrams
mousePosition global::Microsoft.VisualStudio.Modeling.Diagrams
return global::System.Windows.Forms.Cursor

ViewLinkConnectAction() public method

Constructs a new ViewLinkConnectAction for the given Diagram.
public ViewLinkConnectAction ( global::Microsoft.VisualStudio.Modeling.Diagrams diagram )
diagram global::Microsoft.VisualStudio.Modeling.Diagrams