Packagecom.yworks.graph.drawing
Classpublic class AbstractTableNodeStyle
InheritanceAbstractTableNodeStyle Inheritance Object
Implements ITableNodeStyle
Subclasses DynamicTableNodeStyle, TableNodeStyle

Abstract base class for TableNodeStyle and DynamicTableNodeStyle.

Superclasses have to override tableProvider.

See also

ITableNodeStyle
TableNodeStyle
DynamicTableNodeStyle


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

The style that is used to draw the background of the table.


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

Gets the renderer implementation that has been supplied to this instance upon creation.


Implementation
    public function get styleRenderer():IStyleRenderer
tableProviderproperty 
tableProvider:ITableProvider  [read-only]

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

Superclasses have to override this method.


Implementation
    public function get tableProvider():ITableProvider

See also

tableRenderingOrderproperty 
tableRenderingOrder:TableRenderingOrder


Implementation
    public function get tableRenderingOrder():TableRenderingOrder
    public function set tableRenderingOrder(value:TableRenderingOrder):void
Constructor Detail
AbstractTableNodeStyle()Constructor
public function AbstractTableNodeStyle(renderer:TableNodeStyleRenderer = null)

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

Parameters
renderer:TableNodeStyleRenderer (default = null)
Method Detail
clone()method
public function clone():Object

Creates a clone of this instance.

Superclasses have to override this method to create a memberwise clone of this instance.

Returns
Object — A clone of this instance.
install()method 
public function 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.

Implementations may add zero or more ICanvasObject instances to the given CanvasComponent. The group parameter can be used as a hint for implementations. They can add their newly created canvas objects to the given group. However they are not obliged to do that.

Parameters

canvas:CanvasComponent — The canvas to install the canvas objects in.
 
group:ICanvasObjectGroup — A hint that tells the implementation where to add the canvas objects.
 
modelItem:IModelItem — The item to install a visual representation for.

Returns
Array — An array of zero or more canvas objects that have been installed in the canvas by this method or null if nothing was installed.