| java.lang.Object java.awt.Color com.lowagie.text.pdf.ExtendedColor
All known Subclasses: com.lowagie.text.pdf.SpotColor, com.lowagie.text.pdf.ShadingColor, com.lowagie.text.pdf.PatternColor, com.lowagie.text.pdf.GrayColor, com.lowagie.text.pdf.CMYKColor,
ExtendedColor | public class ExtendedColor extends Color (Code) | | author: Paulo Soares (psoares@consiste.pt) |
Field Summary | |
final public static int | TYPE_CMYK a type of extended color. | final public static int | TYPE_GRAY a type of extended color. | final public static int | TYPE_PATTERN a type of extended color. | final public static int | TYPE_RGB a type of extended color. | final public static int | TYPE_SEPARATION a type of extended color. | final public static int | TYPE_SHADING a type of extended color. | protected int | type |
Constructor Summary | |
public | ExtendedColor(int type) Constructs an extended color of a certain type. | public | ExtendedColor(int type, float red, float green, float blue) Constructs an extended color of a certain type and a certain color. |
Method Summary | |
public int | getType() Gets the type of this color. | public static int | getType(Color color) Gets the type of a given color. | final static float | normalize(float value) |
TYPE_CMYK | final public static int TYPE_CMYK(Code) | | a type of extended color.
|
TYPE_GRAY | final public static int TYPE_GRAY(Code) | | a type of extended color.
|
TYPE_PATTERN | final public static int TYPE_PATTERN(Code) | | a type of extended color.
|
TYPE_RGB | final public static int TYPE_RGB(Code) | | a type of extended color.
|
TYPE_SEPARATION | final public static int TYPE_SEPARATION(Code) | | a type of extended color.
|
TYPE_SHADING | final public static int TYPE_SHADING(Code) | | a type of extended color.
|
ExtendedColor | public ExtendedColor(int type)(Code) | | Constructs an extended color of a certain type.
Parameters: type - |
ExtendedColor | public ExtendedColor(int type, float red, float green, float blue)(Code) | | Constructs an extended color of a certain type and a certain color.
Parameters: type - Parameters: red - Parameters: green - Parameters: blue - |
getType | public int getType()(Code) | | Gets the type of this color.
one of the types (see constants) |
getType | public static int getType(Color color)(Code) | | Gets the type of a given color.
Parameters: color - one of the types (see constants) |
normalize | final static float normalize(float value)(Code) | | |
Methods inherited from java.awt.Color | public static int HSBtoRGB(float hue, float saturation, float brightness)(Code)(Java Doc) public static float[] RGBtoHSB(int r, int g, int b, float[] hsbvals)(Code)(Java Doc) public Color brighter()(Code)(Java Doc) public synchronized PaintContext createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)(Code)(Java Doc) public Color darker()(Code)(Java Doc) public static Color decode(String nm) throws NumberFormatException(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public int getAlpha()(Code)(Java Doc) public int getBlue()(Code)(Java Doc) public static Color getColor(String nm)(Code)(Java Doc) public static Color getColor(String nm, Color v)(Code)(Java Doc) public static Color getColor(String nm, int v)(Code)(Java Doc) public float[] getColorComponents(float[] compArray)(Code)(Java Doc) public float[] getColorComponents(ColorSpace cspace, float[] compArray)(Code)(Java Doc) public ColorSpace getColorSpace()(Code)(Java Doc) public float[] getComponents(float[] compArray)(Code)(Java Doc) public float[] getComponents(ColorSpace cspace, float[] compArray)(Code)(Java Doc) public int getGreen()(Code)(Java Doc) public static Color getHSBColor(float h, float s, float b)(Code)(Java Doc) public int getRGB()(Code)(Java Doc) public float[] getRGBColorComponents(float[] compArray)(Code)(Java Doc) public float[] getRGBComponents(float[] compArray)(Code)(Java Doc) public int getRed()(Code)(Java Doc) public int getTransparency()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|