public class TICMouseEvent extends TICInputEvent
| Constructor and Description |
|---|
TICMouseEvent(TICComponent source,
int id,
long time,
int modifiers,
int button,
int clickCount,
boolean popupTrigger,
int componentX,
int componentY) |
| Modifier and Type | Method and Description |
|---|---|
TICMouseEvent |
clone() |
TICMouseEvent |
cloneWithNewSource(TICComponent source)
Creates a copy of this event with all properties set to identical values but with a
different source.
|
TICMouseEvent |
cloneWithNewSourceTranslated(TICComponent source,
int shiftX,
int shiftY)
Creates a copy of this event with all properties set to identical values but with a
different source and shifted x- and y-coordinates.
|
boolean |
equals(java.lang.Object obj) |
int |
getButton() |
int |
getClickCount() |
int |
getComponentX() |
int |
getComponentY() |
int |
hashCode() |
boolean |
isPopupTrigger()
Determines whether is event is the popup trigger of the current platform.
|
getID, getModifiers, getTime, isAltDown, isAltGraphDown, isControlDown, isMenuShortcutKeyDown, isMetaDown, isMouseButton1Down, isMouseButton2Down, isMouseButton3Down, isShiftDownpublic TICMouseEvent(TICComponent source, int id, long time, int modifiers, int button, int clickCount, boolean popupTrigger, int componentX, int componentY)
public int getButton()
public int getClickCount()
public boolean isPopupTrigger()
Note that in the current implementation this method always returns false in events coming from SWT
components.
true if the current event is a popup trigger, false otherwisepublic int getComponentX()
public int getComponentY()
public TICMouseEvent cloneWithNewSourceTranslated(TICComponent source, int shiftX, int shiftY)
source - the source component to be used for the created copyshiftX - the shift on x (The new event will have x = getComponentX() + shiftX.)shiftY - the shift on y (The new event will have y = getComponentY() + shiftY.)public TICMouseEvent cloneWithNewSource(TICComponent source)
TICEventcloneWithNewSource in class TICInputEventsource - the source component to be used for the created copypublic TICMouseEvent clone()
clone in class TICInputEventpublic int hashCode()
hashCode in class TICInputEventpublic boolean equals(java.lang.Object obj)
equals in class TICInputEvent