1 58 package org.apache.ecs; 59 60 67 public abstract class HtmlColor 68 { 69 70 72 73 public final static String BLACK = "#000000"; 74 75 public final static String SILVER = "#C0C0C0"; 76 77 public final static String GRAY = "#808080"; 78 79 public final static String WHITE = "#FFFFFF"; 80 81 public final static String MAROON = "#800000"; 82 83 public final static String RED = "#FF0000"; 84 85 public final static String PURPLE = "#800080"; 86 87 public final static String FUCHSIA = "#FF00FF"; 88 89 public final static String GREEN = "#008000"; 90 91 public final static String LIME = "#00FF00"; 92 93 public final static String OLIVE = "#808000"; 94 95 public final static String YELLOW = "#FFFF00"; 96 97 public final static String NAVY = "#000080"; 98 99 public final static String BLUE = "#0000FF"; 100 101 public final static String TEAL = "#008080"; 102 103 public final static String AQUA = "#00FFFF"; 104 105 107 108 public final static String ALICEBLUE = "#EFF7FF"; 109 110 public final static String ANTIQUEWHITE = "#F9E8D2"; 111 112 public final static String AQUAMARINE = "#43B7BA"; 113 114 public final static String AZURE = "#EFFFFF"; 115 116 public final static String BEIGE = "#F5F3D7"; 117 118 public final static String BISQUE = "#FDE0BC"; 119 120 public final static String BLANCHEDALMOND = "#FEE8C6"; 121 122 public final static String BLUEVIOLET = "#7931DF"; 123 124 public final static String BROWN = "#980516"; 125 126 public final static String BURLYWOOD = "#EABE83"; 127 128 public final static String CADETBLUE = "#578693"; 129 130 public final static String CHARTREUSE = "#8AFB17"; 131 132 public final static String CHOCOLATE = "#C85A17"; 133 134 public final static String CORAL = "#F76541"; 135 136 public final static String CORNFLOWERBLUE = "#151B8D"; 137 138 public final static String CORNSILK = "#FFF7D7"; 139 141 public final static String CRIMSON = "#E41B17"; 142 143 public final static String CYAN = "#00FFFF"; 144 146 public final static String DARKBLUE = "#2F2F4F"; 147 149 public final static String DARKCYAN = "#57FEFF"; 150 151 public final static String DARKGOLDENROD = "#AF7817"; 152 154 public final static String DARKGRAY = "#7A7777"; 155 156 public final static String DARKGREEN = "#254117"; 157 158 public final static String DARKKHAKI = "#B7AD59"; 159 161 public final static String DARKMAGENTA = "#F43EFF"; 162 163 public final static String DARKOLIVEGREEN = "#CCFB5D"; 164 165 public final static String DARKORANGE = "#F88017"; 166 167 public final static String DARKORCHID = "#7D1B7E"; 168 170 public final static String DARKRED = "#E41B17"; 171 172 public final static String DARKSALMON = "#E18B6B"; 173 174 public final static String DARKSEAGREEN = "#8BB381"; 175 176 public final static String DARKSLATEBLUE = "#2B3856"; 177 178 public final static String DARKSLATEGRAY = "#253856"; 179 180 public final static String DARKTURQUOISE = "#3B9C9C"; 181 182 public final static String DARKVIOLET = "#842DCE"; 183 184 public final static String DEEPPINK = "#F52887"; 185 186 public final static String DEEPSKYBLUE = "#3BB9FF"; 187 188 public final static String DIMGRAY = "#463E41"; 189 190 public final static String DODGERBLUE = "#1589FF"; 191 192 public final static String FIREBRICK = "#800517"; 193 194 public final static String FLORALWHITE = "#FFF9EE"; 195 196 public final static String FORESTGREEN = "#4E9258"; 197 198 public final static String GAINSBORO = "#D8D9D7"; 199 200 public final static String GHOSTWHITE = "#F7F7FF"; 201 202 public final static String GOLD = "#D4A017"; 203 204 public final static String GOLDENROD = "#EDDA74"; 205 206 public final static String GREENYELLOW = "#B1FB17"; 207 208 public final static String HONEYDEW = "#F0FEEE"; 209 210 public final static String INDIANRED = "#5E2217"; 211 213 public final static String INDIGO = "#307D7E"; 214 215 public final static String IVORY = "#FFFFEE"; 216 217 public final static String KHAKI = "#ADA96E"; 218 219 public final static String LAVENDER = "#E3E4FA"; 220 221 public final static String LAVENDERBLUSH = "#FDEEF4"; 222 223 public final static String LAWNGREEN = "#87F717"; 224 225 public final static String LEMONCHIFFON = "#FFF8C6"; 226 227 public final static String LIGHTBLUE = "#ADDFFF"; 228 229 public final static String LIGHTCORAL = "#E77471"; 230 231 public final static String LIGHTCYAN = "#E0FFFF"; 232 233 public final static String LIGHTGOLDENRODYELLOW = "#FAF8CC"; 234 236 public final static String LIGHTGREEN = "#CCFFCC"; 237 238 public final static String LIGHTPINK = "#FAAFBA"; 239 240 public final static String LIGHTSALMON = "#F9966B"; 241 242 public final static String LIGHTSEAGREEN = "#3EA99F"; 243 244 public final static String LIGHTSKYBLUE = "#82CAFA"; 245 246 public final static String LIGHTSLATEGRAY = "#6D7B8D"; 247 248 public final static String LIGHTSTEELBLUE = "#728FCE"; 249 250 public final static String LIGHTYELLOW = "#FFFEDC"; 251 252 public final static String LIMEGREEN = "#41A317"; 253 254 public final static String LINEN = "#F9EEE2"; 255 256 public final static String MAGENTA = "#FF00FF"; 257 258 public final static String MEDIUMAQUAMARINE = "#348781"; 259 260 public final static String MEDIUMBLUE = "#152DC6"; 261 262 public final static String MEDIUMORCHID = "#B048B5"; 263 264 public final static String MEDIUMPURPLE = "#8467D7"; 265 266 public final static String MEDIUMSEAGREEN = "#306754"; 267 268 public final static String MEDIUMSLATEBLUE = "#5E5A80"; 269 270 public final static String MEDIUMSPRINGGREEN = "#348017"; 271 272 public final static String MEDIUMTURQUOISE = "#48CCCD"; 273 274 public final static String MEDIUMVIOLETRED = "#CA226B"; 275 276 public final static String MIDNIGHTBLUE = "#151B54"; 277 278 public final static String MINTCREAM = "#F5FFF9"; 279 280 public final static String MISTYROSE = "#FDE1DD"; 281 282 public final static String MOCCASIN = "#FDE0AC"; 283 284 public final static String NAVAJOWHITE = "#FDDAA3"; 285 286 public final static String OLDLACE = "#FCF3E2"; 287 288 public final static String OLIVEDRAB = "#658017"; 289 290 public final static String ORANGE = "#F87A17"; 291 292 public final static String ORANGERED = "#F63817"; 293 294 public final static String ORCHID = "#E57DED"; 295 296 public final static String PALEGOLDENROD = "#EDE49E"; 297 298 public final static String PALETURQUOISE = "#AEEBEC"; 299 300 public final static String PALEVIOLETRED = "#D16587"; 301 302 public final static String PAPAYAWHIP = "#FEECCF"; 303 304 public final static String PEACHPUFF = "#FCD5B0"; 305 306 public final static String PERU = "#C57726"; 307 308 public final static String PINK = "#FAAFBE"; 309 310 public final static String PLUM = "#B93B8F"; 311 312 public final static String POWDERBLUE = "#ADDCE3"; 313 314 public final static String ROSYBROWN = "#B38481"; 315 316 public final static String ROYALBLUE = "#2B60DE"; 317 319 public final static String SADDLEBROWN = "#F63526"; 320 321 public final static String SALMON = "#F88158"; 322 323 public final static String SANDYBROWN = "#EE9A4D"; 324 325 public final static String SEAGREEN = "#4E8975"; 326 327 public final static String SEASHELL = "#FEF3EB"; 328 329 public final static String SIENNA = "#8A4117"; 330 331 public final static String SKYBLUE = "#6698FF"; 332 333 public final static String SLATEBLUE = "#737CA1"; 334 335 public final static String SLATEGRAY = "#657383"; 336 337 public final static String SNOW = "#FFF9FA"; 338 339 public final static String SPRINGGREEN = "#4AA02C"; 340 341 public final static String STEELBLUE = "#4863A0"; 342 343 public final static String TAN = "#D8AF79"; 344 345 public final static String THISTLE = "#D2B9D3"; 346 347 public final static String TOMATO = "#F75431"; 348 349 public final static String TURQUOISE = "#43C6DB"; 350 351 public final static String VIOLET = "#8D38C9"; 352 353 public final static String WHEAT = "#F3DAA9"; 354 356 public final static String WHITESMOKE = "#FFFFFF"; 357 358 public final static String YELLOWGREEN = "#52D017"; 359 360 362 364 public final static String black = BLACK; 365 367 public final static String silver = SILVER; 368 370 public final static String gray = GRAY; 371 373 public final static String white = WHITE; 374 376 public final static String maroon = MAROON; 377 379 public final static String red = RED; 380 382 public final static String purple = PURPLE; 383 385 public final static String fuchsia = FUCHSIA; 386 388 public final static String green = GREEN; 389 391 public final static String lime = LIME; 392 394 public final static String olive = OLIVE; 395 397 public final static String yellow = YELLOW; 398 400 public final static String navy = NAVY; 401 403 public final static String blue = BLUE; 404 406 public final static String teal = TEAL; 407 409 public final static String aqua = AQUA; 410 411 413 415 public final static String aliceblue = ALICEBLUE; 416 418 public final static String antiquewhite = ANTIQUEWHITE; 419 421 public final static String aquamarine = AQUAMARINE; 422 424 public final static String azure = AZURE; 425 427 public final static String beige = BEIGE; 428 430 public final static String bisque = BISQUE; 431 433 public final static String blanchedalmond = BLANCHEDALMOND; 434 436 public final static String blueviolet = BLUEVIOLET; 437 439 public final static String brown = BROWN; 440 442 public final static String burlywood = BURLYWOOD; 443 445 public final static String cadetblue = CADETBLUE; 446 448 public final static String chartreuse = CHARTREUSE; 449 451 public final static String chocolate = CHOCOLATE; 452 454 public final static String coral = CORAL; 455 457 public final static String cornfolowerblue = CORNFLOWERBLUE; 458 460 public final static String cornsilk = CORNSILK; 461 463 public final static String crimson = CRIMSON; 464 466 public final static String cyan = CYAN; 467 469 public final static String darkblue = DARKBLUE; 470 472 public final static String darkcyan = DARKCYAN; 473 475 public final static String darkgoldenrod = DARKGOLDENROD; 476 478 public final static String darkgray = DARKGRAY; 479 481 public final static String darkgreen = DARKGREEN; 482 484 public final static String darkkahki = DARKKHAKI; 485 487 public final static String darkmagenta = DARKMAGENTA; 488 490 public final static String darkolivegreen = DARKOLIVEGREEN; 491 493 public final static String darkorange = DARKORANGE; 494 496 public final static String darkorchid = DARKORCHID; 497 499 public final static String darkred = DARKRED; 500 502 public final static String darksalmon = DARKSALMON; 503 505 public final static String darkseagreen = DARKSEAGREEN; 506 508 public final static String darkslateblue = DARKSLATEBLUE; 509 511 public final static String darkslategray = DARKSLATEGRAY; 512 514 public final static String darkturquoise = DARKTURQUOISE; 515 517 public final static String darkviolet = DARKVIOLET; 518 520 public final static String deeppink = DEEPPINK; 521 523 public final static String deepskyblue = DEEPSKYBLUE; 524 526 public final static String dimgray = DIMGRAY; 527 529 public final static String dodgerblue = DODGERBLUE; 530 532 public final static String firebrick = FIREBRICK; 533 535 public final static String floralwhite = FLORALWHITE; 536 538 public final static String forestgreen = FORESTGREEN; 539 541 public final static String gainsboro = GAINSBORO; 542 544 public final static String ghostwhite = GHOSTWHITE; 545 547 public final static String gold = GOLD; 548 550 public final static String goldenrod = GOLDENROD; 551 553 public final static String greenyellow = GREENYELLOW; 554 556 public final static String honeydew = HONEYDEW; 557 559 public final static String indianred = INDIANRED; 560 562 public final static String indigo = INDIGO; 563 565 public final static String ivory = IVORY; 566 568 public final static String khaki = KHAKI; 569 571 public final static String lavender = LAVENDER; 572 574 public final static String lavenderblush = LAVENDERBLUSH; 575 577 public final static String lawngreen = LAWNGREEN; 578 580 public final static String lemmonchiffon = LEMONCHIFFON; 581 583 public final static String lightblue = LIGHTBLUE; 584 586 public final static String lightcoral = LIGHTCORAL; 587 589 public final static String lightcyan = LIGHTCYAN; 590 592 public final static String lightgoldenrodyellow = LIGHTGOLDENRODYELLOW; 593 595 public final static String lightgreen = LIGHTGREEN; 596 598 public final static String lightpink = LIGHTPINK; 599 601 public final static String lightsalmon = LIGHTSALMON; 602 604 public final static String lightseagreen = LIGHTSEAGREEN; 605 607 public final static String lightskyblue = LIGHTSKYBLUE; 608 610 public final static String lightslategray = LIGHTSLATEGRAY; 611 613 public final static String lightsteelblue = LIGHTSTEELBLUE; 614 616 public final static String lightyellow = LIGHTYELLOW; 617 619 public final static String limegreen = LIMEGREEN; 620 622 public final static String linen = LINEN; 623 625 public final static String magenta = MAGENTA; 626 628 public final static String mediumaquamarine = MEDIUMAQUAMARINE; 629 631 public final static String mediumblue = MEDIUMBLUE; 632 634 public final static String mediumorchid = MEDIUMORCHID; 635 637 public final static String mediumpurple = MEDIUMPURPLE; 638 640 public final static String mediumseagreen = MEDIUMSEAGREEN; 641 643 public final static String mediumslateblue = MEDIUMSLATEBLUE; 644 646 public final static String mediumspringgreen = MEDIUMSPRINGGREEN; 647 649 public final static String mediumturquoise = MEDIUMTURQUOISE; 650 652 public final static String mediumvioletred = MEDIUMVIOLETRED; 653 655 public final static String midnightblue = MIDNIGHTBLUE; 656 658 public final static String mintcream = MINTCREAM; 659 661 public final static String mistyrose = MISTYROSE; 662 664 public final static String moccasin = MOCCASIN; 665 667 public final static String navajowhite = NAVAJOWHITE; 668 670 public final static String oldlace = OLDLACE; 671 673 public final static String olivedrab = OLIVEDRAB; 674 676 public final static String orange = ORANGE; 677 679 public final static String orangered = ORANGERED; 680 682 public final static String orchid = ORCHID; 683 685 public final static String palegoldenrod = PALEGOLDENROD; 686 688 public final static String paleturquoise = PALETURQUOISE; 689 691 public final static String palevioletred = PALEVIOLETRED; 692 694 public final static String papayawhip = PAPAYAWHIP; 695 697 public final static String peachpuff = PEACHPUFF; 698 700 public final static String peru = PERU; 701 703 public final static String pink = PINK; 704 706 public final static String plum = PLUM; 707 709 public final static String powderblue = POWDERBLUE; 710 712 public final static String rosybrown = ROSYBROWN; 713 715 public final static String royalblue = ROYALBLUE; 716 718 public final static String saddlebrown = SADDLEBROWN; 719 721 public final static String salmon = SALMON; 722 724 public final static String sandybrown = SANDYBROWN; 725 727 public final static String seagreen = SEAGREEN; 728 730 public final static String seashell = SEASHELL; 731 733 public final static String sienna = SIENNA; 734 736 public final static String skyblue = SKYBLUE; 737 739 public final static String slateblue = SLATEBLUE; 740 742 public final static String slategray = SLATEGRAY; 743 745 public final static String snow = SNOW; 746 748 public final static String springgreen = SPRINGGREEN; 749 751 public final static String steelblue = STEELBLUE; 752 754 public final static String tan = TAN; 755 757 public final static String thistle = THISTLE; 758 760 public final static String tomato = TOMATO; 761 763 public final static String turquoise = TURQUOISE; 764 766 public final static String violet = VIOLET; 767 769 public final static String wheat = WHEAT; 770 772 public final static String whitesmoke = WHITESMOKE; 773 775 public final static String yellowgreen = YELLOWGREEN; 776 777 783 public static String convertColor(String color) 784 { 785 String tmp = new String ("#"); 786 if (!color.startsWith("#")) 787 tmp = tmp + color; 788 else 789 tmp = color; 790 return tmp; 791 } 792 793 800 public static String getColor(String color) 801 { 802 Object colObject; 803 try { 804 colObject = Class.forName("org.apache.ecs.HtmlColor") 805 .getField(color) 806 .get(null); 807 } catch (Exception e) { 808 return null; 809 } 810 return((String )colObject); 811 } 812 } 813 | Popular Tags |