Package gov.nasa.worldwind.util
Interface HotSpot
-
- All Superinterfaces:
java.util.EventListener,java.awt.event.KeyListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.event.MouseWheelListener,SelectListener
- All Known Implementing Classes:
AbstractHotSpot,AbstractResizeHotSpot,BalloonResizeController,DragControl,FrameResizeControl,ScrollBar.ScrollControl,ScrollBar.ScrollKnob,ScrollFrame,TreeHotSpot
public interface HotSpot extends SelectListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener
HotSpot is an interface for forwarding select, keyboard, and mouse events to picked objects in theWorldWindow. When the HotSpot is active it receives input events that occur in the WorldWindow.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.CursorgetCursor()Returns the AWTCursorrepresentation to display when the HotSpot is active, ornullto use the default Cursor.booleanisActive()Indicates whether or not this HotSpot is active.voidkeyPressed(java.awt.event.KeyEvent event)Called when a key is pressed and the HotSpot is active.voidkeyReleased(java.awt.event.KeyEvent event)Called when a key is released and the HotSpot is active.voidkeyTyped(java.awt.event.KeyEvent event)Called when a key is typed and the HotSpot is active.voidmouseClicked(java.awt.event.MouseEvent event)Called when the mouse is clicked on the HotSpot in the WorldWindow.voidmouseDragged(java.awt.event.MouseEvent event)Called when the mouse is dragged in the WorldWindow and the HotSpot is active.voidmouseEntered(java.awt.event.MouseEvent event)Called when the mouse enters the WorldWindow and the HotSpot is active.voidmouseExited(java.awt.event.MouseEvent event)Called when the mouse exits the WorldWindow and the HotSpot is active.voidmouseMoved(java.awt.event.MouseEvent event)Called when the cursor moves over the HotSpot in the WorldWindow.voidmousePressed(java.awt.event.MouseEvent event)Called when the mouse is pressed over the HotSpot in the WorldWindow.voidmouseReleased(java.awt.event.MouseEvent event)Called when the mouse is released over the HotSpot in the WorldWindow.voidmouseWheelMoved(java.awt.event.MouseWheelEvent event)Called when the mouse wheel is moved in the WorldWindow and HotSpot is active.voidselected(SelectEvent event)Called when the HotSpot is selected in the WorldWindow.voidsetActive(boolean active)Called when this HotSpot is activated or deactivated.
-
-
-
Method Detail
-
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-trueif this HotSpot is being activated.falseif this HotSpot is being deactivated.
-
isActive
boolean isActive()
Indicates whether or not this HotSpot is active.- Returns:
trueif this HotSpot is active,falseif not.
-
selected
void selected(SelectEvent event)
Called when the HotSpot is selected in the WorldWindow.- Specified by:
selectedin interfaceSelectListener- Parameters:
event- The event to handle.
-
keyTyped
void keyTyped(java.awt.event.KeyEvent event)
Called when a key is typed and the HotSpot is active.- Specified by:
keyTypedin interfacejava.awt.event.KeyListener- Parameters:
event- The event to handle.
-
keyPressed
void keyPressed(java.awt.event.KeyEvent event)
Called when a key is pressed and the HotSpot is active.- Specified by:
keyPressedin interfacejava.awt.event.KeyListener- Parameters:
event- The event to handle.
-
keyReleased
void keyReleased(java.awt.event.KeyEvent event)
Called when a key is released and the HotSpot is active.- Specified by:
keyReleasedin interfacejava.awt.event.KeyListener- Parameters:
event- The event to handle.
-
mouseClicked
void mouseClicked(java.awt.event.MouseEvent event)
Called when the mouse is clicked on the HotSpot in the WorldWindow.- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener- Parameters:
event- The event to handle.
-
mousePressed
void mousePressed(java.awt.event.MouseEvent event)
Called when the mouse is pressed over the HotSpot in the WorldWindow.- Specified by:
mousePressedin interfacejava.awt.event.MouseListener- Parameters:
event- The event to handle.
-
mouseReleased
void mouseReleased(java.awt.event.MouseEvent event)
Called when the mouse is released over the HotSpot in the WorldWindow.- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener- Parameters:
event- The event to handle.
-
mouseEntered
void mouseEntered(java.awt.event.MouseEvent event)
Called when the mouse enters the WorldWindow and the HotSpot is active.- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener- Parameters:
event- The event to handle.
-
mouseExited
void mouseExited(java.awt.event.MouseEvent event)
Called when the mouse exits the WorldWindow and the HotSpot is active.- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener- Parameters:
event- The event to handle.
-
mouseDragged
void mouseDragged(java.awt.event.MouseEvent event)
Called when the mouse is dragged in the WorldWindow and the HotSpot is active.- Specified by:
mouseDraggedin interfacejava.awt.event.MouseMotionListener- Parameters:
event- The event to handle.
-
mouseMoved
void mouseMoved(java.awt.event.MouseEvent event)
Called when the cursor moves over the HotSpot in the WorldWindow.- Specified by:
mouseMovedin interfacejava.awt.event.MouseMotionListener- Parameters:
event- The event to handle.
-
mouseWheelMoved
void mouseWheelMoved(java.awt.event.MouseWheelEvent event)
Called when the mouse wheel is moved in the WorldWindow and HotSpot is active.- Specified by:
mouseWheelMovedin interfacejava.awt.event.MouseWheelListener- Parameters:
event- The event to handle.
-
getCursor
java.awt.Cursor getCursor()
Returns the AWTCursorrepresentation to display when the HotSpot is active, ornullto use the default Cursor.- Returns:
- The Cursor representation associated with the HotSpot. May return
null.
-
-