GoDiagram Win Reference
GoToolLinking Class Methods


For a list of all members of this type, see GoToolLinking members.

Public Methods
 NameDescription
Public MethodCanStartThis predicate should be true if this tool can be activated to be the view's current tool. (Inherited from Northwoods.Go.GoTool)
Public MethodDoCancelMouseOverridden. Clean up the link state before stopping this tool.  
Public MethodDoCancelRelinkThis is called by DoCancelMouse when a relinking was cancelled by the user.  
Public MethodDoClickAny tool can call this method in order to implement the standard click behavior. (Inherited from Northwoods.Go.GoTool)
Public MethodDoKeyDownThe view calls this method when the user presses a key on the keyboard; all of the event information is provided by the LastInput property. (Inherited from Northwoods.Go.GoTool)
Public MethodDoLinkingThis method is called by DoMouseMove to find the nearest valid port and adjust the temporary link according to where the given point is.  
Public MethodDoMouseDownThe view calls this method upon a mouse down event; all of the event information is provided by the LastInput property. (Inherited from Northwoods.Go.GoTool)
Public MethodDoMouseHoverThe view calls this method after the mouse rests for a while at a point; all of the event information is provided by the LastInput property. (Inherited from Northwoods.Go.GoTool)
Public MethodDoMouseMoveOverridden. A mouse move during a linking operation involves calling DoLinking and autoscrolling the view.  
Public MethodDoMouseUpOverridden. A mouse up event ends the linking operation.  
Public MethodDoMouseWheelThe view calls this method as the mouse wheel rotates; all of the event information is provided by the LastInput property. (Inherited from Northwoods.Go.GoTool)
Public MethodDoNewLinkThis is called by DoMouseUp in order to create a new link.  
Public MethodDoNoNewLinkThis is called by DoMouseUp or DoCancelMouse when no new link was drawn by the user.  
Public MethodDoNoRelinkThis is called by DoMouseUp or DoCancelMouse when an existing link was purposely not reconnected by the user to any port.  
Public MethodDoRelinkThis is called by DoMouseUp in order to reconnect the existing link.  
Public MethodDoSelectAny tool can call this method in order to implement the standard selection behavior for a user click. (Inherited from Northwoods.Go.GoTool)
Public MethodIsBeyondDragSizeDetermine if the mouse has gone beyond the DragSize distance to be considered a drag instead of a sloppy click. (Inherited from Northwoods.Go.GoTool)
Public MethodIsValidFromPortThis predicate is called to decide if it is OK for a user to start drawing a link from a given port.  
Public MethodIsValidLinkThis predicate is called during the process of finding the nearest port that the user can link to.  
Public MethodIsValidToPortThis predicate is called to decide if it is OK for a user to start drawing a link backwards at a given port that will be the destination for the link.  
Public MethodPickNearestPortFind the valid document port nearest to a given point.  
Public MethodPickPortFind a port in the document at the given point.  
Public MethodPortPointReturn a PointF representing the position of the port.  
Public MethodStartThis method is called when this tool becomes the view's current tool. (Inherited from Northwoods.Go.GoTool)
Public MethodStartNewLinkStart the process of drawing a new link from a given port.  
Public MethodStartRelinkStart the process of reconnecting an existing link at a given port.  
Public MethodStartTransactionStart a transaction on the view. (Inherited from Northwoods.Go.GoTool)
Public MethodStopOverridden. Cleaning up from any kind of linking operation involves removing any temporary ports or link from the view and stopping the current transaction.  
Public MethodStopToolThis method just causes the view's current tool to be stopped and to start the view's default tool instead as the current tool. (Inherited from Northwoods.Go.GoTool)
Public MethodStopTransactionStop the current transaction, aborting it if TransactionResult is null. (Inherited from Northwoods.Go.GoTool)
Top
Protected Methods
 NameDescription
Protected MethodCreateTemporaryLinkThis is responsible for creating a temporary link when the user is drawing a new link.  
Protected MethodCreateTemporaryPortThis is responsible for creating a temporary port for the linking process.  
Protected MethodImitatePortChange the endport's behavior for link routing to be like the given port iport.  
Top
See Also

Reference

GoToolLinking Class
Northwoods.Go Namespace

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback