public class TICMouseWheelEvent extends TICMouseEvent
| Constructor and Description |
|---|
TICMouseWheelEvent(TICComponent source,
int id,
long time,
int modifiers,
int button,
int clickCount,
boolean popupTrigger,
int componentX,
int componentY,
int wheelRotation,
double preciseWheelRotation) |
| Modifier and Type | Method and Description |
|---|---|
TICMouseWheelEvent |
clone() |
TICMouseWheelEvent |
cloneWithNewSource(TICComponent source)
Creates a copy of this event with all properties set to identical values but with a
different source.
|
TICMouseWheelEvent |
cloneWithNewSourceTranslated(TICComponent source,
int offsetX,
int offsetY)
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) |
double |
getPreciseWheelRotation()
Returns the number of "clicks" the mouse wheel was rotated, as a
double. |
int |
getWheelRotation()
Returns the number of "clicks" the mouse wheel was rotated.
|
int |
hashCode() |
getButton, getClickCount, getComponentX, getComponentY, isPopupTriggergetID, getModifiers, getTime, isAltDown, isAltGraphDown, isControlDown, isMenuShortcutKeyDown, isMetaDown, isMouseButton1Down, isMouseButton2Down, isMouseButton3Down, isShiftDownpublic TICMouseWheelEvent(TICComponent source, int id, long time, int modifiers, int button, int clickCount, boolean popupTrigger, int componentX, int componentY, int wheelRotation, double preciseWheelRotation)
public double getPreciseWheelRotation()
double. A partial rotation may occur if the mouse
supports a high-resolution wheel and the underlying toolkit is Swing. In this case, the return value will include a
fractional "click". If an underlying SWT component is used the return value of this method will always be identical with
getWheelRotation().public int getWheelRotation()
getPreciseWheelRotation()public TICMouseWheelEvent cloneWithNewSourceTranslated(TICComponent source, int offsetX, int offsetY)
TICMouseEventcloneWithNewSourceTranslated in class TICMouseEventsource - the source component to be used for the created copyoffsetX - the shift on x (The new event will have x = getComponentX() + shiftX.)offsetY - the shift on y (The new event will have y = getComponentY() + shiftY.)public TICMouseWheelEvent cloneWithNewSource(TICComponent source)
TICEventcloneWithNewSource in class TICMouseEventsource - the source component to be used for the created copypublic TICMouseWheelEvent clone()
clone in class TICMouseEventpublic int hashCode()
hashCode in class TICMouseEventpublic boolean equals(java.lang.Object obj)
equals in class TICMouseEvent