Remarks
See Also
Developer's Guide
Members
Constructors
Properties
If size compaction is enabled, the size of a column or row (or a table node for that matter) may be reduced due to layout calculation, but never below the column's or row's minimum size. If size compaction is disabled, columns and rows (and therefore table nodes) may only grow due to layout calculation.
The default value for this property is true.
Gets the LayoutGrid created in the prepare method.
false.Methods
Parameters
- graph: IGraph
Returns the LayoutGridCellDescriptor assigned to the node.
node.Parameters
- node: INode
- The node to return the assigned cell for.
Return Value
- LayoutGridCellDescriptor
- The LayoutGridCellDescriptor assigned to the
node.
The node to table association is resolved in prepare and is only valid before restore is called so an InvalidOperationError is thrown when this method isn't called between those two.
The associated table is the ITable provided by the node itself or one of its ancestors via lookup. If no associated table can be found, null is returned.
Parameters
- node: INode
- The node to lookup the table for.
Return Value
The columns are mapped to the grid in prepare and are only valid before restore is called so an InvalidOperationError is thrown when this method isn't called between those two.
Note that only leaf columns (columns with no childColumns) are mapped to grid columns so null is returned for any other column.
Parameters
- leafColumn: IColumn
- The column to return the column descriptor for.
Return Value
- LayoutGridColumn
- The LayoutGridColumn the
leafColumnis mapped to.
originalTable. You also need to call cleanUp explicitly if you don't need the TableLayoutConfigurator anymore.Parameters
Return Value
- number
- The sizes of all leaf rows in
originalTable, in their natural order.
The rows are mapped to the grid in prepare and are only valid before restore is called so an InvalidOperationError is thrown when this method isn't called between those two.
Note that only leaf rows (rows with no childRows) are mapped to grid rows so null is returned for any other row.
Parameters
- leafRow: IRow
- The row to return the row descriptor for.
Return Value
- LayoutGridRow
- The LayoutGridRow the
leafRowis mapped to.
originalTable. You also need to call cleanUp explicitly if you don't need the TableLayoutConfigurator anymore.Parameters
Return Value
- number
- The sizes of all leaf rows in
originalTable, in their natural order.
Parameters
- table: ITable
- The table for which the corresponding owner node is searched.
Return Value
Returns whether node is recognized as a table node by this instance.
node is recognized as a table node by this instance.Parameters
- node: INode
- The node to check.
Return Value
- boolean
trueif this instance treatsnodeas a table node.
Parameters
- graph: IGraph
- The graph to prepare a LayoutGridData<TNode, TEdge, TNodeLabel, TEdgeLabel> for.
Return Value
- LayoutGridData<INode, IEdge, ILabel, ILabel>
- A LayoutGridData<TNode, TEdge, TNodeLabel, TEdgeLabel> instance for all tables in the graph, or
nullif no LayoutGrid is necessary.