jpicedt.graphic.view
Class HitInfo.InverseZOrderingComparator
java.lang.Object
jpicedt.graphic.view.HitInfo.InverseZOrderingComparator
- All Implemented Interfaces:
- Comparator<HitInfo>
- Enclosing interface:
- HitInfo
public static class HitInfo.InverseZOrderingComparator
- extends Object
- implements Comparator<HitInfo>
A comparator for z-axis ordering
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HitInfo.InverseZOrderingComparator
public HitInfo.InverseZOrderingComparator()
compare
public int compare(HitInfo hi1,
HitInfo hi2)
- Specified by:
compare
in interface Comparator<HitInfo>
- Returns:
- a negative number whenever
hi1
"is less than"
hi2
, i.e., it has a higher z-axis height than hi2
,
etc.
Submit a bug : syd@jpicedt.org