An interface for objects that can install a visual representation of a selection decoration of an item in the model displayed in a canvas.
Remarks
This interface is a tagging sub interface of the ICanvasObjectInstaller. This interface is used for lookup operations.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.ISelectionIndicatorInstaller
See Also
SelectionIndicatorManager<T>,
IHighlightIndicatorInstaller,
Indicator Installer,
Customizing Indicator Templates
Methods
This the main method of the interface that performs the installation of an item's visual representation in the canvas by adding ICanvasObjects.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - ICanvasContext
- The context that contains the information required to install the visual representation.
- group - ICanvasObjectGroup
- The canvas object group to add the newly generated ICanvasObject to.
- item - Object
- The item to install.
Returns
- ↪ICanvasObject
- The newly generated ICanvasObject for the item's visual representation.
null
if nothing was installed.
See Also
Defined in
Static Methods
create
(addCanvasObject: function(ICanvasContext, ICanvasObjectGroup, any):ICanvasObject) : ISelectionIndicatorInstallerCreates an implementation of the interface ISelectionIndicatorInstaller by using the given function as implementation for its addCanvasObject method.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- addCanvasObject - function(ICanvasContext, ICanvasObjectGroup, any):ICanvasObject
- A function for ISelectionIndicatorInstaller's single abstract method addCanvasObject.
Returns
- ↪ISelectionIndicatorInstaller
- An instance of the ISelectionIndicatorInstaller interface based on the given function.