Packagecom.yworks.graph.drawing
Interfacepublic interface ITableProvider
Implementors TagOwnerTableProvider

Interface that is mainly used by ITableNodeStyle implementations to decouple the association from a table instance to its owner from the actual style implementation.

See also

TagOwnerTableProvider
ITableNodeStyle
TableNodeStyle


Public Methods
 MethodDefined By
  
getTable(node:INode, context:ILookup):ITable
Gets the table that is associated with the given item.
ITableProvider
  
setTable(node:INode, table:ITable, context:ILookup):Boolean
Sets a new table instance for the specified item.
ITableProvider
Method Detail
getTable()method
public function getTable(node:INode, context:ILookup):ITable

Gets the table that is associated with the given item.

Parameters

node:INode — The node to get the table from.
 
context:ILookup — The context that can optional be queried for additional service implementations.

Returns
ITable — The table that is associated with the item or null.
setTable()method 
public function setTable(node:INode, table:ITable, context:ILookup):Boolean

Sets a new table instance for the specified item.

Implementations should store the table for the node and return whether they successfully stored the tag.

Parameters

node:INode — The node to store the new table with.
 
table:ITable — The new table.
 
context:ILookup — The context that can optional be queried for additional service implementations.

Returns
Boolean — Whether the tag was successfully stored with the item.