Package org.apache.batik.swing
Class JSVGScrollPane.SBListener
java.lang.Object
org.apache.batik.swing.JSVGScrollPane.SBListener
- All Implemented Interfaces:
EventListener
,ChangeListener
- Enclosing class:
JSVGScrollPane
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected boolean
protected int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
inDrag
protected boolean inDrag -
startValue
protected int startValue -
isVertical
protected boolean isVertical
-
-
Constructor Details
-
SBListener
public SBListener(boolean vertical)
-
-
Method Details
-
stateChanged
- Specified by:
stateChanged
in interfaceChangeListener
-