anl.aida.viz3d
Interface CanvasListener

All Known Implementing Classes:
DocOpsCanvasListener, TSGraphCanvasListener, TSGraphPlotCanvasListener

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

selectionsCleared

void selectionsCleared()
Called when all the selected items in a canvas are unselected.


itemSelected

void itemSelected(java.lang.Object obj)
Called when an item has been selected in the canvas.

Parameters:
obj - the selected item.

vSpatialMoved

void vSpatialMoved(VSpatial spatial,
                   javax.vecmath.Point3f localTrans)
Called when a VSpatial has been moved using the mouse.

Parameters:
spatial - the spatial that has been moved
localTrans - the new local translation of the spatial

init

void init(javax.media.opengl.GLAutoDrawable drawable,
          VNode root)
Called when the the canvas initializes itself in its GLEventListener.init.

Parameters:
drawable - the canvas drawable
root - the root node of the canvas to which other scene elements can be added.

reshape

void reshape(javax.media.opengl.GLAutoDrawable drawable,
             float width,
             float height,
             VNode root)
Called when canvas reshapes in its GLEventListener.reshape

Parameters:
drawable - drawable the canvas drawable
width - the width at z = 0 in world coordinates
height - the height at z = in world coordinates
root - the root node of the canvas to which other scene elements can be added.