| Package | com.yworks.graph.drawing |
| Interface | public interface ICollapsibleNodeStyleDecorator extends INodeStyle, IVisualStyle, ICloneable |
| Implementors | CollapsibleNodeStyleDecorator |
CollapsibleNodeStyleDecoratorRenderer
to describe the way a node should be styled to support a collapse/expand button.
CollapsibleNodeStyleDecorator is a convenient default implementation of this interface.
This style can be used to decorate any existing INodeStyle to support
the IFoldedGraph's expand and collapse
operations that are provided by the FoldingManager visually and interactively.
See also
| Property | Defined By | ||
|---|---|---|---|
| buttonLocationParameter : ILabelModelParameter [read-only]
An ILabelModelParameter that determines the placement of the button for toggling the
expanded state. | ICollapsibleNodeStyleDecorator | ||
| collapsedIcon : IIcon [read-only]
Yields the icon to use for displaying the button on a collapsed
group node. | ICollapsibleNodeStyleDecorator | ||
| expandedIcon : IIcon [read-only]
Yields the icon to use for displaying the button on an expanded
group node. | ICollapsibleNodeStyleDecorator | ||
| insets : Rectangle [read-only]
Yields the insets to use for the IInsetsProvider that will be reported
by the CollapsibleNodeStyleDecoratorRenderer's ILookup. | ICollapsibleNodeStyleDecorator | ||
![]() | styleRenderer : IStyleRenderer [read-only]
Gets the renderer implementation that has been supplied to
this instance upon creation. | IVisualStyle | |
| wrapped : INodeStyle [read-only]
The wrapped node style that will be used to perform the actual rendering of the node. | ICollapsibleNodeStyleDecorator | ||
| buttonLocationParameter | property |
buttonLocationParameter:ILabelModelParameter [read-only]
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.
public function get buttonLocationParameter():ILabelModelParameter| collapsedIcon | property |
collapsedIcon:IIcon [read-only] Yields the icon to use for displaying the button on a collapsed group node.
public function get collapsedIcon():IIcon| expandedIcon | property |
expandedIcon:IIcon [read-only] Yields the icon to use for displaying the button on an expanded group node.
public function get expandedIcon():IIcon| insets | property |
insets:Rectangle [read-only]
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.
public function get insets():Rectangle| wrapped | property |
wrapped:INodeStyle [read-only] The wrapped node style that will be used to perform the actual rendering of the node.
public function get wrapped():INodeStyle