public interface HotSpot extends SelectListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener
WorldWindow
. When the HotSpot is active it receives input events that occur in the WorldWindow.Modifier and Type | Method and Description |
---|---|
java.awt.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(java.awt.event.KeyEvent event)
Called when a key is pressed and the HotSpot is active.
|
void |
keyReleased(java.awt.event.KeyEvent event)
Called when a key is released and the HotSpot is active.
|
void |
keyTyped(java.awt.event.KeyEvent event)
Called when a key is typed and the HotSpot is active.
|
void |
mouseClicked(java.awt.event.MouseEvent event)
Called when the mouse is clicked on the HotSpot in the WorldWindow.
|
void |
mouseDragged(java.awt.event.MouseEvent event)
Called when the mouse is dragged in the WorldWindow and the HotSpot is active.
|
void |
mouseEntered(java.awt.event.MouseEvent event)
Called when the mouse enters the WorldWindow and the HotSpot is active.
|
void |
mouseExited(java.awt.event.MouseEvent event)
Called when the mouse exits the WorldWindow and the HotSpot is active.
|
void |
mouseMoved(java.awt.event.MouseEvent event)
Called when the cursor moves over the HotSpot in the WorldWindow.
|
void |
mousePressed(java.awt.event.MouseEvent event)
Called when the mouse is pressed over the HotSpot in the WorldWindow.
|
void |
mouseReleased(java.awt.event.MouseEvent event)
Called when the mouse is released over the HotSpot in the WorldWindow.
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent event)
Called when the mouse wheel is moved in the WorldWindow and HotSpot is active.
|
void |
selected(SelectEvent event)
Called when the HotSpot is selected in the WorldWindow.
|
void |
setActive(boolean active)
Called when this HotSpot is activated or deactivated.
|
java.awt.Cursor getCursor()
Cursor
representation to display when the HotSpot is active, or null
to
use the default Cursor.null
.boolean isActive()
true
if this HotSpot is active, false
if not.void keyPressed(java.awt.event.KeyEvent event)
keyPressed
in interface java.awt.event.KeyListener
event
- The event to handle.void keyReleased(java.awt.event.KeyEvent event)
keyReleased
in interface java.awt.event.KeyListener
event
- The event to handle.void keyTyped(java.awt.event.KeyEvent event)
keyTyped
in interface java.awt.event.KeyListener
event
- The event to handle.void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
event
- The event to handle.void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
event
- The event to handle.void mouseEntered(java.awt.event.MouseEvent event)
mouseEntered
in interface java.awt.event.MouseListener
event
- The event to handle.void mouseExited(java.awt.event.MouseEvent event)
mouseExited
in interface java.awt.event.MouseListener
event
- The event to handle.void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
event
- The event to handle.void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
event
- The event to handle.void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface java.awt.event.MouseListener
event
- The event to handle.void mouseWheelMoved(java.awt.event.MouseWheelEvent event)
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
event
- The event to handle.void selected(SelectEvent event)
selected
in interface SelectListener
event
- The event to handle.void setActive(boolean active)
active
- true
if this HotSpot is being activated. false
if this HotSpot is being deactivated.