Class mxMedianHybridCrossingReduction.MedianCellSorter

java.lang.Object
com.mxgraph.layout.hierarchical.stage.mxMedianHybridCrossingReduction.MedianCellSorter
All Implemented Interfaces:
Comparable<Object>
Enclosing class:
mxMedianHybridCrossingReduction

protected class mxMedianHybridCrossingReduction.MedianCellSorter extends Object implements Comparable<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 Details

    • medianValue

      public double medianValue
      The median value of the cell stored
  • Constructor Details

    • MedianCellSorter

      protected MedianCellSorter()
  • Method Details

    • compareTo

      public int compareTo(Object arg0)
      comparator on the medianValue
      Specified by:
      compareTo in interface Comparable<Object>
      Parameters:
      arg0 - the object to be compared to
      Returns:
      the standard return you would expect when comparing two double