Package 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,java.awt.event.KeyListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.event.MouseWheelListener,java.util.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
Fields Modifier and Type Field Description protected java.lang.Stringadjustmentprotected ScrollBarscrollBar-
Fields inherited from class gov.nasa.worldwind.util.tree.TreeHotSpot
parent
-
Fields inherited from class gov.nasa.worldwind.util.AbstractHotSpot
active
-
-
Constructor Summary
Constructors Constructor Description ScrollControl(HotSpot parent, ScrollBar owner, java.lang.String adjustment)
-
Method Summary
All 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.voidselected(SelectEvent event)Forwards the event to the parent HotSpot if the parent is non-null.voidsetActive(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
-
-
-
-
Field Detail
-
scrollBar
protected ScrollBar scrollBar
-
adjustment
protected java.lang.String adjustment
-
-
Method Detail
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent event)
Description copied from class:TreeHotSpotForwards 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 interfaceHotSpot- Specified by:
mousePressedin interfacejava.awt.event.MouseListener- Overrides:
mousePressedin classTreeHotSpot- Parameters:
event- The event to handle.
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent event)
Description copied from class:TreeHotSpotForwards 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 interfaceHotSpot- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener- Overrides:
mouseReleasedin classTreeHotSpot- Parameters:
event- The event to handle.
-
selected
public void selected(SelectEvent event)
Description copied from class:TreeHotSpotForwards 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 interfaceHotSpot- Specified by:
selectedin interfaceSelectListener- Overrides:
selectedin classTreeHotSpot- Parameters:
event- The event to handle.
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent event)
Description copied from class:TreeHotSpotForwards 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 interfaceHotSpot- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener- Overrides:
mouseClickedin classTreeHotSpot- 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:
setActivein interfaceHotSpot- Overrides:
setActivein classAbstractHotSpot- Parameters:
active-trueif the scrollbar is being activated,falseif the scrollbar is being deactivated.
-
-