JClass LiveTable

PreviousNextIndex

Appendix  D

Colors and Fonts

Colorname Values  RGB Color Values  Fonts

This section provides information on common colorname values, specific RGB color values, and fonts applicable to all Java programs.

D.1 Colorname Values

The following lists all the colornames that can be used within Java programs. The majority of these colors will appear the same (or similar) across different computing platforms.

  • black
  • lightGray
  • blue
  • lightBlue
  • cyan
  • magenta
  • darkGray
  • orange
  • darkGrey
  • pink
  • gray
  • red
  • grey
  • white
  • green
  • yellow
  • lightGray
  •  

    D.2 RGB Color Values

    The following lists all the main RGB color values that can be used within JClass LiveTable. RGB color values are specified as three numeric values representing the red, green, and blue color components; these values are separated by dashes ("-").

    The following RGB color values describe the colors available to Unix systems. It is recommended that you test these color values in a JClass program on a Windows or Macintosh system before utilizing them.

    The list begins with all of the variations of white, then blacks and greys, and then describes the full color spectrum ranging from reds to violets.

    Example code from an HTML file:

    <PARAM NAME=backgroundList VALUE="(4, 5 255-255-0)">

    RGB Value

    Description

    255-250-250

    Snow

    248-248-255

    Ghost White

    245-245-245

    White Smoke

    220-220-220

    Gainsboro

    255-250-240

    Floral White

    253-245-230

    Old Lace

    250-240-230

    Linen

    250-235-215

    Antique White

    255-239-213

    Papaya Whip

    255-235-205

    Blanched Almond

    255-228-196

    Bisque

    255-218-185

    Peach Puff

    255-222-173

    Navajo White

    255-228-181

    Moccasin

    255 248-220

    Cornsilk

    255-255-240

    Ivory

    255-250-205

    Lemon Chiffon

    255-245-238

    Seashell

    240-255-240

    Honeydew

    245-255-250

    Mint Cream

    240-255-255

    Azure

    240-248-255

    Alice Blue

    230-230-250

    Lavender

    255-240-245

    Lavender Blush

    255-228-225

    Misty Rose

    255-255-255

    White

    0-0-0

    Black

    47-79-79

    Dark Slate Grey

    105-105-105

    Dim Gray

    112- 128-144

    Slate Grey

    119- 136-153

    Light Slate Grey

    190- 190-190

    Grey

    211- 211-211

    Light Gray

    25-25-112

    Midnight Blue

    0-0-128

    Navy Blue

    100- 149 237

    Cornflower Blue

    72-61-139

    Dark Slate Blue

    106-90-205

    Slate Blue

    123- 104 238

    Medium Slate Blue

    132-112- 255

    Light Slate Blue

    0-0-205

    Medium Blue

    65-105-225

    Royal Blue

    0-0-255

    Blue

    30-144-255

    Dodger Blue

    0-19 -255

    Deep Sky Blue

    135-206-235

    Sky Blue

    135-206-250

    Light Sky Blue

    70-130-180

    Steel Blue

    176-196- 222

    Light Steel Blue

    173-216-230

    Light Blue

    176-224-230

    Powder Blue

    175-238-238

    Pale Turquoise

    0-206-209

    Dark Turquoise

    72-209-204

    Medium Turquoise

    64-224-208

    Turquoise

    0-255-255

    Cyan

    224-255-255

    Light Cyan

    95-158-160

    Cadet Blue

    102-205-170

    Medium Aquamarine

    127-255-212

    Aquamarine

    0-100-0

    Dark Green

    85-107-47

    Dark Olive Green

    143-188-143

    Dark Sea Green

    46-139-87

    Sea Green

    60-179-113

    Medium Sea Green

    32-178-170

    Light Sea Green

    152-251-152

    Pale Green

    0-255-127

    Spring Green

    124-252- 0

    Lawn Green

    0-255-0

    Green

    127-255- 0

    Chartreuse

    0-250-154

    Medium Spring Green

    173-255-47

    Green Yellow

    50-205-50

    Lime Green

    154-205-50

    Yellow Green

    34-139-34

    Forest Green

    107-142-35

    Olive Drab

    189-183-107

    Dark Khaki

    240-230-140

    Khaki

    238-232-170

    Pale Goldenrod

    250-250-210

    Light Goldenrod Yellow

    255-255-224

    Light Yellow

    255-255-0

    Yellow

    255-215-0

    Gold

    238-221-130

    Light Goldenrod

    218-165-32

    Goldenrod

    184-134-11

    Dark Goldenrod

    188-143-143

    Rosy Brown

    205-92-92

    Indian Red

    139-69-19

    Saddle Brown

    160-82-45

    Sienna

    205-133-63

    Peru

    222-184- 135

    Burlywood

    245-245-220

    Beige

    245-222-179

    Wheat

    244-164-96

    SandyBrown

    210-180-140

    Tan

    210-105-30

    Chocolate

    178-34-34

    Firebrick

    165-42-42

    Brown

    233-150-122

    Dark Salmon

    250-128-114

    Salmon

    255-160-122

    Light Salmon

    255-165- 0

    Orange

    255-140-0

    Dark Orange

    255-127-80

    Coral

    240-128-128

    Light Coral

    255-99-71

    Tomato

    255-69-0

    Orange Red

    255-0-0

    Red

    255-105-180

    Hot Pink

    255-20-147

    Deep Pink

    255-192-203

    Pink

    255-182-193

    Light Pink

    219-112-147

    Pale Violet Red

    176-48-96

    Maroon

    199-21-133

    Medium Violet Red

    208-32-144

    Violet Red

    255-0-255

    Magenta

    238-130-238

    Violet

    221-160-221

    Plum

    218-112-214

    Orchid

    186-85-211

    Medium Orchid

    153-50-204

    Dark Orchid

    148-0-211

    Dark Violet

    138-43-226

    Blue Violet

    160- 32-240

    Purple

    147-112-219

    Medium Purple

    216-191-216

    Thistle

    D.3 Fonts

    There are five different font names that can be specified in any Java program. They are:

    Note: Font names are case-sensitive.

    There are also four standard font style constants that can be used. The valid Java font style constants are:

    These values are strung together with dashes ("-") when used with the VALUE attribute. You must also specify a point size by adding it to other font elements. To display a text using a 12-point italic Helvetica font, use the following:

      Helvetica-italic-12

    All three elements (font name, font style, and point size) must be used to specify a particular font display; otherwise, the default font is used instead.

    Note: Font display may vary from system to system. If a font does not exist on a system, the default font is displayed instead.


    PreviousNextIndex