Packagecom.yworks.graph.drawing
Classpublic class TagOwnerTableProvider
InheritanceTagOwnerTableProvider Inheritance Object
Implements ITableProvider

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



Public Properties
 PropertyDefined By
  instance : TagOwnerTableProvider
[static] [read-only] The shared instance.
TagOwnerTableProvider
Public Methods
 MethodDefined By
  
getTable(node:INode, context:ILookup):ITable
Gets the table that is associated with the given item.
TagOwnerTableProvider
  
setTable(node:INode, table:ITable, context:ILookup):Boolean
Sets a new table instance for the specified item.
TagOwnerTableProvider
Property Detail
instanceproperty
instance:TagOwnerTableProvider  [read-only]

The shared instance.


Implementation
    public static function get instance():TagOwnerTableProvider
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.