⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmlcolor.java

📁 Java写的ERP系统
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
     *  @see #GOLD */
    public final static String gold = GOLD;
    /** Lowercase for compatiblity.
     *  @see #GOLDENROD */
    public final static String goldenrod = GOLDENROD;
    /** Lowercase for compatiblity.
     *  @see #GREENYELLOW */
    public final static String greenyellow = GREENYELLOW;
    /** Lowercase for compatiblity.
     *  @see #HONEYDEW */
    public final static String honeydew = HONEYDEW;
    /** Lowercase for compatiblity.
     *  @see #INDIANRED */
    public final static String indianred = INDIANRED;
    /** Lowercase for compatiblity.
     *  @see #INDIGO */
    public final static String indigo = INDIGO;
    /** Lowercase for compatiblity.
     *  @see #IVORY */
    public final static String ivory = IVORY;
    /** Lowercase for compatiblity.
     *  @see #KHAKI */
    public final static String khaki = KHAKI;
    /** Lowercase for compatiblity.
     *  @see #LAVENDER */
    public final static String lavender = LAVENDER;
    /** Lowercase for compatiblity.
     *  @see #LAVENDERBLUSH */
    public final static String lavenderblush = LAVENDERBLUSH;
    /** Lowercase for compatiblity.
     *  @see #LAWNGREEN */
    public final static String lawngreen = LAWNGREEN;
    /** Lowercase for compatiblity.
     *  @see #LEMONCHIFFON */
    public final static String lemmonchiffon = LEMONCHIFFON;
    /** Lowercase for compatiblity.
     *  @see #LIGHTBLUE */
    public final static String lightblue = LIGHTBLUE;
    /** Lowercase for compatiblity.
     *  @see #LIGHTCORAL */
    public final static String lightcoral = LIGHTCORAL;
    /** Lowercase for compatiblity.
     *  @see #LIGHTCYAN */
    public final static String lightcyan = LIGHTCYAN;
    /** Lowercase for compatiblity.
     *  @see #LIGHTGOLDENRODYELLOW */
    public final static String lightgoldenrodyellow = LIGHTGOLDENRODYELLOW;
    /** Lowercase for compatiblity.
     *  @see #LIGHTGREEN */
    public final static String lightgreen = LIGHTGREEN;
    /** Lowercase for compatiblity.
     *  @see #LIGHTPINK */
    public final static String lightpink = LIGHTPINK;
    /** Lowercase for compatiblity.
     *  @see #LIGHTSALMON */
    public final static String lightsalmon = LIGHTSALMON;
    /** Lowercase for compatiblity.
     *  @see #LIGHTSEAGREEN */
    public final static String lightseagreen = LIGHTSEAGREEN;
    /** Lowercase for compatiblity.
     *  @see #LIGHTSKYBLUE */
    public final static String lightskyblue = LIGHTSKYBLUE;
    /** Lowercase for compatiblity.
     *  @see #LIGHTSLATEGRAY */
    public final static String lightslategray = LIGHTSLATEGRAY;
    /** Lowercase for compatiblity.
     *  @see #LIGHTSTEELBLUE */
    public final static String lightsteelblue = LIGHTSTEELBLUE;
    /** Lowercase for compatiblity.
     *  @see #LIGHTYELLOW */
    public final static String lightyellow = LIGHTYELLOW;
    /** Lowercase for compatiblity.
     *  @see #LIMEGREEN */
    public final static String limegreen = LIMEGREEN;
    /** Lowercase for compatiblity.
     *  @see #LINEN */
    public final static String linen = LINEN;
    /** Lowercase for compatiblity.
     *  @see #MAGENTA */
    public final static String magenta = MAGENTA;
    /** Lowercase for compatiblity.
     *  @see #MEDIUMAQUAMARINE */
    public final static String mediumaquamarine = MEDIUMAQUAMARINE;
    /** Lowercase for compatiblity.
     *  @see #MEDIUMBLUE */
    public final static String mediumblue = MEDIUMBLUE;
    /** Lowercase for compatiblity.
     *  @see #MEDIUMORCHID */
    public final static String mediumorchid = MEDIUMORCHID;
    /** Lowercase for compatiblity.
     *  @see #MEDIUMPURPLE */
    public final static String mediumpurple = MEDIUMPURPLE;
    /** Lowercase for compatiblity.
     *  @see #MEDIUMSEAGREEN */
    public final static String mediumseagreen = MEDIUMSEAGREEN;
    /** Lowercase for compatiblity.
     *  @see #MEDIUMSLATEBLUE */
    public final static String mediumslateblue = MEDIUMSLATEBLUE;
    /** Lowercase for compatiblity.
     *  @see #MEDIUMSPRINGGREEN */
    public final static String mediumspringgreen = MEDIUMSPRINGGREEN;
    /** Lowercase for compatiblity.
     *  @see #MEDIUMTURQUOISE */
    public final static String mediumturquoise = MEDIUMTURQUOISE;
    /** Lowercase for compatiblity.
     *  @see #MEDIUMVIOLETRED */
    public final static String mediumvioletred = MEDIUMVIOLETRED;
    /** Lowercase for compatiblity.
     *  @see #MIDNIGHTBLUE */
    public final static String midnightblue = MIDNIGHTBLUE;
    /** Lowercase for compatiblity.
     *  @see #MINTCREAM */
    public final static String mintcream = MINTCREAM;
    /** Lowercase for compatiblity.
     *  @see #MISTYROSE */
    public final static String mistyrose = MISTYROSE;
    /** Lowercase for compatiblity.
     *  @see #MOCCASIN */
    public final static String moccasin = MOCCASIN;
    /** Lowercase for compatiblity.
     *  @see #NAVAJOWHITE */
    public final static String navajowhite = NAVAJOWHITE;
    /** Lowercase for compatiblity.
     *  @see #OLDLACE */
    public final static String oldlace = OLDLACE;
    /** Lowercase for compatiblity.
     *  @see #OLIVEDRAB */
    public final static String olivedrab = OLIVEDRAB;
    /** Lowercase for compatiblity.
     *  @see #ORANGE */
    public final static String orange = ORANGE;
    /** Lowercase for compatiblity.
     *  @see #ORANGERED */
    public final static String orangered = ORANGERED;
    /** Lowercase for compatiblity.
     *  @see #ORCHID */
    public final static String orchid = ORCHID;
    /** Lowercase for compatiblity.
     *  @see #PALEGOLDENROD */
    public final static String palegoldenrod = PALEGOLDENROD;
    /** Lowercase for compatiblity.
     *  @see #PALETURQUOISE */
    public final static String paleturquoise = PALETURQUOISE;
    /** Lowercase for compatiblity.
     *  @see #PALEVIOLETRED */
    public final static String palevioletred = PALEVIOLETRED;
    /** Lowercase for compatiblity.
     *  @see #PAPAYAWHIP */
    public final static String papayawhip = PAPAYAWHIP;
    /** Lowercase for compatiblity.
     *  @see #PEACHPUFF */
    public final static String peachpuff = PEACHPUFF;
    /** Lowercase for compatiblity.
     *  @see #PERU */
    public final static String peru = PERU;
    /** Lowercase for compatiblity.
     *  @see #PINK */
    public final static String pink = PINK;
    /** Lowercase for compatiblity.
     *  @see #PLUM */
    public final static String plum = PLUM;
    /** Lowercase for compatiblity.
     *  @see #POWDERBLUE */
    public final static String powderblue = POWDERBLUE;
    /** Lowercase for compatiblity.
     *  @see #ROSYBROWN */
    public final static String rosybrown = ROSYBROWN;
    /** Lowercase for compatiblity.
     *  @see #ROYALBLUE */
    public final static String royalblue = ROYALBLUE;
    /** Lowercase for compatiblity.
     *  @see #SADDLEBROWN */
    public final static String saddlebrown = SADDLEBROWN;
    /** Lowercase for compatiblity.
     *  @see #SALMON */
    public final static String salmon = SALMON;
    /** Lowercase for compatiblity.
     *  @see #SANDYBROWN */
    public final static String sandybrown = SANDYBROWN;
    /** Lowercase for compatiblity.
     *  @see #SEAGREEN */
    public final static String seagreen = SEAGREEN;
    /** Lowercase for compatiblity.
     *  @see #SEASHELL */
    public final static String seashell = SEASHELL;
    /** Lowercase for compatiblity.
     *  @see #SIENNA */
    public final static String sienna = SIENNA;
    /** Lowercase for compatiblity.
     *  @see #SKYBLUE */
    public final static String skyblue = SKYBLUE;
    /** Lowercase for compatiblity.
     *  @see #SLATEBLUE */
    public final static String slateblue = SLATEBLUE;
    /** Lowercase for compatiblity.
     *  @see #SLATEGRAY */
    public final static String slategray = SLATEGRAY;
    /** Lowercase for compatiblity.
     *  @see #SNOW */
    public final static String snow = SNOW;
    /** Lowercase for compatiblity.
     *  @see #SPRINGGREEN */
    public final static String springgreen = SPRINGGREEN;
    /** Lowercase for compatiblity.
     *  @see #STEELBLUE */
    public final static String steelblue = STEELBLUE;
    /** Lowercase for compatiblity.
     *  @see #TAN */
    public final static String tan = TAN;
    /** Lowercase for compatiblity.
     *  @see #THISTLE */
    public final static String thistle = THISTLE;
    /** Lowercase for compatiblity.
     *  @see #TOMATO */
    public final static String tomato = TOMATO;
    /** Lowercase for compatiblity.
     *  @see #TURQUOISE */
    public final static String turquoise = TURQUOISE;
    /** Lowercase for compatiblity.
     *  @see #VIOLET */
    public final static String violet = VIOLET;
    /** Lowercase for compatiblity.
     *  @see #WHEAT */
    public final static String wheat = WHEAT;
    /** Lowercase for compatiblity.
     *  @see #WHITESMOKE */
    public final static String whitesmoke = WHITESMOKE;
    /** Lowercase for compatiblity.
     *  @see #YELLOWGREEN */
    public final static String yellowgreen = YELLOWGREEN;
    
    /**
        This method will take a string of hex values and 
        append a # to the beginning if it isn't already there.
        @param color the string to convert
	@return the converted string
    */
    public static String convertColor(String color)
    {
        String tmp = new String("#");
        if (!color.startsWith("#"))
            tmp = tmp + color;
        else
            tmp = color;
        return tmp;
    }

     /**
       This method will take a string matching one of the colors
       defined in this class and return the string value of that
       color.
       @param color the color to get retrieve
       @return the string value of the color, if found, null otherwise
     */
     public static String getColor(String color)
     {
       Object colObject;
       try {
          colObject = Class.forName("org.apache.ecs.HtmlColor")
                 .getField(color)
                 .get(null);
         } catch (Exception e) {
             return null;
         }
         return((String)colObject);
     }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -