NASA World Wind

gov.nasa.worldwind.awt
Class AWTInputHandler

java.lang.Object
  extended by gov.nasa.worldwind.AVListImpl
      extended by gov.nasa.worldwind.awt.AWTInputHandler
All Implemented Interfaces:
AVList, InputHandler, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, PropertyChangeListener, EventListener

public class AWTInputHandler
extends AVListImpl
implements KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, InputHandler


Field Summary
 
Fields inherited from class gov.nasa.worldwind.AVListImpl
changeSupport
 
Constructor Summary
AWTInputHandler()
           
 
Method Summary
 void addPositionListener(PositionListener listener)
           
 void addSelectListener(SelectListener listener)
           
 WorldWindow getEventSource()
           
 int getHoverDelay()
           
 void keyPressed(KeyEvent keyEvent)
           
 void keyReleased(KeyEvent keyEvent)
           
 void keysPolled(int keyCode, int modifiers)
           
 void keyTyped(KeyEvent keyEvent)
           
 void mouseClicked(MouseEvent mouseEvent)
           
 void mouseDragged(MouseEvent mouseEvent)
           
 void mouseEntered(MouseEvent mouseEvent)
           
 void mouseExited(MouseEvent mouseEvent)
           
 void mouseMoved(MouseEvent mouseEvent)
           
 void mousePressed(MouseEvent mouseEvent)
           
 void mouseReleased(MouseEvent mouseEvent)
           
 void mouseWheelMoved(MouseWheelEvent mouseWheelEvent)
           
 void removePositionListener(PositionListener listener)
           
 void removeSelectListener(SelectListener listener)
           
 void setEventSource(WorldWindow newWorldWindow)
           
 void setHoverDelay(int delay)
           
 
Methods inherited from class gov.nasa.worldwind.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, copy, firePropertyChange, firePropertyChange, getStringValue, getValue, hasKey, propertyChange, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue
 
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
addPropertyChangeListener, addPropertyChangeListener, copy, firePropertyChange, firePropertyChange, getStringValue, getValue, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Constructor Detail

AWTInputHandler

public AWTInputHandler()
Method Detail

addPositionListener

public void addPositionListener(PositionListener listener)
Specified by:
addPositionListener in interface InputHandler

addSelectListener

public void addSelectListener(SelectListener listener)
Specified by:
addSelectListener in interface InputHandler

getEventSource

public WorldWindow getEventSource()
Specified by:
getEventSource in interface InputHandler

getHoverDelay

public int getHoverDelay()
Specified by:
getHoverDelay in interface InputHandler

keyPressed

public void keyPressed(KeyEvent keyEvent)
Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent keyEvent)
Specified by:
keyReleased in interface KeyListener

keysPolled

public void keysPolled(int keyCode,
                       int modifiers)

keyTyped

public void keyTyped(KeyEvent keyEvent)
Specified by:
keyTyped in interface KeyListener

mouseClicked

public void mouseClicked(MouseEvent mouseEvent)
Specified by:
mouseClicked in interface MouseListener

mouseDragged

public void mouseDragged(MouseEvent mouseEvent)
Specified by:
mouseDragged in interface MouseMotionListener

mouseEntered

public void mouseEntered(MouseEvent mouseEvent)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent mouseEvent)
Specified by:
mouseExited in interface MouseListener

mouseMoved

public void mouseMoved(MouseEvent mouseEvent)
Specified by:
mouseMoved in interface MouseMotionListener

mousePressed

public void mousePressed(MouseEvent mouseEvent)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent mouseEvent)
Specified by:
mouseReleased in interface MouseListener

mouseWheelMoved

public void mouseWheelMoved(MouseWheelEvent mouseWheelEvent)
Specified by:
mouseWheelMoved in interface MouseWheelListener

removePositionListener

public void removePositionListener(PositionListener listener)
Specified by:
removePositionListener 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

setHoverDelay

public void setHoverDelay(int delay)
Specified by:
setHoverDelay in interface InputHandler

NASA World Wind