Packagecom.yworks.graph.model
Interfacepublic interface ISelectionPaintable
ImplementorsOrientedRectangleSelectionPaintable, 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 IPaintables 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