| Package | com.yworks.graph.drawing |
| Class | public class AbstractStyleInstaller |
| 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 | ||
|---|---|---|---|
|
Predicate function that determines whether this instance can successfully install
the provided item in a subsequent call to
installItem( IModelItem, canvas ). | AbstractStyleInstaller | ||
|
install(canvas:CanvasComponent):void
This implementation does nothing.
| AbstractStyleInstaller | ||
|
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 | ||
| canvasGroupProvider | property |
canvasGroupProvider:ICanvasGroupProvider [read-write]The canvas group provider that will be used for installing the item.
Implementation public function get canvasGroupProvider():ICanvasGroupProvider
public function set canvasGroupProvider(value:ICanvasGroupProvider):void
| _EMPTY | property |
protected var _EMPTY:Array
An empty Array
| canInstall | () | method |
public function canInstall(item:IModelItem, canvas:CanvasComponent):Boolean
Predicate function that determines whether this instance can successfully install
the provided item in a subsequent call to installItem( IModelItem, canvas ).
This is an abstract method that has to be overriden by child classes.
Predicate function that determines whether this instance can successfully install the provided item in a subsequent call toinstallItem(IModelItem,CanvasComponent)
Parameters
item:IModelItem — The item to install.
|
|
canvas:CanvasComponent — The canvas to install the item into.
|
Boolean — Whether a call to installItem(IModelItem,CanvasComponent) can be made.
|
| install | () | method |
public function install(canvas:CanvasComponent):voidThis implementation does nothing.
Called by the framework to let this instance initialize for a given canvas. Parameterscanvas:CanvasComponent — The canvas that will later be used to install items in.
|
| installItem | () | method |
public function installItem(item:IModelItem, canvas:CanvasComponent):ArrayCentral method that performs the installation of an item's visual representation in the canvas.
This is an abstract method that has to be overriden by child classes.
This the main method of the interface that performs the installing of an item's visual representation in the canvas. Parametersitem:IModelItem — 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):voidThis 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.
|