documentationfor yFiles for HTML 2.6

Usages of IGraphSelection

Properties

graphSelectionin GraphInputModeGets the graph selection from the inputModeContext.
graphSelectionin MoveLabelInputModeGets the IGraphSelection this mode is acting upon.
graphSelectionin NavigationInputModeGets or sets the IGraphSelection this mode operates on.
selectionin GraphComponentGets or sets the selection model that is used for this control.

Method Return Values

createSelection ()in GraphComponentFactory method for the selection property.

Method Parameters

createDefaultCopyFilter (IGraphSelection, IGraph)in GraphClipboardCreates a predicate for use in the onCopy method.
createDefaultCutFilter (IGraphSelection, IGraph)in GraphClipboardCreates a predicate for use in the cut method.
createDefaultDuplicateFilter (IGraphSelection, IGraph)in GraphClipboardCreates a predicate for use in the duplicate method.
createSelectionFilter (IGraphSelection, IGraph)in GraphClipboardCreates a predicate for use in the cut and onCopy methods.
pasteAndSelect (IGraph, IGraphSelection)in GraphClipboardPastes the clipboardGraph's contents into the targetGraph, selecting all pasted elements.
onGraphSelectionChanged (IGraphSelection, IGraphSelection)in GraphEditorInputModeCalled when the GraphSelection property changes.
GraphComponent (HTMLDivElement, )in GraphComponentCreates a new instance of the GraphComponent in the given div element.
GraphComponent ()in GraphComponentCreates a new instance of the GraphComponent.
GraphComponent (string, )in GraphComponentCreates a new instance of GraphComponent using the div element that is specified by the selector.

Implementing Types

GraphSelectionAn IGraphSelection implementation based on DefaultSelectionModel<T>s for each item type.