NASA World Wind

gov.nasa.worldwind.util
Interface HotSpot

All Superinterfaces:
EventListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, SelectListener
All Known Implementing Classes:
AbstractBrowserBalloon, AbstractHotSpot, AbstractResizeHotSpot, BalloonResizeController, DragControl, FrameResizeControl, GlobeBrowserBalloon, ScreenBrowserBalloon, ScrollBar.ScrollControl, ScrollBar.ScrollKnob, ScrollFrame, TreeHotSpot

public interface HotSpot
extends SelectListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener

HotSpot is an interface for forwarding select, keyboard, and mouse events to picked objects in the WorldWindow. When the HotSpot is active it receives input events that occur in the WorldWindow.


Method Summary
 Cursor getCursor()
          Returns the AWT Cursor representation to display when the HotSpot is active, or null to use the default Cursor.
 boolean isActive()
          Indicates whether or not this HotSpot is active.
 void keyPressed(KeyEvent event)
          Called when a key is pressed and the HotSpot is active.
 void keyReleased(KeyEvent event)
          Called when a key is released and the HotSpot is active.
 void keyTyped(KeyEvent event)
          Called when a key is typed and the HotSpot is active.
 void mouseClicked(MouseEvent event)
          Called when the mouse is clicked on the HotSpot in the World Window.
 void mouseDragged(MouseEvent event)
          Called when the mouse is dragged in the World Window and the HotSpot is active.
 void mouseEntered(MouseEvent event)
          Called when the mouse enters the World Window and the HotSpot is active.
 void mouseExited(MouseEvent event)
          Called when the mouse exits the World Window and the HotSpot is active.
 void mouseMoved(MouseEvent event)
          Called when the cursor moves over the HotSpot in the World Window.
 void mousePressed(MouseEvent event)
          Called when the mouse is pressed over the HotSpot in the World Window.
 void mouseReleased(MouseEvent event)
          Called when the mouse is released over the HotSpot in the World Window.
 void mouseWheelMoved(MouseWheelEvent event)
          Called when the mouse wheel is moved in the World Window and HotSpot is active.
 void selected(SelectEvent event)
          Called when the HotSpot is selected in the World Window.
 void setActive(boolean active)
          Called when this HotSpot is activated or deactivated.
 

Method Detail

getCursor

Cursor getCursor()
Returns the AWT Cursor representation to display when the HotSpot is active, or null to use the default Cursor.

Returns:
The Cursor representation associated with the HotSpot. May return null.

isActive

boolean isActive()
Indicates whether or not this HotSpot is active.

Returns:
true if this HotSpot is active, false if not.

keyPressed

void keyPressed(KeyEvent event)
Called when a key is pressed and the HotSpot is active.

Specified by:
keyPressed in interface KeyListener
Parameters:
event - The event to handle.

keyReleased

void keyReleased(KeyEvent event)
Called when a key is released and the HotSpot is active.

Specified by:
keyReleased in interface KeyListener
Parameters:
event - The event to handle.

keyTyped

void keyTyped(KeyEvent event)
Called when a key is typed and the HotSpot is active.

Specified by:
keyTyped in interface KeyListener
Parameters:
event - The event to handle.

mouseClicked

void mouseClicked(MouseEvent event)
Called when the mouse is clicked on the HotSpot in the World Window.

Specified by:
mouseClicked in interface MouseListener
Parameters:
event - The event to handle.

mouseDragged

void mouseDragged(MouseEvent event)
Called when the mouse is dragged in the World Window and the HotSpot is active.

Specified by:
mouseDragged in interface MouseMotionListener
Parameters:
event - The event to handle.

mouseEntered

void mouseEntered(MouseEvent event)
Called when the mouse enters the World Window and the HotSpot is active.

Specified by:
mouseEntered in interface MouseListener
Parameters:
event - The event to handle.

mouseExited

void mouseExited(MouseEvent event)
Called when the mouse exits the World Window and the HotSpot is active.

Specified by:
mouseExited in interface MouseListener
Parameters:
event - The event to handle.

mouseMoved

void mouseMoved(MouseEvent event)
Called when the cursor moves over the HotSpot in the World Window.

Specified by:
mouseMoved in interface MouseMotionListener
Parameters:
event - The event to handle.

mousePressed

void mousePressed(MouseEvent event)
Called when the mouse is pressed over the HotSpot in the World Window.

Specified by:
mousePressed in interface MouseListener
Parameters:
event - The event to handle.

mouseReleased

void mouseReleased(MouseEvent event)
Called when the mouse is released over the HotSpot in the World Window.

Specified by:
mouseReleased in interface MouseListener
Parameters:
event - The event to handle.

mouseWheelMoved

void mouseWheelMoved(MouseWheelEvent event)
Called when the mouse wheel is moved in the World Window and HotSpot is active.

Specified by:
mouseWheelMoved in interface MouseWheelListener
Parameters:
event - The event to handle.

selected

void selected(SelectEvent event)
Called when the HotSpot is selected in the World Window.

Specified by:
selected in interface SelectListener
Parameters:
event - The event to handle.

setActive

void setActive(boolean active)
Called when this HotSpot is activated or deactivated. The HotSpot only receives input events when it is active.

Parameters:
active - true if this HotSpot is being activated. false if this HotSpot is being deactivated.

NASA World Wind