20 *
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
26 package javax.swing.plaf;
27
28 import java.awt.Color;
29 import java.beans.ConstructorProperties;
30
31 /**
32 * A subclass of Color that implements UIResource. UI
33 * classes that create colors should use this class.
34 * <p>
35 * <strong>Warning:</strong>
36 * Serialized objects of this class will not be compatible with
37 * future Swing releases. The current serialization support is
38 * appropriate for short term storage or RMI between applications running
39 * the same version of Swing. As of 1.4, support for long term storage
40 * of all JavaBeans™
41 * has been added to the <code>java.beans</code> package.
42 * Please see {@link java.beans.XMLEncoder}.
43 *
44 * @see javax.swing.plaf.UIResource
45 * @author Hans Muller
46 *
47 */
48 @SuppressWarnings("serial") // Same-version serialization only
49 public class ColorUIResource extends Color implements UIResource
50 {
51 /**
52 * Constructs a {@code ColorUIResource}.
53 * @param r the red component
54 * @param g the green component
55 * @param b the blue component
56 */
57 @ConstructorProperties({"red", "green", "blue"})
58 public ColorUIResource(int r, int g, int b) {
59 super(r, g, b);
60 }
|
20 *
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
26 package javax.swing.plaf;
27
28 import java.awt.Color;
29 import java.beans.ConstructorProperties;
30
31 /**
32 * A subclass of Color that implements UIResource. UI
33 * classes that create colors should use this class.
34 * <p>
35 * <strong>Warning:</strong>
36 * Serialized objects of this class will not be compatible with
37 * future Swing releases. The current serialization support is
38 * appropriate for short term storage or RMI between applications running
39 * the same version of Swing. As of 1.4, support for long term storage
40 * of all JavaBeans
41 * has been added to the <code>java.beans</code> package.
42 * Please see {@link java.beans.XMLEncoder}.
43 *
44 * @see javax.swing.plaf.UIResource
45 * @author Hans Muller
46 *
47 */
48 @SuppressWarnings("serial") // Same-version serialization only
49 public class ColorUIResource extends Color implements UIResource
50 {
51 /**
52 * Constructs a {@code ColorUIResource}.
53 * @param r the red component
54 * @param g the green component
55 * @param b the blue component
56 */
57 @ConstructorProperties({"red", "green", "blue"})
58 public ColorUIResource(int r, int g, int b) {
59 super(r, g, b);
60 }
|