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

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.MouseEvent3DLogger
All Implemented Interfaces:
EventListener

public class MouseEvent3DLogger
extends EventClassListener

A test listener for mouse events. Add this to an entity and it will log all mouse events that occur over the entity.

Author:
deronj

Field Summary
 
Fields inherited from class org.jdesktop.wonderland.client.input.EventListenerBaseImpl
enabled
 
Constructor Summary
MouseEvent3DLogger()
          Create an instance of MouseEvent3DLogger.
MouseEvent3DLogger(java.lang.String name)
          Create an instance of MouseEvent3DLogger.
 
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

MouseEvent3DLogger

public MouseEvent3DLogger()
Create an instance of MouseEvent3DLogger.


MouseEvent3DLogger

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

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