Jump Scrollbar Tooltip
Posted by Darryl Burke on April 22, 2009
Since a JumpScrollBarModel’s functionality relies on not returning the current value while adjusting, a ScrollBarToolTip cannot correctly reflect the position of the scroll thumb. JumpScrollBarToolTip extends ScrollBarToolTip and overrides the method getToolTipText(…) to utilize the value returned by the model’s getTrueValue() instead of getValue().
The model of the scrollbar to which a JumpScrollBarToolTip is applied must be an instance of JumpScrollBarModel. Any attempt to use this class with a scrollbar that does not have an appropriate model will result in a ClassCastException.