static
int
|
HSBtoRGB(float hue, float saturation, float brightness)
Converts the components of a color, as specified by the HSB
model, to an equivalent set of values for the default RGB model.
|
static
float[]
|
RGBtoHSB(int r, int g, int b, float[] hsbvals)
Converts the components of a color, as specified by the default RGB
model, to an equivalent set of values for hue, saturation, and
brightness that are the three components of the HSB model.
|
Color
|
brighter()
Creates a new Color that is a brighter version of this
Color .
|
synchronized
PaintContext
|
createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)
Creates and returns a PaintContext used to
generate a solid color field pattern.
|
Color
|
darker()
Creates a new Color that is a darker version of this
Color .
|
static
Color
|
decode(String nm)
Converts a String to an integer and returns the
specified opaque Color .
|
boolean
|
equals(Object obj)
Determines whether another object is equal to this
Color .
|
int
|
getAlpha()
Returns the alpha component in the range 0-255.
|
int
|
getBlue()
Returns the blue component in the range 0-255 in the default sRGB
space.
|
static
Color
|
getColor(String nm, int v)
Finds a color in the system properties.
|
static
Color
|
getColor(String nm, Color v)
Finds a color in the system properties.
|
static
Color
|
getColor(String nm)
Finds a color in the system properties.
|
float[]
|
getColorComponents(ColorSpace cspace, float[] compArray)
Returns a float array containing only the color
components of the Color in the
ColorSpace specified by the cspace
parameter.
|
float[]
|
getColorComponents(float[] compArray)
Returns a float array containing only the color
components of the Color , in the
ColorSpace of the Color .
|
ColorSpace
|
getColorSpace()
Returns the ColorSpace of this Color .
|
float[]
|
getComponents(float[] compArray)
Returns a float array containing the color and alpha
components of the Color , in the
ColorSpace of the Color .
|
float[]
|
getComponents(ColorSpace cspace, float[] compArray)
Returns a float array containing the color and alpha
components of the Color , in the
ColorSpace specified by the cspace
parameter.
|
int
|
getGreen()
Returns the green component in the range 0-255 in the default sRGB
space.
|
static
Color
|
getHSBColor(float h, float s, float b)
Creates a Color object based on the specified values
for the HSB color model.
|
int
|
getRGB()
Returns the RGB value representing the color in the default sRGB
ColorModel .
|
float[]
|
getRGBColorComponents(float[] compArray)
Returns a float array containing only the color
components of the Color , in the default sRGB color
space.
|
float[]
|
getRGBComponents(float[] compArray)
Returns a float array containing the color and alpha
components of the Color , as represented in the default
sRGB color space.
|
int
|
getRed()
Returns the red component in the range 0-255 in the default sRGB
space.
|
int
|
getTransparency()
Returns the transparency mode for this Color .
|
int
|
hashCode()
Computes the hash code for this Color .
|
String
|
toString()
Returns a string representation of this Color .
|