| java.lang.Object org.jdesktop.j3d.utils.scenegraph.transparency.OrderingComparator
OrderingComparator | public class OrderingComparator implements Comparator(Code) | | Comparator used to determine the rendering order of the transparent
Shapes.
This class will be instantiated and used by the system, the user application
does not need to use this class directly.
|
OrderingComparator | public OrderingComparator()(Code) | | Creates a new instance of SimpleDistanceComparator
|
compare | public int compare(Object o1, Object o2)(Code) | | Compares its two arguments for order. Returns a negative integer, zero,
or a positive integer as the first argument is less than (closer to the viewer),
equal to, or greater than (further from the viewer) the second argument.
The compare method will be called with 2 objects of type
TransparencySortGeom and it's result should indicate which object is
closer to the viewer. Object1 < Object2 if it is to be considered closer
and rendered after.
Parameters: o1 - TransparencySortGeom object 1 Parameters: o2 - TransparencySortGeom object 2 |
|
|