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, pageBoundsFields inherited from class com.levigo.jadice.web.client.tool.events.EventObject
source -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract PointgetAbsolutePoint(int finger) protected Point2DgetConstrainedDocumentPoint(int finger) protected PointgetConstrainedPoint(int finger) protected Point2DgetDocumentPoint(int finger) protected abstract Point2DgetPoint(int finger) Return the point relative to the RenderedPage's origin in screen coordinates.static intgetPointerRelativeX(com.google.gwt.dom.client.Element target, com.google.gwt.event.dom.client.DomEvent<?> event) static intgetPointerRelativeY(com.google.gwt.dom.client.Element target, com.google.gwt.event.dom.client.DomEvent<?> event) protected intgetX(int finger) protected intgetY(int finger) protected booleanisWithinPageBounds(int finger) voidsetOldPosition(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, toStringMethods 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
-