uk.ac.ed.java3d_handler
Class Java3DBehavior

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Leaf
              extended by javax.media.j3d.Behavior
                  extended by uk.ac.ed.java3d_handler.Java3DBehavior

public class Java3DBehavior
extends javax.media.j3d.Behavior


Field Summary
protected  Java3DHandler handler
           
protected  Java3DModel model
           
protected  Java3DPanel panel
           
protected  int x_last
           
protected  int y_last
           
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
Java3DBehavior(Java3DPanel panel)
           
 
Method Summary
 Java3DHandler getHandler()
           
 Java3DModel getModel()
           
 void initialize()
           
protected  void initWakeUpEvents()
           
protected  void mouseDragged(int dx, int dy)
           
protected  void mousePressed(int x, int y)
           
protected  void mouseReleased(int x, int y)
           
protected  void moveMouseDragged(int dx, int dy)
           
protected  void originFocusedViewMouseDragged(int dx, int dy)
           
protected  void pickMousePressed(int x, int y)
           
 void processStimulus(Enumeration criteria)
           
protected  void rotateMouseDragged(int dx, int dy)
           
protected  void scaleMouseDragged(int dx, int dy)
           
protected  void setPanel(Java3DPanel panel)
           
protected  void shift(int dx, int dy)
           
protected  void viewMoveMouseDragged(int dx, int dy)
           
protected  void viewRotateMouseDragged(int dx, int dy)
           
protected  void viewScaleMouseDragged(int dx, int dy)
           
protected  void viewZoomMouseDragged(int dx, int dy)
           
 
Methods inherited from class javax.media.j3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn
 
Methods inherited from class javax.media.j3d.Node
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x_last

protected int x_last

y_last

protected int y_last

panel

protected Java3DPanel panel

model

protected Java3DModel model

handler

protected Java3DHandler handler
Constructor Detail

Java3DBehavior

public Java3DBehavior(Java3DPanel panel)
Method Detail

initialize

public void initialize()
Specified by:
initialize in class javax.media.j3d.Behavior

processStimulus

public void processStimulus(Enumeration criteria)
Specified by:
processStimulus in class javax.media.j3d.Behavior

getModel

public Java3DModel getModel()

getHandler

public Java3DHandler getHandler()

initWakeUpEvents

protected void initWakeUpEvents()

setPanel

protected void setPanel(Java3DPanel panel)

mousePressed

protected void mousePressed(int x,
                            int y)

mouseDragged

protected void mouseDragged(int dx,
                            int dy)

mouseReleased

protected void mouseReleased(int x,
                             int y)

shift

protected void shift(int dx,
                     int dy)

viewZoomMouseDragged

protected void viewZoomMouseDragged(int dx,
                                    int dy)

viewScaleMouseDragged

protected void viewScaleMouseDragged(int dx,
                                     int dy)

viewMoveMouseDragged

protected void viewMoveMouseDragged(int dx,
                                    int dy)

viewRotateMouseDragged

protected void viewRotateMouseDragged(int dx,
                                      int dy)

originFocusedViewMouseDragged

protected void originFocusedViewMouseDragged(int dx,
                                             int dy)

pickMousePressed

protected void pickMousePressed(int x,
                                int y)

moveMouseDragged

protected void moveMouseDragged(int dx,
                                int dy)

rotateMouseDragged

protected void rotateMouseDragged(int dx,
                                  int dy)

scaleMouseDragged

protected void scaleMouseDragged(int dx,
                                 int dy)