|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CanvasListener
Interface for classes that will listen for Canvas reshape and init events.
Method Summary | |
---|---|
void |
init(javax.media.opengl.GLAutoDrawable drawable,
VNode root)
Called when the the canvas initializes itself in its GLEventListener.init. |
void |
itemSelected(java.lang.Object obj)
Called when an item has been selected in the canvas. |
void |
reshape(javax.media.opengl.GLAutoDrawable drawable,
float width,
float height,
VNode root)
Called when canvas reshapes in its GLEventListener.reshape |
void |
selectionsCleared()
Called when all the selected items in a canvas are unselected. |
void |
vSpatialMoved(VSpatial spatial,
javax.vecmath.Point3f localTrans)
Called when a VSpatial has been moved using the mouse. |
Method Detail |
---|
void selectionsCleared()
void itemSelected(java.lang.Object obj)
obj
- the selected item.void vSpatialMoved(VSpatial spatial, javax.vecmath.Point3f localTrans)
spatial
- the spatial that has been movedlocalTrans
- the new local translation of the spatialvoid init(javax.media.opengl.GLAutoDrawable drawable, VNode root)
drawable
- the canvas drawableroot
- the root node of the canvas to which other scene elements can be
added.void reshape(javax.media.opengl.GLAutoDrawable drawable, float width, float height, VNode root)
drawable
- drawable the canvas drawablewidth
- the width at z = 0 in world coordinatesheight
- the height at z = in world coordinatesroot
- the root node of the canvas to which other scene elements can be
added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |