anl.aida.viz3d
Class TSGraphCanvasListener

java.lang.Object
  extended by anl.aida.viz3d.TSGraphCanvasListener
All Implemented Interfaces:
CanvasListener

public class TSGraphCanvasListener
extends java.lang.Object
implements CanvasListener


Field Summary
private  NetworkVizCreator creator
           
private  javax.media.opengl.GLAutoDrawable drawable
           
private  ConceptGraph<TermNode> firstGraph
           
private  boolean initialized
           
private  java.util.Map<anl.aida.util.DateRange,StackItem2> itemMap
           
private  anl.aida.util.DateRange range
           
private  StackRenderer2 stack
           
 
Constructor Summary
TSGraphCanvasListener(ConceptGraph<TermNode> graph, anl.aida.util.DateRange range)
           
 
Method Summary
 void addGraph(ConceptGraph<TermNode> graph, anl.aida.util.DateRange range)
           
 void init(javax.media.opengl.GLAutoDrawable drawable, VNode root)
          Called when the the canvas initializes itself in its GLEventListener.init.
 void initToolBar(javax.swing.JToolBar bar)
           
 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

stack

private StackRenderer2 stack

firstGraph

private ConceptGraph<TermNode> firstGraph

range

private anl.aida.util.DateRange range

creator

private NetworkVizCreator creator

drawable

private javax.media.opengl.GLAutoDrawable drawable

itemMap

private java.util.Map<anl.aida.util.DateRange,StackItem2> itemMap

initialized

private boolean initialized
Constructor Detail

TSGraphCanvasListener

public TSGraphCanvasListener(ConceptGraph<TermNode> graph,
                             anl.aida.util.DateRange range)
Parameters:
graphs -
Method Detail

initToolBar

public void initToolBar(javax.swing.JToolBar bar)

addGraph

public void addGraph(ConceptGraph<TermNode> graph,
                     anl.aida.util.DateRange range)

vSpatialMoved

public void vSpatialMoved(VSpatial spatial,
                          javax.vecmath.Point3f localTrans)
Description copied from interface: CanvasListener
Called when a VSpatial has been moved using the mouse.

Specified by:
vSpatialMoved in interface CanvasListener
Parameters:
spatial - the spatial that has been moved
localTrans - the new local translation of the spatial

init

public void init(javax.media.opengl.GLAutoDrawable drawable,
                 VNode root)
Description copied from interface: CanvasListener
Called when the the canvas initializes itself in its GLEventListener.init.

Specified by:
init in interface CanvasListener
Parameters:
drawable - the canvas drawable
root - the root node of the canvas to which other scene elements can be added.

reshape

public void reshape(javax.media.opengl.GLAutoDrawable drawable,
                    float width,
                    float height,
                    VNode root)
Description copied from interface: CanvasListener
Called when canvas reshapes in its GLEventListener.reshape

Specified by:
reshape in interface CanvasListener
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.

itemSelected

public void itemSelected(java.lang.Object obj)
Description copied from interface: CanvasListener
Called when an item has been selected in the canvas.

Specified by:
itemSelected in interface CanvasListener
Parameters:
obj - the selected item.

selectionsCleared

public void selectionsCleared()
Description copied from interface: CanvasListener
Called when all the selected items in a canvas are unselected.

Specified by:
selectionsCleared in interface CanvasListener