Class for creating a partition grid, i.e., a grid that partitions the drawing area into rectangular partition cells.

Namespace: yWorks.yFiles.Layout.Hierarchic.Incremental
Assembly: yWorks.yFilesNET.Algorithms (in yWorks.yFilesNET.Algorithms.dll) Version: 4.1.0.1 (4.1.0.1)

Syntax

C#
public class PartitionGrid
Visual Basic
Public Class PartitionGrid

Remarks

Class for creating a partition grid, i.e., a grid that partitions the drawing area into rectangular partition cells. The grid consists of rows and columns that are created using the corresponding constructors of this class or method #addColumn or #addRow. The PartitionGrid object has to be registered to the graph using DataProvider PARTITION_DPKEY;

Each node element can be assigned to a partition cell which consists of a row and a column. Therefore the user can create partition cell identifiers using method CreateCellId(RowDescriptor, ColumnDescriptor) or CreateCellId(Int32, Int32) . These cell identifiers have to be assigned to nodes using DataProvider PARTITION_CELL_DPKEY.

Group nodes can also be mapped to a partition cell identifier that represents a multi-cell, i.e., a cell spanning multiple columns and rows. These identifiers can be created using methods CreateCellSpanId(RowDescriptor, ColumnDescriptor, RowDescriptor, ColumnDescriptor) , CreateCellSpanId(Int32, Int32, Int32, Int32) , CreateCellSpanId(ICollection, ICollection) , CreateColumnSpanId(Int32) , and CreateRowSpanId(Int32) . A group node mapped to such a identifier represents the corresponding multi-cell, i.e., its boundary corresponds to the smallest rectangle containing all partition cells specified by the multi-cell.

Inheritance Hierarchy

System..::..Object
  yWorks.yFiles.Layout.Hierarchic.Incremental..::..PartitionGrid

See Also