Eclipse Draw2d
3.3

org.eclipse.draw2d
Class InputEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.draw2d.InputEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
KeyEvent, MouseEvent

public abstract class InputEvent
extends java.util.EventObject

The base class for Draw2d events.

See Also:
Serialized Form

Field Summary
static int ALT
          Deprecated. Use SWT#ALT instead.
static int ANY_BUTTON
          Deprecated. Use SWT#BUTTON_MASK instead.
static int BUTTON1
          Deprecated. Use SWT#BUTTON1 instead.
static int BUTTON2
          Deprecated. Use SWT#BUTTON2 instead.
static int BUTTON3
          Deprecated. Use SWT#BUTTON3 instead.
static int BUTTON4
          Deprecated. Use SWT#BUTTON4 instead.
static int BUTTON5
          Deprecated. Use SWT#BUTTON5 instead.
static int CONTROL
          Deprecated. Use SWT#CONTROL instead.
static int SHIFT
          Deprecated. Use SWT#SHIFT instead.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
InputEvent(EventDispatcher dispatcher, IFigure source, int state)
          Constructs a new InputEvent.
 
Method Summary
 void consume()
          Marks this event as consumed so that it doesn't get passed on to other listeners.
 int getState()
          Returns the event state mask, which is a bitwise OR'ing of the keyboard modifier and the mouse button mask.
 boolean isConsumed()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALT

public static final int ALT
Deprecated. Use SWT#ALT instead.

CONTROL

public static final int CONTROL
Deprecated. Use SWT#CONTROL instead.

SHIFT

public static final int SHIFT
Deprecated. Use SWT#SHIFT instead.

BUTTON1

public static final int BUTTON1
Deprecated. Use SWT#BUTTON1 instead.

BUTTON2

public static final int BUTTON2
Deprecated. Use SWT#BUTTON2 instead.

BUTTON3

public static final int BUTTON3
Deprecated. Use SWT#BUTTON3 instead.

BUTTON4

public static final int BUTTON4
Deprecated. Use SWT#BUTTON4 instead.

BUTTON5

public static final int BUTTON5
Deprecated. Use SWT#BUTTON5 instead.

ANY_BUTTON

public static final int ANY_BUTTON
Deprecated. Use SWT#BUTTON_MASK instead.
A bitwise OR'ing of BUTTON1, BUTTON2, BUTTON3, BUTTON4 and BUTTON5

Constructor Detail

InputEvent

public InputEvent(EventDispatcher dispatcher,
                  IFigure source,
                  int state)
Constructs a new InputEvent.

Parameters:
dispatcher - the event dispatcher
source - the source of the event
state - the state of the keyboard modifier and mouse button mask.
See Also:
SWT, SWT
Method Detail

consume

public void consume()
Marks this event as consumed so that it doesn't get passed on to other listeners.


getState

public int getState()
Returns the event state mask, which is a bitwise OR'ing of the keyboard modifier and the mouse button mask.

Returns:
the state
See Also:
SWT, SWT

isConsumed

public boolean isConsumed()
Returns:
whether this event has been consumed.

Eclipse Draw2d
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.