I

IEdgePortHandleProvider

An interface for classes that can yield IHandle implementations for the source and target ends of an IEdge.
Inheritance Hierarchy

Remarks

This interface will be queried by the default implementation of the IHandleProvider that is in the lookup of an IEdge. It is recommended to use this interface instead of the more generic IHandleProvider interface, because other generic code can then use this interface to gain access to a specific IHandle more easily.

See Also

Developer's Guide

Members

No filters for this type

Methods

Gets an IHandle implementation for one end of the edge.
abstract

Parameters

context: IInputModeContext
The context in which the handle will be used.
sourceHandle: boolean
if set to true the handle for the source side/port should be returned.

Return Value

IHandle
The handle to use for the provided side or null.

Static Methods

Creates an implementation of the interface IEdgePortHandleProvider by using the given function as implementation for its getHandle method.
static

Parameters

getHandle: function(IInputModeContext, boolean): IHandle
A function for IEdgePortHandleProvider's single abstract method getHandle.

Return Value

IEdgePortHandleProvider
An instance of the IEdgePortHandleProvider interface based on the given function.