ewe.ui
Class PenEvent

java.lang.Object
  extended byewe.ui.Event
      extended byewe.ui.PenEvent
All Implemented Interfaces:
ObjectFinder

public class PenEvent
extends Event
implements ObjectFinder

PenEvent is a pen down, up, move or drag event.

A mouse drag occurs when a mouse button is pressed down and the mouse is moved. A mouse move occurs when the mouse is moved without a button being held down.


Field Summary
static ToolTip currentTip
           
static int FROM_OTHER_WINDOW
           
static Control lastTipFor
           
static int MIDDLE_BUTTON
           
 int modifiers
          The state of the modifier keys when the event occured.
static int PEN_DOWN
          The event type for a pen or mouse down event.
static int PEN_DRAG
          The event type for a pen or mouse drag event.
static int PEN_MOVE
          The event type for a pen or mouse move event.
static int PEN_MOVED_OFF
          The event type for a pen or mouse move off event.
static int PEN_MOVED_ON
          The event type for a pen or mouse move on event.
static int PEN_UP
          The event type for a pen or mouse up event.
static int RIGHT_BUTTON
           
static int SCROLL_DOWN
           
static int SCROLL_UP
           
static int TipDelay
          This is the tool tip delay time in milliseconds.
static boolean tipIsVisible
           
static int TRANSFERRED_PRESS
           
static int WANT_PEN_MOVE_TAG
           
static int WANT_PEN_MOVED_INSIDE
           
static int WANT_PEN_MOVED_ONOFF
           
static int WANT_PEN_MOVED_OUTSIDE
           
static int WHEN_NOT_ON_TOP_FRAME
           
 int x
          The x location of the event.
 int y
          The y location of the event.
 
Fields inherited from class ewe.ui.Event
consumed, events, flags, target, timeStamp, type, window
 
Constructor Summary
PenEvent()
           
 
Method Summary
 boolean lookingFor(Object what)
          This should return true if the object is one we are looking for.
static void notWaiting()
          This is called by the VM when the WAIT_CURSOR has been removed.
static boolean refreshTip(ISurface surface)
           
static void resetCursor()
           
protected static void setOptions(Control who, int toSet, int toClear)
           
static void showTip(boolean immediate, Object tooltip)
           
static boolean tipIsDisplayed()
           
static void topFrameChanging()
           
static void wantPenMoved(Control who, int options, boolean enable)
          It is necessary to call this method if a Control wishes to receive Pen/Mouse movement notifications.
 
Methods inherited from class ewe.ui.Event
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode
 

Field Detail

PEN_DOWN

public static final int PEN_DOWN
The event type for a pen or mouse down event.

See Also:
Constant Field Values

PEN_MOVE

public static final int PEN_MOVE
The event type for a pen or mouse move event.

See Also:
Constant Field Values

PEN_UP

public static final int PEN_UP
The event type for a pen or mouse up event.

See Also:
Constant Field Values

PEN_DRAG

public static final int PEN_DRAG
The event type for a pen or mouse drag event.

See Also:
Constant Field Values

PEN_MOVED_ON

public static final int PEN_MOVED_ON
The event type for a pen or mouse move on event.

See Also:
Constant Field Values

PEN_MOVED_OFF

public static final int PEN_MOVED_OFF
The event type for a pen or mouse move off event.

See Also:
Constant Field Values

RIGHT_BUTTON

public static final int RIGHT_BUTTON
See Also:
Constant Field Values

MIDDLE_BUTTON

public static final int MIDDLE_BUTTON
See Also:
Constant Field Values

FROM_OTHER_WINDOW

public static final int FROM_OTHER_WINDOW
See Also:
Constant Field Values

TRANSFERRED_PRESS

public static final int TRANSFERRED_PRESS
See Also:
Constant Field Values

WANT_PEN_MOVE_TAG

public static final int WANT_PEN_MOVE_TAG
See Also:
Constant Field Values

WANT_PEN_MOVED_ONOFF

public static final int WANT_PEN_MOVED_ONOFF
See Also:
Constant Field Values

WANT_PEN_MOVED_INSIDE

public static final int WANT_PEN_MOVED_INSIDE
See Also:
Constant Field Values

WANT_PEN_MOVED_OUTSIDE

public static final int WANT_PEN_MOVED_OUTSIDE
See Also:
Constant Field Values

WHEN_NOT_ON_TOP_FRAME

public static final int WHEN_NOT_ON_TOP_FRAME
See Also:
Constant Field Values

SCROLL_UP

public static final int SCROLL_UP
See Also:
Constant Field Values

SCROLL_DOWN

public static final int SCROLL_DOWN
See Also:
Constant Field Values

currentTip

public static ToolTip currentTip

lastTipFor

public static Control lastTipFor

TipDelay

public static int TipDelay
This is the tool tip delay time in milliseconds. By default it is 500.


tipIsVisible

public static boolean tipIsVisible

x

public int x
The x location of the event.


y

public int y
The y location of the event.


modifiers

public int modifiers
The state of the modifier keys when the event occured. This is a OR'ed combination of the modifiers present in the IKeys interface.

See Also:
IKeys
Constructor Detail

PenEvent

public PenEvent()
Method Detail

tipIsDisplayed

public static boolean tipIsDisplayed()

refreshTip

public static boolean refreshTip(ISurface surface)

lookingFor

public boolean lookingFor(Object what)
Description copied from interface: ObjectFinder
This should return true if the object is one we are looking for.

Specified by:
lookingFor in interface ObjectFinder

setOptions

protected static void setOptions(Control who,
                                 int toSet,
                                 int toClear)

wantPenMoved

public static void wantPenMoved(Control who,
                                int options,
                                boolean enable)
It is necessary to call this method if a Control wishes to receive Pen/Mouse movement notifications.

Parameters:
who - The control requesting notifications.
options - any of the WANT_PEN_MOVED_XXX options ORed together.
enable - true to enable notification, false to disable them.

resetCursor

public static void resetCursor()

notWaiting

public static void notWaiting()
This is called by the VM when the WAIT_CURSOR has been removed.


topFrameChanging

public static void topFrameChanging()

showTip

public static void showTip(boolean immediate,
                           Object tooltip)