Java in a Nutshell Online Quick Reference for Java 1.1
Availability: JDK 1.0
public class Color extends Object implements Serializable { // Public Constructors public Color(int r, int g, int b); public Color(int rgb); public Color(float r, float g, float b); // Constants public static final Color black; public static final Color blue; public static final Color cyan; public static final Color darkGray; public static final Color gray; public static final Color green; public static final Color lightGray; public static final Color magenta; public static final Color orange; public static final Color pink; public static final Color red; public static final Color white; public static final Color yellow; // Class Methods public static int HSBtoRGB(float hue, float saturation, float brightness); public static float[] RGBtoHSB(int r, int g, int b, float[] hsbvals); 1.1 public static Color decode(String nm) throws NumberFormatException; public static Color getColor(String nm); public static Color getColor(String nm, Color v); public static Color getColor(String nm, int v); public static Color getHSBColor(float h, float s, float b); // Public Instance Methods public Color brighter(); public Color darker(); public boolean equals(Object obj); // Overrides Object.equals() public int getBlue(); public int getGreen(); public int getRGB(); public int getRed(); public int hashCode(); // Overrides Object.hashCode() public String toString(); // Overrides Object.toString() }