public class PSWTMouseEvent extends MouseEvent
| Modifier and Type | Field and Description |
|---|---|
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.
|
BUTTON1, BUTTON2, BUTTON3, MOUSE_CLICKED, MOUSE_DRAGGED, MOUSE_ENTERED, MOUSE_EXITED, MOUSE_FIRST, MOUSE_LAST, MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED, MOUSE_WHEEL, NOBUTTONALT_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_MASKCOMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWNACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASKsource| Constructor and Description |
|---|
PSWTMouseEvent(org.eclipse.swt.events.MouseEvent me,
int type,
int clickCount)
Constructs a PSWTMouseEvent that wraps the provided SWT MouseEvent as a
Swing one.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
getLocationOnScreen, getMouseModifiersText, getPoint, getX, getXOnScreen, getY, getYOnScreen, isPopupTrigger, paramString, translatePointconsume, getMaskForButton, getModifiersExText, getWhen, isAltGraphDown, isConsumed, isMetaDowngetComponentprotected org.eclipse.swt.events.MouseEvent swtEvent
protected int clickCount
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 clickedpublic 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 MouseEventpublic org.eclipse.swt.widgets.Widget getWidget()
public org.eclipse.swt.widgets.Display getDisplay()
public Object getData()
Copyright © 1995-2012 Piccolo2D. All Rights Reserved.