Describes an allocated or unallocated color.
BLACK
public static final Color BLACK
BLUE
public static final Color BLUE
GREEN
public static final Color GREEN
ORANGE
public static final Color ORANGE
RED
public static final Color RED
WHITE
public static final Color WHITE
YELLOW
public static final Color YELLOW
clone
public Object clone()
Makes a copy of this color.
equals
public boolean equals(Object color)
Determines whether another object is equal to this Color.
- equals in interface Boxed
finalize
protected void finalize()
gdk_color_copy
protected static final Handle gdk_color_copy(Handle color)
gdk_color_equal
protected static final boolean gdk_color_equal(Handle colora,
Handle colorb)
gdk_color_free
protected static final void gdk_color_free(Handle color)
gdk_color_get_type
protected static final int gdk_color_get_type()
gdk_color_hash
protected static final int gdk_color_hash(Handle colora)
gdk_color_parse
protected static final int gdk_color_parse(String spec,
Handle color)
getBlue
public int getBlue()
Returns the blue component in the range 0-65535 in the default sRGB space.
getBlue
protected static final int getBlue(Handle obj)
getGreen
public int getGreen()
Returns the green component in the range 0-65535 in the default sRGB space.
getGreen
protected static final int getGreen(Handle obj)
getPixel
protected static final int getPixel(Handle obj)
getRed
public int getRed()
Returns the red component in the range 0-65535 in the default sRGB space.
getRed
protected static final int getRed(Handle obj)
hashCode
public int hashCode()
- hashCode in interface Boxed
parse
public static Color parse(String spec)
Parses a textual specification of a color. The text string
can be in any of the forms accepted by XParseColor;
these include name for a color from rgb.txt, such
as DarkSlateGray or a hex specification such as
305050.
spec
-
setBlue
protected static final void setBlue(Handle obj,
int blue)
setBlue
public void setBlue(short value)
Sets the blue component in the range of 0-65535.
setGreen
protected static final void setGreen(Handle obj,
int green)
setGreen
public void setGreen(short value)
Sets the green component in the range of 0-65535.
setRed
protected static final void setRed(Handle obj,
int red)
setRed
public void setRed(short value)
Sets the red component in the range of 0-65535.
toString
public String toString()
Returns a string representation of this Color.