Packagecom.yworks.graph.drawing
Classpublic class DynamicTableNodeStyle
InheritanceDynamicTableNodeStyle Inheritance AbstractTableNodeStyle Inheritance Object

Default implementation of AbstractTableNodeStyle that retrieves the table instance from the node's user tag (ITagOwner.tag).

For this implementations, style instances can be shared among different node instances, however, the user tag must be copied.



Public Properties
 PropertyDefined By
 InheritedbackgroundStyle : INodeStyle
The style that is used to draw the background of the table.
AbstractTableNodeStyle
 InheritedstyleRenderer : IStyleRenderer
[read-only] Gets the renderer implementation that has been supplied to this instance upon creation.
AbstractTableNodeStyle
  tableProvider : ITableProvider
[override] [read-only] The implementation of the ITableProvider interface that can yield a table object for each item that will be assigned this style.
DynamicTableNodeStyle
 InheritedtableRenderingOrder : TableRenderingOrder
AbstractTableNodeStyle
Public Methods
 MethodDefined By
  
Creates a new instance.
DynamicTableNodeStyle
  
clone():Object
[override] Creates a clone of this instance.
DynamicTableNodeStyle
 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.
AbstractTableNodeStyle
Property Detail
tableProviderproperty
tableProvider:ITableProvider  [read-only] [override]

The implementation of the ITableProvider interface that can yield a table object for each item that will be assigned this style.

This implementation returns a provider which returns the value of the associated node's user tag.


Implementation
    public function get tableProvider():ITableProvider

See also

Constructor Detail
DynamicTableNodeStyle()Constructor
public function DynamicTableNodeStyle(renderer:TableNodeStyleRenderer = null)

Creates a new instance.

Parameters
renderer:TableNodeStyleRenderer (default = null) — The renderer to use. If none is provided a new instance of TableNodeStyleRenderer is used.
Method Detail
clone()method
override public function clone():Object

Creates a clone of this instance.

The clone's table will be a clone of this instance's table.

Returns
Object — A clone of this instance.