NASA World Wind

gov.nasa.worldwind.util.tree
Class ScrollBar.ScrollControl

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.util.AbstractHotSpot
          extended by gov.nasa.worldwind.util.tree.TreeHotSpot
              extended by 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.


Field Summary
protected  String adjustment
           
protected  ScrollBar scrollBar
           
 
Fields inherited from class gov.nasa.worldwind.util.tree.TreeHotSpot
parent
 
Fields inherited from class gov.nasa.worldwind.util.AbstractHotSpot
active
 
Constructor Summary
ScrollBar.ScrollControl(HotSpot parent, ScrollBar owner, String adjustment)
           
 
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.util.tree.TreeHotSpot
mouseWheelMoved
 
Methods inherited from class gov.nasa.worldwind.util.AbstractHotSpot
getCursor, isActive, isConsumed, keyPressed, keyReleased, keyTyped, mouseDragged, mouseEntered, mouseExited, mouseMoved
 
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

adjustment

protected String adjustment

scrollBar

protected ScrollBar scrollBar
Constructor Detail

ScrollBar.ScrollControl

public ScrollBar.ScrollControl(HotSpot parent,
                               ScrollBar owner,
                               String adjustment)
Method Detail

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.

NASA World Wind