gov.nasa.worldwind.util.tree
Class ScrollBar.ScrollControl
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.util.AbstractHotSpot
gov.nasa.worldwind.util.tree.TreeHotSpot
gov.nasa.worldwind.util.tree.ScrollBar.ScrollControl
- All Implemented Interfaces:
- AVList, SelectListener, HotSpot, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, EventListener
- Enclosing class:
- ScrollBar
public class ScrollBar.ScrollControl
- extends TreeHotSpot
Control for the scroll arrows and areas of the scroll bar above and below the knob.
|
Method Summary |
void |
mouseClicked(MouseEvent event)
Forwards the event to the parent HotSpot if the parent is non-null. |
void |
mousePressed(MouseEvent event)
Forwards the event to the parent HotSpot if the parent is non-null. |
void |
mouseReleased(MouseEvent event)
Forwards the event to the parent HotSpot if the parent is non-null. |
void |
selected(SelectEvent event)
Forwards the event to the parent HotSpot if the parent is non-null. |
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 |
adjustment
protected String adjustment
scrollBar
protected ScrollBar scrollBar
ScrollBar.ScrollControl
public ScrollBar.ScrollControl(HotSpot parent,
ScrollBar owner,
String adjustment)
mouseClicked
public void mouseClicked(MouseEvent event)
- Description copied from class:
TreeHotSpot
- 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:
mouseClicked in interface HotSpot- Specified by:
mouseClicked in interface MouseListener- Overrides:
mouseClicked in class TreeHotSpot
- Parameters:
event - The event to handle.
mousePressed
public void mousePressed(MouseEvent event)
- Description copied from class:
TreeHotSpot
- 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:
mousePressed in interface HotSpot- Specified by:
mousePressed in interface MouseListener- Overrides:
mousePressed in class TreeHotSpot
- Parameters:
event - The event to handle.
mouseReleased
public void mouseReleased(MouseEvent event)
- Description copied from class:
TreeHotSpot
- 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:
mouseReleased in interface HotSpot- Specified by:
mouseReleased in interface MouseListener- Overrides:
mouseReleased in class TreeHotSpot
- Parameters:
event - The event to handle.
selected
public void selected(SelectEvent event)
- Description copied from class:
TreeHotSpot
- 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:
selected in interface SelectListener- Specified by:
selected in interface HotSpot- Overrides:
selected in class TreeHotSpot
- Parameters:
event - The event to handle.
setActive
public void setActive(boolean active)
- Called when this HotSpot is activated or deactivated. The HotSpot only receives input events when it is active.
Overridden to stop autoscroll operations when the scrollbar becomes inactive.
- Specified by:
setActive in interface HotSpot- Overrides:
setActive in class AbstractHotSpot
- Parameters:
active - true if the scrollbar is being activated, false if the scrollbar is being
deactivated.