jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollBarUI.java
changeset 26037 508779ce6619
parent 26012 36ecb579dbc8
parent 25859 3317bb8137f4
child 30461 57e36ed1a9ab
equal deleted inserted replaced
25992:e9b05e933ddd 26037:508779ce6619
    91     protected PropertyChangeListener propertyChangeListener;
    91     protected PropertyChangeListener propertyChangeListener;
    92     protected Timer scrollTimer;
    92     protected Timer scrollTimer;
    93 
    93 
    94     private final static int scrollSpeedThrottle = 60; // delay in milli seconds
    94     private final static int scrollSpeedThrottle = 60; // delay in milli seconds
    95 
    95 
    96     /** True indicates a middle click will absolutely position the
    96     /**
    97      * scrollbar. */
    97      * True indicates a middle click will absolutely position the
       
    98      * scrollbar.
       
    99      */
    98     private boolean supportsAbsolutePositioning;
   100     private boolean supportsAbsolutePositioning;
    99 
   101 
   100     /**
   102     /**
   101      * Hint as to what width (when vertical) or height (when horizontal)
   103      * Hint as to what width (when vertical) or height (when horizontal)
   102      * should be.
   104      * should be.
   875 
   877 
   876     /**
   878     /**
   877      * Set the bounds of the thumb and force a repaint that includes
   879      * Set the bounds of the thumb and force a repaint that includes
   878      * the old thumbBounds and the new one.
   880      * the old thumbBounds and the new one.
   879      *
   881      *
       
   882      * @param x set the x location of the thumb
       
   883      * @param y set the y location of the thumb
       
   884      * @param width set the width of the thumb
       
   885      * @param height set the height of the thumb
   880      * @see #getThumbBounds
   886      * @see #getThumbBounds
   881      */
   887      */
   882     protected void setThumbBounds(int x, int y, int width, int height)
   888     protected void setThumbBounds(int x, int y, int width, int height)
   883     {
   889     {
   884         /* If the thumbs bounds haven't changed, we're done.
   890         /* If the thumbs bounds haven't changed, we're done.