Package gov.nasa.worldwind.event
Class NoOpInputHandler
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.event.NoOpInputHandler
-
- All Implemented Interfaces:
AVList
,InputHandler
,MessageListener
,WWObject
,java.beans.PropertyChangeListener
,java.util.EventListener
public class NoOpInputHandler extends WWObjectImpl implements InputHandler
Provides an input handler that does nothing. Meant to serve as a NULL assignment that can be invoked.
-
-
Constructor Summary
Constructors Constructor Description NoOpInputHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addKeyListener(java.awt.event.KeyListener listener)
void
addMouseListener(java.awt.event.MouseListener listener)
void
addMouseMotionListener(java.awt.event.MouseMotionListener listener)
void
addMouseWheelListener(java.awt.event.MouseWheelListener listener)
void
addSelectListener(SelectListener listener)
void
dispose()
WorldWindow
getEventSource()
int
getHoverDelay()
boolean
isForceRedrawOnMousePressed()
Indicates whether a redraw is forced when the a mouse button is pressed.void
removeKeyListener(java.awt.event.KeyListener listener)
void
removeMouseListener(java.awt.event.MouseListener listener)
void
removeMouseMotionListener(java.awt.event.MouseMotionListener listener)
void
removeMouseWheelListener(java.awt.event.MouseWheelListener listener)
void
removeSelectListener(SelectListener listener)
void
setEventSource(WorldWindow newWorldWindow)
void
setForceRedrawOnMousePressed(boolean forceRedrawOnMousePressed)
Specifies whether a redraw is forced when the a mouse button is pressed.void
setHoverDelay(int delay)
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
-
-
-
Method Detail
-
setEventSource
public void setEventSource(WorldWindow newWorldWindow)
- Specified by:
setEventSource
in interfaceInputHandler
-
getEventSource
public WorldWindow getEventSource()
- Specified by:
getEventSource
in interfaceInputHandler
-
setHoverDelay
public void setHoverDelay(int delay)
- Specified by:
setHoverDelay
in interfaceInputHandler
-
getHoverDelay
public int getHoverDelay()
- Specified by:
getHoverDelay
in interfaceInputHandler
-
addSelectListener
public void addSelectListener(SelectListener listener)
- Specified by:
addSelectListener
in interfaceInputHandler
-
removeSelectListener
public void removeSelectListener(SelectListener listener)
- Specified by:
removeSelectListener
in interfaceInputHandler
-
addKeyListener
public void addKeyListener(java.awt.event.KeyListener listener)
- Specified by:
addKeyListener
in interfaceInputHandler
-
removeKeyListener
public void removeKeyListener(java.awt.event.KeyListener listener)
- Specified by:
removeKeyListener
in interfaceInputHandler
-
addMouseListener
public void addMouseListener(java.awt.event.MouseListener listener)
- Specified by:
addMouseListener
in interfaceInputHandler
-
removeMouseListener
public void removeMouseListener(java.awt.event.MouseListener listener)
- Specified by:
removeMouseListener
in interfaceInputHandler
-
addMouseMotionListener
public void addMouseMotionListener(java.awt.event.MouseMotionListener listener)
- Specified by:
addMouseMotionListener
in interfaceInputHandler
-
removeMouseMotionListener
public void removeMouseMotionListener(java.awt.event.MouseMotionListener listener)
- Specified by:
removeMouseMotionListener
in interfaceInputHandler
-
addMouseWheelListener
public void addMouseWheelListener(java.awt.event.MouseWheelListener listener)
- Specified by:
addMouseWheelListener
in interfaceInputHandler
-
removeMouseWheelListener
public void removeMouseWheelListener(java.awt.event.MouseWheelListener listener)
- Specified by:
removeMouseWheelListener
in interfaceInputHandler
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceInputHandler
-
isForceRedrawOnMousePressed
public boolean isForceRedrawOnMousePressed()
Description copied from interface:InputHandler
Indicates whether a redraw is forced when the a mouse button is pressed. Touch screen devices require this so that the current position and selection are updated when the button is pressed. The update occurs naturally on non-touch screen devices because the motion of the mouse prior to the press causes the current position and selection to be updated.- Specified by:
isForceRedrawOnMousePressed
in interfaceInputHandler
- Returns:
- true if a redraw is forced when a button is pressed, otherwise false.
-
setForceRedrawOnMousePressed
public void setForceRedrawOnMousePressed(boolean forceRedrawOnMousePressed)
Description copied from interface:InputHandler
Specifies whether a redraw is forced when the a mouse button is pressed. Touch screen devices require this so that the current position and selection are updated when the button is pressed. The update occurs naturally on non-touch screen devices because the motion of the mouse prior to the press causes the current position and selection to be updated.- Specified by:
setForceRedrawOnMousePressed
in interfaceInputHandler
- Parameters:
forceRedrawOnMousePressed
- true to force a redraw on button press, otherwise false, the default.
-
-