com.lowagie.text.pdf
Class ExtendedColor

java.lang.Object
  extended byjava.awt.Color
      extended bycom.lowagie.text.pdf.ExtendedColor
All Implemented Interfaces:
Paint, Serializable, Transparency
Direct Known Subclasses:
CMYKColor, GrayColor, PatternColor, ShadingColor, SpotColor

public class ExtendedColor
extends Color

Author:
Paulo Soares (psoares@consiste.pt)
See Also:
Serialized Form

Field Summary
protected  int type
           
(package private) static int TYPE_CMYK
           
(package private) static int TYPE_GRAY
           
(package private) static int TYPE_PATTERN
           
(package private) static int TYPE_RGB
           
(package private) static int TYPE_SEPARATION
           
(package private) static int TYPE_SHADING
           
 
Fields inherited from class java.awt.Color
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
ExtendedColor(int type)
           
ExtendedColor(int type, float red, float green, float blue)
           
 
Method Summary
 int getType()
           
static int getType(Color color)
           
(package private) static float normalize(float value)
           
 
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_RGB

static final int TYPE_RGB
See Also:
Constant Field Values

TYPE_GRAY

static final int TYPE_GRAY
See Also:
Constant Field Values

TYPE_CMYK

static final int TYPE_CMYK
See Also:
Constant Field Values

TYPE_SEPARATION

static final int TYPE_SEPARATION
See Also:
Constant Field Values

TYPE_PATTERN

static final int TYPE_PATTERN
See Also:
Constant Field Values

TYPE_SHADING

static final int TYPE_SHADING
See Also:
Constant Field Values

type

protected int type
Constructor Detail

ExtendedColor

public ExtendedColor(int type)

ExtendedColor

public ExtendedColor(int type,
                     float red,
                     float green,
                     float blue)
Method Detail

getType

public int getType()

getType

public static int getType(Color color)

normalize

static final float normalize(float value)