📄 htmlcolor.java
字号:
/*
* Copyright (c) 1999 The Java Apache Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the Java Apache
* Project. <http://java.apache.org/>"
*
* 4. The names "Java Apache Element Construction Set", "Java Apache ECS" and
* "Java Apache Project" must not be used to endorse or promote products
* derived from this software without prior written permission.
*
* 5. Products derived from this software may not be called
* "Java Apache Element Construction Set" nor "Java Apache ECS" appear
* in their names without prior written permission of the
* Java Apache Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the Java Apache
* Project. <http://java.apache.org/>"
*
* THIS SOFTWARE IS PROVIDED BY THE JAVA APACHE PROJECT "AS IS" AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JAVA APACHE PROJECT OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Java Apache Project. For more information
* on the Java Apache Project please see <http://java.apache.org/>.
*
*/
package org.apache.ecs;
/**
This class defines all of the available Html Colors.
@version $Id: HtmlColor.java,v 1.2 2001/11/06 03:43:32 jjanke Exp $
@author <a href="mailto:snagy@servletapi.com">Stephan Nagy</a>
@author <a href="mailto:jon@clearink.com">Jon S. Stevens</a>
*/
public abstract class HtmlColor
{
// colors html 4.0
/** HTML 4.0 specification for color <font color="#000000">BLACK</font>. */
public final static String BLACK = "#000000";
/** HTML 4.0 specification for color <font color="#C0C0C0">SILVER</font>. */
public final static String SILVER = "#C0C0C0";
/** HTML 4.0 specification for color <font color="#808080">GRAY</font>. */
public final static String GRAY = "#808080";
/** HTML 4.0 specification for color WHITE (not shown). */
public final static String WHITE = "#FFFFFF";
/** HTML 4.0 specification for color <font color="#800000">MAROON</font>. */
public final static String MAROON = "#800000";
/** HTML 4.0 specification for color <font color="#FF0000">RED</font>. */
public final static String RED = "#FF0000";
/** HTML 4.0 specification for color <font color="#800080">PURPLE</font>. */
public final static String PURPLE = "#800080";
/** HTML 4.0 specification for color <font color="#FF00FF">FUCHSIA</font>. */
public final static String FUCHSIA = "#FF00FF";
/** HTML 4.0 specification for color <font color="#008000">GREEN</font>. */
public final static String GREEN = "#008000";
/** HTML 4.0 specification for color <font color="#00FF00">LIME</font>. */
public final static String LIME = "#00FF00";
/** HTML 4.0 specification for color <font color="#808000">OLIVE</font>. */
public final static String OLIVE = "#808000";
/** HTML 4.0 specification for color <font color="#FFFF00">YELLOW</font>. */
public final static String YELLOW = "#FFFF00";
/** HTML 4.0 specification for color <font color="#000080">NAVY</font>. */
public final static String NAVY = "#000080";
/** HTML 4.0 specification for color <font color="#0000FF">BLUE</font>. */
public final static String BLUE = "#0000FF";
/** HTML 4.0 specification for color <font color="#008080">TEAL</font>. */
public final static String TEAL = "#008080";
/** HTML 4.0 specification for color <font color="#00FFFF">AQUA</font>. */
public final static String AQUA = "#00FFFF";
// colors html 3.0
/** HTML 3.0 specification for color <font color="#EFF7FF">ALICEBLUEOC</font>. */
public final static String ALICEBLUE = "#EFF7FF";
/** HTML 3.0 specification for color <font color="#F9E8D2">ANTIQUEWHITE</font>. */
public final static String ANTIQUEWHITE = "#F9E8D2";
/** HTML 3.0 specification for color <font color="#43B7BA">AQUAMARINE</font>. */
public final static String AQUAMARINE = "#43B7BA";
/** HTML 3.0 specification for color <font color="#EFFFFF">AZURE</font>. */
public final static String AZURE = "#EFFFFF";
/** HTML 3.0 specification for color <font color="#F5F3D7">BEIGE</font>. */
public final static String BEIGE = "#F5F3D7";
/** HTML 3.0 specification for color <font color="#FDE0BC">BISQUE</font>. */
public final static String BISQUE = "#FDE0BC";
/** HTML 3.0 specification for color <font color="#FEE8C6">BLANCHEDALMOND</font>. */
public final static String BLANCHEDALMOND = "#FEE8C6";
/** HTML 3.0 specification for color <font color="#7931DF">BLUEVIOLET</font>. */
public final static String BLUEVIOLET = "#7931DF";
/** HTML 3.0 specification for color <font color="#980516">BROWN</font>. */
public final static String BROWN = "#980516";
/** HTML 3.0 specification for color <font color="#EABE83">BURLYWOOD</font>. */
public final static String BURLYWOOD = "#EABE83";
/** HTML 3.0 specification for color <font color="#578693">CADETBLUE</font>. */
public final static String CADETBLUE = "#578693";
/** HTML 3.0 specification for color <font color="#8AFB17">CHARTREUSE</font>. */
public final static String CHARTREUSE = "#8AFB17";
/** HTML 3.0 specification for color <font color="#C85A17">CHOCOLATE</font>. */
public final static String CHOCOLATE = "#C85A17";
/** HTML 3.0 specification for color <font color="#F76541">CORAL</font>. */
public final static String CORAL = "#F76541";
/** HTML 3.0 specification for color <font color="#151B8D">CORNFLOWERBLUE</font>. */
public final static String CORNFLOWERBLUE = "#151B8D";
/** HTML 3.0 specification for color <font color="#FFF7D7">CORNSILK</font>.*/
public final static String CORNSILK = "#FFF7D7";
/** HTML 3.0 specification for color <font color="#E41B17">CRIMSON</font>.
* RED2 couldn't find CRIMSON */
public final static String CRIMSON = "#E41B17";
/** HTML 3.0 specification for color <font color="#00FFFF">CYAN</font>. */
public final static String CYAN = "#00FFFF";
/** HTML 3.0 specification for color <font color="#2F2F4F">DARKBLUE</font>.
* MIDNIGHTBLUE couldn't find DARKBLUE */
public final static String DARKBLUE = "#2F2F4F";
/** HTML 3.0 specification for color <font color="#57FEFF">DARKCYAN</font>.
* CYAN1 couldn't find DARKCYAN */
public final static String DARKCYAN = "#57FEFF";
/** HTML 3.0 specification for color <font color="#AF7817">DARKGOLDENROD</font>. */
public final static String DARKGOLDENROD = "#AF7817";
/** HTML 3.0 specification for color <font color="#7A7777">DARKGRAY</font>.
* GRAY52 couldn't find DARKGRAY */
public final static String DARKGRAY = "#7A7777";
/** HTML 3.0 specification for color <font color="#254117">DARKGREEN</font>. */
public final static String DARKGREEN = "#254117";
/** HTML 3.0 specification for color <font color="#B7AD59">DARKKHAKI</font>. */
public final static String DARKKHAKI = "#B7AD59";
/** HTML 3.0 specification for color <font color="#F43EFF">DARKMAGENTA</font>.
* MAGENTA1 couldn't find DARKMAGENTA */
public final static String DARKMAGENTA = "#F43EFF";
/** HTML 3.0 specification for color <font color="#CCFB5D">DARKOLIVEGREEN</font>. */
public final static String DARKOLIVEGREEN = "#CCFB5D";
/** HTML 3.0 specification for color <font color="#F88017">DARKORANGE</font>. */
public final static String DARKORANGE = "#F88017";
/** HTML 3.0 specification for color <font color="#7D1B7E">DARKORCHID</font>. */
public final static String DARKORCHID = "#7D1B7E";
/** HTML 3.0 specification for color <font color="#E41B17">DARKRED</font>.
* RED2 couldn't find DARKRED */
public final static String DARKRED = "#E41B17";
/** HTML 3.0 specification for color <font color="#E18B6B">DARKSALMON</font>. */
public final static String DARKSALMON = "#E18B6B";
/** HTML 3.0 specification for color <font color="#8BB381">DARKSEAGREEN</font>. */
public final static String DARKSEAGREEN = "#8BB381";
/** HTML 3.0 specification for color <font color="#2B3856">DARKSLATEBLUE</font>. */
public final static String DARKSLATEBLUE = "#2B3856";
/** HTML 3.0 specification for color <font color="#253856">DARKSLATEGRAY</font>. */
public final static String DARKSLATEGRAY = "#253856";
/** HTML 3.0 specification for color <font color="#3B9C9C">DARKTURQUOISE</font>. */
public final static String DARKTURQUOISE = "#3B9C9C";
/** HTML 3.0 specification for color <font color="#842DCE">DARKVIOLET</font>. */
public final static String DARKVIOLET = "#842DCE";
/** HTML 3.0 specification for color <font color="#F52887">DEEPPINK</font>. */
public final static String DEEPPINK = "#F52887";
/** HTML 3.0 specification for color <font color="#3BB9FF">DEEPSKYBLUE</font>. */
public final static String DEEPSKYBLUE = "#3BB9FF";
/** HTML 3.0 specification for color <font color="#463E41">DIMGRAY</font>. */
public final static String DIMGRAY = "#463E41";
/** HTML 3.0 specification for color <font color="#1589FF">DODGERBLUE</font>. */
public final static String DODGERBLUE = "#1589FF";
/** HTML 3.0 specification for color <font color="#800517">FIREBRICK</font>. */
public final static String FIREBRICK = "#800517";
/** HTML 3.0 specification for color <font color="#FFF9EE">FLORALWHITE</font>. */
public final static String FLORALWHITE = "#FFF9EE";
/** HTML 3.0 specification for color <font color="#4E9258">FORESTGREEN</font>. */
public final static String FORESTGREEN = "#4E9258";
/** HTML 3.0 specification for color <font color="#D8D9D7">GAINSBORO</font>. */
public final static String GAINSBORO = "#D8D9D7";
/** HTML 3.0 specification for color <font color="#F7F7FF">GHOSTWHITE</font>. */
public final static String GHOSTWHITE = "#F7F7FF";
/** HTML 3.0 specification for color <font color="#D4A017">GOLD</font>. */
public final static String GOLD = "#D4A017";
/** HTML 3.0 specification for color <font color="#EDDA74">GOLDENROD</font>. */
public final static String GOLDENROD = "#EDDA74";
/** HTML 3.0 specification for color <font color="#B1FB17">GREENYELLOW</font>. */
public final static String GREENYELLOW = "#B1FB17";
/** HTML 3.0 specification for color <font color="#F0FEEE">HONEYDEW</font>. */
public final static String HONEYDEW = "#F0FEEE";
/** HTML 3.0 specification for color <font color="#5E2217">INDIANRED</font>. */
public final static String INDIANRED = "#5E2217";
/** HTML 3.0 specification for color <font color="#307D7E">INDIGO</font>.
* CYAN4 couldn't find INDIGO */
public final static String INDIGO = "#307D7E";
/** HTML 3.0 specification for color <font color="#FFFFEE">IVORY</font>. */
public final static String IVORY = "#FFFFEE";
/** HTML 3.0 specification for color <font color="#ADA96E">KHAKI</font>. */
public final static String KHAKI = "#ADA96E";
/** HTML 3.0 specification for color <font color="#E3E4FA">LAVENDER</font>. */
public final static String LAVENDER = "#E3E4FA";
/** HTML 3.0 specification for color <font color="#FDEEF4">LAVENDERBLUSH</font>. */
public final static String LAVENDERBLUSH = "#FDEEF4";
/** HTML 3.0 specification for color <font color="#87F717">LAWNGREEN</font>. */
public final static String LAWNGREEN = "#87F717";
/** HTML 3.0 specification for color <font color="#FFF8C6">LEMONCHIFFON</font>. */
public final static String LEMONCHIFFON = "#FFF8C6";
/** HTML 3.0 specification for color <font color="#ADDFFF">LIGHTBLUE</font>. */
public final static String LIGHTBLUE = "#ADDFFF";
/** HTML 3.0 specification for color <font color="#E77471">LIGHTCORAL</font>. */
public final static String LIGHTCORAL = "#E77471";
/** HTML 3.0 specification for color <font color="#E0FFFF">LIGHTCYAN</font>. */
public final static String LIGHTCYAN = "#E0FFFF";
/** HTML 3.0 specification for color <font color="#FAF8CC">LIGHTGOLDENROD</font>. */
public final static String LIGHTGOLDENRODYELLOW = "#FAF8CC";
/** HTML 3.0 specification for color <font color="#CCFFCC">LIGHTGREEN</font>.
* ARBITRARY SHADE OF GREEN couldnt find LIGHTGREEN */
public final static String LIGHTGREEN = "#CCFFCC";
/** HTML 3.0 specification for color <font color="#FAAFBA">LIGHPINK</font>. */
public final static String LIGHTPINK = "#FAAFBA";
/** HTML 3.0 specification for color <font color="#F9966B">LIGHTSALMON</font>. */
public final static String LIGHTSALMON = "#F9966B";
/** HTML 3.0 specification for color <font color="#3EA99F">LIGHTSEAGREEN</font>. */
public final static String LIGHTSEAGREEN = "#3EA99F";
/** HTML 3.0 specification for color <font color="#82CAFA">LIGHTSKYBLUE</font>. */
public final static String LIGHTSKYBLUE = "#82CAFA";
/** HTML 3.0 specification for color <font color="#6D7B8D">LIGHTSLATEGRAY</font>. */
public final static String LIGHTSLATEGRAY = "#6D7B8D";
/** HTML 3.0 specification for color <font color="#728FCE">LIGHTSTEELBLUE</font>. */
public final static String LIGHTSTEELBLUE = "#728FCE";
/** HTML 3.0 specification for color <font color="#FFFEDC">LIGHTYELLOW</font>. */
public final static String LIGHTYELLOW = "#FFFEDC";
/** HTML 3.0 specification for color <font color="#41A317">LIMEGREEN</font>. */
public final static String LIMEGREEN = "#41A317";
/** HTML 3.0 specification for color <font color="#F9EEE2">LINEN</font>. */
public final static String LINEN = "#F9EEE2";
/** HTML 3.0 specification for color <font color="#FF00FF">MAGENTA</font>. */
public final static String MAGENTA = "#FF00FF";
/** HTML 3.0 specification for color <font color="#348781">MEDIUMAQUAMARINE</font>. */
public final static String MEDIUMAQUAMARINE = "#348781";
/** HTML 3.0 specification for color <font color="#152DC6">MEDIUMBLUE</font>. */
public final static String MEDIUMBLUE = "#152DC6";
/** HTML 3.0 specification for color <font color="#B048B5">MEDIUMORCHID</font>. */
public final static String MEDIUMORCHID = "#B048B5";
/** HTML 3.0 specification for color <font color="#8467D7">MEDIUMPURPLE</font>. */
public final static String MEDIUMPURPLE = "#8467D7";
/** HTML 3.0 specification for color <font color="#306754">MEDIUMSEAGREEN</font>. */
public final static String MEDIUMSEAGREEN = "#306754";
/** HTML 3.0 specification for color <font color="#5E5A80">MEDIUMSLATEBLUE</font>. */
public final static String MEDIUMSLATEBLUE = "#5E5A80";
/** HTML 3.0 specification for color <font color="#348017">MEDIUMSPRINGGREEN</font>. */
public final static String MEDIUMSPRINGGREEN = "#348017";
/** HTML 3.0 specification for color <font color="#48CCCD">MEDIUMTURQUOISE</font>. */
public final static String MEDIUMTURQUOISE = "#48CCCD";
/** HTML 3.0 specification for color <font color="#CA226B">MEDIUMVIOLETRED</font>. */
public final static String MEDIUMVIOLETRED = "#CA226B";
/** HTML 3.0 specification for color <font color="#151B54">MIDNIGHTBLUE</font>. */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -