javax.rad.ui
Interface IColor

All Superinterfaces:
IResource
All Known Implementing Classes:
AwtColor, UIColor

public interface IColor
extends IResource

Platform and technology independent Color definition.

See Also:
Color, SystemColor

Field Summary
static String CONTROL_ACTIVE_SELECTION_BACKGROUND
          The constant for control active selection background color.
static String CONTROL_ACTIVE_SELECTION_FOREGROUND
          The constant for control active selection foreground color.
static String CONTROL_ALTERNATE_BACKGROUND
          The constant for control alternate background color.
static String CONTROL_BACKGROUND
          The constant for control background color.
static String CONTROL_FOREGROUND
          The constant for control foreground color.
static String CONTROL_INACTIVE_SELECTION_BACKGROUND
          The constant for control inactive selection background color.
static String CONTROL_INACTIVE_SELECTION_FOREGROUND
          The constant for control inactive selection foreground color.
static String CONTROL_MANDATORY_BACKGROUND
          The constant for control mandatory background color.
static String CONTROL_READ_ONLY_BACKGROUND
          The constant for control read only background color.
static String INVALID_EDITOR_BACKGROUND
          The constant for control read only background color.
 
Method Summary
 int getAlpha()
          Returns the alpha component in the range 0-255.
 int getBlue()
          Returns the blue component in the range 0-255 in the default sRGB space.
 int getGreen()
          Returns the green component in the range 0-255 in the default sRGB space.
 int getRed()
          Returns the red component in the range 0-255 in the default sRGB space.
 int getRGBA()
          Returns the red, green, blue and alpha component as one integer.
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Field Detail

CONTROL_BACKGROUND

static final String CONTROL_BACKGROUND
The constant for control background color.

See Also:
Constant Field Values

CONTROL_ALTERNATE_BACKGROUND

static final String CONTROL_ALTERNATE_BACKGROUND
The constant for control alternate background color.

See Also:
Constant Field Values

CONTROL_FOREGROUND

static final String CONTROL_FOREGROUND
The constant for control foreground color.

See Also:
Constant Field Values

CONTROL_ACTIVE_SELECTION_BACKGROUND

static final String CONTROL_ACTIVE_SELECTION_BACKGROUND
The constant for control active selection background color.

See Also:
Constant Field Values

CONTROL_ACTIVE_SELECTION_FOREGROUND

static final String CONTROL_ACTIVE_SELECTION_FOREGROUND
The constant for control active selection foreground color.

See Also:
Constant Field Values

CONTROL_INACTIVE_SELECTION_BACKGROUND

static final String CONTROL_INACTIVE_SELECTION_BACKGROUND
The constant for control inactive selection background color.

See Also:
Constant Field Values

CONTROL_INACTIVE_SELECTION_FOREGROUND

static final String CONTROL_INACTIVE_SELECTION_FOREGROUND
The constant for control inactive selection foreground color.

See Also:
Constant Field Values

CONTROL_MANDATORY_BACKGROUND

static final String CONTROL_MANDATORY_BACKGROUND
The constant for control mandatory background color.

See Also:
Constant Field Values

CONTROL_READ_ONLY_BACKGROUND

static final String CONTROL_READ_ONLY_BACKGROUND
The constant for control read only background color.

See Also:
Constant Field Values

INVALID_EDITOR_BACKGROUND

static final String INVALID_EDITOR_BACKGROUND
The constant for control read only background color.

See Also:
Constant Field Values
Method Detail

getRed

int getRed()
Returns the red component in the range 0-255 in the default sRGB space.

Returns:
the red component.
See Also:
getRed(), getGreen(), getBlue()

getGreen

int getGreen()
Returns the green component in the range 0-255 in the default sRGB space.

Returns:
the green component.
See Also:
getRed(), getGreen(), getBlue()

getBlue

int getBlue()
Returns the blue component in the range 0-255 in the default sRGB space.

Returns:
the blue component.
See Also:
getRed(), getGreen(), getBlue()

getAlpha

int getAlpha()
Returns the alpha component in the range 0-255.

Returns:
the alpha component.
See Also:
getRed(), getGreen(), getBlue()

getRGBA

int getRGBA()
Returns the red, green, blue and alpha component as one integer. (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue).

Returns:
the red, green, blue and alpha component as one integer.
See Also:
getRed(), getGreen(), getBlue()


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.