Each Diagram has a number of tools that define its behavior when responding to mouse events. These include ClickSelectingTool, DraggingTool, DragSelectingTool, LinkingTool, and ResizingTool, among others.
A ToolManager is the default tool used by a Diagram -- it chooses to run one of the other tools depending on the circumstances.
Class | Description | |
---|---|---|
ClickCreatingTool | The ClickCreatingTool lets the user create a node by clicking where they want the new node to be. | |
ClickSelectingTool | The ClickSelectingTool selects and deselects objects upon a click. | |
DiagramTool | This abstract tool class is the standard base class for all of the predefined tools. | |
DraggingTool | The DraggingTool is used to move or copy selected parts with the mouse. | |
DraggingTool.Info | This simple class provides temporary information about each dragged or copied Part, as values in the DraggingTool.DraggedParts and DraggingTool.CopiedParts dictionaries. | |
DragSelectingTool | The DragSelectingTool lets the user select multiple parts within a rectangular area. | |
DragZoomingTool | The DragZoomingTool lets the user zoom into a diagram by stretching a box to indicate the new contents of the diagram's viewport (the area of the model shown by the DiagramPanel). | |
LinkingBaseTool | This abstract class is the base class for LinkingTool and RelinkingTool. | |
LinkingTool | The LinkingTool lets a user draw a new Link between two ports, using a mouse-drag operation. | |
LinkReshapingTool | The LinkReshapingTool is used to interactively change the route of a Link. | |
PanningTool | The PanningTool supports manual panning, where the user can shift the DiagramPanel's Northwoods.GoXam.DiagramPanel.Position by dragging the mouse. | |
RelinkingTool | The RelinkingTool allows the user to reconnect an existing Link. | |
ReshapingBaseTool | The ReshapingBaseTool abstract class is used to interactively change the shape of a Part. | |
ResizingTool | The ResizingTool is used to interactively change the size of an element. | |
RotatingTool | The RotatingTool is used to interactively change the angle of an element. | |
TextEditingTool | The TextEditingTool is used to let the user interactively edit text in place. | |
ToolManager | This special IDiagramTool is responsible for managing all of the Diagram's mode-less tools. |
Interface | Description | |
---|---|---|
IDiagramTool | This interface specifies the methods the diagram uses to control each tool and the methods used to handle the standard input events processed through the diagram. | |
ITextEditor | This interface manages the text editing interaction performed by the TextEditingTool's TextEditingTool.EditorAdornment. |
Enumeration | Description | |
---|---|---|
DragOverSnapArea | This enumeration controls where the DraggingTool might snap the selection location during dragging. | |
EffectiveCollectionInclusions | This enumeration controls the behavior of DraggingTool.ComputeEffectiveCollection. | |
LinkingDirection | This enumeration lists the possible directions that the user may draw a new link using the LinkingTool. | |
ReshapeBehavior | This enumeration lists the permissible drag directions for a reshape handle. | |
TextEditingReason | Enumerate reasons for calling TextEditingTool.AcceptText. | |
TextEditingStarting | This enum specifies the different ways users can start the TextEditingTool. | |
WheelBehavior | This enumeration controls the behavior of the mouse wheel by DiagramTool.StandardMouseWheel. |