edu.mit.ai.psg.ui.patches
Class HTMLColor

java.lang.Object
  |
  +--edu.mit.ai.psg.ui.patches.HTMLColor

public class HTMLColor
extends Object

Table of color names as defined by the HTML 4.0 specification (corresponds to 16 VGA colors). See [ HTML 4.0 sec 6.5 Colors]


Field Summary
static Color aqua
          aqua = "#00FFFF"
static Color black
          black = "#000000"
static Color blue
          blue = "#0000FF"
static Color fuchsia
          fuchsia = "#FF00FF"
static Color gray
          gray = "#808080"
static Color green
          green = "#008000"
static Map htmlColorNames
           
static Color lime
          lime = "#00FF00"
static Color maroon
          maroon = "#800000"
static Color navy
          navy = "#000080"
static Color olive
          olive = "#808000"
static Color purple
          purple = "#800080"
static Color red
          red = "#FF0000"
static Color silver
          silver = "#C0C0C0"
static Color teal
          teal = "#008080"
static Color white
          white = "#FFFFFF"
static Color yellow
          yellow = "#FFFF00"
 
Constructor Summary
HTMLColor()
           
 
Method Summary
static Color decode(String colorString)
          decode the string as either one of the 16 html color names, or as an integer naming a color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

black

public static final Color black
black = "#000000"

gray

public static final Color gray
gray = "#808080"

silver

public static final Color silver
silver = "#C0C0C0"

white

public static final Color white
white = "#FFFFFF"

maroon

public static final Color maroon
maroon = "#800000"

red

public static final Color red
red = "#FF0000"

purple

public static final Color purple
purple = "#800080"

fuchsia

public static final Color fuchsia
fuchsia = "#FF00FF"

green

public static final Color green
green = "#008000"

lime

public static final Color lime
lime = "#00FF00"

olive

public static final Color olive
olive = "#808000"

yellow

public static final Color yellow
yellow = "#FFFF00"

navy

public static final Color navy
navy = "#000080"

blue

public static final Color blue
blue = "#0000FF"

teal

public static final Color teal
teal = "#008080"

aqua

public static final Color aqua
aqua = "#00FFFF"

htmlColorNames

public static final Map htmlColorNames
Constructor Detail

HTMLColor

public HTMLColor()
Method Detail

decode

public static Color decode(String colorString)
                    throws NumberFormatException
decode the string as either one of the 16 html color names, or as an integer naming a color.
Throws:
NumberFormatException - if it is neither.
See Also:
Color.decode(java.lang.String)

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-feedback@ai.mit.edu