swingwt.awt
Class Color

java.lang.Object
  extended byswingwt.awt.Color
All Implemented Interfaces:
Paint, Transparency
Direct Known Subclasses:
ColorUIResource, SystemColor

public class Color
extends java.lang.Object
implements Paint


Field Summary
static Color black
           
static Color BLACK
           
static Color blue
           
static Color BLUE
           
protected static double colourScale
           
static Color cyan
           
static Color CYAN
           
static Color DARK_GRAY
           
static Color darkGray
           
static Color gray
           
static Color GRAY
           
static Color green
           
static Color GREEN
           
static Color LIGHT_GRAY
           
static Color lightGray
           
static Color magenta
           
static Color MAGENTA
           
static Color orange
           
static Color ORANGE
           
static Color pink
           
static Color PINK
           
static Color red
           
static Color RED
           
protected  org.eclipse.swt.graphics.Color swtColour
           
static Color white
           
static Color WHITE
           
static Color yellow
           
static Color YELLOW
           
 
Fields inherited from interface swingwt.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
Color(org.eclipse.swt.graphics.Color swtColour)
           
Color(float r, float g, float b)
           
Color(float r, float g, float b, float a)
           
Color(int rgb)
           
Color(int r, int g, int b)
           
Color(int r, int g, int b, int a)
           
 
Method Summary
protected  int[] breakRGBComponents(int value)
          Converts the big single integer containing all colour values into the separate RGB bits and returns them in an array.
 Color brighter()
           
 PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
           
 Color darker()
           
 void dispose()
           
 int getBlue()
           
 int getGreen()
           
 int getRed()
           
 int getRGB()
           
 float[] getRGBColorComponents(float[] compArray)
           
 org.eclipse.swt.graphics.Color getSWTColor()
           
 int getTransparency()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

swtColour

protected org.eclipse.swt.graphics.Color swtColour

black

public static final Color black

BLACK

public static final Color BLACK

blue

public static final Color blue

BLUE

public static final Color BLUE

cyan

public static final Color cyan

CYAN

public static final Color CYAN

darkGray

public static final Color darkGray

DARK_GRAY

public static final Color DARK_GRAY

gray

public static final Color gray

GRAY

public static final Color GRAY

green

public static final Color green

GREEN

public static final Color GREEN

lightGray

public static final Color lightGray

LIGHT_GRAY

public static final Color LIGHT_GRAY

magenta

public static final Color magenta

MAGENTA

public static final Color MAGENTA

orange

public static final Color orange

ORANGE

public static final Color ORANGE

pink

public static final Color pink

PINK

public static final Color PINK

red

public static final Color red

RED

public static final Color RED

white

public static final Color white

WHITE

public static final Color WHITE

yellow

public static final Color yellow

YELLOW

public static final Color YELLOW

colourScale

protected static final double colourScale
See Also:
Constant Field Values
Constructor Detail

Color

public Color(org.eclipse.swt.graphics.Color swtColour)

Color

public Color(float r,
             float g,
             float b)

Color

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

Color

public Color(int r,
             int g,
             int b)

Color

public Color(int r,
             int g,
             int b,
             int a)

Color

public Color(int rgb)
Method Detail

getSWTColor

public org.eclipse.swt.graphics.Color getSWTColor()

dispose

public void dispose()

getRed

public int getRed()

getGreen

public int getGreen()

getBlue

public int getBlue()

getRGB

public int getRGB()

breakRGBComponents

protected int[] breakRGBComponents(int value)
Converts the big single integer containing all colour values into the separate RGB bits and returns them in an array.


brighter

public Color brighter()

darker

public Color darker()

toString

public java.lang.String toString()

createContext

public PaintContext createContext(ColorModel cm,
                                  Rectangle deviceBounds,
                                  Rectangle2D userBounds,
                                  AffineTransform xform,
                                  RenderingHints hints)
Specified by:
createContext in interface Paint

getTransparency

public int getTransparency()
Specified by:
getTransparency in interface Transparency

getRGBColorComponents

public float[] getRGBColorComponents(float[] compArray)