KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ecs > HtmlColor


1 /*
2  * ====================================================================
3  *
4  * The Apache Software License, Version 1.1
5  *
6  * Copyright (c) 1999-2003 The Apache Software Foundation. All rights
7  * reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  *
13  * 1. Redistributions of source code must retain the above copyright
14  * notice, this list of conditions and the following disclaimer.
15  *
16  * 2. Redistributions in binary form must reproduce the above copyright
17  * notice, this list of conditions and the following disclaimer in
18  * the documentation and/or other materials provided with the
19  * distribution.
20  *
21  * 3. The end-user documentation included with the redistribution, if
22  * any, must include the following acknowlegement:
23  * "This product includes software developed by the
24  * Apache Software Foundation (http://www.apache.org/)."
25  * Alternately, this acknowlegement may appear in the software itself,
26  * if and wherever such third-party acknowlegements normally appear.
27  *
28  * 4. The names "The Jakarta Project", "Jakarta Element Construction Set",
29  * "Jakarta ECS" , and "Apache Software Foundation" must not be used
30  * to endorse or promote products derived
31  * from this software without prior written permission. For written
32  * permission, please contact apache@apache.org.
33  *
34  * 5. Products derived from this software may not be called "Apache",
35  * "Jakarta Element Construction Set" nor "Jakarta ECS" nor may "Apache"
36  * appear in their names without prior written permission of the Apache Group.
37  *
38  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
39  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
40  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
41  * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
42  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
44  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
45  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
46  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
47  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
48  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
49  * SUCH DAMAGE.
50  * ====================================================================
51  *
52  * This software consists of voluntary contributions made by many
53  * individuals on behalf of the Apache Software Foundation. For more
54  * information on the Apache Software Foundation, please see
55  * <http://www.apache.org/>.
56  *
57  */

58 package org.apache.ecs;
59
60 /**
61     This class defines all of the available Html Colors.
62
63     @version $Id: HtmlColor.java,v 1.3 2003/04/27 09:45:34 rdonkin Exp $
64     @author <a HREF="mailto:snagy@servletapi.com">Stephan Nagy</a>
65     @author <a HREF="mailto:jon@clearink.com">Jon S. Stevens</a>
66 */

