com.yworks.yfiles.server.graphml.flexio.data.flexmarkup
Class TableNodeStyle

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.flexmarkup.TableNodeStyle
All Implemented Interfaces:
INodeStyle, ISharedInstanceProvider, ITableProvider

public class TableNodeStyle
extends java.lang.Object
implements INodeStyle, ITableProvider, ISharedInstanceProvider

A data object for the client side com.yworks.graph.drawing.TableNodeStyle.

This style keeps a Table instance in its table property.


Constructor Summary
TableNodeStyle()
           
 
Method Summary
 INodeStyle getBackgroundStyle()
          The INodeStyle which renders the background of the table.
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 Table getTable()
          The table which is bound to the node via this style.
 Table getTable(Node node)
          Returns the table which is bound to this implementor.
 TableRenderingOrder getTableRenderingOrder()
          Whether to draw the rows or columns first.
 void setBackgroundStyle(INodeStyle backgroundStyle)
          The INodeStyle which renders the background of the table.
 void setTable(Table table)
          The table which is bound to the node via this style.
 void setTable(Table table, Node node)
          Binds a table to the given node via this implementor.
 void setTableRenderingOrder(TableRenderingOrder tableRenderingOrder)
          Whether to draw the rows or columns first.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableNodeStyle

public TableNodeStyle()
Method Detail

getTable

public Table getTable()
The table which is bound to the node via this style.

Returns:
The table.

setTable

public void setTable(Table table)
The table which is bound to the node via this style.

Parameters:
table - The table to bind to the node.

getBackgroundStyle

public INodeStyle getBackgroundStyle()
The INodeStyle which renders the background of the table.

Returns:
The background style.

setBackgroundStyle

public void setBackgroundStyle(INodeStyle backgroundStyle)
The INodeStyle which renders the background of the table.

Parameters:
backgroundStyle - The background style.

getTableRenderingOrder

public TableRenderingOrder getTableRenderingOrder()
Whether to draw the rows or columns first.

Returns:
The rendering order.

setTableRenderingOrder

public void setTableRenderingOrder(TableRenderingOrder tableRenderingOrder)
Whether to draw the rows or columns first.

Parameters:
tableRenderingOrder - The rendering order.

getTable

public Table getTable(Node node)
Description copied from interface: ITableProvider
Returns the table which is bound to this implementor.

Specified by:
getTable in interface ITableProvider
Parameters:
node - The node to which the table is bound via this implementor.
Returns:
A table.

setTable

public void setTable(Table table,
                     Node node)
Description copied from interface: ITableProvider
Binds a table to the given node via this implementor.

Specified by:
setTable in interface ITableProvider
Parameters:
table - The table to bind.
node - The node to bind the table to.

getSharedInstances

public java.util.Collection getSharedInstances()
Description copied from interface: ISharedInstanceProvider
Returns an Collection for objects that shall be shared.

Specified by:
getSharedInstances in interface ISharedInstanceProvider
Returns:


Copyright © 2000-2013 yWorks GmbH. All rights reserved