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

java.lang.Object
  extended by org.jdesktop.wonderland.client.input.Event
      extended by org.jdesktop.wonderland.client.jme.input.InputEvent3D
          extended by org.jdesktop.wonderland.client.jme.input.MouseEvent3D
              extended by org.jdesktop.wonderland.client.jme.input.MouseWheelEvent3D
All Implemented Interfaces:
java.io.Serializable

public class MouseWheelEvent3D
extends MouseEvent3D

An event which indicates that a mouse wheel rotation occurred.

Author:
deronj
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.wonderland.client.jme.input.MouseEvent3D
MouseEvent3D.ButtonId
 
Nested classes/interfaces inherited from class org.jdesktop.wonderland.client.jme.input.InputEvent3D
InputEvent3D.ModifierId
 
Field Summary
 
Fields inherited from class org.jdesktop.wonderland.client.jme.input.MouseEvent3D
world2Local
 
Fields inherited from class org.jdesktop.wonderland.client.jme.input.InputEvent3D
awtEvent
 
Fields inherited from class org.jdesktop.wonderland.client.input.Event
entity, EVENT_CLASS_ID, isFocussed
 
Constructor Summary
protected MouseWheelEvent3D()
          Default constructor (for cloning)
 
Method Summary
 Event clone(Event event)
          Copy the members of this class into the given event.
 int getWheelRotation()
          Returns the number of "clicks" the mouse wheel was rotated.
 java.lang.String toString()
          
 
Methods inherited from class org.jdesktop.wonderland.client.jme.input.MouseEvent3D
getButton, getDistance, getEntity, getIntersectionPointLocal, getIntersectionPointWorld, getNode, getPickDetails, setPickDetails
 
Methods inherited from class org.jdesktop.wonderland.client.jme.input.InputEvent3D
getAwtEvent, getID, getModifiersEx, getPickInfo, getWhen, setPickInfo
 
Methods inherited from class org.jdesktop.wonderland.client.input.Event
allocateEventClassID, free, getClassID, isFocussed, setEntity, setFocussed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MouseWheelEvent3D

protected MouseWheelEvent3D()
Default constructor (for cloning)

Method Detail

getWheelRotation

public int getWheelRotation()
Returns the number of "clicks" the mouse wheel was rotated.

Returns:
negative values if the mouse wheel was rotated up/away from the user, and positive values if the mouse wheel was rotated down/ towards the user

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

clone

public Event clone(Event event)
Copy the members of this class into the given event.
If event is null, a new event of this class is created and returned.

Overrides:
clone in class MouseEvent3D


Open Wonderland - http://openwonderland.org