net.nexttext.input
Class MouseInputEvent

java.lang.Object
  extended by net.nexttext.input.InputEvent
      extended by net.nexttext.input.MouseInputEvent
All Implemented Interfaces:
java.io.Serializable

public class MouseInputEvent
extends InputEvent

An event generated by the mouse.

This is a wrapper around the MouseEvent class. All IDs returned by the functions of this class are the same IDs used in the Java MouseEvent class.

See Also:
Serialized Form

Constructor Summary
MouseInputEvent(java.awt.event.MouseEvent event)
          Class constructor
 
Method Summary
 int getButton()
          Gets the button attached to the event
 int getType()
          Gets the type of event
 int getX()
          Gets the x position of the mouse at the event
 int getY()
          Gets the y position of the mouse at the event
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseInputEvent

public MouseInputEvent(java.awt.event.MouseEvent event)
Class constructor

Parameters:
event - the generated event
Method Detail

getType

public int getType()
Gets the type of event

Returns:
the type of event

getButton

public int getButton()
Gets the button attached to the event

Returns:
the button id

getX

public int getX()
Gets the x position of the mouse at the event

Returns:
the x position

getY

public int getY()
Gets the y position of the mouse at the event

Returns:
the y position