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 voidaddKeyListener(java.awt.event.KeyListener listener)voidaddMouseListener(java.awt.event.MouseListener listener)voidaddMouseMotionListener(java.awt.event.MouseMotionListener listener)voidaddMouseWheelListener(java.awt.event.MouseWheelListener listener)voidaddSelectListener(SelectListener listener)voiddispose()WorldWindowgetEventSource()intgetHoverDelay()booleanisForceRedrawOnMousePressed()Indicates whether a redraw is forced when the a mouse button is pressed.voidremoveKeyListener(java.awt.event.KeyListener listener)voidremoveMouseListener(java.awt.event.MouseListener listener)voidremoveMouseMotionListener(java.awt.event.MouseMotionListener listener)voidremoveMouseWheelListener(java.awt.event.MouseWheelListener listener)voidremoveSelectListener(SelectListener listener)voidsetEventSource(WorldWindow newWorldWindow)voidsetForceRedrawOnMousePressed(boolean forceRedrawOnMousePressed)Specifies whether a redraw is forced when the a mouse button is pressed.voidsetHoverDelay(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:
setEventSourcein interfaceInputHandler
-
getEventSource
public WorldWindow getEventSource()
- Specified by:
getEventSourcein interfaceInputHandler
-
setHoverDelay
public void setHoverDelay(int delay)
- Specified by:
setHoverDelayin interfaceInputHandler
-
getHoverDelay
public int getHoverDelay()
- Specified by:
getHoverDelayin interfaceInputHandler
-
addSelectListener
public void addSelectListener(SelectListener listener)
- Specified by:
addSelectListenerin interfaceInputHandler
-
removeSelectListener
public void removeSelectListener(SelectListener listener)
- Specified by:
removeSelectListenerin interfaceInputHandler
-
addKeyListener
public void addKeyListener(java.awt.event.KeyListener listener)
- Specified by:
addKeyListenerin interfaceInputHandler
-
removeKeyListener
public void removeKeyListener(java.awt.event.KeyListener listener)
- Specified by:
removeKeyListenerin interfaceInputHandler
-
addMouseListener
public void addMouseListener(java.awt.event.MouseListener listener)
- Specified by:
addMouseListenerin interfaceInputHandler
-
removeMouseListener
public void removeMouseListener(java.awt.event.MouseListener listener)
- Specified by:
removeMouseListenerin interfaceInputHandler
-
addMouseMotionListener
public void addMouseMotionListener(java.awt.event.MouseMotionListener listener)
- Specified by:
addMouseMotionListenerin interfaceInputHandler
-
removeMouseMotionListener
public void removeMouseMotionListener(java.awt.event.MouseMotionListener listener)
- Specified by:
removeMouseMotionListenerin interfaceInputHandler
-
addMouseWheelListener
public void addMouseWheelListener(java.awt.event.MouseWheelListener listener)
- Specified by:
addMouseWheelListenerin interfaceInputHandler
-
removeMouseWheelListener
public void removeMouseWheelListener(java.awt.event.MouseWheelListener listener)
- Specified by:
removeMouseWheelListenerin interfaceInputHandler
-
dispose
public void dispose()
- Specified by:
disposein interfaceInputHandler
-
isForceRedrawOnMousePressed
public boolean isForceRedrawOnMousePressed()
Description copied from interface:InputHandlerIndicates 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:
isForceRedrawOnMousePressedin 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:InputHandlerSpecifies 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:
setForceRedrawOnMousePressedin interfaceInputHandler- Parameters:
forceRedrawOnMousePressed- true to force a redraw on button press, otherwise false, the default.
-
-