I

IClickListener

A simple interface that can be used to react to clicks on regions of INodeStyles etc.
Inheritance Hierarchy

Remarks

GraphEditorInputMode will query the IModelItem's lookup method for this interface if it has detected clicks. If the item yields an instance of this interface and the click was inside the getHitTestable, then onClicked is invoked.

See Also

Developer's Guide

API

GraphEditorInputMode, CollapsibleNodeStyleDecorator

Members

No filters for this type

Methods

Gets an IHitTestable that can be used to check if onClicked should be invoked.
abstract

Return Value

IHitTestable
A hit testable that can determine whether onClicked should be invoked by a given click.

See Also

Developer's Guide
Called by the framework to indicate that the IModelItem has been clicked by the user at the specified location.
This method is called by click for the IModelItems that yielded an instance of this interface.
abstract

Parameters

context: IInputModeContext
The context to use for the click operation.
location: Point
The location of the click

See Also

Developer's Guide

Static Methods

Creates an implementation of the interface IClickListener from the given definition.
The given object must contain exactly the abstract members of the IClickListener interface. No member may be omitted and no additional members can be added. While additional custom members can later be added directly on the instance, this is discouraged.
static

Parameters

Return Value

IClickListener
An instance of the IClickListener interface based on the given definition.