|
JGraph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jgraph.layout.hierarchical.JGraphCoordinateAssignment.WeightedCellSorter
A utility class used to track cells whilst sorting occurs on the weighted sum of their connected edges. Does not violate (x.compareTo(y)==0) == (x.equals(y))
| 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 | |
JGraphCoordinateAssignment.WeightedCellSorter()
|
|
JGraphCoordinateAssignment.WeightedCellSorter(JGraphAbstractHierarchyCell cell,
int weightedValue)
|
|
| Method Summary | |
int |
compareTo(Object arg0)
comparator on the medianValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int weightedValue
public boolean nudge
public boolean visited
public int rankIndex
public JGraphAbstractHierarchyCell cell
| Constructor Detail |
public JGraphCoordinateAssignment.WeightedCellSorter()
public JGraphCoordinateAssignment.WeightedCellSorter(JGraphAbstractHierarchyCell cell,
int weightedValue)
| Method Detail |
public int compareTo(Object arg0)
compareTo in interface Comparablearg0 - the object to be compared to
|
JGraph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||