Class mxMedianHybridCrossingReduction.MedianCellSorter
- java.lang.Object
-
- com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction.MedianCellSorter
-
- All Implemented Interfaces:
java.lang.Comparable<java.lang.Object>
- Enclosing class:
- mxMedianHybridCrossingReduction
protected class mxMedianHybridCrossingReduction.MedianCellSorter extends java.lang.Object implements java.lang.Comparable<java.lang.Object>
A utility class used to track cells whilst sorting occurs on the median values. Does not violate (x.compareTo(y)==0) == (x.equals(y))
-
-
Field Summary
Fields Modifier and Type Field Description double
medianValue
The median value of the cell stored
-
Constructor Summary
Constructors Modifier Constructor Description protected
MedianCellSorter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object arg0)
comparator on the medianValue
-