67 public abstract class HtmlColor
68 {
69
70     // colors html 4.0
71

72     /** HTML 4.0 specification for color <font color="#000000">BLACK</font>. */
73     public final static String JavaDoc BLACK = "#000000";
74     /** HTML 4.0 specification for color <font color="#C0C0C0">SILVER</font>. */
75     public final static String JavaDoc SILVER = "#C0C0C0";
76     /** HTML 4.0 specification for color <font color="#808080">GRAY</font>. */
77     public final static String JavaDoc GRAY = "#808080";
78     /** HTML 4.0 specification for color WHITE (not shown). */
79     public final static String JavaDoc WHITE = "#FFFFFF";
80     /** HTML 4.0 specification for color <font color="#800000">MAROON</font>. */
81     public final static String JavaDoc MAROON = "#800000";
82     /** HTML 4.0 specification for color <font color="#FF0000">RED</font>. */
83     public final static String JavaDoc RED = "#FF0000";
84     /** HTML 4.0 specification for color <font color="#800080">PURPLE</font>. */
85     public final static String JavaDoc PURPLE = "#800080";
86     /** HTML 4.0 specification for color <font color="#FF00FF">FUCHSIA</font>. */
87     public final static String JavaDoc FUCHSIA = "#FF00FF";
88     /** HTML 4.0 specification for color <font color="#008000">GREEN</font>. */
89     public final static String JavaDoc GREEN = "#008000";
90     /** HTML 4.0 specification for color <font color="#00FF00">LIME</font>. */
91     public final static String JavaDoc LIME = "#00FF00";
92     /** HTML 4.0 specification for color <font color="#808000">OLIVE</font>. */
93     public final static String JavaDoc OLIVE = "#808000";
94     /** HTML 4.0 specification for color <font color="#FFFF00">YELLOW</font>. */
95     public final static String JavaDoc YELLOW = "#FFFF00";
96     /** HTML 4.0 specification for color <font color="#000080">NAVY</font>. */
97     public final static String JavaDoc NAVY = "#000080";
98     /** HTML 4.0 specification for color <font color="#0000FF">BLUE</font>. */
99     public final static String JavaDoc BLUE = "#0000FF";
100     /** HTML 4.0 specification for color <font color="#008080">TEAL</font>. */
101     public final static String JavaDoc TEAL = "#008080";
102     /** HTML 4.0 specification for color <font color="#00FFFF">AQUA</font>. */
103     public final static String JavaDoc AQUA = "#00FFFF";
104
105     // colors html 3.0
106

107     /** HTML 3.0 specification for color <font color="#EFF7FF">ALICEBLUEOC</font>. */
108     public final static String JavaDoc ALICEBLUE = "#EFF7FF";
109     /** HTML 3.0 specification for color <font color="#F9E8D2">ANTIQUEWHITE</font>. */
110     public final static String JavaDoc ANTIQUEWHITE = "#F9E8D2";
111     /** HTML 3.0 specification for color <font color="#43B7BA">AQUAMARINE</font>. */
112     public final static String JavaDoc AQUAMARINE = "#43B7BA";
113     /** HTML 3.0 specification for color <font color="#EFFFFF">AZURE</font>. */
114     public final static String JavaDoc AZURE = "#EFFFFF";
115     /** HTML 3.0 specification for color <font color="#F5F3D7">BEIGE</font>. */
116     public final static String JavaDoc BEIGE = "#F5F3D7";
117     /** HTML 3.0 specification for color <font color="#FDE0BC">BISQUE</font>. */
118     public final static String JavaDoc BISQUE = "#FDE0BC";
119     /** HTML 3.0 specification for color <font color="#FEE8C6">BLANCHEDALMOND</font>. */
120     public final static String JavaDoc BLANCHEDALMOND = "#FEE8C6";
121     /** HTML 3.0 specification for color <font color="#7931DF">BLUEVIOLET</font>. */
122     public final static String JavaDoc BLUEVIOLET = "#7931DF";
123     /** HTML 3.0 specification for color <font color="#980516">BROWN</font>. */
124     public final static String JavaDoc BROWN = "#980516";
125     /** HTML 3.0 specification for color <font color="#EABE83">BURLYWOOD</font>. */
126     public final static String JavaDoc BURLYWOOD = "#EABE83";
127     /** HTML 3.0 specification for color <font color="#578693">CADETBLUE</font>. */
128     public final static String JavaDoc CADETBLUE = "#578693";
129     /** HTML 3.0 specification for color <font color="#8AFB17">CHARTREUSE</font>. */
130     public final static String JavaDoc CHARTREUSE = "#8AFB17";
131     /** HTML 3.0 specification for color <font color="#C85A17">CHOCOLATE</font>. */
132     public final static String JavaDoc CHOCOLATE = "#C85A17";
133     /** HTML 3.0 specification for color <font color="#F76541">CORAL</font>. */
134     public final static String JavaDoc CORAL = "#F76541";
135     /** HTML 3.0 specification for color <font color="#151B8D">CORNFLOWERBLUE</font>. */
136     public final static String JavaDoc CORNFLOWERBLUE = "#151B8D";
137     /** HTML 3.0 specification for color <font color="#FFF7D7">CORNSILK</font>.*/
138     public final static String JavaDoc CORNSILK = "#FFF7D7";
139     /** HTML 3.0 specification for color <font color="#E41B17">CRIMSON</font>.
140      * RED2 couldn't find CRIMSON */

141     public final static String JavaDoc CRIMSON = "#E41B17";
142     /** HTML 3.0 specification for color <font color="#00FFFF">CYAN</font>. */
143     public final static String JavaDoc CYAN = "#00FFFF";
144     /** HTML 3.0 specification for color <font color="#2F2F4F">DARKBLUE</font>.
145     * MIDNIGHTBLUE couldn't find DARKBLUE */

146     public final static String JavaDoc DARKBLUE = "#2F2F4F";
147     /** HTML 3.0 specification for color <font color="#57FEFF">DARKCYAN</font>.
148      * CYAN1 couldn't find DARKCYAN */

149     public final static String JavaDoc DARKCYAN = "#57FEFF";
150     /** HTML 3.0 specification for color <font color="#AF7817">DARKGOLDENROD</font>. */
151     public final static String JavaDoc DARKGOLDENROD = "#AF7817";
152     /** HTML 3.0 specification for color <font color="#7A7777">DARKGRAY</font>.
153      * GRAY52 couldn't find DARKGRAY */

154     public final static String JavaDoc DARKGRAY = "#7A7777";
155     /** HTML 3.0 specification for color <font color="#254117">DARKGREEN</font>. */
156     public final static String JavaDoc DARKGREEN = "#254117";
157     /** HTML 3.0 specification for color <font color="#B7AD59">DARKKHAKI</font>. */
158     public final static String JavaDoc DARKKHAKI = "#B7AD59";
159     /** HTML 3.0 specification for color <font color="#F43EFF">DARKMAGENTA</font>.
160      * MAGENTA1 couldn't find DARKMAGENTA */

161     public final static String JavaDoc DARKMAGENTA = "#F43EFF";
162     /** HTML 3.0 specification for color <font color="#CCFB5D">DARKOLIVEGREEN</font>. */
163     public final static String JavaDoc DARKOLIVEGREEN = "#CCFB5D";
164     /** HTML 3.0 specification for color <font color="#F88017">DARKORANGE</font>. */
165     public final static String JavaDoc DARKORANGE = "#F88017";
166     /** HTML 3.0 specification for color <font color="#7D1B7E">DARKORCHID</font>. */
167     public final static String JavaDoc DARKORCHID = "#7D1B7E";
168     /** HTML 3.0 specification for color <font color="#E41B17">DARKRED</font>.
169      * RED2 couldn't find DARKRED */

170     public final static String JavaDoc DARKRED = "#E41B17";
171     /** HTML 3.0 specification for color <font color="#E18B6B">DARKSALMON</font>. */
172     public final static String JavaDoc DARKSALMON = "#E18B6B";
173     /** HTML 3.0 specification for color <font color="#8BB381">DARKSEAGREEN</font>. */
174     public final static String JavaDoc DARKSEAGREEN = "#8BB381";
175     /** HTML 3.0 specification for color <font color="#2B3856">DARKSLATEBLUE</font>. */
176     public final static String JavaDoc DARKSLATEBLUE = "#2B3856";
177     /** HTML 3.0 specification for color <font color="#253856">DARKSLATEGRAY</font>. */
178     public final static String JavaDoc DARKSLATEGRAY = "#253856";
179     /** HTML 3.0 specification for color <font color="#3B9C9C">DARKTURQUOISE</font>. */
180     public final static String JavaDoc DARKTURQUOISE = "#3B9C9C";
181     /** HTML 3.0 specification for color <font color="#842DCE">DARKVIOLET</font>. */
182     public final static String JavaDoc DARKVIOLET = "#842DCE";
183     /** HTML 3.0 specification for color <font color="#F52887">DEEPPINK</font>. */
184     public final static String JavaDoc DEEPPINK = "#F52887";
185     /** HTML 3.0 specification for color <font color="#3BB9FF">DEEPSKYBLUE</font>. */
186     public final static String JavaDoc DEEPSKYBLUE = "#3BB9FF";
187     /** HTML 3.0 specification for color <font color="#463E41">DIMGRAY</font>. */
188     public final static String JavaDoc DIMGRAY = "#463E41";
189     /** HTML 3.0 specification for color <font color="#1589FF">DODGERBLUE</font>. */
190     public final static String JavaDoc DODGERBLUE = "#1589FF";
191     /** HTML 3.0 specification for color <font color="#800517">FIREBRICK</font>. */
192     public final static String JavaDoc FIREBRICK = "#800517";
193     /** HTML 3.0 specification for color <font color="#FFF9EE">FLORALWHITE</font>. */
194     public final static String JavaDoc FLORALWHITE = "#FFF9EE";
195     /** HTML 3.0 specification for color <font color="#4E9258">FORESTGREEN</font>. */
196     public final static String JavaDoc FORESTGREEN = "#4E9258";
197     /** HTML 3.0 specification for color <font color="#D8D9D7">GAINSBORO</font>. */
198     public final static String JavaDoc GAINSBORO = "#D8D9D7";
199     /** HTML 3.0 specification for color <font color="#F7F7FF">GHOSTWHITE</font>. */
200     public final static String JavaDoc GHOSTWHITE = "#F7F7FF";
201     /** HTML 3.0 specification for color <font color="#D4A017">GOLD</font>. */
202     public final static String JavaDoc GOLD = "#D4A017";
203     /** HTML 3.0 specification for color <font color="#EDDA74">GOLDENROD</font>. */
204     public final static String JavaDoc GOLDENROD = "#EDDA74";
205     /** HTML 3.0 specification for color <font color="#B1FB17">GREENYELLOW</font>. */
206     public final static String JavaDoc GREENYELLOW = "#B1FB17";
207     /** HTML 3.0 specification for color <font color="#F0FEEE">HONEYDEW</font>. */
208     public final static String JavaDoc HONEYDEW = "#F0FEEE";
209     /** HTML 3.0 specification for color <font color="#5E2217">INDIANRED</font>. */
210     public final static String JavaDoc INDIANRED = "#5E2217";
211     /** HTML 3.0 specification for color <font color="#307D7E">INDIGO</font>.
212      * CYAN4 couldn't find INDIGO */

213     public final static String JavaDoc INDIGO = "#307D7E";
214     /** HTML 3.0 specification for color <font color="#FFFFEE">IVORY</font>. */
215     public final static String JavaDoc IVORY = "#FFFFEE";
216     /** HTML 3.0 specification for color <font color="#ADA96E">KHAKI</font>. */
217     public final static String JavaDoc KHAKI = "#ADA96E";
218     /** HTML 3.0 specification for color <font color="#E3E4FA">LAVENDER</font>. */
219     public final static String JavaDoc LAVENDER = "#E3E4FA";
220     /** HTML 3.0 specification for color <font color="#FDEEF4">LAVENDERBLUSH</font>. */
221     public final static String JavaDoc LAVENDERBLUSH = "#FDEEF4";
222     /** HTML 3.0 specification for color <font color="#87F717">LAWNGREEN</font>. */
223     public final static String JavaDoc LAWNGREEN = "#87F717";
224     /** HTML 3.0 specification for color <font color="#FFF8C6">LEMONCHIFFON</font>. */
225     public final static String JavaDoc LEMONCHIFFON = "#FFF8C6";
226     /** HTML 3.0 specification for color <font color="#ADDFFF">LIGHTBLUE</font>. */
227     public final static String JavaDoc LIGHTBLUE = "#ADDFFF";
228     /** HTML 3.0 specification for color <font color="#E77471">LIGHTCORAL</font>. */
229     public final static String JavaDoc LIGHTCORAL = "#E77471";
230     /** HTML 3.0 specification for color <font color="#E0FFFF">LIGHTCYAN</font>. */
231     public final static String JavaDoc LIGHTCYAN = "#E0FFFF";
232     /** HTML 3.0 specification for color <font color="#FAF8CC">LIGHTGOLDENROD</font>. */
233     public final static String JavaDoc LIGHTGOLDENRODYELLOW = "#FAF8CC";
234     /** HTML 3.0 specification for color <font color="#CCFFCC">LIGHTGREEN</font>.
235      * ARBITRARY SHADE OF GREEN couldnt find LIGHTGREEN */

236     public final static String JavaDoc LIGHTGREEN = "#CCFFCC";
237     /** HTML 3.0 specification for color <font color="#FAAFBA">LIGHPINK</font>. */
238     public final static String JavaDoc LIGHTPINK = "#FAAFBA";
239     /** HTML 3.0 specification for color <font color="#F9966B">LIGHTSALMON</font>. */
240     public final static String JavaDoc LIGHTSALMON = "#F9966B";
241     /** HTML 3.0 specification for color <font color="#3EA99F">LIGHTSEAGREEN</font>. */
242     public final static String JavaDoc LIGHTSEAGREEN = "#3EA99F";
243     /** HTML 3.0 specification for color <font color="#82CAFA">LIGHTSKYBLUE</font>. */
244     public final static String JavaDoc LIGHTSKYBLUE = "#82CAFA";
245     /** HTML 3.0 specification for color <font color="#6D7B8D">LIGHTSLATEGRAY</font>. */
246     public final static String JavaDoc LIGHTSLATEGRAY = "#6D7B8D";
247     /** HTML 3.0 specification for color <font color="#728FCE">LIGHTSTEELBLUE</font>. */
248     public final static String JavaDoc LIGHTSTEELBLUE = "#728FCE";
249     /** HTML 3.0 specification for color <font color="#FFFEDC">LIGHTYELLOW</font>. */
250     public final static String JavaDoc LIGHTYELLOW = "#FFFEDC";
251     /** HTML 3.0 specification for color <font color="#41A317">LIMEGREEN</font>. */
252     public final static String JavaDoc LIMEGREEN = "#41A317";
253     /** HTML 3.0 specification for color <font color="#F9EEE2">LINEN</font>. */
254     public final static String JavaDoc LINEN = "#F9EEE2";
255     /** HTML 3.0 specification for color <font color="#FF00FF">MAGENTA</font>. */
256     public final static String JavaDoc MAGENTA = "#FF00FF";
257     /** HTML 3.0 specification for color <font color="#348781">MEDIUMAQUAMARINE</font>. */
258     public final static String JavaDoc MEDIUMAQUAMARINE = "#348781";
259     /** HTML 3.0 specification for color <font color="#152DC6">MEDIUMBLUE</font>. */
260     public final static String JavaDoc MEDIUMBLUE = "#152DC6";
261     /** HTML 3.0 specification for color <font color="#B048B5">MEDIUMORCHID</font>. */
262     public final static String JavaDoc MEDIUMORCHID = "#B048B5";
263     /** HTML 3.0 specification for color <font color="#8467D7">MEDIUMPURPLE</font>. */
264     public final static String JavaDoc MEDIUMPURPLE = "#8467D7";
265     /** HTML 3.0 specification for color <font color="#306754">MEDIUMSEAGREEN</font>. */
266     public final static String JavaDoc MEDIUMSEAGREEN = "#306754";
267     /** HTML 3.0 specification for color <font color="#5E5A80">MEDIUMSLATEBLUE</font>. */
268     public final static String JavaDoc MEDIUMSLATEBLUE = "#5E5A80";
269     /** HTML 3.0 specification for color <font color="#348017">MEDIUMSPRINGGREEN</font>. */
270     public final static String JavaDoc MEDIUMSPRINGGREEN = "#348017";
271     /** HTML 3.0 specification for color <font color="#48CCCD">MEDIUMTURQUOISE</font>. */
272     public final static String JavaDoc MEDIUMTURQUOISE = "#48CCCD";
273     /** HTML 3.0 specification for color <font color="#CA226B">MEDIUMVIOLETRED</font>. */
274     public final static String JavaDoc MEDIUMVIOLETRED = "#CA226B";
275     /** HTML 3.0 specification for color <font color="#151B54">MIDNIGHTBLUE</font>. */
276     public final static String JavaDoc MIDNIGHTBLUE = "#151B54";
277     /** HTML 3.0 specification for color <font color="#F5FFF9">MINTCREAM</font>. */
278     public final static String JavaDoc MINTCREAM = "#F5FFF9";
279     /** HTML 3.0 specification for color <font color="#FDE1DD">MISTYROSE</font>. */
280     public final static String JavaDoc MISTYROSE = "#FDE1DD";
281     /** HTML 3.0 specification for color <font color="#FDE0AC">MOCCASIN</font>. */
282     public final static String JavaDoc MOCCASIN = "#FDE0AC";
283     /** HTML 3.0 specification for color <font color="#FDDAA3">NAVAJOWHITE</font>. */
284     public final static String JavaDoc NAVAJOWHITE = "#FDDAA3";
285     /** HTML 3.0 specification for color <font color="#FCF3E2">OLDLACE</font>. */
286     public final static String JavaDoc OLDLACE = "#FCF3E2";
287     /** HTML 3.0 specification for color <font color="#658017">OLIVEDRAB</font>. */
288     public final static String JavaDoc OLIVEDRAB = "#658017";
289     /** HTML 3.0 specification for color <font color="#F87A17">ORANGE</font>. */
290     public final static String JavaDoc ORANGE = "#F87A17";
291     /** HTML 3.0 specification for color <font color="#F63817">ORANGERED</font>. */
292     public final static String JavaDoc ORANGERED = "#F63817";
293     /** HTML 3.0 specification for color <font color="#E57DED">ORCHID</font>. */
294     public final static String JavaDoc ORCHID = "#E57DED";
295     /** HTML 3.0 specification for color <font color="#EDE49E">PALEGOLDENROD</font>. */
296     public final static String JavaDoc PALEGOLDENROD = "#EDE49E";
297     /** HTML 3.0 specification for color <font color="#AEEBEC">PALETURQUOISE</font>. */
298     public final static String JavaDoc PALETURQUOISE = "#AEEBEC";
299     /** HTML 3.0 specification for color <font color="#D16587">PALEVIOLETRED</font>. */
300     public final static String JavaDoc PALEVIOLETRED = "#D16587";
301     /** HTML 3.0 specification for color <font color="#FEECCF">PAPAYAWHIP</font>. */
302     public final static String JavaDoc PAPAYAWHIP = "#FEECCF";
303     /** HTML 3.0 specification for color <font color="#FCD5B0">PEACHPUFF</font>. */
304     public final static String JavaDoc PEACHPUFF = "#FCD5B0";
305     /** HTML 3.0 specification for color <font color="#C57726">PERU</font>. */
306     public final static String JavaDoc PERU = "#C57726";
307     /** HTML 3.0 specification for color <font color="#FAAFBE">PINK</font>. */
308     public final static String JavaDoc PINK = "#FAAFBE";
309     /** HTML 3.0 specification for color <font color="#B93B8F">PLUM</font>. */
310     public final static String JavaDoc PLUM = "#B93B8F";
311     /** HTML 3.0 specification for color <font color="#ADDCE3">POWDERBLUE</font>. */
312     public final static String JavaDoc POWDERBLUE = "#ADDCE3";
313     /** HTML 3.0 specification for color <font color="#B38481">ROSYBROWN</font>. */
314     public final static String JavaDoc ROSYBROWN = "#B38481";
315     /** HTML 3.0 specification for color <font color="#2B60DE">ROYALBLUE</font>. */
316     public final static String JavaDoc ROYALBLUE = "#2B60DE";
317     /** HTML 3.0 specification for color <font color="#F63526">SADDLEBROWN</font>.
318      * BROWN2 couldn't find SADDLEBROWN */

319     public final static String JavaDoc SADDLEBROWN = "#F63526";
320     /** HTML 3.0 specification for color <font color="#F88158">SALMON</font>. */
321     public final static String JavaDoc SALMON = "#F88158";
322     /** HTML 3.0 specification for color <font color="#EE9A4D">SANDYBROWN</font>. */
323     public final static String JavaDoc SANDYBROWN = "#EE9A4D";
324     /** HTML 3.0 specification for color <font color="#4E8975">SEAGREEN</font>. */
325     public final static String JavaDoc SEAGREEN = "#4E8975";
326     /** HTML 3.0 specification for color <font color="#FEF3EB">SEASHELL</font>. */
327     public final static String JavaDoc SEASHELL = "#FEF3EB";
328     /** HTML 3.0 specification for color <font color="#8A4117">SIENNA</font>. */
329     public final static String JavaDoc SIENNA = "#8A4117";
330     /** HTML 3.0 specification for color <font color="#6698FF">SKYBLUE</font>. */
331     public final static String JavaDoc SKYBLUE = "#6698FF";
332     /** HTML 3.0 specification for color <font color="#737CA1">SLATEBLUE</font>. */
333     public final static String JavaDoc SLATEBLUE = "#737CA1";
334     /** HTML 3.0 specification for color <font color="#657383">SLATEGRAY</font>. */
335     public final static String JavaDoc SLATEGRAY = "#657383";
336     /** HTML 3.0 specification for color <font color="#FFF9FA">SNOW</font>. */
337     public final static String JavaDoc SNOW = "#FFF9FA";
338     /** HTML 3.0 specification for color <font color="#4AA02C">SPRINGGREEN</font>. */
339     public final static String JavaDoc SPRINGGREEN = "#4AA02C";
340     /** HTML 3.0 specification for color <font color="#4863A0">STEELBLUE</font>. */
341     public final static String JavaDoc STEELBLUE = "#4863A0";
342     /** HTML 3.0 specification for color <font color="#D8AF79">TAN</font>. */
343     public final static String JavaDoc TAN = "#D8AF79";
344     /** HTML 3.0 specification for color <font color="#D2B9D3">THISTLE</font>. */
345     public final static String JavaDoc THISTLE = "#D2B9D3";
346     /** HTML 3.0 specification for color <font color="#F75431">TOMATO</font>. */
347     public final static String JavaDoc TOMATO = "#F75431";
348     /** HTML 3.0 specification for color <font color="#43C6DB">TURQUOISE</font>. */
349     public final static String JavaDoc TURQUOISE = "#43C6DB";
350     /** HTML 3.0 specification for color <font color="#8D38C9">VIOLET</font>. */
351     public final static String JavaDoc VIOLET = "#8D38C9";
352     /** HTML 3.0 specification for color <font color="#F3DAA9">WHEAT</font>. */
353     public final static String JavaDoc WHEAT = "#F3DAA9";
354     /** HTML 3.0 specification for color WHITESMOKE (not shown).
355      * WHITE couldn't find WHITESMOKE */

356     public final static String JavaDoc WHITESMOKE = "#FFFFFF";
357     /** HTML 3.0 specification for color <font color="#52D017"></font>. */
358     public final static String JavaDoc YELLOWGREEN = "#52D017";
359
360     // lowercase for compatability colors HTML 4.0
361

362     /** Lowercase for compatiblity.
363      * @see #BLACK */

364     public final static String JavaDoc black = BLACK;
365     /** Lowercase for compatiblity.
366      * @see #SILVER */

367     public final static String JavaDoc silver = SILVER;
368     /** Lowercase for compatiblity.
369      * @see #GRAY */

370     public final static String JavaDoc gray = GRAY;
371     /** Lowercase for compatiblity.
372      * @see #WHITE */

373     public final static String JavaDoc white = WHITE;
374     /** Lowercase for compatiblity.
375      * @see #MAROON */

376     public final static String JavaDoc maroon = MAROON;
377     /** Lowercase for compatiblity.
378      * @see #RED */

379     public final static String JavaDoc red = RED;
380     /** Lowercase for compatiblity.
381      * @see #PURPLE */

382     public final static String JavaDoc purple = PURPLE;
383     /** Lowercase for compatiblity.
384      * @see #FUCHSIA */

385     public final static String JavaDoc fuchsia = FUCHSIA;
386     /** Lowercase for compatiblity.
387      * @see #GREEN */

388     public final static String JavaDoc green = GREEN;
389     /** Lowercase for compatiblity.
390      * @see #LIME */

391     public final static String JavaDoc lime = LIME;
392     /** Lowercase for compatiblity.
393      * @see #OLIVE */

394     public final static String JavaDoc olive = OLIVE;
395     /** Lowercase for compatiblity.
396      * @see #YELLOW */

397     public final static String JavaDoc yellow = YELLOW;
398     /** Lowercase for compatiblity.
399      * @see #NAVY */

400     public final static String JavaDoc navy = NAVY;
401     /** Lowercase for compatiblity.
402      * @see #BLUE */

403     public final static String JavaDoc blue = BLUE;
404     /** Lowercase for compatiblity.
405      * @see #TEAL */

406     public final static String JavaDoc teal = TEAL;
407     /** Lowercase for compatiblity.
408      * @see #AQUA */

409     public final static String JavaDoc aqua = AQUA;
410
411     // lowercase for compatability colors html 3.0
412

413     /** Lowercase for compatiblity.
414      * @see #ALICEBLUE */

415     public final static String JavaDoc aliceblue = ALICEBLUE;
416     /** Lowercase for compatiblity.
417      * @see #ANTIQUEWHITE */

418     public final static String JavaDoc antiquewhite = ANTIQUEWHITE;
419     /** Lowercase for compatiblity.
420      * @see #AQUAMARINE */

421     public final static String JavaDoc aquamarine = AQUAMARINE;
422     /** Lowercase for compatiblity.
423      * @see #AZURE */

424     public final static String JavaDoc azure = AZURE;
425     /** Lowercase for compatiblity.
426      * @see #BEIGE */

427     public final static String JavaDoc beige = BEIGE;
428     /** Lowercase for compatiblity.
429      * @see #BISQUE */

430     public final static String JavaDoc bisque = BISQUE;
431     /** Lowercase for compatiblity.
432      * @see #BLANCHEDALMOND */

433     public final static String JavaDoc blanchedalmond = BLANCHEDALMOND;
434     /** Lowercase for compatiblity.
435      * @see #BLUEVIOLET */

436     public final static String JavaDoc blueviolet = BLUEVIOLET;
437     /** Lowercase for compatiblity.
438      * @see #BROWN */

439     public final static String JavaDoc brown = BROWN;
440     /** Lowercase for compatiblity.
441      * @see #BURLYWOOD */

442     public final static String JavaDoc burlywood = BURLYWOOD;
443     /** Lowercase for compatiblity.
444      * @see #CADETBLUE */

445     public final static String JavaDoc cadetblue = CADETBLUE;
446     /** Lowercase for compatiblity.
447      * @see #CHARTREUSE */

448     public final static String JavaDoc chartreuse = CHARTREUSE;
449     /** Lowercase for compatiblity.
450      * @see #CHOCOLATE */

451     public final static String JavaDoc chocolate = CHOCOLATE;
452     /** Lowercase for compatiblity.
453      * @see #CORAL */

454     public final static String JavaDoc coral = CORAL;
455     /** Lowercase for compatiblity.
456      * @see #CORNFLOWERBLUE */

457     public final static String JavaDoc cornfolowerblue = CORNFLOWERBLUE;
458     /** Lowercase for compatiblity.
459      * @see #CORNSILK */

460     public final static String JavaDoc cornsilk = CORNSILK;
461     /** Lowercase for compatiblity.
462      * @see #CRIMSON */

463     public final static String JavaDoc crimson = CRIMSON;
464     /** Lowercase for compatiblity.
465      * @see #CYAN */

466     public final static String JavaDoc cyan = CYAN;
467     /** Lowercase for compatiblity.
468      * @see #DARKBLUE */

469     public final static String JavaDoc darkblue = DARKBLUE;
470     /** Lowercase for compatiblity.
471      * @see #DARKCYAN */

472     public final static String JavaDoc darkcyan = DARKCYAN;
473     /** Lowercase for compatiblity.
474      * @see #DARKGOLDENROD */

475     public final static String JavaDoc darkgoldenrod = DARKGOLDENROD;
476     /** Lowercase for compatiblity.
477      * @see #DARKGRAY */

478     public final static String JavaDoc darkgray = DARKGRAY;
479     /** Lowercase for compatiblity.
480      * @see #DARKGREEN */

481     public final static String JavaDoc darkgreen = DARKGREEN;
482     /** Lowercase for compatiblity.
483      * @see #DARKKHAKI */

484     public final static String JavaDoc darkkahki = DARKKHAKI;
485     /** Lowercase for compatiblity.
486      * @see #DARKMAGENTA */

487     public final static String JavaDoc darkmagenta = DARKMAGENTA;
488     /** Lowercase for compatiblity.
489      * @see #DARKOLIVEGREEN */

490     public final static String JavaDoc darkolivegreen = DARKOLIVEGREEN;
491     /** Lowercase for compatiblity.
492      * @see #DARKORANGE */

493     public final static String JavaDoc darkorange = DARKORANGE;
494     /** Lowercase for compatiblity.
495      * @see #DARKORCHID */

496     public final static String JavaDoc darkorchid = DARKORCHID;
497     /** Lowercase for compatiblity.
498      * @see #DARKRED */

499     public final static String JavaDoc darkred = DARKRED;
500     /** Lowercase for compatiblity.
501      * @see #DARKSALMON */

502     public final static String JavaDoc darksalmon = DARKSALMON;
503     /** Lowercase for compatiblity.
504      * @see #DARKSEAGREEN */

505     public final static String JavaDoc darkseagreen = DARKSEAGREEN;
506     /** Lowercase for compatiblity.
507      * @see #DARKSLATEBLUE */

508     public final static String JavaDoc darkslateblue = DARKSLATEBLUE;
509     /** Lowercase for compatiblity.
510      * @see #DARKSLATEGRAY */

511     public final static String JavaDoc darkslategray = DARKSLATEGRAY;
512     /** Lowercase for compatiblity.
513      * @see #DARKTURQUOISE */

514     public final static String JavaDoc darkturquoise = DARKTURQUOISE;
515     /** Lowercase for compatiblity.
516      * @see #DARKVIOLET */

517     public final static String JavaDoc darkviolet = DARKVIOLET;
518     /** Lowercase for compatiblity.
519      * @see #DEEPPINK */

520     public final static String JavaDoc deeppink = DEEPPINK;
521     /** Lowercase for compatiblity.
522      * @see #DEEPSKYBLUE */

523     public final static String JavaDoc deepskyblue = DEEPSKYBLUE;
524     /** Lowercase for compatiblity.
525      * @see #DIMGRAY */

526     public final static String JavaDoc dimgray = DIMGRAY;
527     /** Lowercase for compatiblity.
528      * @see #DODGERBLUE */

529     public final static String JavaDoc dodgerblue = DODGERBLUE;
530     /** Lowercase for compatiblity.
531      * @see #FIREBRICK */

532     public final static String JavaDoc firebrick = FIREBRICK;
533     /** Lowercase for compatiblity.
534      * @see #FLORALWHITE */

535     public final static String JavaDoc floralwhite = FLORALWHITE;
536     /** Lowercase for compatiblity.
537      * @see #FORESTGREEN */

538     public final static String JavaDoc forestgreen = FORESTGREEN;
539     /** Lowercase for compatiblity.
540      * @see #GAINSBORO */

541     public final static String JavaDoc gainsboro = GAINSBORO;
542     /** Lowercase for compatiblity.
543      * @see #GHOSTWHITE */

544     public final static String JavaDoc ghostwhite = GHOSTWHITE;
545     /** Lowercase for compatiblity.
546      * @see #GOLD */

547     public final static String JavaDoc gold = GOLD;
548     /** Lowercase for compatiblity.
549      * @see #GOLDENROD */

550     public final static String JavaDoc goldenrod = GOLDENROD;
551     /** Lowercase for compatiblity.
552      * @see #GREENYELLOW */

553     public final static String JavaDoc greenyellow = GREENYELLOW;
554     /** Lowercase for compatiblity.
555      * @see #HONEYDEW */

556     public final static String JavaDoc honeydew = HONEYDEW;
557     /** Lowercase for compatiblity.
558      * @see #INDIANRED */

559     public final static String JavaDoc indianred = INDIANRED;
560     /** Lowercase for compatiblity.
561      * @see #INDIGO */

562     public final static String JavaDoc indigo = INDIGO;
563     /** Lowercase for compatiblity.
564      * @see #IVORY */

565     public final static String JavaDoc ivory = IVORY;
566     /** Lowercase for compatiblity.
567      * @see #KHAKI */

568     public final static String JavaDoc khaki = KHAKI;
569     /** Lowercase for compatiblity.
570      * @see #LAVENDER */

571     public final static String JavaDoc lavender = LAVENDER;
572     /** Lowercase for compatiblity.
573      * @see #LAVENDERBLUSH */

574     public final static String JavaDoc lavenderblush = LAVENDERBLUSH;
575     /** Lowercase for compatiblity.
576      * @see #LAWNGREEN */

577     public final static String JavaDoc lawngreen = LAWNGREEN;
578     /** Lowercase for compatiblity.
579      * @see #LEMONCHIFFON */

580     public final static String JavaDoc lemmonchiffon = LEMONCHIFFON;
581     /** Lowercase for compatiblity.
582      * @see #LIGHTBLUE */

583     public final static String JavaDoc lightblue = LIGHTBLUE;
584     /** Lowercase for compatiblity.
585      * @see #LIGHTCORAL */

586     public final static String JavaDoc lightcoral = LIGHTCORAL;
587     /** Lowercase for compatiblity.
588      * @see #LIGHTCYAN */

589     public final static String JavaDoc lightcyan = LIGHTCYAN;
590     /** Lowercase for compatiblity.
591      * @see #LIGHTGOLDENRODYELLOW */

592     public final static String JavaDoc lightgoldenrodyellow = LIGHTGOLDENRODYELLOW;
593     /** Lowercase for compatiblity.
594      * @see #LIGHTGREEN */

595     public final static String JavaDoc lightgreen = LIGHTGREEN;
596     /** Lowercase for compatiblity.
597      * @see #LIGHTPINK */

598     public final static String JavaDoc lightpink = LIGHTPINK;
599     /** Lowercase for compatiblity.
600      * @see #LIGHTSALMON */

601     public final static String JavaDoc lightsalmon = LIGHTSALMON;
602     /** Lowercase for compatiblity.
603      * @see #LIGHTSEAGREEN */

604     public final static String JavaDoc lightseagreen = LIGHTSEAGREEN;
605     /** Lowercase for compatiblity.
606      * @see #LIGHTSKYBLUE */

607     public final static String JavaDoc lightskyblue = LIGHTSKYBLUE;
608     /** Lowercase for compatiblity.
609      * @see #LIGHTSLATEGRAY */

610     public final static String JavaDoc lightslategray = LIGHTSLATEGRAY;
611     /** Lowercase for compatiblity.
612      * @see #LIGHTSTEELBLUE */

613     public final static String JavaDoc lightsteelblue = LIGHTSTEELBLUE;
614     /** Lowercase for compatiblity.
615      * @see #LIGHTYELLOW */

616     public final static String JavaDoc lightyellow = LIGHTYELLOW;
617     /** Lowercase for compatiblity.
618      * @see #LIMEGREEN */

619     public final static String JavaDoc limegreen = LIMEGREEN;
620     /** Lowercase for compatiblity.
621      * @see #LINEN */

622     public final static String JavaDoc linen = LINEN;
623     /** Lowercase for compatiblity.
624      * @see #MAGENTA */

625     public final static String JavaDoc magenta = MAGENTA;
626     /** Lowercase for compatiblity.
627      * @see #MEDIUMAQUAMARINE */

628     public final static String JavaDoc mediumaquamarine = MEDIUMAQUAMARINE;
629     /** Lowercase for compatiblity.
630      * @see #MEDIUMBLUE */

631     public final static String JavaDoc mediumblue = MEDIUMBLUE;
632     /** Lowercase for compatiblity.
633      * @see #MEDIUMORCHID */

634     public final static String JavaDoc mediumorchid = MEDIUMORCHID;
635     /** Lowercase for compatiblity.
636      * @see #MEDIUMPURPLE */

637     public final static String JavaDoc mediumpurple = MEDIUMPURPLE;
638     /** Lowercase for compatiblity.
639      * @see #MEDIUMSEAGREEN */

640     public final static String JavaDoc mediumseagreen = MEDIUMSEAGREEN;
641     /** Lowercase for compatiblity.
642      * @see #MEDIUMSLATEBLUE */

643     public final static String JavaDoc mediumslateblue = MEDIUMSLATEBLUE;
644     /** Lowercase for compatiblity.
645      * @see #MEDIUMSPRINGGREEN */

646     public final static String JavaDoc mediumspringgreen = MEDIUMSPRINGGREEN;
647     /** Lowercase for compatiblity.
648      * @see #MEDIUMTURQUOISE */

649     public final static String JavaDoc mediumturquoise = MEDIUMTURQUOISE;
650     /** Lowercase for compatiblity.
651      * @see #MEDIUMVIOLETRED */

652     public final static String JavaDoc mediumvioletred = MEDIUMVIOLETRED;
653     /** Lowercase for compatiblity.
654      * @see #MIDNIGHTBLUE */

655     public final static String JavaDoc midnightblue = MIDNIGHTBLUE;
656     /** Lowercase for compatiblity.
657      * @see #MINTCREAM */

658     public final static String JavaDoc mintcream = MINTCREAM;
659     /** Lowercase for compatiblity.
660      * @see #MISTYROSE */

661     public final static String JavaDoc mistyrose = MISTYROSE;
662     /** Lowercase for compatiblity.
663      * @see #MOCCASIN */

664     public final static String JavaDoc moccasin = MOCCASIN;
665     /** Lowercase for compatiblity.
666      * @see #NAVAJOWHITE */

667     public final static String JavaDoc navajowhite = NAVAJOWHITE;
668     /** Lowercase for compatiblity.
669      * @see #OLDLACE */

670     public final static String JavaDoc oldlace = OLDLACE;
671     /** Lowercase for compatiblity.
672      * @see #OLIVEDRAB */

673     public final static String JavaDoc olivedrab = OLIVEDRAB;
674     /** Lowercase for compatiblity.
675      * @see #ORANGE */

676     public final static String JavaDoc orange = ORANGE;
677     /** Lowercase for compatiblity.
678      * @see #ORANGERED */

679     public final static String JavaDoc orangered = ORANGERED;
680     /** Lowercase for compatiblity.
681      * @see #ORCHID */

682     public final static String JavaDoc orchid = ORCHID;
683     /** Lowercase for compatiblity.
684      * @see #PALEGOLDENROD */

685     public final static String JavaDoc palegoldenrod = PALEGOLDENROD;
686     /** Lowercase for compatiblity.
687      * @see #PALETURQUOISE */

688     public final static String JavaDoc paleturquoise = PALETURQUOISE;
689     /** Lowercase for compatiblity.
690      * @see #PALEVIOLETRED */

691     public final static String JavaDoc palevioletred = PALEVIOLETRED;
692     /** Lowercase for compatiblity.
693      * @see #PAPAYAWHIP */

694     public final static String JavaDoc papayawhip = PAPAYAWHIP;
695     /** Lowercase for compatiblity.
696      * @see #PEACHPUFF */

697     public final static String JavaDoc peachpuff = PEACHPUFF;
698     /** Lowercase for compatiblity.
699      * @see #PERU */

700     public final static String JavaDoc peru = PERU;
701     /** Lowercase for compatiblity.
702      * @see #PINK */

703     public final static String JavaDoc pink = PINK;
704     /** Lowercase for compatiblity.
705      * @see #PLUM */

706     public final static String JavaDoc plum = PLUM;
707     /** Lowercase for compatiblity.
708      * @see #POWDERBLUE */

709     public final static String JavaDoc powderblue = POWDERBLUE;
710     /** Lowercase for compatiblity.
711      * @see #ROSYBROWN */

712     public final static String JavaDoc rosybrown = ROSYBROWN;
713     /** Lowercase for compatiblity.
714      * @see #ROYALBLUE */

715     public final static String JavaDoc royalblue = ROYALBLUE;
716     /** Lowercase for compatiblity.
717      * @see #SADDLEBROWN */

718     public final static String JavaDoc saddlebrown = SADDLEBROWN;
719     /** Lowercase for compatiblity.
720      * @see #SALMON */

721     public final static String JavaDoc salmon = SALMON;
722     /** Lowercase for compatiblity.
723      * @see #SANDYBROWN */

724     public final static String JavaDoc sandybrown = SANDYBROWN;
725     /** Lowercase for compatiblity.
726      * @see #SEAGREEN */

727     public final static String JavaDoc seagreen = SEAGREEN;
728     /** Lowercase for compatiblity.
729      * @see #SEASHELL */

730     public final static String JavaDoc seashell = SEASHELL;
731     /** Lowercase for compatiblity.
732      * @see #SIENNA */

733     public final static String JavaDoc sienna = SIENNA;
734     /** Lowercase for compatiblity.
735      * @see #SKYBLUE */

736     public final static String JavaDoc skyblue = SKYBLUE;
737     /** Lowercase for compatiblity.
738      * @see #SLATEBLUE */

739     public final static String JavaDoc slateblue = SLATEBLUE;
740     /** Lowercase for compatiblity.
741      * @see #SLATEGRAY */

742     public final static String JavaDoc slategray = SLATEGRAY;
743     /** Lowercase for compatiblity.
744      * @see #SNOW */

745     public final static String JavaDoc snow = SNOW;
746     /** Lowercase for compatiblity.
747      * @see #SPRINGGREEN */

748     public final static String JavaDoc springgreen = SPRINGGREEN;
749     /** Lowercase for compatiblity.
750      * @see #STEELBLUE */

751     public final static String JavaDoc steelblue = STEELBLUE;
752     /** Lowercase for compatiblity.
753      * @see #TAN */

754     public final static String JavaDoc tan = TAN;
755     /** Lowercase for compatiblity.
756      * @see #THISTLE */

757     public final static String JavaDoc thistle = THISTLE;
758     /** Lowercase for compatiblity.
759      * @see #TOMATO */

760     public final static String JavaDoc tomato = TOMATO;
761     /** Lowercase for compatiblity.
762      * @see #TURQUOISE */

763     public final static String JavaDoc turquoise = TURQUOISE;
764     /** Lowercase for compatiblity.
765      * @see #VIOLET */

766     public final static String JavaDoc violet = VIOLET;
767     /** Lowercase for compatiblity.
768      * @see #WHEAT */

769     public final static String JavaDoc wheat = WHEAT;
770     /** Lowercase for compatiblity.
771      * @see #WHITESMOKE */

772     public final static String JavaDoc whitesmoke = WHITESMOKE;
773     /** Lowercase for compatiblity.
774      * @see #YELLOWGREEN */

775     public final static String JavaDoc yellowgreen = YELLOWGREEN;
776     
777     /**
778         This method will take a string of hex values and
779         append a # to the beginning if it isn't already there.
780         @param color the string to convert
781     @return the converted string
782     */

783     public static String JavaDoc convertColor(String JavaDoc color)
784     {
785         String JavaDoc tmp = new String JavaDoc("#");
786         if (!color.startsWith("#"))
787             tmp = tmp + color;
788         else
789             tmp = color;
790         return tmp;
791     }
792
793      /**
794        This method will take a string matching one of the colors
795        defined in this class and return the string value of that
796        color.
797        @param color the color to get retrieve
798        @return the string value of the color, if found, null otherwise
799      */

800      public static String JavaDoc getColor(String JavaDoc color)
801      {
802        Object JavaDoc colObject;
803        try {
804           colObject = Class.forName("org.apache.ecs.HtmlColor")
805                  .getField(color)
806                  .get(null);
807          } catch (Exception JavaDoc e) {
808              return null;
809          }
810          return((String JavaDoc)colObject);
811      }
812 }
813
Popular Tags