public class JsTouchEvent extends JsUIEvent implements TouchEvent
AT_TARGET, BEFORECOPY, BEFORECUT, BEFOREPASTE, BLUR, BUBBLING_PHASE, CAPTURING_PHASE, CHANGE, CLICK, CONTEXTMENU, COPY, CUT, DBLCLICK, DRAG, DRAGEND, DRAGENTER, DRAGLEAVE, DRAGOVER, DRAGSTART, DROP, ERROR, FOCUS, FOCUSIN, FOCUSOUT, INPUT, INVALID, KEYDOWN, KEYPRESS, KEYUP, MOUSEDOWN, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOUSEWHEEL, NONE, PASTE, RESIZE, SCROLL, SELECTSTART, SUBMIT, TOUCHCANCEL, TOUCHEND, TOUCHMOVE, TOUCHSTART, WEBKITANIMATIONEND, WEBKITANIMATIONITERATION, WEBKITANIMATIONSTART, WEBKITTRANSITIONEND
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsTouchEvent() |
Modifier and Type | Method and Description |
---|---|
JsTouchList |
getChangedTouches()
|
JsTouchList |
getTargetTouches()
|
JsTouchList |
getTouches()
|
void |
initTouchEvent(TouchList touches,
TouchList targetTouches,
TouchList changedTouches,
String type,
Window view,
int screenX,
int screenY,
int clientX,
int clientY,
boolean ctrlKey,
boolean altKey,
boolean shiftKey,
boolean metaKey) |
boolean |
isAltKey()
A Boolean value indicating whether or not the alt key was down when the touch event was fired.
|
boolean |
isCtrlKey()
A Boolean value indicating whether or not the control key was down when the touch event was fired.
|
boolean |
isMetaKey()
A Boolean value indicating whether or not the meta key was down when the touch event was fired.
|
boolean |
isShiftKey()
A Boolean value indicating whether or not the shift key was down when the touch event was fired.
|
getCharCode, getDetail, getKeyCode, getLayerX, getLayerY, getPageX, getPageY, getView, getWhich, initUIEvent
getClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagation
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCharCode, getDetail, getKeyCode, getLayerX, getLayerY, getPageX, getPageY, getView, getWhich, initUIEvent
getClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagation
intAt, length
numberAt
public final boolean isAltKey()
TouchEvent
isAltKey
in interface TouchEvent
public final JsTouchList getChangedTouches()
TouchEvent
TouchList
of all the Touch
objects representing individual points of contact whose states changed between the previous touch event and this one. Read only.getChangedTouches
in interface TouchEvent
public final boolean isCtrlKey()
TouchEvent
isCtrlKey
in interface TouchEvent
public final boolean isMetaKey()
TouchEvent
isMetaKey
in interface TouchEvent
public final boolean isShiftKey()
TouchEvent
isShiftKey
in interface TouchEvent
public final JsTouchList getTargetTouches()
TouchEvent
TouchList
of all the Touch
objects that are both currently in contact with the touch surface and were also started on the same element that is the target of the event. Read only.getTargetTouches
in interface TouchEvent
public final JsTouchList getTouches()
TouchEvent
TouchList
of all the Touch
objects representing all current points of contact with the surface, regardless of target or changed status. Read only.getTouches
in interface TouchEvent
public final void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList changedTouches, String type, Window view, int screenX, int screenY, int clientX, int clientY, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey)
initTouchEvent
in interface TouchEvent
Copyright © 2016. All rights reserved.