< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/XScrollbar.java

Print this page

        

*** 159,170 **** /** * paint the scrollbar * @param g the graphics context to paint into * @param colors the colors to use when painting the scrollbar - * @param width the width of the scrollbar - * @param height the height of the scrollbar * @param paintAll paint the whole scrollbar if true, just the thumb is false */ void paint(Graphics g, Color colors[], boolean paintAll) { if (log.isLoggable(PlatformLogger.Level.FINER)) { log.finer("Painting scrollbar " + this); --- 159,168 ----
*** 391,401 **** this.mode = mode; } /** * Scroll one unit. ! * @see notifyValue */ void scroll() { switch (mode) { case AdjustmentEvent.UNIT_DECREMENT: notifyValue(val - line); --- 389,399 ---- this.mode = mode; } /** * Scroll one unit. ! * @see #notifyValue */ void scroll() { switch (mode) { case AdjustmentEvent.UNIT_DECREMENT: notifyValue(val - line);
*** 605,615 **** * @param value is the position in the current window. * @param visible is the amount visible per page * @param minimum is the minimum value of the scrollbar * @param maximum is the maximum value of the scrollbar * @param unitSize is the unit size for increment or decrement of the value - * @param page is the block size for increment or decrement of the value * @see #setValues */ synchronized void setValues(int value, int visible, int minimum, int maximum, int unitSize, int blockSize) { /* Use setValues so that a consistent policy --- 603,612 ----
*** 629,639 **** return val; } /** * Sets the value of this Scrollbar to the specified value. ! * @param value the new value of the Scrollbar. If this value is * below the current minimum or above the current maximum minus * the visible amount, it becomes the new one of those values, * respectively. * @see #getValue */ --- 626,636 ---- return val; } /** * Sets the value of this Scrollbar to the specified value. ! * @param newValue the new value of the Scrollbar. If this value is * below the current minimum or above the current maximum minus * the visible amount, it becomes the new one of those values, * respectively. * @see #getValue */
*** 653,663 **** return min; } /** * Sets the minimum value for this Scrollbar. ! * @param minimum the minimum value of the scrollbar */ synchronized void setMinimum(int newMinimum) { /* Use setValues so that a consistent policy * relating minimum, maximum, and value is enforced. */ --- 650,660 ---- return min; } /** * Sets the minimum value for this Scrollbar. ! * @param newMinimum the minimum value of the scrollbar */ synchronized void setMinimum(int newMinimum) { /* Use setValues so that a consistent policy * relating minimum, maximum, and value is enforced. */
*** 673,683 **** return max; } /** * Sets the maximum value for this Scrollbar. ! * @param maximum the maximum value of the scrollbar */ synchronized void setMaximum(int newMaximum) { /* Use setValues so that a consistent policy * relating minimum, maximum, and value is enforced. */ --- 670,680 ---- return max; } /** * Sets the maximum value for this Scrollbar. ! * @param newMaximum the maximum value of the scrollbar */ synchronized void setMaximum(int newMaximum) { /* Use setValues so that a consistent policy * relating minimum, maximum, and value is enforced. */
*** 692,702 **** } /** * Sets the visible amount of this Scrollbar, which is the range * of values represented by the width of the scroll bar's bubble. ! * @param visible the amount visible per page */ synchronized void setVisibleAmount(int newAmount) { setValues(val, newAmount, min, max); } --- 689,699 ---- } /** * Sets the visible amount of this Scrollbar, which is the range * of values represented by the width of the scroll bar's bubble. ! * @param newAmount the amount visible per page */ synchronized void setVisibleAmount(int newAmount) { setValues(val, newAmount, min, max); }
*** 757,767 **** } } /** * Returns the scale factor for the thumbArea ( thumbAreaH / (max - min)). ! * @see #getArrowAreaSize */ private double getScaleFactor(){ double f = (double)(barLength - 2*getArrowAreaWidth()) / Math.max(1,(max - min)); return f; } --- 754,764 ---- } } /** * Returns the scale factor for the thumbArea ( thumbAreaH / (max - min)). ! * @see #getArrowAreaWidth */ private double getScaleFactor(){ double f = (double)(barLength - 2*getArrowAreaWidth()) / Math.max(1,(max - min)); return f; }
< prev index next >