Class MouseEventDetails

java.lang.Object
io.jmix.mapsflowui.kit.component.event.dom.MouseEventDetails

public class MouseEventDetails extends Object
Class contains mouse details when the user clicks in a map component.
  • Field Details

  • Constructor Details

    • MouseEventDetails

      public MouseEventDetails(MouseEventDetails.MouseButton button, int pageX, int pageY, boolean altKey, boolean ctrlKey, boolean metaKey, boolean shiftKey)
  • Method Details

    • getButton

      public MouseEventDetails.MouseButton getButton()
      Returns:
      mouse button that was pressed
    • getPageX

      public int getPageX()
      Returns:
      the X coordinate of the mouse pointer relative to the whole document
    • getPageY

      public int getPageY()
      Returns:
      the Y coordinate of the mouse pointer relative to the whole document
    • isAltKey

      public boolean isAltKey()
      Returns:
      true if the alt key was down when the mouse event was fired
    • isCtrlKey

      public boolean isCtrlKey()
      Returns:
      true if the control key was down when the mouse event was fired
    • isMetaKey

      public boolean isMetaKey()
      Returns:
      true if the meta key was down when the mouse event was fired
    • isShiftKey

      public boolean isShiftKey()
      Returns:
      true if the shift key was down when the mouse event was fired.