|
java-gnome version 4.0.19 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Pointer
org.gnome.glib.Boxed
org.gnome.gdk.Color
public final class Color
Representation of an RGB colour. Used by GDK in drawing Widgets and related elements.
Regrettably, colour is spelt wrong in the underlying GTK library, so sticking to our algorithmic API mapping we are forced to present it as Color here.
Field Summary | |
---|---|
static Color |
BLACK
|
static Color |
BLUE
|
static Color |
GREEN
|
static Color |
RED
|
static Color |
WHITE
|
Constructor Summary | |
---|---|
Color(int red,
int green,
int blue)
Construct a new Color object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getBlue()
Get the blue component of this Color. |
int |
getGreen()
Get the green component of this Color. |
int |
getRed()
Get the red component of this Color. |
int |
hashCode()
|
Methods inherited from class org.freedesktop.bindings.Pointer |
---|
toString |
Methods inherited from class Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Color BLACK
public static final Color BLUE
public static final Color GREEN
public static final Color RED
public static final Color WHITE
Constructor Detail |
---|
public Color(int red, int green, int blue)
red
, green
,
and blue
parameters take values 0
to
65535
.
Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public int getBlue()
public int getGreen()
public int getRed()
public int hashCode()
hashCode
in class Object
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |