    All Packages    This Package    Previous    Next

# Class awt.Color

    java.lang.Object
       |
       +----awt.Color

public class Color
extends Object

A class to encapsulate RGB Colors.

Version:
  1.10 31 Jan 1995
Author:
  Sami Shaio

##

b
black
blue
cyan
darkGray
g
gray
green
lightGray
magenta
menuBack
menuBright
menuDim
menuFore
menuHighlight
orange
pink
r
red
white
yellow

##

Color(WServer, int, int, int)
  Creates a color with the given RGB values.

##

equal(Color)
  Compare against another color
print()
  Print
toString()
  Convert to a String

##

r

      public int r

g

      public int g

b

      public int b

white

      public static Color white

lightGray

      public static Color lightGray

gray

      public static Color gray

darkGray

      public static Color darkGray

black

      public static Color black

red

      public static Color red

pink

      public static Color pink

orange

      public static Color orange

yellow

      public static Color yellow

green

      public static Color green

magenta

      public static Color magenta

blue

      public static Color blue

cyan

      public static Color cyan

menuFore

      public static Color menuFore

menuBack

      public static Color menuBack

menuHighlight

      public static Color menuHighlight

menuBright

      public static Color menuBright

menuDim

      public static Color menuDim

##

Color

      public Color(WServer ws,
                   int R,
                   int G,
                   int B)

  Creates a color with the given RGB values. The actual color will depend on the server ws finding the best match given the color space available.

##

equal

      public boolean equal(Color col)

  Compare against another color

toString

      public String toString()

  Convert to a String
  Overrides:
    toString in class Object

print

      public void print()

  Print

    All Packages    This Package    Previous    Next