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.MouseEvent
public class MouseEvent
extends GtkEvent
MouseListener
Nested Class Summary | |
static class |
Field Summary | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int |
|
Constructor Summary | |
| |
| |
|
Method Summary | |
int |
|
int |
|
ScrollDirection |
|
ModifierType |
|
Window | |
double |
|
double |
|
boolean |
|
public static final int BUTTON1
- Field Value:
- 1
public static final int BUTTON2
- Field Value:
- 2
public static final int BUTTON3
- Field Value:
- 3
public static final int DOUBLE_CLICK
- Field Value:
- 5
public static final int SINGLE_CLICK
- Field Value:
- 4
public static final int TRIPLE_CLICK
- Field Value:
- 6
public static final int TRIPPLE_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.
- Field Value:
- 6
public MouseEvent(Object source, MouseEvent.Type type, EventButton gdkEvent)
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.
public MouseEvent(Object source, MouseEvent.Type type, EventCrossing gdkEvent)
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.
public MouseEvent(Object source, MouseEvent.Type type, EventScroll gdkEvent)
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.
public int getButtonPressed()
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
public int getClickType()
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).
public ScrollDirection getDirection()
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
public ModifierType getModifierKey()
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
)
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.
- Returns:
- double
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.
- Returns:
- double
public boolean isOfType(MouseEvent.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.