com.odesys.chart
Class DepthOrderedDrawable
java.lang.Object
|
+--com.odesys.chart.DepthOrderedDrawable
- public abstract class DepthOrderedDrawable
- extends java.lang.Object
This is the abstract superclass of all drawable (visible) elements of the
charts. It provides the capability to sort the elements in order
from back to front. This is used to hide the invisible surfaces.
Method Summary |
abstract float |
getDepth()
Returns the depth of this DepthOrderedDrawable. |
void |
insertInto(java.util.Vector v)
Inserts this object in its correct position in the provided
Vector. |
abstract void |
paint(java.awt.Graphics g)
Draws the object in the provided Graphics context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DepthOrderedDrawable
public DepthOrderedDrawable()
getDepth
public abstract float getDepth()
- Returns the depth of this DepthOrderedDrawable. The objects with less
depth are considered to be closer to the viewer.
- Returns:
- The depth of the object.
paint
public abstract void paint(java.awt.Graphics g)
- Draws the object in the provided Graphics context.
insertInto
public void insertInto(java.util.Vector v)
- Inserts this object in its correct position in the provided
Vector. The objects with less depth are considered to be closer
to the viewer. All elements of the Vector should be instances
of DepthOrderedDrawable.