27
28 import java.awt.Dimension;
29 import java.awt.Graphics;
30 import java.awt.Color;
31 import java.awt.Polygon;
32
33 import javax.swing.*;
34
35 import javax.swing.plaf.basic.BasicArrowButton;
36
37
38 /**
39 * JButton object for Metal scrollbar arrows.
40 * <p>
41 * <strong>Warning:</strong>
42 * Serialized objects of this class will not be compatible with
43 * future Swing releases. The current serialization support is
44 * appropriate for short term storage or RMI between applications running
45 * the same version of Swing. As of 1.4, support for long term storage
46 * of all JavaBeans™
47 * has been added to the <code>java.beans</code> package.
48 * Please see {@link java.beans.XMLEncoder}.
49 *
50 * @author Tom Santos
51 * @author Steve Wilson
52 */
53 @SuppressWarnings("serial") // Same-version serialization only
54 public class MetalScrollButton extends BasicArrowButton
55 {
56 private static Color shadowColor;
57 private static Color highlightColor;
58 private boolean isFreeStanding = false;
59
60 private int buttonWidth;
61
62 /**
63 * Constructs an instance of {@code MetalScrollButton}.
64 *
65 * @param direction the direction
66 * @param width the width
67 * @param freeStanding the free standing value
|
27
28 import java.awt.Dimension;
29 import java.awt.Graphics;
30 import java.awt.Color;
31 import java.awt.Polygon;
32
33 import javax.swing.*;
34
35 import javax.swing.plaf.basic.BasicArrowButton;
36
37
38 /**
39 * JButton object for Metal scrollbar arrows.
40 * <p>
41 * <strong>Warning:</strong>
42 * Serialized objects of this class will not be compatible with
43 * future Swing releases. The current serialization support is
44 * appropriate for short term storage or RMI between applications running
45 * the same version of Swing. As of 1.4, support for long term storage
46 * of all JavaBeans™
47 * has been added to the {@code java.beans} package.
48 * Please see {@link java.beans.XMLEncoder}.
49 *
50 * @author Tom Santos
51 * @author Steve Wilson
52 */
53 @SuppressWarnings("serial") // Same-version serialization only
54 public class MetalScrollButton extends BasicArrowButton
55 {
56 private static Color shadowColor;
57 private static Color highlightColor;
58 private boolean isFreeStanding = false;
59
60 private int buttonWidth;
61
62 /**
63 * Constructs an instance of {@code MetalScrollButton}.
64 *
65 * @param direction the direction
66 * @param width the width
67 * @param freeStanding the free standing value
|