org.gnu.gtk.event
Class MouseMotionEvent

java.lang.Object
  extended by org.gnu.gtk.event.GtkEvent
      extended by org.gnu.gtk.event.MouseMotionEvent
All Implemented Interfaces:
java.io.Serializable

Deprecated. This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. Signal handling an connection has been completely re-implemented in java-gnome 4.0, so you will need to refactor any code attempting to use this class.

public class MouseMotionEvent
extends GtkEvent

This event object is used to identify how mouseMotion has changed. Note: normally motion events are sent just when some mouse button is pressed. If you want events also when no button is pressed, you should retrieve the widget's GdkWindow using Widget.getWindow() and do:

 window.setEvents(window.getEvents().or(EventMask.POINTER_MOTION_MASK));
 

See Also:
Widget.getWindow(), MouseMotionListener, Serialized Form

Nested Class Summary
static class MouseMotionEvent.Type
          Deprecated.  
 
Constructor Summary
MouseMotionEvent(java.lang.Object source, EventMotion gdkEvent)
          Deprecated.  
 
Method Summary
 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.
 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.
 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.
 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.
 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.
 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.
 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.
 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.
 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.
 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.
 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.
 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.
 
Methods inherited from class org.gnu.gtk.event.GtkEvent
getSource, getType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MouseMotionEvent

public MouseMotionEvent(java.lang.Object source,
                        EventMotion gdkEvent)
Deprecated. 
Method Detail

getWindow

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.

getSendEvent

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.

getTimeMillis

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.

getX

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.

getY

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.

getState

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.

isHint

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

getDevice

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.

getXRoot

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.

getYRoot

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.

isOfType

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.


refireIfHint

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