KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > plaf > ColorUIResource


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: ColorUIResource.java,v $
11    Revision 1.1 2004/01/26 08:11:00 bobintetley
12    Many bugfixes and addition of SwingSet
13
14
15 */

16 package swingwtx.swing.plaf;
17
18 import swingwt.awt.Color;
19 import swingwtx.swing.plaf.UIResource;
20
21 public class ColorUIResource extends Color implements UIResource {
22     public ColorUIResource(int r, int g, int b) {
23     super(r, g, b);
24     }
25
26     public ColorUIResource(int rgb) {
27     super(rgb);
28     }
29
30     public ColorUIResource(float r, float g, float b) {
31     super(r, g, b);
32     }
33
34     public ColorUIResource(Color c) {
35     super(c.getRed(), c.getGreen(), c.getBlue());
36     }
37 }
38
Popular Tags