Class DefaultOrderingStrategy
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.ordering.AbstractOrderingStrategy
-
- org.jzy3d.plot3d.rendering.ordering.DefaultOrderingStrategy
-
- All Implemented Interfaces:
Comparator<Drawable>
public class DefaultOrderingStrategy extends AbstractOrderingStrategy
The default ordering strategy let drawables be displayed in their original order and as thus no computation cost.
-
-
Field Summary
-
Fields inherited from class org.jzy3d.plot3d.rendering.ordering.AbstractOrderingStrategy
camera, transform, view
-
-
Constructor Summary
Constructors Constructor Description DefaultOrderingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Drawable o1, Drawable o2)
double
score(Coord3d coord)
double
score(Drawable drawable)
Returns a score for ranking this drawable among other drawables of the scenegraph.-
Methods inherited from class org.jzy3d.plot3d.rendering.ordering.AbstractOrderingStrategy
comparison, getCamera, getTransform, getView, setAll, setCamera, setTransform, setView, sort
-
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
score
public double score(Drawable drawable)
Description copied from class:AbstractOrderingStrategy
Returns a score for ranking this drawable among other drawables of the scenegraph.- Specified by:
score
in classAbstractOrderingStrategy
-
score
public double score(Coord3d coord)
- Specified by:
score
in classAbstractOrderingStrategy
-
-