|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.igc.util.internal.RGBA
org.eclipse.tptp.platform.report.birt).
public class RGBA
Store RGBA color.
RGBA is a 32 bits colors packed in a java int, including alpha channel,
all value are in range 0..255.
Alpha of 0 means fully transparent, 255 is opaque.
Red mask is 0xFF000000 (take care of sign shifting, please)
Green mask is 0x00FF0000
Blue mask is 0x0000FF00
Alpha mask if 0x000000FF
| Field Summary | |
|---|---|
protected int |
a_
Deprecated. |
protected int |
b_
Deprecated. |
static int |
BLACK
Deprecated. |
static int |
BLUE
Deprecated. |
static int |
CYAN
Deprecated. |
static int |
DARK_BLUE
Deprecated. |
static int |
DARK_GRAY
Deprecated. |
static int |
DARK_GREEN
Deprecated. |
static int |
DARK_RED
Deprecated. |
protected int |
g_
Deprecated. |
static int |
GREEN
Deprecated. |
static int |
LIGHT_GRAY
Deprecated. |
static int |
LIGHT_YELLOW
Deprecated. |
static int |
MAGENTA
Deprecated. |
static int |
OPAQUE
Deprecated. opaque value for A(lpha) field. |
static int |
ORANGE
Deprecated. |
protected int |
r_
Deprecated. |
static int |
RED
Deprecated. |
static int |
TRANSPARENT
Deprecated. transparent value for A(lpha), this is value for transparent color too. |
static int |
WHITE
Deprecated. |
static int |
YELLOW
Deprecated. |
| Constructor Summary | |
|---|---|
RGBA()
Deprecated. Create opaque black |
|
RGBA(int _rgba)
Deprecated. Create alpha'ed RGB color |
|
RGBA(int _r,
int _g,
int _b)
Deprecated. Create opaque RGB color |
|
RGBA(int _r,
int _g,
int _b,
int _a)
Deprecated. Create alpha'ed RGB colr |
|
| Method Summary | |
|---|---|
static int |
Combine(int _front,
int _back)
Deprecated. |
void |
darker(int _clr,
float _k)
Deprecated. Change current color to a darker one, using coefficient 0..1. 0 set same color, 1 set black color. |
static int |
Darker(int _rgba,
float _k)
Deprecated. |
int |
get()
Deprecated. |
static int |
Get(int _r,
int _g,
int _b)
Deprecated. |
static int |
Get(int _r,
int _g,
int _b,
int _a)
Deprecated. |
int |
getA()
Deprecated. |
static int |
GetA(int _rgba)
Deprecated. |
int |
getB()
Deprecated. |
static int |
GetB(int _rgba)
Deprecated. |
int |
getG()
Deprecated. |
static int |
GetG(int _rgba)
Deprecated. |
int |
getR()
Deprecated. |
static int |
GetR(int _rgba)
Deprecated. |
static int |
Gradient(int _rgba1,
int _rgba2,
double _k)
Deprecated. Return gradient color between _c1 and _c2 using _k value: if _k<= 0 color is _c1; if _k>=1 color is _c2; otherwise compute linear approximation. |
static int |
Gradient(int _rgba1,
int _rgba2,
double _k,
int _ncolors)
Deprecated. |
boolean |
isInvisible()
Deprecated. |
static boolean |
IsInvisible(int _rgba)
Deprecated. |
boolean |
isOpaque()
Deprecated. |
static boolean |
IsOpaque(int _rgba)
Deprecated. |
void |
lighter(float _k)
Deprecated. Change current color to a lighter one, using coefficient 0..1, transparency is preserved. |
static int |
Lighter(int _rgba,
float _k)
Deprecated. |
void |
set(int _rgba)
Deprecated. |
void |
set(int _r,
int _g,
int _b,
int _a)
Deprecated. |
void |
setA(int v)
Deprecated. |
void |
setB(int v)
Deprecated. |
void |
setG(int v)
Deprecated. |
void |
setR(int v)
Deprecated. |
static int |
Shadow(int _rgba,
float k_shadow,
float k_light,
float cos_angle)
Deprecated. |
static java.lang.String |
Str(int _rgba)
Deprecated. |
void |
toBW()
Deprecated. transform current color to black and white preversing Alpha channel |
static int |
ToBW(int _rgba)
Deprecated. Transform given RGBA color to a Black and White, preserving Alpha channel |
void |
toNegative()
Deprecated. transform current color to negative one, preserve alpha channel |
static int |
ToNegative(int _rgba)
Deprecated. Transform given color to negative one, preserve alpha channel |
void |
toNegativeBW()
Deprecated. transform currnet color to negative black and white, presreve alpha channel |
static int |
ToNegativeBW(int _rgba)
Deprecated. Transform given RGBA color to a Negative Black and White, preserving Alpha channel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int WHITE
public static final int BLACK
public static final int RED
public static final int GREEN
public static final int BLUE
public static final int YELLOW
public static final int CYAN
public static final int MAGENTA
public static final int LIGHT_GRAY
public static final int DARK_GRAY
public static final int LIGHT_YELLOW
public static final int ORANGE
public static final int DARK_RED
public static final int DARK_GREEN
public static final int DARK_BLUE
public static final int OPAQUE
public static final int TRANSPARENT
protected int r_
protected int g_
protected int b_
protected int a_
| Constructor Detail |
|---|
public RGBA()
public RGBA(int _r,
int _g,
int _b)
public RGBA(int _r,
int _g,
int _b,
int _a)
public RGBA(int _rgba)
| Method Detail |
|---|
public boolean isOpaque()
public boolean isInvisible()
public int getR()
public int getG()
public int getB()
public int getA()
public int get()
public void setR(int v)
public void setG(int v)
public void setB(int v)
public void setA(int v)
public void set(int _r,
int _g,
int _b,
int _a)
public void set(int _rgba)
public static int Get(int _r,
int _g,
int _b)
public static int Get(int _r,
int _g,
int _b,
int _a)
public static boolean IsOpaque(int _rgba)
public static boolean IsInvisible(int _rgba)
public static int GetR(int _rgba)
public static int GetG(int _rgba)
public static int GetB(int _rgba)
public static int GetA(int _rgba)
public static int Combine(int _front,
int _back)
_front - front color_back - back color
public static int Gradient(int _rgba1,
int _rgba2,
double _k)
_rgba1 - color for _k value less or equal to 0_rgba2 - color for _k value grater or equal to 1_k - value for linear approximation.
public static int Gradient(int _rgba1,
int _rgba2,
double _k,
int _ncolors)
public static int Shadow(int _rgba,
float k_shadow,
float k_light,
float cos_angle)
_rgba - base color to shadowing/lightingk_shadow - 0..1, 0 means shadow is _rgba, 1 shadow is _blackk_light - 0..1, 0 means light is _rgba, 1 light is whitecos_angle - 0..1, 0 to 0.5 return shadow color, 0.5..1 return light color
public static java.lang.String Str(int _rgba)
public void toBW()
public static int ToBW(int _rgba)
public void toNegativeBW()
public static int ToNegativeBW(int _rgba)
public void toNegative()
public static int ToNegative(int _rgba)
public void lighter(float _k)
public static int Lighter(int _rgba,
float _k)
public void darker(int _clr,
float _k)
public static int Darker(int _rgba,
float _k)
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||