public class ScrollBar.ScrollKnob extends DragControl
Modifier and Type | Field and Description |
---|---|
protected int |
dragRefValue |
protected ScrollBar |
scrollBar |
dragging, dragRefPoint
parent
active
Constructor and Description |
---|
ScrollKnob(HotSpot parent,
ScrollBar owner) |
Modifier and Type | Method and Description |
---|---|
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.
|
endDrag, isDragging, selected
mousePressed, mouseReleased, mouseWheelMoved
getCursor, isActive, isConsumed, keyPressed, keyReleased, keyTyped, mouseDragged, mouseEntered, mouseExited, mouseMoved, setActive
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
protected int dragRefValue
protected ScrollBar scrollBar
protected void beginDrag(Point point)
DragControl
DragControl.dragRefPoint
.beginDrag
in class DragControl
point
- Point at which dragging started.protected void drag(Point point)
DragControl
drag
in class DragControl
point
- Current drag point.public void mouseClicked(MouseEvent event)
TreeHotSpot
mouseClicked
in interface HotSpot
mouseClicked
in interface MouseListener
mouseClicked
in class TreeHotSpot
event
- The event to handle.