|
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.Grayscale
Class represents a grayscale color.
| Constructor Summary | |
Grayscale(byte grayLevel)
Initializes a new instance of the Grayscale class. |
|
Grayscale(float grayLevel)
Initializes a new instance of the Grayscale class. |
|
Grayscale(int grayLevel)
Initializes a new instance of the Grayscale class. |
|
| Method Summary | |
void |
draw(PageWriter writer,
Apply apply)
Draws the color data to the given PageWriter object. |
boolean |
equals(java.lang.Object obj)
Tests equality of colors. |
float |
getGrayLevel()
Gets the gray 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. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Grayscale(byte grayLevel)
Grayscale class.
grayLevel - The gray intensity.Grayscalepublic Grayscale(int grayLevel)
Grayscale class.
grayLevel - The gray intensity.Grayscalepublic Grayscale(float grayLevel)
Grayscale class.
java.lang.IllegalArgumentException - Grayscale value must be from 0.0 to 1.0.grayLevel - The gray intensity.Grayscale| Method Detail |
public float getGrayLevel()
public boolean equals(java.lang.Object obj)
equals in class Colorobj - 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.
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||