csa120.shape
Class Group.DepthCompare

java.lang.Object
  extended bycsa120.shape.Group.DepthCompare
All Implemented Interfaces:
Comparator
Enclosing class:
Group

private class Group.DepthCompare
extends Object
implements Comparator

Inner class DepthCompare - a comparator for use in sorting by descending depth in preparation for painters algorithm


Constructor Summary
private Group.DepthCompare()
           
 
Method Summary
 int compare(Object o1, 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

Group.DepthCompare

private Group.DepthCompare()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator