Package | com.yworks.graph.drawing |
Class | public class AbstractStyle |
Inheritance | AbstractStyle Object |
Implements | IVisualStyle |
Subclasses | AbstractEdgeStyle, SimplePortStyle |
Property | Defined By | ||
---|---|---|---|
styleRenderer : IStyleRenderer [read-only]
Gets the renderer implementation that has been supplied to
this instance upon creation. | AbstractStyle |
Method | Defined By | ||
---|---|---|---|
AbstractStyle(styleRenderer:IStyleRenderer)
Constructor sets the style renderer. | AbstractStyle | ||
clone():Object
Creates a clone of this instance. | AbstractStyle | ||
Prepares the rendering of an IModelItem in a CanvasComponent by
adding ICanvasObject's to the provided canvas. | AbstractStyle |
styleRenderer | property |
styleRenderer:IStyleRenderer
[read-only] Gets the renderer implementation that has been supplied to this instance upon creation.
public function get styleRenderer():IStyleRenderer
AbstractStyle | () | Constructor |
public function AbstractStyle(styleRenderer:IStyleRenderer)
Constructor sets the style renderer.
ParametersstyleRenderer:IStyleRenderer — the style renderer
|
clone | () | method |
public function clone():Object
Creates a clone of this instance.
ReturnsObject — A clone of this instance.
|
install | () | method |
public function install(canvas:CanvasComponent, group:ICanvasObjectGroup, modelItem:IModelItem):Array
Prepares the rendering of an IModelItem
in a CanvasComponent
by
adding ICanvasObject
's to the provided canvas.
Implementations may add zero or more ICanvasObject
instances to
the given CanvasComponent
. The group
parameter
can be used as a hint for implementations. They can add their newly created
canvas objects to the given group. However they are not obliged to do that.
Parameters
canvas:CanvasComponent — The canvas to install the canvas objects in.
| |
group:ICanvasObjectGroup — A hint that tells the implementation where to add the canvas objects.
| |
modelItem:IModelItem — The item to install a visual representation for.
|
Array — An array of zero or more canvas objects that have been installed
in the canvas by this method or null if nothing was installed.
|