org.gnu.gtk.event
Class MouseEvent
- Serializable
This event represents mouse events.
MouseListener
BUTTON1
public static final int BUTTON1
- 1
BUTTON2
public static final int BUTTON2
- 2
BUTTON3
public static final int BUTTON3
- 3
DOUBLE_CLICK
public static final int DOUBLE_CLICK
- 5
SINGLE_CLICK
public static final int SINGLE_CLICK
- 4
TRIPPLE_CLICK
public static final int TRIPPLE_CLICK
- 6
MouseEvent
public MouseEvent(Object source,
MouseEvent.Type type,
EventButton gdkEvent)
Construct a LifeCycleEvent object for the BUTTON event.
MouseEvent
public MouseEvent(Object source,
MouseEvent.Type type,
EventCrossing gdkEvent)
Construct a LifeCycleEvent object for the ENTER and LEAVE event.
MouseEvent
public MouseEvent(Object source,
MouseEvent.Type type,
EventScroll gdkEvent)
Construct a LifeCycleEvent object for the WHEEL_SCROLL event.
getButtonPressed
public int getButtonPressed()
Returns the buttonPressed.
- int
getDirection
public ScrollDirection getDirection()
Returns the direction.
- ScrollDirection
getX
public double getX()
Returns the x.
- double
getY
public double getY()
Returns the y.
- double
isOfType
public boolean isOfType(MouseEvent.Type test)
Test to compare events.