Class MouseExitEvent

    • Constructor Detail

      • MouseExitEvent

        public MouseExitEvent​(java.lang.Object source,
                              Rectangle targetBounds,
                              Rectangle viewportBounds,
                              Point mousePosition,
                              Key... keys)
        Source constructor. The target will be set to be the same as the given source.
        Parameters:
        source - The object on which the event initially occurred.
        targetBounds - The absolute bounds of the event target.
        viewportBounds - The absolute bounds of the viewport.
        mousePosition - The position of the mouse relative to the viewport.
        keys - The keys that were pressed when this event was generated.
        Throws:
        java.lang.NullPointerException - if the given source, target bounds, viewport bounds, mouse position, and/or keys is null.
      • MouseExitEvent

        public MouseExitEvent​(java.lang.Object source,
                              java.lang.Object target,
                              Rectangle targetBounds,
                              Rectangle viewportBounds,
                              Point mousePosition,
                              Key... keys)
        Source and target constructor.
        Parameters:
        source - The object on which the event initially occurred.
        target - The target of the event.
        targetBounds - The absolute bounds of the event target.
        viewportBounds - The absolute bounds of the viewport.
        mousePosition - The position of the mouse relative to the viewport.
        keys - The keys that were pressed when this event was generated.
        Throws:
        java.lang.NullPointerException - if the given source, target, target bounds, viewport bounds, mouse position, and/or keys is null.
      • MouseExitEvent

        public MouseExitEvent​(java.lang.Object source,
                              MouseExitEvent mouseExitEvent)
        Copy constructor that specifies a different source.
        Parameters:
        source - The object on which the event initially occurred.
        mouseExitEvent - The event the properties of which will be copied.
        Throws:
        java.lang.NullPointerException - if the given source and/or event is null.
    • Method Detail

      • getInput

        public MouseInput getInput()
        Returns:
        The input associated with this event, or null if there is no input associated with this event.