NASA World Wind

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

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.DragControl
                  extended by gov.nasa.worldwind.util.tree.ScrollBar.ScrollKnob
All Implemented Interfaces:
AVList, SelectListener, HotSpot, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, EventListener
Enclosing class:
ScrollBar

public class ScrollBar.ScrollKnob
extends DragControl

Control for dragging the scroll knob.


Field Summary
protected  int dragRefValue
           
protected  ScrollBar scrollBar
           
 
Fields inherited from class gov.nasa.worldwind.util.tree.DragControl
dragging, dragRefPoint
 
Fields inherited from class gov.nasa.worldwind.util.tree.TreeHotSpot
parent
 
Fields inherited from class gov.nasa.worldwind.util.AbstractHotSpot
active
 
Constructor Summary
ScrollBar.ScrollKnob(HotSpot parent, ScrollBar owner)
           
 
Method Summary
protected  void beginDrag(Point point)
          Called when a drag begins.
protected  void drag(Point point)
          Called for each point within a drag action.
 void mouseClicked(MouseEvent event)
          Forwards the event to the parent HotSpot if the parent is non-null.
 
Methods inherited from class gov.nasa.worldwind.util.tree.DragControl
endDrag, isDragging, selected
 
Methods inherited from class gov.nasa.worldwind.util.tree.TreeHotSpot
mousePressed, mouseReleased, mouseWheelMoved
 
Methods inherited from class gov.nasa.worldwind.util.AbstractHotSpot
getCursor, isActive, isConsumed, keyPressed, keyReleased, keyTyped, mouseDragged, mouseEntered, mouseExited, mouseMoved, setActive
 
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

dragRefValue

protected int dragRefValue

scrollBar

protected ScrollBar scrollBar
Constructor Detail

ScrollBar.ScrollKnob

public ScrollBar.ScrollKnob(HotSpot parent,
                            ScrollBar owner)
Method Detail

beginDrag

protected void beginDrag(Point point)
Description copied from class: DragControl
Called when a drag begins. This implementation saves the first drag point to DragControl.dragRefPoint.

Overrides:
beginDrag in class DragControl
Parameters:
point - Point at which dragging started.

drag

protected void drag(Point point)
Description copied from class: DragControl
Called for each point within a drag action.

Specified by:
drag in class DragControl
Parameters:
point - Current drag point.

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.

NASA World Wind