| 
 | JGraph X 2.1.0.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mxgraph.layout.mxCompactTreeLayout.WeightedCellSorter
protected class mxCompactTreeLayout.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 | |
|---|---|
|  mxCompactTreeLayout.TreeNode | cellThe cell whose median value is being calculated | 
|  boolean | nudgeWhether or not to flip equal weight values. | 
|  boolean | visitedWhether or not this cell has been visited in the current assignment | 
|  int | weightedValueThe weighted value of the cell stored | 
| Constructor Summary | |
|---|---|
| mxCompactTreeLayout.WeightedCellSorter() | |
| mxCompactTreeLayout.WeightedCellSorter(mxCompactTreeLayout.TreeNode 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 mxCompactTreeLayout.TreeNode cell
| Constructor Detail | 
|---|
public mxCompactTreeLayout.WeightedCellSorter()
public mxCompactTreeLayout.WeightedCellSorter(mxCompactTreeLayout.TreeNode cell,
                                              int weightedValue)
| Method Detail | 
|---|
public int compareTo(Object arg0)
compareTo in interface Comparable<Object>arg0 - the object to be compared to
| 
 | JGraph X 2.1.0.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||