org.jdesktop.wonderland.client.jme.input
Class EventDistributor3D

java.lang.Object
  extended by org.jdesktop.wonderland.client.input.EventDistributor
      extended by org.jdesktop.wonderland.client.jme.input.EventDistributor3D
All Implemented Interfaces:
java.lang.Runnable

public class EventDistributor3D
extends EventDistributor
implements java.lang.Runnable

The part of the input subsystem which distributes events throughout the scene graph according to the information provided by the entity event listeners.

Author:
deronj

Nested Class Summary
protected static interface EventDistributor3D.EventModifier<T extends Event>
           
 
Field Summary
 
Fields inherited from class org.jdesktop.wonderland.client.input.EventDistributor
focusSets
 
Constructor Summary
EventDistributor3D()
           
 
Method Summary
protected  void processDropEvent(DropTargetEvent3D event, org.jdesktop.mtgame.PickInfo pickInfo)
           
protected
<T extends Event>
void
processEntityEvent(T event, org.jdesktop.mtgame.PickInfo pickInfo, EventDistributor3D.EventModifier<? super T> modifier)
           
protected  void processEvent(Event event, org.jdesktop.mtgame.PickInfo destPickInfo, org.jdesktop.mtgame.PickInfo hitPickInfo)
          The responsibility for determining how to process individual event types is delegated to the subclass.
protected  void processFocusEvent(FocusEvent3D event)
           
protected  void processMouseKeyboardEvent(Event event, org.jdesktop.mtgame.PickInfo destPickInfo, org.jdesktop.mtgame.PickInfo hitPickInfo)
           
protected  void processPostEventToEntity(Event event, org.jdesktop.mtgame.Entity entity)
          The responsibility for determining how to process an event posted to a specific entity is delegated to the subclass.
 
Methods inherited from class org.jdesktop.wonderland.client.input.EventDistributor
addGlobalEventListener, processFocusChangeEvent, removeGlobalEventListener, run, start, tryGlobalListeners, tryListenersForEntity, tryListenersForEntityAndParents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

EventDistributor3D

public EventDistributor3D()
Method Detail

processEvent

protected void processEvent(Event event,
                            org.jdesktop.mtgame.PickInfo destPickInfo,
                            org.jdesktop.mtgame.PickInfo hitPickInfo)
Description copied from class: EventDistributor
The responsibility for determining how to process individual event types is delegated to the subclass.

Specified by:
processEvent in class EventDistributor
Parameters:
event - The event to try to deliver to event listeners.
destPickInfo - The destination pick info associated with the event.
hitPickInfo - The hit pick info associated with the event.

processMouseKeyboardEvent

protected void processMouseKeyboardEvent(Event event,
                                         org.jdesktop.mtgame.PickInfo destPickInfo,
                                         org.jdesktop.mtgame.PickInfo hitPickInfo)

processDropEvent

protected void processDropEvent(DropTargetEvent3D event,
                                org.jdesktop.mtgame.PickInfo pickInfo)

processEntityEvent

protected <T extends Event> void processEntityEvent(T event,
                                                    org.jdesktop.mtgame.PickInfo pickInfo,
                                                    EventDistributor3D.EventModifier<? super T> modifier)

processFocusEvent

protected void processFocusEvent(FocusEvent3D event)

processPostEventToEntity

protected void processPostEventToEntity(Event event,
                                        org.jdesktop.mtgame.Entity entity)
Description copied from class: EventDistributor
The responsibility for determining how to process an event posted to a specific entity is delegated to the subclass.

Specified by:
processPostEventToEntity in class EventDistributor
Parameters:
event - The event to try to deliver to event listeners.
entity - The entity associated with the event.


Open Wonderland - http://openwonderland.org