src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollBarUI.java

Print this page




  98     /** Track rectangle */
  99     protected Rectangle trackRect;
 100 
 101     /** Track highlight */
 102     protected int trackHighlight;
 103 
 104     /** No highlight */
 105     protected static final int NO_HIGHLIGHT = 0;
 106     /** Decrease highlight */
 107     protected static final int DECREASE_HIGHLIGHT = 1;
 108     /** Increase highlight */
 109     protected static final int INCREASE_HIGHLIGHT = 2;
 110 
 111     /** Scroll listener */
 112     protected ScrollListener scrollListener;
 113     /** Property change listener */
 114     protected PropertyChangeListener propertyChangeListener;
 115     /** Scroll timer */
 116     protected Timer scrollTimer;
 117 
 118     private final static int scrollSpeedThrottle = 60; // delay in milli seconds
 119 
 120     /**
 121      * True indicates a middle click will absolutely position the
 122      * scrollbar.
 123      */
 124     private boolean supportsAbsolutePositioning;
 125 
 126     /**
 127      * Hint as to what width (when vertical) or height (when horizontal)
 128      * should be.
 129      *
 130      * @since 1.7
 131      */
 132     protected int scrollBarWidth;
 133 
 134     private Handler handler;
 135 
 136     private boolean thumbActive;
 137 
 138     /**




  98     /** Track rectangle */
  99     protected Rectangle trackRect;
 100 
 101     /** Track highlight */
 102     protected int trackHighlight;
 103 
 104     /** No highlight */
 105     protected static final int NO_HIGHLIGHT = 0;
 106     /** Decrease highlight */
 107     protected static final int DECREASE_HIGHLIGHT = 1;
 108     /** Increase highlight */
 109     protected static final int INCREASE_HIGHLIGHT = 2;
 110 
 111     /** Scroll listener */
 112     protected ScrollListener scrollListener;
 113     /** Property change listener */
 114     protected PropertyChangeListener propertyChangeListener;
 115     /** Scroll timer */
 116     protected Timer scrollTimer;
 117 
 118     private static final int scrollSpeedThrottle = 60; // delay in milli seconds
 119 
 120     /**
 121      * True indicates a middle click will absolutely position the
 122      * scrollbar.
 123      */
 124     private boolean supportsAbsolutePositioning;
 125 
 126     /**
 127      * Hint as to what width (when vertical) or height (when horizontal)
 128      * should be.
 129      *
 130      * @since 1.7
 131      */
 132     protected int scrollBarWidth;
 133 
 134     private Handler handler;
 135 
 136     private boolean thumbActive;
 137 
 138     /**