org.apache.batik.swing

Class JSVGScrollPane.SBListener

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.

Field Summary
protected booleaninDrag
protected booleanisVertical
protected intstartValue
Constructor Summary
SBListener(boolean vertical)
Method Summary
voidstateChanged(ChangeEvent e)

Field Detail

inDrag

protected boolean inDrag

isVertical

protected boolean isVertical

startValue

protected int startValue

Constructor Detail

SBListener

public SBListener(boolean vertical)

Method Detail

stateChanged

public void stateChanged(ChangeEvent e)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.