A complex IInputMode that can be used in a CanvasControl
or GraphControl to edit an IGraph instance.
Namespace: yWorks.yFiles.UI.InputAssembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.1.0.2
Syntax
| C# |
|---|
public class GraphEditorInputMode : MainInputMode |
| Visual Basic |
|---|
Public Class GraphEditorInputMode _ Inherits MainInputMode |
Remarks
This class delegates most of the work to minor IInputMode implementations.
However it contains a number of properties that influence the general behavior, too.
This class contains a number of public methods that can be used to programmatically perform the corresponding actions, too.
Setting the NodeCreator to another instance or nullNothingnullptra null reference (Nothing in Visual Basic) changes the way nodes are created. Also the various minor IInputMode instances can be disabled, to change the behavior, too.
- MarqueeSelectableItemsDetermines the type of the items that can be selected with the marquee
- ClickSelectableItemsDetermines the type of the items that can be selected with the mouse
- DetailSelectionRecognizerDetermines when to use a detail click selection mode, which allows for selecting the item that is directly under the mouse without taking into account the ClickHitTestOrder.
- ClickHitTestOrderDetermines the priorities for hit tests during mouse clicks to determine which items should be selected.
- MovableItemsDetermines the type of the items that can be moved with the mouse
- ShowHandleItemsDetermines the type of the items whose IHandles should be shown and movable by the HandleInputMode
- DeletableItemsDetermines the type of the items that can be deleted by DeleteSelection()()()()
- LabelEditableItemsDetermines the type of the items that can have their labels edited.
- GroupSelectionAllowedDetermines whether this input mode should allow grouping the current selection.
- UngroupSelectionAllowedDetermines whether this input mode should allow ungrouping the current selection.
- ClearSelectionAllowedDetermines whether this input mode should allow clearing the selection.
- ClipboardOperationsAllowedDetermines whether this input mode should enable graph clipboard operations.
- LabelEditingAllowedDetermines whether this input mode should allow editing labels.
- ReparentNodesAllowedDetermines whether this input mode should allow reparenting nodes to other groups.
- NodeCreationAllowedDetermines whether this input mode should allow creating new nodes via simple mouse clicks.
- EdgeCreationAllowedDetermines whether the CreateEdgeInputMode should be Enabled to allow for creating new edges.
- BendCreationAllowedDetermines whether the CreateBendInputMode should be Enabled to allow for creating new bends.
- EnteringGroupsAllowedDetermines whether the mode allows for entering group nodes in IFoldedGraph views.
- ExitingGroupAllowedDetermines whether the mode allows for exiting the current group node in IFoldedGraph views.
- CollapsingGroupsAllowedDetermines whether the mode allows for collapsing group nodes in IFoldedGraph views.
- ExpandingGroupsAllowedDetermines whether the mode allows for expanding group nodes in IFoldedGraph views.
- ShouldInstallCommand(ICommand)Determines which of the built-in ICommands this input mode should provide and install.
This class contains a number of public methods that can be used to programmatically perform the corresponding actions, too.
Setting the NodeCreator to another instance or nullNothingnullptra null reference (Nothing in Visual Basic) changes the way nodes are created. Also the various minor IInputMode instances can be disabled, to change the behavior, too.
Related Reading in the Developer's Guide
Related Demo Applications
Inheritance Hierarchy
System..::..Object
yWorks.Canvas.Input..::..AbstractInputMode
yWorks.Canvas.Input..::..AbstractConcurrentInputMode
yWorks.Canvas.Input..::..MultiplexingInputMode
yWorks.Canvas.Input..::..MainInputMode
yWorks.yFiles.UI.Input..::..GraphEditorInputMode
yWorks.Canvas.Input..::..AbstractInputMode
yWorks.Canvas.Input..::..AbstractConcurrentInputMode
yWorks.Canvas.Input..::..MultiplexingInputMode
yWorks.Canvas.Input..::..MainInputMode
yWorks.yFiles.UI.Input..::..GraphEditorInputMode