gov.nasa.worldwind.util.tree
Class ScrollBar.ScrollKnob
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.util.AbstractHotSpot
gov.nasa.worldwind.util.tree.TreeHotSpot
gov.nasa.worldwind.util.tree.DragControl
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.
|
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.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 |
dragRefValue
protected int dragRefValue
scrollBar
protected ScrollBar scrollBar
ScrollBar.ScrollKnob
public ScrollBar.ScrollKnob(HotSpot parent,
ScrollBar owner)
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.