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, PropertyChangeListener, 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.
| 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, finalize, 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 |
NoOpInputHandler
public NoOpInputHandler()
addKeyListener
public void addKeyListener(KeyListener listener)
- Specified by:
addKeyListener in interface InputHandler
addMouseListener
public void addMouseListener(MouseListener listener)
- Specified by:
addMouseListener in interface InputHandler
addMouseMotionListener
public void addMouseMotionListener(MouseMotionListener listener)
- Specified by:
addMouseMotionListener in interface InputHandler
addMouseWheelListener
public void addMouseWheelListener(MouseWheelListener listener)
- Specified by:
addMouseWheelListener in interface InputHandler
addSelectListener
public void addSelectListener(SelectListener listener)
- Specified by:
addSelectListener in interface InputHandler
dispose
public void dispose()
- Specified by:
dispose in interface InputHandler
getEventSource
public WorldWindow getEventSource()
- Specified by:
getEventSource in interface InputHandler
getHoverDelay
public int getHoverDelay()
- Specified by:
getHoverDelay in interface InputHandler
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 interface InputHandler
- Returns:
- true if a redraw is forced when a button is pressed, otherwise false.
removeKeyListener
public void removeKeyListener(KeyListener listener)
- Specified by:
removeKeyListener in interface InputHandler
removeMouseListener
public void removeMouseListener(MouseListener listener)
- Specified by:
removeMouseListener in interface InputHandler
removeMouseMotionListener
public void removeMouseMotionListener(MouseMotionListener listener)
- Specified by:
removeMouseMotionListener in interface InputHandler
removeMouseWheelListener
public void removeMouseWheelListener(MouseWheelListener listener)
- Specified by:
removeMouseWheelListener in interface InputHandler
removeSelectListener
public void removeSelectListener(SelectListener listener)
- Specified by:
removeSelectListener in interface InputHandler
setEventSource
public void setEventSource(WorldWindow newWorldWindow)
- Specified by:
setEventSource in interface InputHandler
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 interface InputHandler
- Parameters:
forceRedrawOnMousePressed - true to force a redraw on button press, otherwise false, the default.
setHoverDelay
public void setHoverDelay(int delay)
- Specified by:
setHoverDelay in interface InputHandler