motris.model
Class ShadowHull.ByXComparator

java.lang.Object
  extended bymotris.model.ShadowHull.ByXComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
ShadowHull

private class ShadowHull.ByXComparator
extends java.lang.Object
implements java.util.Comparator

Sorts Points by X direction. If two points share the same X coordinates, the one with the higher Y coordinates comes first. If Both X- and Y-Coordinate are the same, the one with more connections comes first

Author:
Hendrik Dahlkamp

Constructor Summary
private ShadowHull.ByXComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ShadowHull.ByXComparator

private ShadowHull.ByXComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator