Class MouseEditEvent


public class MouseEditEvent extends PointedEditEvent
  • Field Details

    • clickCount

      public final int clickCount
  • Method Details

    • getGwtEvent

      public com.google.gwt.event.dom.client.MouseEvent<?> getGwtEvent()
      Overrides:
      getGwtEvent in class EditEvent
    • getButton

      public int getButton()
      Returns:
      The underlying native event.
      See Also:
    • getClickCount

      public int getClickCount()
      Returns:
      The number of clicks recognized by this Event.
      See Also:
    • getPoint

      public Point getPoint()
    • getPoint

      public Point getPoint(int finger)
      Description copied from class: PointedEditEvent
      Return the point relative to the RenderedPage's origin in screen coordinates.
      Specified by:
      getPoint in class PointedEditEvent
      Parameters:
      finger - the finger of the touch (only for touch event)
      Returns:
      The point relative to the RenderedPage's origin.
      See Also:
    • getAbsolutePoint

      public Point getAbsolutePoint()
    • getAbsolutePoint

      public Point getAbsolutePoint(int finger)
      Specified by:
      getAbsolutePoint in class PointedEditEvent
      Parameters:
      finger - the finger of the touch (only for touch event)
      Returns:
      the Point relative to the PageView-TopLeft
    • getInputEvent

      public InputEvent getInputEvent()
      Creates and returns an InputEvent.

      For legacy purposes only.

      Specified by:
      getInputEvent in class EditEvent
      Returns:
      An input event that can be used for legacy purposes.
    • getConstrainedPoint

      public Point getConstrainedPoint()
      Return the point relative to the RenderedPage's origin in screen coordinates. If the point is outside the rendered page's bounds, the point is constrained to lie within the bounds.

      Caveat: Clients must not attempt to call this method unless EditEvent.hasPageContext() returned true.

      Returns:
      The point.
      Throws:
      IllegalStateException - if the event does not have a page context.
      See Also:
    • getX

      public int getX()
      Returns:
      The x coordinate of the point where the mouse was clicked.
      See Also:
    • getY

      public int getY()
      Returns:
      The y coordinate of the point where the mouse was clicked.
      See Also:
    • isWithinPageBounds

      public boolean isWithinPageBounds()
      Returns:
      True, if the event was fired by a click within the bounds, false else.