21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package javax.swing.border;
26
27 import java.awt.Graphics;
28 import java.awt.Insets;
29 import java.awt.Color;
30 import java.awt.Component;
31 import java.beans.ConstructorProperties;
32
33 /**
34 * A class which implements a simple two-line bevel border.
35 * <p>
36 * <strong>Warning:</strong>
37 * Serialized objects of this class will not be compatible with
38 * future Swing releases. The current serialization support is
39 * appropriate for short term storage or RMI between applications running
40 * the same version of Swing. As of 1.4, support for long term storage
41 * of all JavaBeans™
42 * has been added to the <code>java.beans</code> package.
43 * Please see {@link java.beans.XMLEncoder}.
44 *
45 * @author David Kloba
46 */
47 @SuppressWarnings("serial") // Same-version serialization only
48 public class BevelBorder extends AbstractBorder
49 {
50 /** Raised bevel type. */
51 public static final int RAISED = 0;
52 /** Lowered bevel type. */
53 public static final int LOWERED = 1;
54
55 /**
56 * The bevel type.
57 */
58 protected int bevelType;
59 /**
60 * The color to use for the bevel outer highlight.
61 */
|
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package javax.swing.border;
26
27 import java.awt.Graphics;
28 import java.awt.Insets;
29 import java.awt.Color;
30 import java.awt.Component;
31 import java.beans.ConstructorProperties;
32
33 /**
34 * A class which implements a simple two-line bevel border.
35 * <p>
36 * <strong>Warning:</strong>
37 * Serialized objects of this class will not be compatible with
38 * future Swing releases. The current serialization support is
39 * appropriate for short term storage or RMI between applications running
40 * the same version of Swing. As of 1.4, support for long term storage
41 * of all JavaBeans
42 * has been added to the <code>java.beans</code> package.
43 * Please see {@link java.beans.XMLEncoder}.
44 *
45 * @author David Kloba
46 */
47 @SuppressWarnings("serial") // Same-version serialization only
48 public class BevelBorder extends AbstractBorder
49 {
50 /** Raised bevel type. */
51 public static final int RAISED = 0;
52 /** Lowered bevel type. */
53 public static final int LOWERED = 1;
54
55 /**
56 * The bevel type.
57 */
58 protected int bevelType;
59 /**
60 * The color to use for the bevel outer highlight.
61 */
|