|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.gtk.event.GtkEvent | +--org.gnu.gtk.event.MouseEvent
MouseListener
,
Serialized FormNested Class Summary | |
static class |
MouseEvent.Type
|
Field Summary | |
static int |
BUTTON1
Used to identify which button was pressed. |
static int |
BUTTON2
|
static int |
BUTTON3
|
Constructor Summary | |
MouseEvent(java.lang.Object source,
MouseEvent.Type type,
EventButton gdkEvent)
Construct a LifeCycleEvent object for the BUTTON event. |
|
MouseEvent(java.lang.Object source,
MouseEvent.Type type,
EventCrossing gdkEvent)
Construct a LifeCycleEvent object for the ENTER and LEAVE event. |
|
MouseEvent(java.lang.Object source,
MouseEvent.Type type,
EventScroll gdkEvent)
Construct a LifeCycleEvent object for the WHEEL_SCROLL event. |
Method Summary | |
int |
getButtonPressed()
Returns the buttonPressed. |
ScrollDirection |
getDirection()
Returns the direction. |
double |
getX()
Returns the x. |
double |
getY()
Returns the y. |
boolean |
isOfType(MouseEvent.Type test)
Test to compare events. |
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 |
Field Detail |
public static final int BUTTON1
public static final int BUTTON2
public static final int BUTTON3
Constructor Detail |
public MouseEvent(java.lang.Object source, MouseEvent.Type type, EventButton gdkEvent)
public MouseEvent(java.lang.Object source, MouseEvent.Type type, EventScroll gdkEvent)
public MouseEvent(java.lang.Object source, MouseEvent.Type type, EventCrossing gdkEvent)
Method Detail |
public boolean isOfType(MouseEvent.Type test)
public int getButtonPressed()
public ScrollDirection getDirection()
public double getX()
public double getY()
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |