org.jdesktop.wonderland.client.jme.input.test
Class EnterExitEvent3DLogger

java.lang.Object
  extended by org.jdesktop.mtgame.EntityComponent
      extended by org.jdesktop.mtgame.ProcessorComponent
          extended by org.jdesktop.wonderland.client.input.EventListenerBaseImpl
              extended by org.jdesktop.wonderland.client.input.EventClassListener
                  extended by org.jdesktop.wonderland.client.jme.input.test.EnterExitEvent3DLogger
All Implemented Interfaces:
EventListener

public class EnterExitEvent3DLogger
extends EventClassListener

A test listener for enter and exit events. Add this to an entity and it will log all enter and exit that occur over the entity. This particular listener propagates to under.

Author:
deronj

Field Summary
 
Fields inherited from class org.jdesktop.wonderland.client.input.EventListenerBaseImpl
enabled
 
Constructor Summary
EnterExitEvent3DLogger()
          Create an instance of MouseEnterExitEvent3DLogger.
EnterExitEvent3DLogger(java.lang.String name)
          Create an instance of MouseEnterExitEvent3DLogger.
 
Method Summary
 void commitEvent(Event event)
          Called after computeEvent has been called for this event listener.
 java.lang.Class[] eventClassesToConsume()
          Consume all mouse events.
 
Methods inherited from class org.jdesktop.wonderland.client.input.EventClassListener
consumesEvent
 
Methods inherited from class org.jdesktop.wonderland.client.input.EventListenerBaseImpl
addToEntity, commit, compute, computeEvent, initialize, isEnabled, isListeningForEntity, postEvent, propagatesToParent, removeFromEntity, setEnabled
 
Methods inherited from class org.jdesktop.mtgame.ProcessorComponent
addToChain, getArmingCondition, getCurrentTriggerCollection, getLocation, getLODLevel, getRunInRenderer, getSwingSafe, removeFromChain, setArmingCondition, setLocation, setRunInRenderer, setSwingSafe
 
Methods inherited from class org.jdesktop.mtgame.EntityComponent
getEntity, setEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnterExitEvent3DLogger

public EnterExitEvent3DLogger()
Create an instance of MouseEnterExitEvent3DLogger.


EnterExitEvent3DLogger

public EnterExitEvent3DLogger(java.lang.String name)
Create an instance of MouseEnterExitEvent3DLogger.

Parameters:
name - The name of the logger.
Method Detail

eventClassesToConsume

public java.lang.Class[] eventClassesToConsume()
Consume all mouse events.

Overrides:
eventClassesToConsume in class EventClassListener
Returns:
An array of the event classes the listener wishes to consume.

commitEvent

public void commitEvent(Event event)
Description copied from class: EventListenerBaseImpl
Called after computeEvent has been called for this event listener. The implementation of this method should apply to the world those changes which were determined in computeEvent.

Note: It is guaranteed that a call to commitEvent for an event is always preceded by a call to commitEvent for that event.

Specified by:
commitEvent in interface EventListener
Overrides:
commitEvent in class EventListenerBaseImpl
Parameters:
event - The event which was computed.


Open Wonderland - http://openwonderland.org