Package gov.nasa.worldwind.util.tree
Class TreeHotSpot
- java.lang.Object
- 
- gov.nasa.worldwind.avlist.AVListImpl
- 
- gov.nasa.worldwind.util.AbstractHotSpot
- 
- gov.nasa.worldwind.util.tree.TreeHotSpot
 
 
 
- 
- All Implemented Interfaces:
- AVList,- SelectListener,- HotSpot,- java.awt.event.KeyListener,- java.awt.event.MouseListener,- java.awt.event.MouseMotionListener,- java.awt.event.MouseWheelListener,- java.util.EventListener
 - Direct Known Subclasses:
- DragControl,- ScrollBar.ScrollControl
 
 public class TreeHotSpot extends AbstractHotSpot An area of aTreethat can receive select and mouse events. The TreeHotSpot's default behavior is to forward events to its parent HotSpot. Subclasses must override methods for events they can react to, and all other events are handled by the parent.
- 
- 
Field SummaryFields Modifier and Type Field Description protected HotSpotparentThe parent HotSpot, or null if this TreeHotSpot has no parent.- 
Fields inherited from class gov.nasa.worldwind.util.AbstractHotSpotactive
 
- 
 - 
Constructor SummaryConstructors Constructor Description TreeHotSpot(HotSpot parent)Create a hot spot.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmouseClicked(java.awt.event.MouseEvent event)Forwards the event to the parent HotSpot if the parent is non-null.voidmousePressed(java.awt.event.MouseEvent event)Forwards the event to the parent HotSpot if the parent is non-null.voidmouseReleased(java.awt.event.MouseEvent event)Forwards the event to the parent HotSpot if the parent is non-null.voidmouseWheelMoved(java.awt.event.MouseWheelEvent event)Forwards the event to the parent HotSpot if the parent is non-null.voidselected(SelectEvent event)Forwards the event to the parent HotSpot if the parent is non-null.- 
Methods inherited from class gov.nasa.worldwind.util.AbstractHotSpotgetCursor, isActive, isConsumed, keyPressed, keyReleased, keyTyped, mouseDragged, mouseEntered, mouseExited, mouseMoved, setActive
 - 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpladdPropertyChangeListener, 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
 
- 
 
- 
- 
- 
Field Detail- 
parentprotected HotSpot parent The parent HotSpot, or null if this TreeHotSpot has no parent.
 
- 
 - 
Constructor Detail- 
TreeHotSpotpublic TreeHotSpot(HotSpot parent) Create a hot spot.- Parameters:
- parent- The screen area that contains this hot spot. Input events that cannot be handled by this object will be passed to the parent. May be null.
 
 
- 
 - 
Method Detail- 
selectedpublic void selected(SelectEvent event) Forwards the event to the parent HotSpot if the parent is non-null. Otherwise does nothing. Override this method to handle key released events.- Specified by:
- selectedin interface- HotSpot
- Specified by:
- selectedin interface- SelectListener
- Overrides:
- selectedin class- AbstractHotSpot
- Parameters:
- event- The event to handle.
 
 - 
mouseClickedpublic void mouseClicked(java.awt.event.MouseEvent event) Forwards the event to the parent HotSpot if the parent is non-null. Otherwise does nothing. Override this method to handle mouse click events.- Specified by:
- mouseClickedin interface- HotSpot
- Specified by:
- mouseClickedin interface- java.awt.event.MouseListener
- Overrides:
- mouseClickedin class- AbstractHotSpot
- Parameters:
- event- The event to handle.
 
 - 
mousePressedpublic void mousePressed(java.awt.event.MouseEvent event) Forwards the event to the parent HotSpot if the parent is non-null. Otherwise does nothing. Override this method to handle mouse pressed events.- Specified by:
- mousePressedin interface- HotSpot
- Specified by:
- mousePressedin interface- java.awt.event.MouseListener
- Overrides:
- mousePressedin class- AbstractHotSpot
- Parameters:
- event- The event to handle.
 
 - 
mouseReleasedpublic void mouseReleased(java.awt.event.MouseEvent event) Forwards the event to the parent HotSpot if the parent is non-null. Otherwise does nothing. Override this method to handle mouse released events.- Specified by:
- mouseReleasedin interface- HotSpot
- Specified by:
- mouseReleasedin interface- java.awt.event.MouseListener
- Overrides:
- mouseReleasedin class- AbstractHotSpot
- Parameters:
- event- The event to handle.
 
 - 
mouseWheelMovedpublic void mouseWheelMoved(java.awt.event.MouseWheelEvent event) Forwards the event to the parent HotSpot if the parent is non-null. Otherwise does nothing. Override this method to handle mouse wheel events.- Specified by:
- mouseWheelMovedin interface- HotSpot
- Specified by:
- mouseWheelMovedin interface- java.awt.event.MouseWheelListener
- Overrides:
- mouseWheelMovedin class- AbstractHotSpot
- Parameters:
- event- The event to handle.
 
 
- 
 
-