Package org.esa.snap.core.util
Class MouseEventFilterFactory
- java.lang.Object
-
- org.esa.snap.core.util.MouseEventFilterFactory
-
public final class MouseEventFilterFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description MouseEventFilterFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MouseListener
createFilter(MouseListener mouseListener)
Wrapp the given MouseInputListener with a MouseInputFilterstatic MouseInputListener
createFilter(MouseInputListener mouseInputListener)
Wrapp the given MouseInputListener with a MouseInputFilterstatic void
setTimeout(int timeout)
Sets the timeout which is used by the filters created by the factory methods.
-
-
-
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
-
-