documentationfor yFiles for HTML 3.0.0.3

Interface for a handle that represents a draggable, point-like structure.

Remarks

Typical use cases for handles are draggable items that are only represented by a location, e.g., ports, bends, or reshape handles.

The visual appearance of a handle is implemented by the handlesRenderer. The renderer defaults to applying the yfiles-handle-template CSS class for the base visual templates for handles (and specific template classes for specific handle types), and the yfiles-handle CSS class for every rendered handle. Additionally, resize handles have one or two of the following classes depending on their location: yfiles-handle-top, yfiles-handle-right, yfiles-handle-bottom, yfiles-handle-left.

The HandleInputMode manages visualization and interaction with IHandles. A drag on the handle will trigger the invocation of initializeDrag, zero or more handleMove calls, and will be finalized by either dragFinished or cancelDrag.

IHandle implementations are added to the CanvasComponent by providing them through IHandleProvider, IReshapeHandleProvider, or more general through the ILookup mechanism. The GraphEditorInputMode queries the different providers and passes the handles to its HandleInputMode.

Related Reading in the Developer's Guide

An overview of the different CSS styling options is presented in detail in the section CSS Styling of Handles .

Related Programming Samples

Reshape Handle Provider Configuration
Shows how resizing of nodes can be customized.
Reshape Handle Provider
Shows how to add resize handles to ports.

Type Details

yFiles module
view

See Also

Properties

Methods

Static Methods