org.gnu.gdk
public class Color extends Boxed
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may exist in java-gnome 4.0; look out for
org.gnome.gdk.Color
.
Field Summary | |
---|---|
static Color | BLACK |
static Color | BLUE |
static Color | GREEN |
static Color | ORANGE |
static Color | RED |
static Color | WHITE |
static Color | YELLOW |
Constructor Summary | |
---|---|
Color(Handle handle)
Construct a Color object from a handle to a native resource. | |
Color(int red, int green, int blue)
Creates an sRGB color with the specified red, green, and blue values in
the range (0 - 65535).
|
Method Summary | |
---|---|
Object | clone()
Makes a copy of this color. |
boolean | equals(Object color)
Determines whether another object is equal to this Color. |
int | getBlue()
Returns the blue component in the range 0-65535 in the default sRGB
space. |
static Color | getColorFromHandle(Handle hndl)
Construct a Color object from a handle to a native resource. |
int | getGreen()
Returns the green component in the range 0-65535 in the default sRGB
space. |
int | getPixel() |
int | getRed()
Returns the red component in the range 0-65535 in the default sRGB space. |
Type | getType() |
int | hashCode() |
static Color | parse(String spec)
Parses a textual specification of a color. |
void | setBlue(short value)
Sets the blue component in the range of 0-65535. |
void | setGreen(short value)
Sets the green component in the range of 0-65535. |
void | setRed(short value)
Sets the red component in the range of 0-65535. |
String | toString()
Returns a string representation of this Color. |
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Construct a Color object from a handle to a native resource.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Creates an sRGB color with the specified red, green, and blue values in the range (0 - 65535).See Also: if a Color object from a textual representation
is required.
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Makes a copy of this color.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Determines whether another object is equal to this Color.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns the blue component in the range 0-65535 in the default sRGB space.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Construct a Color object from a handle to a native resource. It should only be used internally by Java-Gnome.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns the green component in the range 0-65535 in the default sRGB space.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns the red component in the range 0-65535 in the default sRGB space.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
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.Parameters: spec The textual description of the color.
Returns: The new Color object or null if the spec could not be parsed.
Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Sets the blue component in the range of 0-65535.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Sets the green component in the range of 0-65535.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Sets the red component in the range of 0-65535.Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns a string representation of this Color.