I

IBendCreator

Callback interface for instances that can create bends for an edge and graph.
Inheritance Hierarchy

Remarks

Implementations of this interface may be found in the lookup of IEdge instances. This interface is used by GraphEditorInputMode to create new bends for an edge as soon as the user performs the bend creation gesture.

See Also

API

onCreateBendInputModeDragSegmentFinished

Members

No filters for this type

Methods

Creates a bend at the position supplied at the given graph for the edge whose lookup provided this creator.
abstract

Parameters

context: IInputModeContext
The context for which the bend should be created.
graph: IGraph
The graph, the edge belongs to.
location: Point
The preferred coordinates of the bend.

Return Value

number
The index of the bend in the edge's bends or -1 if no bend has been created.

Constants

A static instance that does not create any bends.

Static Methods

static

Parameters

createBend: function(IInputModeContext, IGraph, Point): number

Return Value

IBendCreator