Packagecom.yworks.graph.model
Interfacepublic interface ISelectionPaintable
Implementors EdgeSelectionDisplayObjectCreator, OrientedRectangleSelectionPaintable, PointSelectionPaintable, RectangularHighlightPaintable, RectangularSelectionPaintable

An interface for objects that can install a visual representation of a selection decoration of an item in the model displayed in a canvas.



Public Methods
 MethodDefined By
  
installSelectionPaintables(userObject:Object, canvas:CanvasComponent, selectionGroup:ICanvasObjectGroup):Array
Creates and installs one or more canvas objects into the canvas that indicate a selection decoration for an item.
ISelectionPaintable
Method Detail
installSelectionPaintables()method
public function installSelectionPaintables(userObject:Object, canvas:CanvasComponent, selectionGroup:ICanvasObjectGroup):Array

Creates and installs one or more canvas objects into the canvas that indicate a selection decoration for an item.

Parameters

userObject:Object — The item to create a selection for.
 
canvas:CanvasComponent — The canvas to add the selection visualization to.
 
selectionGroup:ICanvasObjectGroup — The canvas object group to add the items to.

Returns
Array — An array of canvas objects this instance has installed into the canvas.

See also