java-gnome version 4.0.19

org.gnome.gdk
Class Color

Object
  extended by org.freedesktop.bindings.Pointer
      extended by org.gnome.glib.Boxed
          extended by org.gnome.gdk.Color

public final class Color
extends Boxed

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.

Since:
4.0.5
Author:
Andrew Cowie

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

BLACK

public static final Color BLACK
Since:
4.0.5

BLUE

public static final Color BLUE
Since:
4.0.17

GREEN

public static final Color GREEN
Since:
4.0.17

RED

public static final Color RED
Since:
4.0.5

WHITE

public static final Color WHITE
Since:
4.0.5
Constructor Detail

Color

public Color(int red,
             int green,
             int blue)
Construct a new Color object. The red, green, and blue parameters take values 0 to 65535.

Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getBlue

public int getBlue()
Get the blue component of this Color.

Since:
4.0.5

getGreen

public int getGreen()
Get the green component of this Color.

Since:
4.0.5

getRed

public int getRed()
Get the red component of this Color.

Since:
4.0.5

hashCode

public int hashCode()
Overrides:
hashCode in class Object


java-gnome