Packagecom.yworks.graph.drawing
Classpublic class DelegatingStyle
ImplementsINodeStyle

A style that wraps another style. The corrsponding renderer renders the wrapped style instance.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
  
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.
DelegatingStyle
Property detail
styleRendererproperty
styleRenderer:IStyleRenderer  [read-only]

Gets the renderer implementation that has been supplied to this instance upon creation.

Implementation
    public function get styleRenderer():IStyleRenderer
wrappedproperty 
wrapped:INodeStyle  [read-write]

Provides access to the wrapped node style instance by reference.

Implementation
    public function get wrapped():INodeStyle
    public function set wrapped(value:INodeStyle):void
Constructor detail
DelegatingStyle()constructor
public function DelegatingStyle(wrapped:INodeStyle, renderer:DelegatingStyleRenderer = null)

Creates a new wrapping style that wraps the given style.

Parameters
wrapped:INodeStyle — The wrapped style
 
renderer:DelegatingStyleRenderer (default = null) — The renderer that will render the wrapped style.
Method detail
clone()method
public function clone():Object

Creates a clone of this instance.

Returns
Object — A clone of this instance.
createClone()method 
public function createClone():DelegatingStyle

Creates the cloned style instance

Returns
DelegatingStyle

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.

Returns
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.