KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > izforge > izpack > gui > IzPackKMetalTheme


1 /*
2  * IzPack - Copyright 2001-2007 Julien Ponge, All Rights Reserved.
3  *
4  * http://www.izforge.com/izpack/
5  * http://developer.berlios.de/projects/izpack/
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */

19
20 package com.izforge.izpack.gui;
21
22 import javax.swing.plaf.ColorUIResource JavaDoc;
23
24 /**
25  * The IzPack Kunststoff L&F theme.
26  *
27  * @author Julien Ponge
28  */

29 public class IzPackKMetalTheme extends IzPackMetalTheme
30 {
31
32     /** Primary color. */
33     private final ColorUIResource JavaDoc primary1 = new ColorUIResource JavaDoc(32, 32, 64);
34
35     /** Primary color. */
36     private final ColorUIResource JavaDoc primary2 = new ColorUIResource JavaDoc(160, 160, 180);
37
38     /** Primary color. */
39     private final ColorUIResource JavaDoc primary3 = new ColorUIResource JavaDoc(200, 200, 224);
40
41     /** Secondary color. */
42     private final ColorUIResource JavaDoc secondary1 = new ColorUIResource JavaDoc(130, 130, 130);
43
44     /** Secondary color. */
45     private final ColorUIResource JavaDoc secondary2 = new ColorUIResource JavaDoc(180, 180, 180);
46
47     /** Secondary color. */
48     private final ColorUIResource JavaDoc secondary3 = new ColorUIResource JavaDoc(224, 224, 224);
49
50     /** The constructor. */
51     public IzPackKMetalTheme()
52     {
53         super();
54     }
55
56     /**
57      * Returns the wished color.
58      *
59      * @return The wished color.
60      */

61     public ColorUIResource JavaDoc getPrimary1()
62     {
63         return primary1;
64     }
65
66     /**
67      * Returns the wished color.
68      *
69      * @return The wished color.
70      */

71     public ColorUIResource JavaDoc getPrimary2()
72     {
73         return primary2;
74     }
75
76     /**
77      * Returns the wished color.
78      *
79      * @return The wished color.
80      */

81     public ColorUIResource JavaDoc getPrimary3()
82     {
83         return primary3;
84     }
85
86     /**
87      * Returns the wished color.
88      *
89      * @return The wished color.
90      */

91     public ColorUIResource JavaDoc getSecondary1()
92     {
93         return secondary1;
94     }
95
96     /**
97      * Returns the wished color.
98      *
99      * @return The wished color.
100      */

101     public ColorUIResource JavaDoc getSecondary2()
102     {
103         return secondary2;
104     }
105
106     /**
107      * Returns the wished color.
108      *
109      * @return The wished color.
110      */

111     public ColorUIResource JavaDoc getSecondary3()
112     {
113         return secondary3;
114     }
115 }
116
Popular Tags