Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.gnu.gtk.event.GtkEvent
org.gnu.gtk.event.MouseMotionEvent
public class MouseMotionEvent
extends GtkEvent
window.setEvents(window.getEvents().or(EventMask.POINTER_MOTION_MASK));
Widget.getWindow()
, MouseMotionListener
Nested Class Summary | |
static class |
Constructor Summary | |
|
Method Summary | |
Device |
|
boolean |
|
ModifierType |
|
int |
|
Window |
|
double |
|
double |
|
double |
|
double |
|
boolean |
|
boolean |
|
void |
|
public Device getDevice()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Returns the device where the event originated.
- Returns:
- the device where the event originated.
public boolean getSendEvent()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Check if the event was sent explicitly (eg using XSendEvent).
- Returns:
- true if the event was sent explicitly (e.g. using XSendEvent), false otherwise.
public ModifierType getState()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Returns a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons.
- Returns:
- a bit-mask representing the state of the modifier keys and the pointer buttons.
public int getTimeMillis()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Returns the time of the event in milliseconds.
- Returns:
- the time of the event in milliseconds.
public Window getWindow()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
The window which received the event.
- Returns:
- the window which received the event.
public double getX()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Returns the x coordinate of the pointer relative to the window.
- Returns:
- the x coordinate of the pointer relative to the window.
public double getXRoot()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Returns the x coordinate of the pointer relative to the root of the screen.
- Returns:
- the x coordinate of the pointer relative to the root of the screen.
public double getY()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Returns the y coordinate of the pointer relative to the window.
- Returns:
- the y coordinate of the pointer relative to the window.
public double getYRoot()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Returns the y coordinate of the pointer relative to the root of the screen.
- Returns:
- the y coordinate of the pointer relative to the root of the screen.
public boolean isHint()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Check if this event is just a hint.
- Returns:
- true if this event is just a hint, false otherwise.
- See Also:
EventMask.POINTER_MOTION_HINT_MASK
public boolean isOfType(MouseMotionEvent.Type test)
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
Test to compare events.
public void refireIfHint()
Deprecated. Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.
In the case that this event is a hint, this method triggers the next event to be fired. If this method isn't called for cases where isHint returns true, no further MouseMotionEvents will be fired