Classe java.awt.Color


package java.awt;

import java.io.*;
import java.lang.*;

public class Color implements java.io.Serializable {
    
    // Constantes et champs protégés
    public final static Color white 	= new Color(255, 255, 255);
    public final static Color lightGray = new Color(192, 192, 192);
    public final static Color gray 	= new Color(128, 128, 128);
    public final static Color darkGray 	= new Color(64, 64, 64);
    public final static Color black 	= new Color(0, 0, 0);
    public final static Color red 	= new Color(255, 0, 0);
    public final static Color pink 	= new Color(255, 175, 175);
    public final static Color orange 	= new Color(255, 200, 0);
    public final static Color yellow 	= new Color(255, 255, 0);
    public final static Color green 	= new Color(0, 255, 0);
    public final static Color magenta	= new Color(255, 0, 255);
    public final static Color cyan 	= new Color(0, 255, 255);
    public final static Color blue 	= new Color(0, 0, 255);

    // Constructeurs publics
    public Color(int r, int g, int b);
    public Color(int rgb);
    public Color(float r, float g, float b);

    // Méthodes d'instance publiques
    public Color brighter();
    public Color darker();
    public static Color decode(String nm) throws NumberFormatException;
    public boolean equals(Object obj);
    public int getBlue();
    public static Color getColor(String nm);
    public static Color getColor(String nm, Color v);
    public static Color getColor(String nm, int v);
    public int getGreen();
    public static Color getHSBColor(float h, float s, float b);
    public int getRed();
    public int getRGB();
    public int hashCode();
    public static int HSBtoRGB(float hue, float saturation, float brightness);
    public static float[] RGBtoHSB(int r, int g, int b, float[] hsbvals);
    public String toString();
}

Christophe Merlet
redfox@redfoxcenter.org
©Tous droits réservés
5 septembre 1998