documentationfor yFiles for HTML 2.6

Usages of GraphComponent

Properties

graphComponentin GraphEditorInputModeGets the graphComponent instance this mode is working on or null.
graphComponentin NavigationInputModeGets or sets the graphComponent this mode acts on.
graphComponentin LayoutExecutorGets the control this instance has been created for.
graphComponentin LayoutExecutorAsyncGets the component this instance has been created for.
graphControlin LayoutExecutorAsyncGets the component this instance has been created for.
graphComponentin GraphOverviewComponentGets or sets the client component, that will be used to retrieve the graph from and that will be used for navigating.

Method Parameters

GraphMLSupport (GraphComponent?, )in GraphMLSupportCreates a new instance of this class.
openFile (GraphComponent, StorageLocation?)in GraphMLSupportShows a open file dialog and imports the selected GraphML file into the graph of the provided graphComponent.
registerCommands (GraphComponent)in GraphMLSupportRegisters the OPEN and SAVE commands on the given graphComponent with the current storageLocation.
onGraphComponentChanged (GraphComponent, GraphComponent)in GraphEditorInputModeCalled when the graphComponent property changes.
NavigationInputMode ()in NavigationInputModeInitializes a new instance of the NavigationInputMode class.
onSetCurrentItem (GraphComponent, IModelItem)in NavigationInputModeActually sets the current item property.
selectItem (GraphComponent, IModelItem, boolean)in NavigationInputModeSelects the given item.
setGraphComponent (GraphComponent)in NavigationInputModeSets the graphComponent to use for the various actions.
LayoutExecutor (GraphComponent, ILayoutAlgorithm, )in LayoutExecutorInitializes a new instance of the LayoutExecutor class.
LayoutExecutor (GraphComponent, IGraph, ILayoutAlgorithm, )in LayoutExecutorInitializes a new instance of the LayoutExecutor class.
LayoutExecutorAsync (function(Object):Promise<Object>, GraphComponent, LayoutDescriptor?, LayoutData?, )in LayoutExecutorAsyncCreates a new instance of a layout execution helper that will asynchronously perform the calculations and optionally animate the layout on the given graphComponent.
GraphOverviewComponent (HTMLDivElement, GraphComponent?, )in GraphOverviewComponentCreates a new instance of GraphOverviewComponent using the div element that is optionally bound to the provided graphComponent.
GraphOverviewComponent (GraphComponent?, )in GraphOverviewComponentCreates a new instance that is optionally bound to the provided graphComponent.
GraphOverviewComponent (string, GraphComponent?, )in GraphOverviewComponentCreates a new instance of GraphOverviewComponent using the div element that is specified by the selector and that is optionally bound to the provided graphComponent.