FreeHEP API
Version current

org.freehep.graphics2d
Class WebColor

java.lang.Object
  extended byjava.awt.Color
      extended byorg.freehep.graphics2d.WebColor
All Implemented Interfaces:
Paint, Serializable, Transparency

public class WebColor
extends Color

WebColor which adheres to the web color set consisting of 216 equally spaced colors, which include black and white. The spacing is 0x33, which makes the smallest value 0x00 and the largest 0xFF. These colors are guaranteed to work in browsers without dithering. WebColors are opaque.

Version:
$Id: WebColor.java,v 1.2 2003/04/01 18:45:41 duns Exp $
Author:
Mark Donszelmann
See Also:
Serialized Form
Source Code:
WebColor.java

Field Summary
static WebColor black
           
static WebColor BLACK
           
static WebColor blue
           
static WebColor BLUE
           
static WebColor cyan
           
static WebColor CYAN
           
static WebColor DARK_GRAY
           
static WebColor darkGray
           
static WebColor gray
           
static WebColor GRAY
           
static WebColor green
           
static WebColor GREEN
           
static WebColor LIGHT_GRAY
           
static WebColor lightGray
           
static WebColor magenta
           
static WebColor MAGENTA
           
static WebColor orange
           
static WebColor ORANGE
           
static WebColor pink
           
static WebColor PINK
           
static WebColor red
           
static WebColor RED
           
static WebColor white
           
static WebColor WHITE
           
static WebColor yellow
           
static WebColor YELLOW
           
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
WebColor(Color color)
           
WebColor(float red, float green, float blue)
           
WebColor(int red, int green, int blue)
           
 
Method Summary
static WebColor create(Color color)
           
 
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

white

public static final WebColor white

WHITE

public static final WebColor WHITE

lightGray

public static final WebColor lightGray

LIGHT_GRAY

public static final WebColor LIGHT_GRAY

gray

public static final WebColor gray

GRAY

public static final WebColor GRAY

darkGray

public static final WebColor darkGray

DARK_GRAY

public static final WebColor DARK_GRAY

black

public static final WebColor black

BLACK

public static final WebColor BLACK

red

public static final WebColor red

RED

public static final WebColor RED

pink

public static final WebColor pink

PINK

public static final WebColor PINK

orange

public static final WebColor orange

ORANGE

public static final WebColor ORANGE

yellow

public static final WebColor yellow

YELLOW

public static final WebColor YELLOW

green

public static final WebColor green

GREEN

public static final WebColor GREEN

magenta

public static final WebColor magenta

MAGENTA

public static final WebColor MAGENTA

cyan

public static final WebColor cyan

CYAN

public static final WebColor CYAN

blue

public static final WebColor blue

BLUE

public static final WebColor BLUE
Constructor Detail

WebColor

public WebColor(int red,
                int green,
                int blue)

WebColor

public WebColor(Color color)

WebColor

public WebColor(float red,
                float green,
                float blue)
Method Detail

create

public static WebColor create(Color color)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.