|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.cete.dynamicpdf.Color
|
+--com.cete.dynamicpdf.RgbColor
Class represents an RGB color.
| Constructor Summary | |
RgbColor(byte red,
byte green,
byte blue)
Initializes a new instance of the RgbColor class. |
|
RgbColor(float red,
float green,
float blue)
Initializes a new instance of the RgbColor class. |
|
RgbColor(int red,
int green,
int blue)
Initializes a new instance of the RgbColor class. |
|
| Method Summary | |
void |
draw(PageWriter writer,
Apply apply)
Draws the color data to the given PageWriter object. |
boolean |
equals(java.lang.Object obje)
Tests equality of colors. |
float |
getB()
Gets the blue value. |
float |
getG()
Gets the green value. |
float |
getR()
Gets the red value. |
int |
hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
protected void |
setColor(byte red,
byte green,
byte blue)
Sets the color. |
protected void |
setColor(float red,
float green,
float blue)
Sets the color. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RgbColor(float red,
float green,
float blue)
RgbColor class.
java.lang.IllegalArgumentException - RBG values must be from 0.0 to 1.0.red - The red intensity.green - The green intensity.blue - The blue intensity.RgbColor
public RgbColor(byte red,
byte green,
byte blue)
RgbColor class.
red - The red intensity.green - The green intensity.blue - The blue intensity.RgbColor
public RgbColor(int red,
int green,
int blue)
RgbColor class.
red - The red intensity.green - The green intensity.blue - The blue intensity.RgbColor| Method Detail |
public boolean equals(java.lang.Object obje)
equals in class Colorobje - Object to compare to the current Color.
public int hashCode()
hashCode in class ColorColor
public void draw(PageWriter writer,
Apply apply)
PageWriter object.
draw in class Colorwriter - PageWriter object to receive the color data.apply - Defines how the color is applied.public float getR()
public float getG()
public float getB()
protected void setColor(float red,
float green,
float blue)
java.lang.IllegalArgumentException - RBG values must be from 0.0 to 1.0.red - Red value to set.green - Green value to set.blue - Blue value to set.
protected void setColor(byte red,
byte green,
byte blue)
red - Red value to set.green - Green value to set.blue - Blue value to set.
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||