documentationfor yFiles for HTML 3.0.0.4

IReparentNodeHandler

Interface used for implementations that recognize, approve, and disapprove node reparenting gestures, as well as actually perform the reparenting.

Inheritance Hierarchy
IReparentNodeHandler

Remarks

If possible, it's recommended to rather inherit class ReparentNodeHandler as it provides more convenience for determining whether a gesture is a reparent gesture.

Implementations of this interface are meant to be registered at the reparentNodeHandler property and are queried from the IInputModeContext by code that wants to reparent a node. Specifically, this is used by default to reparent nodes during the dragging of nodes.

During a drag gesture this interface is queried if the gesture is generally a reparent gesture, the user may detach the dragged node from its current parent and if a potential new parent is valid.

Related Programming Samples

Reparent Handler
Shows how reparenting of nodes can be customized.

Type Details

yFiles module
view

Methods

Static Methods