Class MouseEvent<H extends EventHandler>

    • Constructor Detail

      • MouseEvent

        public MouseEvent()
    • Method Detail

      • getClientX

        public int getClientX()
        Gets the mouse x-position within the browser window's client area.
        Returns:
        the mouse x-position
      • getClientY

        public int getClientY()
        Gets the mouse y-position within the browser window's client area.
        Returns:
        the mouse y-position
      • getRelativeX

        public int getRelativeX​(Element target)
        Gets the mouse x-position relative to a given element.
        Parameters:
        target - the element whose coordinate system is to be used
        Returns:
        the relative x-position
      • getRelativeY

        public int getRelativeY​(Element target)
        Gets the mouse y-position relative to a given element.
        Parameters:
        target - the element whose coordinate system is to be used
        Returns:
        the relative y-position
      • getScreenX

        public int getScreenX()
        Gets the mouse x-position on the user's display.
        Returns:
        the mouse x-position
      • getScreenY

        public int getScreenY()
        Gets the mouse y-position on the user's display.
        Returns:
        the mouse y-position
      • getX

        public int getX()
        Gets the mouse x-position relative to the event's current target element.
        Returns:
        the relative x-position
      • getY

        public int getY()
        Gets the mouse y-position relative to the event's current target element.
        Returns:
        the relative y-position