Class PointedEditEvent

Direct Known Subclasses:
GestureEditEvent, MouseEditEvent, PointerEditEvent, TouchEditEvent

public abstract class PointedEditEvent extends EditEvent
Abstract super class for both mouse and touch edit events.
  • Method Details

    • getPoint

      protected abstract Point2D getPoint(int finger)
      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

      protected abstract Point getAbsolutePoint(int finger)
      Parameters:
      finger - the finger of the touch (only for touch event)
      Returns:
      the Point relative to the PageView-TopLeft
    • getConstrainedPoint

      protected Point getConstrainedPoint(int finger)
    • getDocumentPoint

      public Point2D getDocumentPoint()
    • getDocumentPoint

      protected Point2D getDocumentPoint(int finger)
    • getConstrainedDocumentPoint

      public Point2D getConstrainedDocumentPoint()
    • getConstrainedDocumentPoint

      protected Point2D getConstrainedDocumentPoint(int finger)
    • 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

      public void setOldPosition(Point oldPos)