Class MouseEventFilterFactory


  • public final class MouseEventFilterFactory
    extends Object
    • Constructor Detail

      • MouseEventFilterFactory

        public MouseEventFilterFactory()
    • Method Detail

      • setTimeout

        public static void setTimeout​(int timeout)
                               throws IllegalArgumentException
        Sets the timeout which is used by the filters created by the factory methods.
        Parameters:
        timeout - the timeout time in milli seconds.
        Throws:
        IllegalArgumentException - if the given timeout time is smaller then 1.
      • createFilter

        public static MouseInputListener createFilter​(MouseInputListener mouseInputListener)
        Wrapp the given MouseInputListener with a MouseInputFilter
        Parameters:
        mouseInputListener - the listener to wrapp
        Returns:
        the wrapped listener or null if the given listener is null
      • createFilter

        public static MouseListener createFilter​(MouseListener mouseListener)
        Wrapp the given MouseInputListener with a MouseInputFilter
        Parameters:
        mouseListener - the listener to wrapp
        Returns:
        the wrapped listener or null if the given listener is null