public class PartitionGridData extends LayoutData
PartitionGrid for a layout.
The PartitionCellId mapping has to be specified by either setting the CellIds property, or
both the RowIndices and ColumnIndices properties. When CellIds
is set, the Grid property is expected to be set as well. Otherwise the size of the grid may be
induced by the maximum row and column indices returned by RowIndices and
ColumnIndices.
Note that cell spanning is only supported using the CellIds.
| Constructor and Description |
|---|
PartitionGridData() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout,
CopiedLayoutGraph layoutGraph)
Applies this layout data to the specified
layoutGraphAdapter. |
ContextItemMapping<INode,PartitionCellId,PartitionGrid> |
getCellIds()
Gets the mapping from nodes to
PartitionCellId using the partition grid as context. |
ItemMapping<INode,Integer> |
getColumnIndices()
Gets the mapping from nodes to the index of their columns.
|
PartitionGrid |
getGrid()
Gets the partition grid.
|
ItemMapping<INode,Integer> |
getRowIndices()
Gets the mapping from nodes to the index of their rows.
|
void |
setCellIds(ContextItemMapping<INode,PartitionCellId,PartitionGrid> value)
Sets the mapping from nodes to
PartitionCellId using the partition grid as context. |
void |
setColumnIndices(ItemMapping<INode,Integer> value)
Sets the mapping from nodes to the index of their columns.
|
void |
setGrid(PartitionGrid value)
Sets the partition grid.
|
void |
setRowIndices(ItemMapping<INode,Integer> value)
Sets the mapping from nodes to the index of their rows.
|
public void apply(LayoutGraphAdapter adapter, ILayoutAlgorithm layout, CopiedLayoutGraph layoutGraph)
LayoutDatalayoutGraphAdapter.apply in class LayoutDataadapter - The adapter to add the layout data to.layout - The layout that shall use this layout data.layoutGraph - The layout graph used for the layout calculation.public final ContextItemMapping<INode,PartitionCellId,PartitionGrid> getCellIds()
PartitionCellId using the partition grid as context.setCellIds(ContextItemMapping)public final ItemMapping<INode,Integer> getColumnIndices()
setColumnIndices(ItemMapping)public final PartitionGrid getGrid()
PartitionGrid.PARTITION_GRID_DPKEY,
setGrid(PartitionGrid)public final ItemMapping<INode,Integer> getRowIndices()
setRowIndices(ItemMapping)public final void setCellIds(ContextItemMapping<INode,PartitionCellId,PartitionGrid> value)
PartitionCellId using the partition grid as context.value - The CellIds to set.getCellIds()public final void setColumnIndices(ItemMapping<INode,Integer> value)
value - The ColumnIndices to set.getColumnIndices()public final void setGrid(PartitionGrid value)
value - The Grid to set.PartitionGrid.PARTITION_GRID_DPKEY,
getGrid()public final void setRowIndices(ItemMapping<INode,Integer> value)
value - The RowIndices to set.getRowIndices()