Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
Boxed
org.gnu.pango.Color
public class Color
extends Boxed
Constructor Summary | |
| |
Method Summary | |
int |
|
int |
|
int |
|
boolean |
|
public Color(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.
Create a new instance whose fields are filled from a string specification.
- See Also:
setColor(String)
public Color(Color 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.
Create a new Color that is a copy of the provided color.
- Parameters:
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 of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.
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 of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.
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 of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.
public boolean setColor(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.
Fill in the fields of a color from a string specification. The string can either one of a large set of standard names. (Taken from the X11 rgb.txt file), or it can be a hex value in the form 'rgb' 'rrggbb' 'rrrgggbbb' or 'rrrrggggbbbb' where 'r', 'g' and 'b' are hex digits of the red, green, and blue components of the color, respectively. (White in the four forms is 'fff' 'ffffff' 'fffffffff' and 'ffffffffffff'.)
- Parameters:
spec
- A string specifying the new color.
- Returns:
- TRUE if parsing of the specifier succeeded, otherwise false.