Package | com.yworks.graph.drawing |
Class | public class EdgeStyleInstaller |
Inheritance | EdgeStyleInstaller AbstractStyleInstaller Object |
Implements | IModelItemInstaller |
IVisualStyle
in their lookup.
Method | Defined By | ||
---|---|---|---|
Constructor. | EdgeStyleInstaller | ||
canInstall(item:Object, canvas:CanvasComponent):Boolean [override]
Predicate function that determines whether this instance can successfully install
the provided item in a subsequent call to install( Object, CanvasComponent ). | EdgeStyleInstaller | ||
install(canvas:CanvasComponent):void
This implementation does nothing. | AbstractStyleInstaller | ||
installItem(item:Object, canvas:CanvasComponent):Array [override]
Central method that performs the installation of the visual representation of an edge
in the canvas using the IEdgeStyle in the edge's lookup. | EdgeStyleInstaller | ||
uninstall(canvas:CanvasComponent):void
This implementation does nothing. | AbstractStyleInstaller |
EdgeStyleInstaller | () | Constructor |
public function EdgeStyleInstaller()
Constructor.
canInstall | () | method |
override 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 install( Object, CanvasComponent )
.
This implementation checks whether the IEdgeStyle
is available in the lookup of the edge.
Parameters
item:Object — The item to install.
| |
canvas:CanvasComponent — The canvas component to install the item into.
|
Boolean — Whether a call to install( Object, CanvasComponent ) can be made.
|
installItem | () | method |
override public function installItem(item:Object, canvas:CanvasComponent):Array
Central method that performs the installation of the visual representation of an edge
in the canvas using the IEdgeStyle
in the edge's lookup.
This implementation calls IVisualStyle.install
on the style instance
obtained through the lookup.
Parameters
item:Object — The item to install.
| |
canvas:CanvasComponent — The canvas to install the item into.
|
Array — An Array containing all canvas objects this method has added to the canvas component.
|