TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.core.internal
Class DColor

java.lang.Object
  extended by org.eclipse.tptp.platform.report.core.internal.DColor
All Implemented Interfaces:
IDColor, IDObject, IDStringSerializable

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class DColor
extends java.lang.Object
implements IDColor

DColor describes a color with RGB values.


Constructor Summary
DColor()
          Deprecated. Creates a DColor with 0,0,0 component.
DColor(IDColor clr)
          Deprecated. Creates a DColor copying R,G,B field from given parameter.
DColor(int r, int g, int b)
          Deprecated. Creates a DColor.
 
Method Summary
 boolean equals(java.lang.Object c)
          Deprecated. Returns true if the values R(red), G(green ans B(Blue) are the same.
 int getAlpha()
          Deprecated.  
 int getBlue()
          Deprecated. Returns the blue value of DColor.
 int getGreen()
          Deprecated. Returns the Green value of DColor.
 java.lang.String getID()
          Deprecated.  
 int getRed()
          Deprecated. Returns the Red value of DColor.
 int getRGBA()
          Deprecated.  
static int RGBA(IDColor c)
          Deprecated.  
static int RGBA(IDColor c, int rgb_default)
          Deprecated.  
 void serializeFromString(java.lang.String s)
          Deprecated. Initializes a string with the format #RRGGBBAA
 java.lang.String serializeToString()
          Deprecated. Returns a String used to serialize this object.
 void setAlpha(int alpha)
          Deprecated. sets the transparency value (0..255)
 void setBlue(int b)
          Deprecated. Sets the Blue (0..255) value of DColor.
 void setGreen(int g)
          Deprecated. Sets the Green (0..255) value of DColor.
 void setRed(int r)
          Deprecated. Sets the Red (0.255) value of DColor.
 void setRGB(int r, int g, int b)
          Deprecated. Sets the color with R(red), G(green) and B(blue) values.
 void setRGBA(int r, int g, int b, int a)
          Deprecated. Sets the color with R(red), G(green), B(blue) and A(alpha) values.
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DColor

public DColor()
Deprecated. 
Creates a DColor with 0,0,0 component. (black color)


DColor

public DColor(int r,
              int g,
              int b)
Deprecated. 
Creates a DColor. The three values passed in argument represent the RGB values (Red Green Blue) and set the color.

Parameters:
r - red value between 0..255
g - green value between 0..255
b - blue value between 0..255

DColor

public DColor(IDColor clr)
Deprecated. 
Creates a DColor copying R,G,B field from given parameter.

Parameters:
clr - color to copy, or 0,0,0 if null
Method Detail

getRed

public int getRed()
Deprecated. 
Returns the Red value of DColor.

Specified by:
getRed in interface IDColor

getGreen

public int getGreen()
Deprecated. 
Returns the Green value of DColor.

Specified by:
getGreen in interface IDColor

getBlue

public int getBlue()
Deprecated. 
Returns the blue value of DColor.

Specified by:
getBlue in interface IDColor

setRed

public void setRed(int r)
Deprecated. 
Sets the Red (0.255) value of DColor.

Specified by:
setRed in interface IDColor

setGreen

public void setGreen(int g)
Deprecated. 
Sets the Green (0..255) value of DColor.

Specified by:
setGreen in interface IDColor

setBlue

public void setBlue(int b)
Deprecated. 
Sets the Blue (0..255) value of DColor.

Specified by:
setBlue in interface IDColor

equals

public boolean equals(java.lang.Object c)
Deprecated. 
Returns true if the values R(red), G(green ans B(Blue) are the same.

Overrides:
equals in class java.lang.Object

setRGB

public void setRGB(int r,
                   int g,
                   int b)
Deprecated. 
Sets the color with R(red), G(green) and B(blue) values.

Specified by:
setRGB in interface IDColor
Parameters:
r - red value
g - green value
b - blue value

setRGBA

public void setRGBA(int r,
                    int g,
                    int b,
                    int a)
Deprecated. 
Sets the color with R(red), G(green), B(blue) and A(alpha) values.

Parameters:
r - red value 0..255
g - green value 0.255
b - blue value 0..255
a - alpha value 0..255

toString

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

getRGBA

public int getRGBA()
Deprecated. 
Returns:
RGBA color corresponding to current color

RGBA

public static int RGBA(IDColor c)
Deprecated. 
Returns:
RGBA color from given IDColor, must be be null.

RGBA

public static int RGBA(IDColor c,
                       int rgb_default)
Deprecated. 
Returns:
RGBA color from given IDColor, if IDColor is null, default value is returned

getAlpha

public int getAlpha()
Deprecated. 
Returns:
the transparency value

setAlpha

public void setAlpha(int alpha)
Deprecated. 
sets the transparency value (0..255)


serializeToString

public java.lang.String serializeToString()
Deprecated. 
Description copied from interface: IDStringSerializable
Returns a String used to serialize this object.

Specified by:
serializeToString in interface IDStringSerializable

serializeFromString

public void serializeFromString(java.lang.String s)
Deprecated. 
Initializes a string with the format #RRGGBBAA

Specified by:
serializeFromString in interface IDStringSerializable

getID

public java.lang.String getID()
Deprecated. 
Specified by:
getID in interface IDColor
Returns:
the unique id of the color.

TPTP 4.5.0 Platform Project
Internal API Specification