org.freehep.graphics2d
Class WebColor
java.lang.Object
java.awt.Color
org.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
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 |
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
WebColor
public WebColor(int red,
int green,
int blue)
WebColor
public WebColor(Color color)
WebColor
public WebColor(float red,
float green,
float blue)
create
public static WebColor create(Color color)
Copyright © 2000-2004 FreeHEP, All Rights Reserved.