com.jgraph.layout.hierarchical
protected class JGraphCoordinateAssignment.WeightedCellSorter extends Object implements Comparable
Field Summary | |
---|---|
JGraphAbstractHierarchyCell | cell
The cell whose median value is being calculated |
boolean | nudge
Whether or not to flip equal weight values. |
int | rankIndex
The index this cell is in the model rank |
boolean | visited
Whether or not this cell has been visited in the current assignment |
int | weightedValue
The weighted value of the cell stored |
Constructor Summary | |
---|---|
WeightedCellSorter() | |
WeightedCellSorter(JGraphAbstractHierarchyCell cell, int weightedValue) |
Method Summary | |
---|---|
int | compareTo(Object arg0)
comparator on the medianValue
|
Parameters: arg0 the object to be compared to
Returns: the standard return you would expect when comparing two double