|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.viz3d.DocOpsCanvasListener
public class DocOpsCanvasListener
CanvasListener that mediates the interaction between a Canvas3D and a DocOpsWidget.
Field Summary | |
---|---|
private DocOpsWidget |
docOps
|
Constructor Summary | |
---|---|
DocOpsCanvasListener(DocOpsWidget docOps)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private DocOpsWidget docOps
Constructor Detail |
---|
public DocOpsCanvasListener(DocOpsWidget docOps)
Method Detail |
---|
public void init(javax.media.opengl.GLAutoDrawable drawable, VNode root)
CanvasListener
init
in interface CanvasListener
drawable
- the canvas drawableroot
- the root node of the canvas to which other scene elements can be
added.public void itemSelected(java.lang.Object obj)
CanvasListener
itemSelected
in interface CanvasListener
obj
- the selected item.public void reshape(javax.media.opengl.GLAutoDrawable drawable, float width, float height, VNode root)
CanvasListener
reshape
in interface CanvasListener
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.public void selectionsCleared()
CanvasListener
selectionsCleared
in interface CanvasListener
public void vSpatialMoved(VSpatial spatial, javax.vecmath.Point3f localTrans)
CanvasListener
vSpatialMoved
in interface CanvasListener
spatial
- the spatial that has been movedlocalTrans
- the new local translation of the spatial
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |