org.freehep.graphics2d
Class WebColor
java.lang.Object
java.awt.Color
org.freehep.graphics2d.WebColor
- All Implemented Interfaces:
- java.awt.Paint, java.awt.Transparency, java.io.Serializable
public class WebColor
- extends java.awt.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 8584 2006-08-10 23:06:37Z duns $
- Author:
- Mark Donszelmann
- See Also:
- Serialized Form
Fields inherited from interface java.awt.Transparency |
BITMASK, OPAQUE, TRANSLUCENT |
Constructor Summary |
WebColor(java.awt.Color color)
|
WebColor(float red,
float green,
float blue)
|
WebColor(int red,
int green,
int blue)
|
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 |
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(java.awt.Color color)
WebColor
public WebColor(float red,
float green,
float blue)
create
public static WebColor create(java.awt.Color color)
Copyright © 2000-2007 FreeHEP. All Rights Reserved.