|
NCSA Portfolio | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ncsa.j3d.ui.events.EventManager
This object is designed to manage groups of objects that report events to the NCSA Portfolio framework. And further to load and configure devices written to the Java3d InputDevice spec. It is expected that these are entered in the portfolio.properties file.
Method Summary | |
void |
addBehavior(javax.media.j3d.Behavior b)
adds a behavior into the Group of events to be received and also adds this to the scene graph. |
void |
addEvent(PortfolioEvent event)
adds an object into the event manager and checks to see what type it is. |
void |
addEventReceiver(PortfolioEventReceiver er)
This method causes a event receiver to be added in the list of objects that will receive events. |
void |
addEventSource(java.lang.Object object)
This function simply retains a reference to the object that will sending events to us. |
static EventManager |
instance()
This class uses the Singleton design pattern. |
void |
loadInputDevices()
This method forces the portfolio.properties file to be parsed and all of the Java3d InputDevices to be configured and loaded. |
void |
loadInputSources()
This method forces the portfolio.properties file to be parsed and all of the Portfolio device drivers to be loaded and configured. |
boolean |
notify(java.util.EventObject event)
This is the method that events that the event manager is holding can report events. |
void |
removeBehavior(javax.media.j3d.Behavior b)
Removes a behavior from the scene graph. |
void |
setBranchGroup(javax.media.j3d.BranchGroup bg)
Allows for the one time specification of the BranchGroup we will add our behaviors in. |
void |
setHeadIndex()
Causes the HeadIndex in the PhysicalEnvironment to be set to the HeadIndex entry in the portfolio.properties file. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static EventManager instance()
public void loadInputSources()
public void loadInputDevices()
public void setHeadIndex()
public void addEventReceiver(PortfolioEventReceiver er)
er
- The PortfolioEventReceiver to be added.public void setBranchGroup(javax.media.j3d.BranchGroup bg)
bg
- The BranchGroup to add our behaviors to.public boolean notify(java.util.EventObject event)
e
- The Event to report.public void addEvent(PortfolioEvent event)
event
- The event to addpublic void addBehavior(javax.media.j3d.Behavior b)
Behavior
- The behavior to be added.public void addEventSource(java.lang.Object object)
object
- The object to track.public void removeBehavior(javax.media.j3d.Behavior b)
b
- The behavior to be removed.
|
NCSA Portfolio | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |