|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.Boxed
org.gnu.pango.Color
public class Color
The PangoColor structure is used to represent a color in an uncalibrated RGB colorspace.
Constructor Summary | |
---|---|
Color(Color color)
Create a new Color that is a copy of the provided color. |
|
Color(java.lang.String spec)
Create a new instance whose fields are filled from a string specification. |
Method Summary | |
---|---|
int |
getBlue()
Returns the Blue component of the color. |
int |
getGreen()
Returns the Green component of the color. |
int |
getRed()
Returns the red component of the color. |
boolean |
setColor(java.lang.String spec)
Fill in the fields of a color from a string specification. |
Methods inherited from class org.gnu.glib.Boxed |
---|
equals, getBoxedFromHandle, hashCode |
Methods inherited from class org.gnu.glib.Struct |
---|
getHandle, getNullHandle |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Color(java.lang.String spec)
setColor(java.lang.String)
public Color(Color color)
color
- Method Detail |
---|
public int getRed()
public int getGreen()
public int getBlue()
public boolean setColor(java.lang.String spec)
spec
- A string specifying the new color.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |