documentationfor yFiles for HTML 3.0.0.2

GraphComponent

A component for displaying and editing an IGraph.

Inheritance Hierarchy
CanvasComponent
GraphComponent
Implemented Interfaces

Remarks

This is a specialized CanvasComponent that can hold, display, and edit an IGraph instance. It provides access to the graph and selection instances.

This class suppports the following Commands.

The ZOOM_TO_CURRENT_ITEM is enabled, if navigationCommandsEnabled is true.

By default, this class sets a plain GraphViewerInputMode as the inputMode to enable basic exploratory interaction with the graph. To enable interactive editing, use a GraphEditorInputMode, instead.

Related Reading in the Developer's Guide

The components that can be used to display and edit a model are discussed in the section The Component for Displaying Graphs.

Related Programming Samples

Graph Viewer
Displays sample graphs from various application domains.
Graph Editor
Shows the graph editing features of the graph component.
01 Creating the View
Introduces the GraphComponent class, the central UI element for working with graphs.

Type Details

yFiles module
view

See Also

Constructors

Properties

Methods

Events