This class represents a single layout grid cell, i.e., a pair consisting of a row and a column.
Remarks
This class cannot be instantiated
Type Details
- yFiles module
- algorithms
Properties
Gets the column associated with this LayoutGridCellDescriptor.
Property Value
a column instance
Gets the row associated with this LayoutGridCellDescriptor.
Property Value
A row instance.
Methods
Compares this LayoutGridCell instance with a given other LayoutGridCell instance.
Remarks
The comparison is based on the indices of the rows and columns of the two pairs. A LayoutGridCell is considered to be smaller than another pair if its row index is smaller than the row index of the other pair. If the row indices are equal, the LayoutGridCell with the smaller column index is said to be smaller. Hence, two LayoutGridCell instances are equal if the row and column indices are equal.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- o - any
- The LayoutGridCell to be compared.
Returns
- ↪number
-1
,0
, or1
if this LayoutGridCell is smaller than, equal to, or greater than the given other LayoutGridCell instance.
Implements
Compares this LayoutGridCell instance with a given other LayoutGridCell instance based on their associated column and row instances.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- o - any
- the given LayoutGridCell instance
Returns
- ↪boolean
true
if the two objects are equal,false
otherwise
Returns the hash code value for this LayoutGridCell instance.
Returns
- ↪number
- The hash code value for this LayoutGridCell instance