Class ComponentMouseListener.Adapter

  • All Implemented Interfaces:
    ComponentMouseListener
    Enclosing interface:
    ComponentMouseListener

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

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • mouseMove

        public boolean mouseMove​(Component component,
                                 int x,
                                 int y)
        Deprecated.
        Description copied from interface: ComponentMouseListener
        Called when the mouse is moved over a component.
        Specified by:
        mouseMove in interface ComponentMouseListener
        Parameters:
        component - Component that is under the mouse.
        x - X position of the mouse.
        y - Y position of the mouse.
        Returns:
        true to consume the event; false to allow it to propagate (default return).
      • mouseOver

        public void mouseOver​(Component component)
        Deprecated.
        Description copied from interface: ComponentMouseListener
        Called when the mouse enters a component.

        Default is to do nothing.

        Specified by:
        mouseOver in interface ComponentMouseListener
        Parameters:
        component - Component that is now under the mouse pointer.
      • mouseOut

        public void mouseOut​(Component component)
        Deprecated.
        Description copied from interface: ComponentMouseListener
        Called when the mouse exits a component.

        Default is to do nothing.

        Specified by:
        mouseOut in interface ComponentMouseListener
        Parameters:
        component - Component that has now lost the mouse pointer.