|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
yu.ac.bg.etf.javaqx.qswing.events.QSwingEvent
yu.ac.bg.etf.javaqx.qswing.events.ComponentEvent
yu.ac.bg.etf.javaqx.qswing.events.InputEvent
yu.ac.bg.etf.javaqx.qswing.events.MouseEvent
Mouse Event.
NOTE: This class is not full compatible with java.awt.event.MouseEvent class!
Field Summary | |
static int |
BUTTON1
Indicates that button 1 changed state. |
static int |
BUTTON2
Indicates that button 2 changed state. |
static int |
BUTTON3
Indicates button 3 changed state. |
static int |
MOUSE_CLICKED
Mouse clicked id. |
static int |
MOUSE_DRAGGED
Mouse dragged id. |
static int |
MOUSE_ENTERED
Mouse entered id. |
static int |
MOUSE_EXITED
Mouse exited id. |
static int |
MOUSE_MOVED
Mouse moved id. |
static int |
MOUSE_PRESSED
Mouse pressed id. |
static int |
MOUSE_RELEASED
Mouse released id. |
static int |
MOUSE_WHEEL
Mouse wheel id. |
static int |
NOBUTTON
Indicates that no button changed state. |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.events.InputEvent |
ALT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, CTRL_MASK, META_MASK, SHIFT_MASK |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.events.ComponentEvent |
COMPONENT_HIDDEN, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.events.QSwingEvent |
ACTION_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTEXT_MENU_EVENT_MASK, CUSTOM_CONTEXT_MENU_EVENT_MASK, FOCUS_EVENT_MASK, id, KEY_EVENT_MASK, LOCATION_TOOL_TIP_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, PAINT_VIEW_EVENT_MASK, WINDOW_EVENT_MASK |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
MouseEvent(JQComponent source,
int id,
long when,
int modifiers,
int x,
int y,
int clickCount)
Constructs new MouseEvent object. |
|
MouseEvent(JQComponent source,
int id,
long when,
int modifiers,
int x,
int y,
int clickCount,
int button)
Constructs new MouseEvent object. |
Method Summary | |
int |
getButton()
Returns the button that changed state. |
int |
getClickCount()
Returns click count. |
Point |
getPoint()
Returns point of the mouse pointer relative to the source component. |
int |
getX()
Returns the x coordinate of the mouse position relative to the source component. |
int |
getY()
Returns the y coordinate of the mouse position relative to the source component. |
java.lang.String |
paramString()
Returns string representation of the event. |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.events.InputEvent |
consume, getModifiers, getModifiersText, getWhen, isAltDown, isConsumed, isControlDown, isMetaDown, isShiftDown |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.events.ComponentEvent |
getComponent |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.events.QSwingEvent |
getID, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MOUSE_CLICKED
public static final int MOUSE_PRESSED
public static final int MOUSE_RELEASED
public static final int MOUSE_MOVED
public static final int MOUSE_ENTERED
public static final int MOUSE_EXITED
public static final int MOUSE_DRAGGED
public static final int MOUSE_WHEEL
public static final int NOBUTTON
public static final int BUTTON1
public static final int BUTTON2
public static final int BUTTON3
Constructor Detail |
public MouseEvent(JQComponent source, int id, long when, int modifiers, int x, int y, int clickCount, int button)
source
- the source componentid
- the event idwhen
- the time the event occurredmodifiers
- the modifiersx
- the x coordinate of the mouse pointy
- the y coordinate of the mouse pointclickCount
- the click countbutton
- the mouse button
java.lang.IllegalArgumentException
- if the source is nullpublic MouseEvent(JQComponent source, int id, long when, int modifiers, int x, int y, int clickCount)
source
- the source componentid
- the event idwhen
- the time the event occurredmodifiers
- the modifiersx
- the x coordinate of the mouse pointy
- the y coordinate of the mouse pointclickCount
- the click count
java.lang.IllegalArgumentException
- if the source is nullMethod Detail |
public int getX()
public int getY()
public Point getPoint()
public int getClickCount()
public int getButton()
public java.lang.String paramString()
paramString
in class ComponentEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |