gov.nasa.worldwind.event
Interface InputHandler
- All Superinterfaces:
- AVList, EventListener, PropertyChangeListener
- All Known Implementing Classes:
- AWTInputHandler, NoOpInputHandler
public interface InputHandler
- extends AVList, PropertyChangeListener
| 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 |
addKeyListener
void addKeyListener(KeyListener listener)
addMouseListener
void addMouseListener(MouseListener listener)
addMouseMotionListener
void addMouseMotionListener(MouseMotionListener listener)
addMouseWheelListener
void addMouseWheelListener(MouseWheelListener listener)
addSelectListener
void addSelectListener(SelectListener listener)
dispose
void dispose()
getEventSource
WorldWindow getEventSource()
getHoverDelay
int getHoverDelay()
isForceRedrawOnMousePressed
boolean isForceRedrawOnMousePressed()
- 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.
- Returns:
- true if a redraw is forced when a button is pressed, otherwise false.
removeKeyListener
void removeKeyListener(KeyListener listener)
removeMouseListener
void removeMouseListener(MouseListener listener)
removeMouseMotionListener
void removeMouseMotionListener(MouseMotionListener listener)
removeMouseWheelListener
void removeMouseWheelListener(MouseWheelListener listener)
removeSelectListener
void removeSelectListener(SelectListener listener)
setEventSource
void setEventSource(WorldWindow newWorldWindow)
setForceRedrawOnMousePressed
void setForceRedrawOnMousePressed(boolean forceRedrawOnMousePressed)
- 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.
- Parameters:
forceRedrawOnMousePressed - true to force a redraw on button press, otherwise false, the default.
setHoverDelay
void setHoverDelay(int delay)