Packagecom.yworks.graph.drawing
Classpublic class FilterNodeStyleDecorator
InheritanceFilterNodeStyleDecorator Inheritance DelegatingNodeStyle Inheritance Object

A decorating node style to add render filter to the delegate.

Default MXML Propertywrapped



Public Properties
 PropertyDefined By
  filters : Array
An Array containing the filter that shall be used in the renderer.
FilterNodeStyleDecorator
 InheritedstyleRenderer : IStyleRenderer
[read-only] Gets the renderer implementation that has been supplied to this instance upon creation.
DelegatingNodeStyle
  wrapped : IVisualStyle
The style which is wrapped by this FilterNodeStyleDecorator instance.
FilterNodeStyleDecorator
Protected Properties
 PropertyDefined By
 Inherited_wrapped : INodeStyle
The wrapped style
DelegatingNodeStyle
Public Methods
 MethodDefined By
  
FilterNodeStyleDecorator(wrapped:INodeStyle = null, filters:Array = null, renderer:IStyleRenderer = null)
Creates a new instance which wraps the given style and uses the given renderer.
FilterNodeStyleDecorator
  
addFilter(filter:BitmapFilter):void
Add the given filter to the existing Array of filters.
FilterNodeStyleDecorator
  
clone():Object
[override] Subclasses must override this method to return a clone of their instances.
FilterNodeStyleDecorator
 Inherited
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.
DelegatingNodeStyle
Property Detail
filtersproperty
filters:Array

An Array containing the filter that shall be used in the renderer.


Implementation
    public function get filters():Array
    public function set filters(value:Array):void
wrappedproperty 
wrapped:IVisualStyle

The style which is wrapped by this FilterNodeStyleDecorator instance.


Implementation
    public function get wrapped():IVisualStyle
    public function set wrapped(value:IVisualStyle):void
Constructor Detail
FilterNodeStyleDecorator()Constructor
public function FilterNodeStyleDecorator(wrapped:INodeStyle = null, filters:Array = null, renderer:IStyleRenderer = null)

Creates a new instance which wraps the given style and uses the given renderer.

If the first parameters is null a ShapeNodeStyle using it's default configuration is used.

Parameters
wrapped:INodeStyle (default = null) — The style to wrap.
 
filters:Array (default = null) — The filters to use.
 
renderer:IStyleRenderer (default = null) — The renderer to use.
Method Detail
addFilter()method
public function addFilter(filter:BitmapFilter):void

Add the given filter to the existing Array of filters.

Parameters

filter:BitmapFilter — The filter to add.

clone()method 
override public function clone():Object

Subclasses must override this method to return a clone of their instances. Creates a clone of this instance.

Returns
Object — A clone of this instance.