org.jagatoo.input.events
Class MouseButtonEvent

java.lang.Object
  extended by org.jagatoo.input.events.InputEvent
      extended by org.jagatoo.input.events.MouseEvent
          extended by org.jagatoo.input.events.MouseButtonEvent
Direct Known Subclasses:
MouseButtonClickedEvent, MouseButtonPressedEvent, MouseButtonReleasedEvent

public abstract class MouseButtonEvent
extends MouseEvent

Stores the details associated with a mouse event.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jagatoo.input.events.MouseEvent
MouseEvent.SubType
 
Nested classes/interfaces inherited from class org.jagatoo.input.events.InputEvent
InputEvent.Type
 
Constructor Summary
protected MouseButtonEvent(MouseEvent.SubType subType)
          Creates a MouseEvent with default values.
  MouseButtonEvent(Mouse mouse, MouseEvent.SubType subType, MouseButton button, long when, long lastWhen)
          Sets the fields of this MouseEvent to match the given MouseEvent.
 
Method Summary
 MouseButton getButton()
          
 boolean getButtonBooleanState()
           
 InputState getButtonState()
           
 int getX()
          
 int getY()
          
protected  void set(Mouse mouse, MouseEvent.SubType subType, MouseButton button, long when, long lastWhen)
          Sets the fields of this MouseEvent to match the given MouseEvent.
 java.lang.String toString()
          
 
Methods inherited from class org.jagatoo.input.events.MouseEvent
getMouse, getSubType, set, set
 
Methods inherited from class org.jagatoo.input.events.InputEvent
getComponent, getLastWhen, getType, getWhen, set, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MouseButtonEvent

public MouseButtonEvent(Mouse mouse,
                        MouseEvent.SubType subType,
                        MouseButton button,
                        long when,
                        long lastWhen)
Sets the fields of this MouseEvent to match the given MouseEvent.


MouseButtonEvent

protected MouseButtonEvent(MouseEvent.SubType subType)
Creates a MouseEvent with default values.

Method Detail

getX

public final int getX()


getY

public final int getY()


getButton

public final MouseButton getButton()


getButtonState

public final InputState getButtonState()

getButtonBooleanState

public final boolean getButtonBooleanState()

toString

public java.lang.String toString()

Specified by:
toString in class MouseEvent
Returns:
in formation about this InputEvent as a String.

set

protected void set(Mouse mouse,
                   MouseEvent.SubType subType,
                   MouseButton button,
                   long when,
                   long lastWhen)
Sets the fields of this MouseEvent to match the given MouseEvent.