org.apache.batik.swing
Class JSVGScrollPane.SBListener
java.lang.Object
org.apache.batik.swing.JSVGScrollPane.SBListener
- All Implemented Interfaces:
- EventListener, ChangeListener
- Enclosing class:
- JSVGScrollPane
protected class JSVGScrollPane.SBListener
- extends Object
- implements ChangeListener
Advanced JScrollBar listener.
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inDrag
protected boolean inDrag
startValue
protected int startValue
isVertical
protected boolean isVertical
JSVGScrollPane.SBListener
public JSVGScrollPane.SBListener(boolean vertical)
stateChanged
public void stateChanged(ChangeEvent e)
- Specified by:
stateChanged
in interface ChangeListener
Copyright © 2017 Apache Software Foundation. All Rights Reserved.