gov.nasa.worldwind.awt
Class AWTInputHandler
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.awt.AWTInputHandler
- All Implemented Interfaces:
- AVList, InputHandler, WWObject, FocusListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, PropertyChangeListener, EventListener
public class AWTInputHandler
- extends WWObjectImpl
- implements KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, FocusListener, InputHandler
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, 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 |
AWTInputHandler
public AWTInputHandler()
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
callMouseClickedListeners
protected void callMouseClickedListeners(MouseEvent event)
callMouseDraggedListeners
protected void callMouseDraggedListeners(MouseEvent event)
callMouseMovedListeners
protected void callMouseMovedListeners(MouseEvent event)
callMousePressedListeners
protected void callMousePressedListeners(MouseEvent event)
callMouseReleasedListeners
protected void callMouseReleasedListeners(MouseEvent event)
callSelectListeners
protected void callSelectListeners(SelectEvent event)
cancelDrag
protected void cancelDrag()
clear
public void clear()
- Specified by:
clear in interface InputHandler
doHover
protected void doHover(boolean reset)
focusGained
public void focusGained(FocusEvent focusEvent)
- Specified by:
focusGained in interface FocusListener
focusLost
public void focusLost(FocusEvent focusEvent)
- Specified by:
focusLost in interface FocusListener
getEventSource
public WorldWindow getEventSource()
- Specified by:
getEventSource in interface InputHandler
getHoverDelay
public int getHoverDelay()
- Specified by:
getHoverDelay in interface InputHandler
getHoverObjects
protected PickedObjectList getHoverObjects()
getMousePoint
protected Point getMousePoint()
getObjectsAtButtonPress
protected PickedObjectList getObjectsAtButtonPress()
getViewInputBroker
protected OrbitViewInputBroker getViewInputBroker()
getWorldWindow
protected WorldWindow getWorldWindow()
isDragging
protected boolean isDragging()
isHovering
protected boolean isHovering()
isLockViewHeading
public boolean isLockViewHeading()
isPickListEmpty
protected boolean isPickListEmpty(PickedObjectList pickList)
isSmoothViewChanges
public boolean isSmoothViewChanges()
keyPressed
public void keyPressed(KeyEvent keyEvent)
- Specified by:
keyPressed in interface KeyListener
keyReleased
public void keyReleased(KeyEvent keyEvent)
- Specified by:
keyReleased in interface KeyListener
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
pickMatches
protected boolean pickMatches(PickedObjectList pickedObjects)
removeHoverSelectListener
public void removeHoverSelectListener()
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
setDragging
protected void setDragging(boolean dragging)
setEventSource
public void setEventSource(WorldWindow newWorldWindow)
- Specified by:
setEventSource in interface InputHandler
setHoverDelay
public void setHoverDelay(int delay)
- Specified by:
setHoverDelay in interface InputHandler
setHovering
protected void setHovering(boolean hovering)
setHoverObjects
protected void setHoverObjects(PickedObjectList hoverObjects)
setLockViewHeading
public void setLockViewHeading(boolean lockHeading)
setMousePoint
protected void setMousePoint(Point mousePoint)
setObjectsAtButtonPress
protected void setObjectsAtButtonPress(PickedObjectList objectsAtButtonPress)
setSmoothViewChanges
public void setSmoothViewChanges(boolean smoothViewChanges)