Packagecom.yworks.graph.drawing
Classpublic class CollapsibleNodeStyleDecorator
InheritanceCollapsibleNodeStyleDecorator Inheritance Object
Implements ICollapsibleNodeStyleDecorator



Public Properties
 PropertyDefined By
  buttonLocationParameter : ILabelModelParameter
An ILabelModelParameter that determines the placement of the button for toggling the expanded state.
CollapsibleNodeStyleDecorator
  collapsedIcon : IIcon
Yields the icon to use for displaying the button on a collapsed group node.
CollapsibleNodeStyleDecorator
  expandedIcon : IIcon
Yields the icon to use for displaying the button on an expanded group node.
CollapsibleNodeStyleDecorator
  insets : Rectangle
Yields the insets to use for the IInsetsProvider that will be reported by the CollapsibleNodeStyleDecoratorRenderer's ILookup.
CollapsibleNodeStyleDecorator
  styleRenderer : IStyleRenderer
[read-only]
CollapsibleNodeStyleDecorator
  wrapped : INodeStyle
CollapsibleNodeStyleDecorator
Public Methods
 MethodDefined By
  
Initializes a new instance.
CollapsibleNodeStyleDecorator
  
clone():Object
CollapsibleNodeStyleDecorator
  
install(canvas:CanvasComponent, group:ICanvasObjectGroup, modelItem:IModelItem):Array
CollapsibleNodeStyleDecorator
Protected Methods
 MethodDefined By
  
createClone():Object
CollapsibleNodeStyleDecorator
Property Detail
buttonLocationParameterproperty
buttonLocationParameter:ILabelModelParameter

An ILabelModelParameter that determines the placement of the button for toggling the expanded state.

The ILabelModelParameter should support labels bound to an INode because the button will be positioned as if it was an ILabel owned by the INode that uses this style.


Implementation
    public function get buttonLocationParameter():ILabelModelParameter
    public function set buttonLocationParameter(value:ILabelModelParameter):void
collapsedIconproperty 
collapsedIcon:IIcon

Yields the icon to use for displaying the button on a collapsed group node.


Implementation
    public function get collapsedIcon():IIcon
    public function set collapsedIcon(value:IIcon):void
expandedIconproperty 
expandedIcon:IIcon

Yields the icon to use for displaying the button on an expanded group node.


Implementation
    public function get expandedIcon():IIcon
    public function set expandedIcon(value:IIcon):void
insetsproperty 
insets:Rectangle

Yields the insets to use for the IInsetsProvider that will be reported by the CollapsibleNodeStyleDecoratorRenderer's ILookup.

This effectively influences the way the bounds of a group node are being calculated. The default IGroupBoundsCalculator implementation will use these insets to determine the minimum size of a group node given a set of contained nodes.


Implementation
    public function get insets():Rectangle
    public function set insets(value:Rectangle):void
styleRendererproperty 
styleRenderer:IStyleRenderer  [read-only]


Implementation
    public function get styleRenderer():IStyleRenderer
wrappedproperty 
wrapped:INodeStyle


Implementation
    public function get wrapped():INodeStyle
    public function set wrapped(value:INodeStyle):void
Constructor Detail
CollapsibleNodeStyleDecorator()Constructor
public function CollapsibleNodeStyleDecorator(decoratedStyle:INodeStyle = null)

Initializes a new instance. If no style instance is provided that should be decorated by the new instance, a ShapeNodeStyle instance is used.

Parameters
decoratedStyle:INodeStyle (default = null) — The style to be decorated.
Method Detail
clone()method
public function clone():Object

Returns
Object
createClone()method 
protected function createClone():Object

Returns
Object
install()method 
public function install(canvas:CanvasComponent, group:ICanvasObjectGroup, modelItem:IModelItem):Array

Parameters

canvas:CanvasComponent
 
group:ICanvasObjectGroup
 
modelItem:IModelItem

Returns
Array