|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
java.awt.AWTEvent
java.awt.event.ComponentEvent
java.awt.event.InputEvent
java.awt.event.MouseEvent
edu.umd.cs.piccolox.swt.PSWTMouseEvent
public class PSWTMouseEvent
Mouse event overridden to wrap an SWT MouseEvent as a Swing MouseEvent.
| Field Summary | |
|---|---|
protected int |
clickCount
Number times the mouse was clicked in relation to the wrapped event. |
protected org.eclipse.swt.events.MouseEvent |
swtEvent
Event being wrapped. |
| Fields inherited from class java.awt.event.MouseEvent |
|---|
BUTTON1, BUTTON2, BUTTON3, MOUSE_CLICKED, MOUSE_DRAGGED, MOUSE_ENTERED, MOUSE_EXITED, MOUSE_FIRST, MOUSE_LAST, MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED, MOUSE_WHEEL, NOBUTTON |
| Fields inherited from class java.awt.event.InputEvent |
|---|
ALT_DOWN_MASK, ALT_GRAPH_DOWN_MASK, ALT_GRAPH_MASK, ALT_MASK, BUTTON1_DOWN_MASK, BUTTON1_MASK, BUTTON2_DOWN_MASK, BUTTON2_MASK, BUTTON3_DOWN_MASK, BUTTON3_MASK, CTRL_DOWN_MASK, CTRL_MASK, META_DOWN_MASK, META_MASK, SHIFT_DOWN_MASK, SHIFT_MASK |
| Fields inherited from class java.awt.event.ComponentEvent |
|---|
COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
PSWTMouseEvent(org.eclipse.swt.events.MouseEvent me,
int type,
int clickCount)
Constructs a PSWTMouseEvent that wraps the provided SWT MouseEvent as a Swing one. |
|
| Method Summary | |
|---|---|
int |
getButton()
|
int |
getClickCount()
|
Object |
getData()
Return the associated SWT data for the event. |
org.eclipse.swt.widgets.Display |
getDisplay()
Return the display on which the interaction occurred. |
int |
getModifiers()
|
int |
getModifiersEx()
|
Object |
getSource()
|
org.eclipse.swt.widgets.Widget |
getWidget()
Returns the widget from which the event was emitted. |
boolean |
isAltDown()
|
boolean |
isControlDown()
|
boolean |
isShiftDown()
|
| Methods inherited from class java.awt.event.MouseEvent |
|---|
getLocationOnScreen, getMouseModifiersText, getPoint, getX, getXOnScreen, getY, getYOnScreen, isPopupTrigger, paramString, translatePoint |
| Methods inherited from class java.awt.event.InputEvent |
|---|
consume, getModifiersExText, getWhen, isAltGraphDown, isConsumed, isMetaDown |
| Methods inherited from class java.awt.event.ComponentEvent |
|---|
getComponent |
| Methods inherited from class java.awt.AWTEvent |
|---|
getID, setSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.eclipse.swt.events.MouseEvent swtEvent
protected int clickCount
| Constructor Detail |
|---|
public PSWTMouseEvent(org.eclipse.swt.events.MouseEvent me,
int type,
int clickCount)
me - Mouse Event being wrappedtype - event typeclickCount - number of times the mouse has been clicked| Method Detail |
|---|
public Object getSource()
getSource in class EventObjectpublic int getClickCount()
getClickCount in class MouseEventpublic int getButton()
getButton in class MouseEventpublic boolean isShiftDown()
isShiftDown in class InputEventpublic boolean isControlDown()
isControlDown in class InputEventpublic boolean isAltDown()
isAltDown in class InputEventpublic int getModifiers()
getModifiers in class InputEventpublic int getModifiersEx()
getModifiersEx in class InputEventpublic org.eclipse.swt.widgets.Widget getWidget()
public org.eclipse.swt.widgets.Display getDisplay()
public Object getData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||