Package org.esa.snap.core.util
Class MouseEventFilterFactory
java.lang.Object
org.esa.snap.core.util.MouseEventFilterFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MouseListenercreateFilter(MouseListener mouseListener) Wrapp the given MouseInputListener with a MouseInputFilterstatic MouseInputListenercreateFilter(MouseInputListener mouseInputListener) Wrapp the given MouseInputListener with a MouseInputFilterstatic voidsetTimeout(int timeout) Sets the timeout which is used by the filters created by the factory methods.
-
Constructor Details
-
MouseEventFilterFactory
public MouseEventFilterFactory()
-
-
Method Details
-
setTimeout
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
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
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
-