Class ContainerMouseListener.Adapter

  • All Implemented Interfaces:
    ContainerMouseListener
    Enclosing interface:
    ContainerMouseListener

    @Deprecated
    public static class ContainerMouseListener.Adapter
    extends java.lang.Object
    implements ContainerMouseListener
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    Container mouse listener adapter.
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • mouseMove

        public boolean mouseMove​(Container container,
                                 int x,
                                 int y)
        Deprecated.
        Description copied from interface: ContainerMouseListener
        Called when the mouse is moved over a container.
        Specified by:
        mouseMove in interface ContainerMouseListener
        Parameters:
        container - The container under the mouse.
        x - The X-position of the mouse.
        y - The Y-position of the mouse.
        Returns:
        true to consume the event; false to allow it to propagate.
      • mouseDown

        public boolean mouseDown​(Container container,
                                 Mouse.Button button,
                                 int x,
                                 int y)
        Deprecated.
        Description copied from interface: ContainerMouseListener
        Called when the mouse is pressed over a container.
        Specified by:
        mouseDown in interface ContainerMouseListener
        Parameters:
        container - The container under the mouse.
        button - Which button was pressed.
        x - The X-position of the mouse.
        y - The Y-position of the mouse.
        Returns:
        true to consume the event; false to allow it to propagate.
      • mouseUp

        public boolean mouseUp​(Container container,
                               Mouse.Button button,
                               int x,
                               int y)
        Deprecated.
        Description copied from interface: ContainerMouseListener
        Called when the mouse is released over a container.
        Specified by:
        mouseUp in interface ContainerMouseListener
        Parameters:
        container - The container under the mouse.
        button - Which mouse button was released.
        x - The X-position at the time of release.
        y - The Y-position at the time of release.
        Returns:
        true to consume the event; false to allow it to propagate.
      • mouseWheel

        public boolean mouseWheel​(Container container,
                                  Mouse.ScrollType scrollType,
                                  int scrollAmount,
                                  int wheelRotation,
                                  int x,
                                  int y)
        Deprecated.
        Description copied from interface: ContainerMouseListener
        Called when the mouse wheel is scrolled over a container.
        Specified by:
        mouseWheel in interface ContainerMouseListener
        Parameters:
        container - The container under the mouse.
        scrollType - Which type of scroll happened.
        scrollAmount - How much scrolling was requested.
        wheelRotation - The amount and direction of wheel rotation.
        x - The X-position of the mouse at the time.
        y - The Y-position of the mouse.
        Returns:
        true to consume the event; false to allow it to propagate.