| Package | com.yworks.graph.drawing |
| Class | public class DelegatingStyle |
| Inheritance | DelegatingStyle Object |
| Implements | INodeStyle |
| Property | Defined By | ||
|---|---|---|---|
| styleRenderer : IStyleRenderer [read-only]
Gets the renderer implementation that has been supplied to
this instance upon creation. | DelegatingStyle | ||
| wrapped : INodeStyle
Provides access to the wrapped node style instance by reference. | DelegatingStyle | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new wrapping style that wraps the given style. | DelegatingStyle | ||
clone():Object
Creates a clone of this instance. | DelegatingStyle | ||
Creates the cloned style instance
| DelegatingStyle | ||
Prepares the rendering of an IModelItem in a CanvasComponent by
adding ICanvasObject's to the provided canvas. | DelegatingStyle | ||
| styleRenderer | property |
styleRenderer:IStyleRenderer [read-only] Gets the renderer implementation that has been supplied to this instance upon creation.
public function get styleRenderer():IStyleRenderer| wrapped | property |
wrapped:INodeStyleProvides access to the wrapped node style instance by reference.
public function get wrapped():INodeStyle public function set wrapped(value:INodeStyle):void| DelegatingStyle | () | Constructor |
public function DelegatingStyle(wrapped:INodeStyle, renderer:DelegatingStyleRenderer = null)Creates a new wrapping style that wraps the given style.
Parameterswrapped:INodeStyle — The wrapped style
| |
renderer:DelegatingStyleRenderer (default = null) — The renderer that will render the wrapped style.
|
| clone | () | method |
public function clone():ObjectCreates a clone of this instance.
ReturnsObject — A clone of this instance.
|
| createClone | () | method |
public function createClone():DelegatingStyleCreates the cloned style instance
ReturnsDelegatingStyle |
See also
| 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.
|