public abstract class AbstractHotSpot extends AVListImpl implements HotSpot
HotSpot
interface. The methods in
AbstractHotSpot are empty or simply return null
. This is a convenience class for that enables a subclass to
override only the events its interested in.Modifier and Type | Field and Description |
---|---|
protected boolean |
active
Indicates whether or not this HotSpot is active.
|
Constructor and Description |
---|
AbstractHotSpot()
Creates a new AbstractHotSpot, but otherwise does nothing.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Cursor |
getCursor()
Returns a
null Cursor, indicating the default cursor should be used when the HotSpot is active. |
boolean |
isActive()
Indicates whether or not this HotSpot is active.
|
protected boolean |
isConsumed(SelectEvent event)
Determine if a select event, or the mouse event that generated the select event, has been consumed.
|
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.
|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
public AbstractHotSpot()
public java.awt.Cursor getCursor()
null
Cursor, indicating the default cursor should be used when the HotSpot is active.public boolean isActive()
protected boolean isConsumed(SelectEvent event)
event
- Event to test.true
if event
has been consumed, or if event
was triggered by a mouse event, and
that mouse event has been consumed.public void keyPressed(java.awt.event.KeyEvent event)
keyPressed
in interface HotSpot
keyPressed
in interface java.awt.event.KeyListener
event
- The event to handle.public void keyReleased(java.awt.event.KeyEvent event)
keyReleased
in interface HotSpot
keyReleased
in interface java.awt.event.KeyListener
event
- The event to handle.public void keyTyped(java.awt.event.KeyEvent event)
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface HotSpot
mouseClicked
in interface java.awt.event.MouseListener
event
- The event to handle.public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface HotSpot
mouseDragged
in interface java.awt.event.MouseMotionListener
event
- The event to handle.public void mouseEntered(java.awt.event.MouseEvent event)
mouseEntered
in interface HotSpot
mouseEntered
in interface java.awt.event.MouseListener
event
- The event to handle.public void mouseExited(java.awt.event.MouseEvent event)
mouseExited
in interface HotSpot
mouseExited
in interface java.awt.event.MouseListener
event
- The event to handle.public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface HotSpot
mouseMoved
in interface java.awt.event.MouseMotionListener
event
- The event to handle.public void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface HotSpot
mousePressed
in interface java.awt.event.MouseListener
event
- The event to handle.public void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface HotSpot
mouseReleased
in interface java.awt.event.MouseListener
event
- The event to handle.public void mouseWheelMoved(java.awt.event.MouseWheelEvent event)
mouseWheelMoved
in interface HotSpot
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
event
- The event to handle.public void selected(SelectEvent event)
selected
in interface SelectListener
selected
in interface HotSpot
event
- The event to handle.public void setActive(boolean active)