Packagecom.yworks.graph.drawing
Classpublic class TableNodeStyle
InheritanceTableNodeStyle Inheritance AbstractTableNodeStyle Inheritance Object

Default implementation of ITableNodeStyle that stores the table instance in the style instance.

For this implementation, style instances can not be shared among different node instances.

See also

com.yworks.graph.model.ITable
com.yworks.graph.drawing.ITableNodeStyle


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
  table : ITable
The table which is associated with this style.
TableNodeStyle
  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.
TableNodeStyle
 InheritedtableRenderingOrder : TableRenderingOrder
AbstractTableNodeStyle
Public Methods
 MethodDefined By
  
TableNodeStyle(table:ITable = null, renderer:TableNodeStyleRenderer = null)
Creates a new instance of a TableNodeStyle with the given background style.
TableNodeStyle
  
clone():Object
[override] Creates a clone of this instance.
TableNodeStyle
 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
tableproperty
table:ITable

The table which is associated with this style.


Implementation
    public function get table():ITable
    public function set table(value:ITable):void
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 table property.


Implementation
    public function get tableProvider():ITableProvider

See also

Constructor Detail
TableNodeStyle()Constructor
public function TableNodeStyle(table:ITable = null, renderer:TableNodeStyleRenderer = null)

Creates a new instance of a TableNodeStyle with the given background style.

Parameters
table:ITable (default = null)
 
renderer:TableNodeStyleRenderer (default = null)
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.