Search this API

y.layout.hierarchic.incremental
Class PartitionCellId

java.lang.Object
  extended by y.layout.hierarchic.incremental.PartitionCellId

public class PartitionCellId
extends Object

Represents an identifier for partition cells of the partition grid.

See Also:
PartitionGrid

Nested Class Summary
static class PartitionCellId.Pair
          Represents a single partition cell, i.e., a row-column pair.
 
Method Summary
 boolean equals(Object o)
           
 Collection getCells()
          Returns a collection of elements of type Pair.
 ColumnDescriptor getColumn()
          Returns the first column associated with this partition cell id.
 RowDescriptor getRow()
          Returns the first row associated with this partition cell id.
 int hashCode()
           
 boolean isSpanning()
          Returns true if the partition cell id represents a multi-cell, i.e., whether or not it was created with method PartitionGrid.createCellSpanId(java.util.Collection, java.util.Collection), PartitionGrid.createCellSpanId(RowDescriptor, ColumnDescriptor, RowDescriptor, ColumnDescriptor), PartitionGrid.createCellSpanId(int, int, int, int), PartitionGrid.createColumnSpanId(int) or PartitionGrid.createRowSpanId(int).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCells

public Collection getCells()
Returns a collection of elements of type Pair. Each pair consists of a column and a row defining a single partition cell. Note: a partition cell id that covers more than one partition cell can only be assigned to group nodes.


isSpanning

public boolean isSpanning()
Returns true if the partition cell id represents a multi-cell, i.e., whether or not it was created with method PartitionGrid.createCellSpanId(java.util.Collection, java.util.Collection), PartitionGrid.createCellSpanId(RowDescriptor, ColumnDescriptor, RowDescriptor, ColumnDescriptor), PartitionGrid.createCellSpanId(int, int, int, int), PartitionGrid.createColumnSpanId(int) or PartitionGrid.createRowSpanId(int).


getRow

public RowDescriptor getRow()
Returns the first row associated with this partition cell id.


getColumn

public ColumnDescriptor getColumn()
Returns the first column associated with this partition cell id.


equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.