com.jmex.bui.event
Class InputEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jmex.bui.event.BEvent
          extended by com.jmex.bui.event.InputEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ActionEvent, KeyEvent, MouseEvent

public class InputEvent
extends BEvent

Contains information common to all input (keyboard and mouse) events. This includes the state of the modifier keys at the time the event was generated.

See Also:
Serialized Form

Field Summary
protected  int _modifiers
           
static int ALT_DOWN_MASK
          A modifier mask indicating that the alt key was down at the time this event was generated.
static int BUTTON1_DOWN_MASK
          A modifier mask indicating that the first mouse button was down at the time this event was generated.
static int BUTTON2_DOWN_MASK
          A modifier mask indicating that the second mouse button was down at the time this event was generated.
static int BUTTON3_DOWN_MASK
          A modifier mask indicating that the third mouse button was down at the time this event was generated.
static int CTRL_DOWN_MASK
          A modifier mask indicating that the control key was down at the time this event was generated.
static int META_DOWN_MASK
          A modifier mask indicating that the meta key (Windows Logo key on some keyboards) was down at the time this event was generated.
static int SHIFT_DOWN_MASK
          A modifier mask indicating that the shift key was down at the time this event was generated.
 
Fields inherited from class com.jmex.bui.event.BEvent
_when
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
protected InputEvent(Object source, long when, int modifiers)
           
 
Method Summary
 int getModifiers()
          Returns the modifier mask associated with this event.
protected  void toString(StringBuffer buf)
           
 
Methods inherited from class com.jmex.bui.event.BEvent
dispatch, getWhen, propagateUpHierarchy, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUTTON1_DOWN_MASK

public static final int BUTTON1_DOWN_MASK
A modifier mask indicating that the first mouse button was down at the time this event was generated.

See Also:
Constant Field Values

BUTTON2_DOWN_MASK

public static final int BUTTON2_DOWN_MASK
A modifier mask indicating that the second mouse button was down at the time this event was generated.

See Also:
Constant Field Values

BUTTON3_DOWN_MASK

public static final int BUTTON3_DOWN_MASK
A modifier mask indicating that the third mouse button was down at the time this event was generated.

See Also:
Constant Field Values

SHIFT_DOWN_MASK

public static final int SHIFT_DOWN_MASK
A modifier mask indicating that the shift key was down at the time this event was generated.

See Also:
Constant Field Values

CTRL_DOWN_MASK

public static final int CTRL_DOWN_MASK
A modifier mask indicating that the control key was down at the time this event was generated.

See Also:
Constant Field Values

ALT_DOWN_MASK

public static final int ALT_DOWN_MASK
A modifier mask indicating that the alt key was down at the time this event was generated.

See Also:
Constant Field Values

META_DOWN_MASK

public static final int META_DOWN_MASK
A modifier mask indicating that the meta key (Windows Logo key on some keyboards) was down at the time this event was generated.

See Also:
Constant Field Values

_modifiers

protected int _modifiers
Constructor Detail

InputEvent

protected InputEvent(Object source,
                     long when,
                     int modifiers)
Method Detail

getModifiers

public int getModifiers()
Returns the modifier mask associated with this event.


toString

protected void toString(StringBuffer buf)
Overrides:
toString in class BEvent


Copyright © 2008 Michael Bayne. All Rights Reserved.