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

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.MouseButtonEvent3D
All Implemented Interfaces:
java.io.Serializable

public class MouseButtonEvent3D
extends MouseEvent3D

An event which indicates that a mouse button action 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 MouseButtonEvent3D()
          Default constructor (for cloning)
 
Method Summary
 Event clone(Event event)
          Copy the members of this class into the given event.
 int getClickCount()
          Returns the number of mouse clicks associated with this event.
 boolean isClicked()
          Returns true if this event indicates mouse click.
 boolean isPressed()
          Returns true if this event indicates mouse press.
 boolean isReleased()
          Returns true if this event indicates mouse release.
 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

MouseButtonEvent3D

protected MouseButtonEvent3D()
Default constructor (for cloning)

Method Detail

isClicked

public boolean isClicked()
Returns true if this event indicates mouse click.


isPressed

public boolean isPressed()
Returns true if this event indicates mouse press.


isReleased

public boolean isReleased()
Returns true if this event indicates mouse release.


getClickCount

public int getClickCount()
Returns the number of mouse clicks associated with this event.

Returns:
integer value for the number of clicks

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