protected class JSVGScrollPane.SBListener extends Object implements ChangeListener
A separate listener must be attached to each scrollbar, since we keep track of mouse state for each scrollbar separately!
This coalesces drag events so we don't track them, and 'passes through' click events. It doesn't coalesce as many events as it should, but it helps considerably.
Modifier and Type | Field and Description |
---|---|
protected boolean |
inDrag |
protected boolean |
isVertical |
protected int |
startValue |
Constructor and Description |
---|
SBListener(boolean vertical) |
Modifier and Type | Method and Description |
---|---|
void |
stateChanged(ChangeEvent e) |
protected boolean inDrag
protected int startValue
protected boolean isVertical
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.