Class PointedEditEvent
java.lang.Object
com.levigo.jadice.web.client.tool.events.EventObject
com.levigo.jadice.web.client.tool.events.EditEvent
com.levigo.jadice.web.client.tool.events.PointedEditEvent
- Direct Known Subclasses:
GestureEditEvent
,MouseEditEvent
,PointerEditEvent
,TouchEditEvent
Abstract super class for both mouse and touch edit events.
-
Field Summary
Fields inherited from class com.levigo.jadice.web.client.tool.events.EditEvent
document, inputEvent, pageBounds
Fields inherited from class com.levigo.jadice.web.client.tool.events.EventObject
source
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Point
getAbsolutePoint
(int finger) protected Point2D
getConstrainedDocumentPoint
(int finger) protected Point
getConstrainedPoint
(int finger) protected Point2D
getDocumentPoint
(int finger) protected abstract Point2D
getPoint
(int finger) Return the point relative to the RenderedPage's origin in screen coordinates.static int
getPointerRelativeX
(com.google.gwt.dom.client.Element target, com.google.gwt.event.dom.client.DomEvent<?> event) static int
getPointerRelativeY
(com.google.gwt.dom.client.Element target, com.google.gwt.event.dom.client.DomEvent<?> event) protected int
getX
(int finger) protected int
getY
(int finger) protected boolean
isWithinPageBounds
(int finger) void
setOldPosition
(Point oldPos) Methods inherited from class com.levigo.jadice.web.client.tool.events.EditEvent
consume, create, getDocument, getGwtEvent, getInputEvent, getInputEventType, getModifiers, getModifiersEx, getPage, getPageIndex, getPageRenderControls, getRenderedPageBounds, getRenderedSize, getWhen, hasCanvasTargetSource, hasPageContext, isAltDown, isAltGraphDown, isConsumed, isControlDown, isMetaDown, isPreventPageViewFocus, isShiftDown, preventPageViewFocus, toString
Methods inherited from class com.levigo.jadice.web.client.tool.events.EventObject
getSource
-
Method Details
-
getPoint
Return the point relative to the RenderedPage's origin in screen coordinates.- Parameters:
finger
- the finger of the touch (only for touch event)- Returns:
- The point relative to the RenderedPage's origin.
- See Also:
-
getAbsolutePoint
- Parameters:
finger
- the finger of the touch (only for touch event)- Returns:
- the Point relative to the PageView-TopLeft
-
getConstrainedPoint
-
getDocumentPoint
-
getDocumentPoint
-
getConstrainedDocumentPoint
-
getConstrainedDocumentPoint
-
getX
protected int getX(int finger) -
getY
protected int getY(int finger) -
isWithinPageBounds
protected boolean isWithinPageBounds(int finger) -
getPointerRelativeX
public static int getPointerRelativeX(com.google.gwt.dom.client.Element target, com.google.gwt.event.dom.client.DomEvent<?> event) -
getPointerRelativeY
public static int getPointerRelativeY(com.google.gwt.dom.client.Element target, com.google.gwt.event.dom.client.DomEvent<?> event) -
setOldPosition
-