gnu.x11
Class RGB

java.lang.Object
  extended by gnu.x11.RGB

public class RGB
extends java.lang.Object

X RGB. Note, following the convention of X specification, these RGB values are 16-bit, ranging from 0 to 65535, instead of 8-bit (0 to 255) in some other areas.


Field Summary
static RGB ANTIQUE_WHITE3
           
 int blue
           
static RGB BLUE
           
static RGB DIM_GREY
           
 int green
           
static RGB GREEN
           
static RGB GREY
           
static RGB GREY64
           
static RGB JAVA_BLACK
           
static RGB JAVA_PRIMARY1
           
static RGB JAVA_PRIMARY2
           
static RGB JAVA_PRIMARY3
           
static RGB JAVA_SECONDARY1
           
static RGB JAVA_SECONDARY2
           
static RGB JAVA_SECONDARY3
           
static RGB JAVA_WHITE
           
 int red
           
static RGB RED
           
static RGB SLATE_GREY
           
 
Constructor Summary
RGB(int red, int green, int blue)
           
RGB(java.lang.String spec)
           
 
Method Summary
static RGB grey(int level)
           
static RGB hsv(int hue, float saturation, float value)
           
static RGB rgb8(int red8, int green8, int blue8)
           
 java.lang.String spec()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RED

public static final RGB RED

SLATE_GREY

public static final RGB SLATE_GREY

DIM_GREY

public static final RGB DIM_GREY

GREY

public static final RGB GREY

GREY64

public static final RGB GREY64

GREEN

public static final RGB GREEN

BLUE

public static final RGB BLUE

ANTIQUE_WHITE3

public static final RGB ANTIQUE_WHITE3

JAVA_PRIMARY1

public static final RGB JAVA_PRIMARY1

JAVA_PRIMARY2

public static final RGB JAVA_PRIMARY2

JAVA_PRIMARY3

public static final RGB JAVA_PRIMARY3

JAVA_SECONDARY1

public static final RGB JAVA_SECONDARY1

JAVA_SECONDARY2

public static final RGB JAVA_SECONDARY2

JAVA_SECONDARY3

public static final RGB JAVA_SECONDARY3

JAVA_BLACK

public static final RGB JAVA_BLACK

JAVA_WHITE

public static final RGB JAVA_WHITE

red

public int red

green

public int green

blue

public int blue
Constructor Detail

RGB

public RGB(java.lang.String spec)

RGB

public RGB(int red,
           int green,
           int blue)
Method Detail

rgb8

public static RGB rgb8(int red8,
                       int green8,
                       int blue8)

grey

public static RGB grey(int level)

hsv

public static RGB hsv(int hue,
                      float saturation,
                      float value)

spec

public java.lang.String spec()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object