com.metsci.glimpse.support.color
Class RGBA

java.lang.Object
  extended by com.metsci.glimpse.support.color.RGBA

public final class RGBA
extends java.lang.Object


Field Summary
 float a
           
 float b
           
static RGBA black
           
static RGBA BLACK
           
static RGBA blue
           
static RGBA BLUE
           
static RGBA cyan
           
static RGBA CYAN
           
static RGBA DARK_GRAY
           
static RGBA darkGray
           
 float g
           
static RGBA gray
           
static RGBA GRAY
           
static RGBA green
           
static RGBA GREEN
           
static RGBA LIGHT_GRAY
           
static RGBA lightGray
           
static RGBA magenta
           
static RGBA MAGENTA
           
static RGBA orange
           
static RGBA ORANGE
           
static RGBA pink
           
static RGBA PINK
           
 float r
           
static RGBA red
           
static RGBA RED
           
static RGBA white
           
static RGBA WHITE
           
static RGBA yellow
           
static RGBA YELLOW
           
 
Constructor Summary
RGBA(java.awt.Color color)
           
RGBA(float[] rgba)
           
RGBA(float[] rgb, float a)
           
RGBA(float r, float g, float b, float a)
           
RGBA(RGBA rgba)
           
 
Method Summary
static RGBA fromHsb(float hue, float saturation, float brightness, float alpha)
           
static RGBA fromIntRGB(int r, int g, int b)
           
static RGBA fromIntRGBA(int r, int g, int b, int a)
           
 int getIntAlpha()
           
 int getIntBlue()
           
 int getIntGreen()
           
 int getIntRed()
           
 boolean isTransparent()
           
 float[] toFloat3()
           
 float[] toFloat4()
           
 int[] toInt3()
           
 int[] toInt4()
           
 RGBA withAlpha(float a)
           
 RGBA withIntAlpha(int a)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

white

public static final RGBA white

WHITE

public static final RGBA WHITE

lightGray

public static final RGBA lightGray

LIGHT_GRAY

public static final RGBA LIGHT_GRAY

gray

public static final RGBA gray

GRAY

public static final RGBA GRAY

darkGray

public static final RGBA darkGray

DARK_GRAY

public static final RGBA DARK_GRAY

black

public static final RGBA black

BLACK

public static final RGBA BLACK

red

public static final RGBA red

RED

public static final RGBA RED

pink

public static final RGBA pink

PINK

public static final RGBA PINK

orange

public static final RGBA orange

ORANGE

public static final RGBA ORANGE

yellow

public static final RGBA yellow

YELLOW

public static final RGBA YELLOW

green

public static final RGBA green

GREEN

public static final RGBA GREEN

magenta

public static final RGBA magenta

MAGENTA

public static final RGBA MAGENTA

cyan

public static final RGBA cyan

CYAN

public static final RGBA CYAN

blue

public static final RGBA blue

BLUE

public static final RGBA BLUE

r

public final float r

g

public final float g

b

public final float b

a

public final float a
Constructor Detail

RGBA

public RGBA(float r,
            float g,
            float b,
            float a)

RGBA

public RGBA(RGBA rgba)

RGBA

public RGBA(float[] rgba)

RGBA

public RGBA(float[] rgb,
            float a)

RGBA

public RGBA(java.awt.Color color)
Method Detail

fromIntRGBA

public static final RGBA fromIntRGBA(int r,
                                     int g,
                                     int b,
                                     int a)

fromIntRGB

public static final RGBA fromIntRGB(int r,
                                    int g,
                                    int b)

fromHsb

public static final RGBA fromHsb(float hue,
                                 float saturation,
                                 float brightness,
                                 float alpha)

getIntRed

public final int getIntRed()

getIntGreen

public final int getIntGreen()

getIntBlue

public final int getIntBlue()

getIntAlpha

public final int getIntAlpha()

withAlpha

public final RGBA withAlpha(float a)

withIntAlpha

public final RGBA withIntAlpha(int a)

isTransparent

public final boolean isTransparent()

toFloat4

public final float[] toFloat4()

toFloat3

public final float[] toFloat3()

toInt4

public final int[] toInt4()

toInt3

public final int[] toInt3()


Copyright © 2012 Metron, Inc.. All Rights Reserved.