|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.util.AbstractHotSpot
public abstract class AbstractHotSpot
AbstractHotSpot is an abstract base class for the 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.
| Field Summary | |
|---|---|
protected boolean |
active
Indicates whether or not this HotSpot is active. |
| Constructor Summary | |
|---|---|
AbstractHotSpot()
Creates a new AbstractHotSpot, but otherwise does nothing. |
|
| Method Summary | |
|---|---|
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(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. |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean active
| Constructor Detail |
|---|
public AbstractHotSpot()
| Method Detail |
|---|
public Cursor getCursor()
null Cursor, indicating the default cursor should be used when the HotSpot is active.
getCursor in interface HotSpotnull Cursor.public boolean isActive()
isActive in interface HotSpottrue if this HotSpot is active, false if not.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(KeyEvent event)
keyPressed in interface HotSpotkeyPressed in interface KeyListenerevent - The event to handle.public void keyReleased(KeyEvent event)
keyReleased in interface HotSpotkeyReleased in interface KeyListenerevent - The event to handle.public void keyTyped(KeyEvent event)
keyTyped in interface HotSpotkeyTyped in interface KeyListenerevent - The event to handle.public void mouseClicked(MouseEvent event)
mouseClicked in interface HotSpotmouseClicked in interface MouseListenerevent - The event to handle.public void mouseDragged(MouseEvent event)
mouseDragged in interface HotSpotmouseDragged in interface MouseMotionListenerevent - The event to handle.public void mouseEntered(MouseEvent event)
mouseEntered in interface HotSpotmouseEntered in interface MouseListenerevent - The event to handle.public void mouseExited(MouseEvent event)
mouseExited in interface HotSpotmouseExited in interface MouseListenerevent - The event to handle.public void mouseMoved(MouseEvent event)
mouseMoved in interface HotSpotmouseMoved in interface MouseMotionListenerevent - The event to handle.public void mousePressed(MouseEvent event)
mousePressed in interface HotSpotmousePressed in interface MouseListenerevent - The event to handle.public void mouseReleased(MouseEvent event)
mouseReleased in interface HotSpotmouseReleased in interface MouseListenerevent - The event to handle.public void mouseWheelMoved(MouseWheelEvent event)
mouseWheelMoved in interface HotSpotmouseWheelMoved in interface MouseWheelListenerevent - The event to handle.public void selected(SelectEvent event)
selected in interface SelectListenerselected in interface HotSpotevent - The event to handle.public void setActive(boolean active)
setActive in interface HotSpotactive - true if this HotSpot is being activated. false if this HotSpot is being deactivated.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||