http://www.jpicedt.org

jpicedt.graphic.view
Class HitInfo.InverseZOrderingComparator

java.lang.Object
  extended by 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


Constructor Summary
HitInfo.InverseZOrderingComparator()
           
 
Method Summary
 int compare(HitInfo hi1, HitInfo hi2)
           
 
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

HitInfo.InverseZOrderingComparator

public HitInfo.InverseZOrderingComparator()
Method Detail

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.

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org