org.gnu.gtk.event
public class MouseEvent extends GtkEvent
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.
This event represents mouse events.Nested Class Summary | |
---|---|
static class | MouseEvent.Type |
Field Summary | |
---|---|
static int | BUTTON1 |
static int | BUTTON2 |
static int | BUTTON3 |
static int | DOUBLE_CLICK |
static int | SINGLE_CLICK |
static int | TRIPLE_CLICK |
static int | TRIPPLE_CLICK |
Constructor Summary | |
---|---|
MouseEvent(Object source, MouseEvent.Type type, EventButton gdkEvent)
Construct a LifeCycleEvent object for the BUTTON event. | |
MouseEvent(Object source, MouseEvent.Type type, EventScroll gdkEvent)
Construct a LifeCycleEvent object for the WHEEL_SCROLL event. | |
MouseEvent(Object source, MouseEvent.Type type, EventCrossing gdkEvent)
Construct a LifeCycleEvent object for the ENTER and LEAVE event. |
Method Summary | |
---|---|
int | getButtonPressed()
Returns the buttonPressed.
|
int | getClickType()
Returns the click type (single, double, triple). |
ScrollDirection | getDirection()
Returns the direction.
|
ModifierType | getModifierKey()
Returns the modifier key used.
|
Window | getWindow() |
double | getX()
Returns the x.
|
double | getY()
Returns the y.
|
boolean | isOfType(MouseEvent.Type test)
Test to compare events. |
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.
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.
Construct a LifeCycleEvent object for the BUTTON event.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.
Construct a LifeCycleEvent object for the WHEEL_SCROLL event.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.
Construct a LifeCycleEvent object for the ENTER and LEAVE event.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 buttonPressed.Returns: int
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 click type (single, double, triple). The return value should be compared against one of the constants included in this class (SINGLE_CLICK, DOUBLE_CLICK, or TRIPLE_CLICK).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 direction.Returns: ScrollDirection
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 modifier key used.Returns: (see ModifierType)
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.Returns: double
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.Returns: double
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.