Package | com.yworks.graph.drawing |
Class | public class AbstractStyleInstaller |
Inheritance | AbstractStyleInstaller Object |
Implements | IModelItemInstaller |
Subclasses | EdgeStyleInstaller, LabelStyleInstaller, NodeStyleInstaller, PortStyleInstaller |
Property | Defined By | ||
---|---|---|---|
canvasGroupProvider : ICanvasGroupProvider
The canvas group provider that will be used for installing the item. | AbstractStyleInstaller |
Property | Defined By | ||
---|---|---|---|
_EMPTY : Array
An empty Array
| AbstractStyleInstaller |
Method | Defined By | ||
---|---|---|---|
canInstall(item:Object, canvas:CanvasComponent):Boolean
Predicate function that determines whether this instance can successfully install
the provided item in a subsequent call to installItem( Object, canvas ). | AbstractStyleInstaller | ||
install(canvas:CanvasComponent):void
This implementation does nothing. | AbstractStyleInstaller | ||
installItem(item:Object, canvas:CanvasComponent):Array
Central method that performs the installation of an item's
visual representation in the canvas. | AbstractStyleInstaller | ||
uninstall(canvas:CanvasComponent):void
This implementation does nothing. | AbstractStyleInstaller |
_EMPTY | property |
protected var _EMPTY:Array
An empty Array
canvasGroupProvider | property |
canvasGroupProvider:ICanvasGroupProvider
The canvas group provider that will be used for installing the item.
public function get canvasGroupProvider():ICanvasGroupProvider
public function set canvasGroupProvider(value:ICanvasGroupProvider):void
canInstall | () | method |
public function canInstall(item:Object, canvas:CanvasComponent):Boolean
Predicate function that determines whether this instance can successfully install
the provided item in a subsequent call to installItem( Object, canvas )
.
This is an abstract method that has to be overridden by child classes.
Predicate function that determines whether this instance can successfully install the provided item in a subsequent call toinstallItem(Object,CanvasComponent)
Parameters
item:Object — The item to install.
| |
canvas:CanvasComponent — The canvas to install the item into.
|
Boolean — Whether a call to installItem(Object,CanvasComponent) can be made.
|
install | () | method |
public function install(canvas:CanvasComponent):void
This implementation does nothing.
Called by the framework to let this instance initialize for a given canvas.Parameters
canvas:CanvasComponent — The canvas that will later be used to install items in.
|
installItem | () | method |
public function installItem(item:Object, canvas:CanvasComponent):Array
Central method that performs the installation of an item's visual representation in the canvas.
This is an abstract method that has to be overridden by child classes.
This the main method of the interface that performs the installing of an item's visual representation in the canvas.Parameters
item:Object — The item to install.
| |
canvas:CanvasComponent — The canvas to install the item into.
|
Array — All canvas objects this method has added to the canvas control.
|
uninstall | () | method |
public function uninstall(canvas:CanvasComponent):void
This implementation does nothing.
Called by the framework to let this instance do the clean up for a given canvas that has been initialized ininstall(CanvasComponent)
.
Parameters
canvas:CanvasComponent — The canvas that had been used to install items in.
|