Package | com.yworks.graph.drawing |
Interface | public interface ITableProvider |
Implementors | TagOwnerTableProvider |
ITableNodeStyle
implementations
to decouple the association from a table instance to its owner from the actual
style implementation.
See also
Method | Defined By | ||
---|---|---|---|
Gets the table that is associated with the given item. | ITableProvider | ||
Sets a new table instance for the specified item. | ITableProvider |
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.
|
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.
|
Boolean — Whether the tag was successfully stored with the item.
|