org.esa.beam.util
Class MouseEventFilterFactory

java.lang.Object
  extended by org.esa.beam.util.MouseEventFilterFactory

public final class MouseEventFilterFactory
extends Object


Constructor Summary
MouseEventFilterFactory()
           
 
Method Summary
static MouseInputListener createFilter(MouseInputListener mouseInputListener)
          Wrapp the given MouseInputListener with a MouseInputFilter
static MouseListener createFilter(MouseListener mouseListener)
          Wrapp the given MouseInputListener with a MouseInputFilter
static void setTimeout(int timeout)
          Sets the timeout which is used by the filters created by the factory methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.