NASA World Wind

gov.nasa.worldwind.event
Interface InputHandler

All Superinterfaces:
AVList, EventListener, PropertyChangeListener
All Known Implementing Classes:
AWTInputHandler, NoOpInputHandler

public interface InputHandler
extends AVList, PropertyChangeListener


Method Summary
 void addKeyListener(KeyListener listener)
           
 void addMouseListener(MouseListener listener)
           
 void addMouseMotionListener(MouseMotionListener listener)
           
 void addMouseWheelListener(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(KeyListener listener)
           
 void removeMouseListener(MouseListener listener)
           
 void removeMouseMotionListener(MouseMotionListener listener)
           
 void removeMouseWheelListener(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 interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

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)

NASA World Wind