Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
Boxed
org.gnu.gdk.Color
public class Color
extends Boxed
Constructor Summary | |
| |
|
Method Summary | |
Object |
|
boolean |
|
int |
|
static Color |
|
int |
|
int |
|
int |
|
Type |
|
int |
|
static Color |
|
void |
|
void |
|
void |
|
String |
|
public Color(Handle handle)
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.
public Color(int red, int green, int blue)
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).
public Object clone()
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.
public boolean equals(Object 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.
public int getBlue()
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.
public static Color getColorFromHandle(Handle hndl)
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.
public int getGreen()
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.
public int getPixel()
public int getRed()
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.
public Type getType()
public int hashCode()
public static Color parse(String spec)
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.
public void setBlue(short value)
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.
public void setGreen(short value)
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.
public void setRed(short value)
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.
public String toString()
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.