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.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
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 void
mouseClicked(java.awt.event.MouseEvent event)
Forwards the event to the parent HotSpot if the parent is non-null.void
mousePressed(java.awt.event.MouseEvent event)
Forwards the event to the parent HotSpot if the parent is non-null.void
mouseReleased(java.awt.event.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
-
-
-
-
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: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 interfaceHotSpot
- Specified by:
mousePressed
in interfacejava.awt.event.MouseListener
- Overrides:
mousePressed
in classTreeHotSpot
- Parameters:
event
- The event to handle.
-
mouseReleased
public void mouseReleased(java.awt.event.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 interfaceHotSpot
- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
- Overrides:
mouseReleased
in classTreeHotSpot
- 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 interfaceHotSpot
- Specified by:
selected
in interfaceSelectListener
- Overrides:
selected
in classTreeHotSpot
- Parameters:
event
- The event to handle.
-
mouseClicked
public void mouseClicked(java.awt.event.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 interfaceHotSpot
- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
- Overrides:
mouseClicked
in 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:
setActive
in interfaceHotSpot
- Overrides:
setActive
in classAbstractHotSpot
- Parameters:
active
-true
if the scrollbar is being activated,false
if the scrollbar is being deactivated.
-
-