Where to Find Up-to-date yFiles Information

This page is from the outdated yFiles for Java 2.13 documentation. You can find the most up-to-date documentation for all yFiles products on the yFiles documentation overview page.

Please see the following links for more information about the yFiles product family of diagramming programming libraries and corresponding yFiles products for modern web apps, for cross-platform Java(FX) applications, and for applications for the Microsoft .NET environment.

More about the yFiles product family Close X

Related Classes

Class TableSupport offers convenience methods for manipulating the table structure. It is used by the user interaction modes to maintain a consistent state of the table structure. There is support for adding rows and columns, for resizing, and for reordering them, as well as for re-parenting them, i.e., changing the parent of a child row or column.

Row addRow(RowContainer rc, int index)
Column addColumn(ColumnContainer cc, int index)
Description Adds a row (column) to the given RowContainer (ColumnContainer). The row's (column's) size and minimum size are adopted from the default values specified with TableGroupNodeRealizer.
boolean setHeight(Row r, double newSize, boolean moveContentOfChangedRow)
boolean setWidth(Column c, double newSize, boolean moveContentOfChangedColumn)
Description Resizes a row or column.
void setIndex(Row row, int index)
Description Enables reordering of a row. A similar method for reordering a column is also available.
void setParent(Row row, RowContainer rc)
Description Enables re-parenting of a row. A similar method for re-parenting a column is also available.

Ultimately, all of these methods resort to methods provided directly by the types that constitute the table structure model, namely Table, Row, and Column. However, in contrast to their methods, which can be considered side effects-free in the sense that they only affect the instance they are called upon, TableSupport ensures consistent state after any changes to the table structure.

Consistent state here means, that after resizing a child row, for example: