|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.viz3d.StackItem
public class StackItem
An item in a StackDisplay.
Field Summary | |
---|---|
private StackDrawable |
drawable
|
private static float |
MAX_ROT
|
private static float |
MAX_X
|
private static float |
MAX_Z
|
private float |
rotation
|
private float |
x
|
private float |
z
|
Constructor Summary | |
---|---|
StackItem(StackDrawable drawable)
Creates a stack item that will draw the specified drawable. |
Method Summary | |
---|---|
int |
compareTo(StackItem o)
|
void |
dispose()
Dispose of any resources this StackItem may be holding. |
void |
draw(javax.media.opengl.GL gl,
float xOff,
float zOff)
Draws this StackItem. |
long |
getSortingIndex()
Gets an index for this StackItem that can be used to sort this item with respect to other items. |
void |
init()
Initializes this StackItem. |
boolean |
isMoving()
Gets whether or not this slice is currently moving. |
boolean |
moveOff()
Moves this StackItem off the stack. |
boolean |
moveOn()
Moves this StackItem onto the stack. |
void |
putOffStack()
Puts this StackItem completely off the stack. |
void |
putOnStack()
Puts this StackItem completely on the stack. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static float MAX_X
private static float MAX_Z
private static float MAX_ROT
private float rotation
private float x
private float z
private StackDrawable drawable
Constructor Detail |
---|
public StackItem(StackDrawable drawable)
drawable
- the drawable to drawMethod Detail |
---|
public void init()
public void dispose()
public long getSortingIndex()
public void putOffStack()
public void putOnStack()
public boolean isMoving()
public boolean moveOff()
public boolean moveOn()
public java.lang.String toString()
toString
in class java.lang.Object
public void draw(javax.media.opengl.GL gl, float xOff, float zOff)
gl
- zOff
- the z offset for this StackItemxOff
- the x offset for this StackItempublic int compareTo(StackItem o)
compareTo
in interface java.lang.Comparable<StackItem>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |