NCSA Portfolio

ncsa.j3d.ui.events
Class PortfolioBase

java.lang.Object
  |
  +--javax.media.j3d.SceneGraphObject
        |
        +--javax.media.j3d.Node
              |
              +--javax.media.j3d.Leaf
                    |
                    +--javax.media.j3d.Behavior
                          |
                          +--ncsa.j3d.ui.events.PortfolioBase
Direct Known Subclasses:
KeyPress, KeyRelease, KeyType, MouseDown, MouseDrag, MouseMove, MouseUp

public class PortfolioBase
extends javax.media.j3d.Behavior
implements PortfolioEvent

This is the base class that allows Portfolio to intercept AWT events.You should extend this class and change the code variable or use one of the provided derived classes to intercept AWT events.


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_PICK, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Method Summary
 void initialize()
          Initialize this behavior.
 void processStimulus(java.util.Enumeration e)
          This function is overridden so that this object stays registered to receive additional events and to hand off the events to the PortfolioEventReceiver.
 void setReceiver(PortfolioEventReceiver ser)
          This function sets the PortfolioEventReceiver to report to.
 
Methods inherited from class javax.media.j3d.Behavior
duplicateNode, getEnable, getSchedulingBoundingLeaf, getSchedulingBounds, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, updateNodeReferences
 
Methods inherited from class javax.media.j3d.Node
cloneNode, cloneTree, cloneTree, cloneTree, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, getCapability, getUserData, isCompiled, isLive, setCapability, setUserData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialize

public void initialize()
Initialize this behavior. This causes the behavior to start looking for events. This method is necessary because this class is derived from behavior.
Overrides:
initialize in class javax.media.j3d.Behavior
Parameters:
none -  

processStimulus

public void processStimulus(java.util.Enumeration e)
This function is overridden so that this object stays registered to receive additional events and to hand off the events to the PortfolioEventReceiver.
Overrides:
processStimulus in class javax.media.j3d.Behavior
Parameters:
Enumeration - The Enumeration of AWTEvents.

setReceiver

public void setReceiver(PortfolioEventReceiver ser)
This function sets the PortfolioEventReceiver to report to.
Specified by:
setReceiver in interface PortfolioEvent

NCSA Portfolio

NCSA Portfolio, Copyright 1997-1999, National Center for Supercomputing Applications, University of Illinois Urbana-Champaign, All Rights Reserved