C

WebGLFocusIndicatorManager

A specialization of the FocusIndicatorManager<T> class that delegates its work to WebGLGraphModelManager.

Remarks

If this class is used in conjunction with WebGLGraphModelManager installed in a GraphComponent, it will delegate the focus rendering to that graph model manager. WebGLGraphModelManager provides an efficient focus indication implementation for nodes, edges, and labels rendered with WebGL2.

Members

Show:

Constructors

Creates a new instance.
If a new FocusIndicatorManager<T> instance is set to a GraphComponent's focusIndicatorManager property, the old instance is uninstalled and the new instance is installed automatically.

Parameters

Properties

Gets the canvas instance this instance is managing.
The canvas must be set to a non-null value in install and set back to null in uninstall.
final
Gets or sets the style to use for the edge label focus rendering.
final
Gets or sets the style to use for the edge focus rendering.
final
Gets or sets whether this ModelManager<T> is enabled.

If the manager is disabled, it will not install the IRenderTreeElements into the associated CanvasComponent.

The default is true, i.e. this manager is enabled by default.

final

Property Value

true if enabled; false otherwise.
Gets or sets a value indicating whether the container this manager is installed in currently is focused.
final

Property Value

true if the container is currently focused; false otherwise. Depending on the showFocusPolicy, this will influence the visibility of the rendering.
Gets or sets the focused item, updates the canvas, and fires the corresponding event.
final

Property Value

The focused item, which can be null, when no item has or should have focus.

See Also

Developer's Guide
Gets or sets the style to use for the node label focus rendering.
final
Gets or sets the style to use for the node focus rendering.
final
Gets or sets the policy for when the focus indicator should be visible.
The default is WHEN_USING_KEYBOARD.
conversionfinal

Property Value

The policy. Changing this property influences the visibility of the rendering depending on the current value of the focused and usingKeyboard properties.

See Also

Developer's Guide
Gets or sets a value that determines whether the user is currently using the keyboard to control the focusedItem.
When showFocusPolicy is set to WHEN_USING_KEYBOARD, this property controls whether to show the focus indicator. Note that focused needs to be set to true, too, in order for the indication to be displayed. This property gets automatically reset to false, when the user interacts with a pointer device and pointer-down is triggered.
final

See Also

Developer's Guide
API
showFocusPolicy

Methods

Overridden to do nothing.
protected

Parameters

item: IModelItem
The item to add, which is ignored in this implementation.

Return Value

IRenderTreeElement
Always returns null as no action is performed.
Called by installItem to retrieve the renderer for a given item.
This implementation uses the lookup of the item to retrieve an IFocusRenderer<T> instance.
protected

Parameters

item: IModelItem
The item to find a renderer for.

Return Value

IObjectRenderer<IModelItem>
A renderer or null
Called by installItem to retrieve the render tree group for a given item.
This implementation always returns the focusGroup of the canvasComponent of this instance.
protected

Parameters

item: IModelItem
The item to find a render tree group for.

Return Value

IRenderTreeGroup
An IRenderTreeGroup or null
Installs this instance in the given CanvasComponent instance.

If this manager instance is set to a CanvasComponent instance using one of the properties focusIndicatorManager, selectionIndicatorManager, or highlightIndicatorManager, this method is called automatically.

In all other cases, this method must be called before using this manager instance.

Overriders must either call the base implementation or set the canvasComponent.

final

Parameters

canvas: CanvasComponent
The CanvasComponent instance to install this manager instance in.
Installs a member of the collection into the canvas using the IObjectRenderer<T> which is returned by getRenderer.
protected

Parameters

item: IModelItem
The member to install.

Return Value

IRenderTreeElement
The new render tree element or null if the item was not installed.
Called when this manager gets disabled.
Called when this manager gets enabled.
Called when the focused property has changed.
This implementation determines whether to actually show the focus depending on the current settings of showFocusPolicy, usingKeyboard and focused
protected

See Also

API
focused
Called when the focused item has changed.
This method raises the focused-item-changed event. Subclasses overriding this method should make sure to invoke the superclass implementation.
protected

Parameters

evt: any
a description of the event

See Also

API
focusedItem, focused-item-changed
Called when the usingKeyboard property has changed.
This implementation determines whether to actually show the focus depending on the current settings of showFocusPolicy, usingKeyboard and focused.
protected

See Also

API
usingKeyboard
Overridden to do nothing.
protected

Parameters

item: IModelItem
The item to remove.
Uninstalls this instance from the given CanvasComponent instance.

If this manager instance has been set to a CanvasComponent instance using one of the properties focusIndicatorManager, selectionIndicatorManager, or highlightIndicatorManager, this method is called automatically when the property value is changed.

In all other cases, this method must be called when this manager instance is not used anymore.

Overriders must either call the base implementation or set the canvasComponent to null.

final

Parameters

canvas: CanvasComponent
The CanvasComponent to remove this manager instance from.
Removes the given IRenderTreeElement.
protected

Parameters

renderTreeElement: IRenderTreeElement
The render tree element that has been associated with the renderer.

See Also

API
remove

Events

Occurs when the focusedItem property has been changed.

Properties of

function(any, this): void