|
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.DeviceColor com.cete.dynamicpdf.Grayscale
public class Grayscale
Class represents a grayscale color.
Licensing:
This class is a DynamicPDF Generator Community Edition feature.
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 |
drawFill(OperatorWriter writer)
Draws the color data to the given OperatorWriter object. |
void |
drawStroke(OperatorWriter writer)
Draws the color data to the given OperatorWriter object. |
boolean |
equals(java.lang.Object obj)
Tests equality of colors. |
static Grayscale |
getBlack()
Gets the color black. |
ColorSpace |
getColorSpace()
Gets the color space for the color. |
int |
getComponents()
Gets the number of components for the device color. |
static Grayscale |
getDarkGray()
Gets the color dark gray. |
static Grayscale |
getDimGray()
Gets the color dim gray. |
static Grayscale |
getGray()
Gets the color gray. |
float |
getGrayLevel()
Gets the gray value. |
static Grayscale |
getLightGrey()
Gets the color Light grey. |
static Grayscale |
getSilver()
Gets the color silver. |
static Grayscale |
getWhite()
Gets the color dim white. |
int |
hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
void |
toStringBuffer(java.lang.StringBuffer stringBuffer)
Appends the color information to the given StringBuffer object. |
Methods inherited from class com.cete.dynamicpdf.DeviceColor |
---|
drawFill, drawStroke |
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.Grayscale
public Grayscale(int grayLevel)
Grayscale
class.
grayLevel
- The gray intensity.Grayscale
public 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 Color
obj
- Object to compare to the current Color
.
public int hashCode()
hashCode
in class Color
Color
.public void toStringBuffer(java.lang.StringBuffer stringBuffer)
StringBuffer
object.
toStringBuffer
in class DeviceColor
stringBuffer
- to receive the color information.public void drawStroke(OperatorWriter writer)
drawStroke
in class Color
writer
- OperatorWriter object to receive the color data.OperatorWriter
public void drawFill(OperatorWriter writer)
drawFill
in class Color
writer
- OperatorWriter object to receive the color data.OperatorWriter
public int getComponents()
getComponents
in class DeviceColor
public ColorSpace getColorSpace()
getColorSpace
in class Color
public static Grayscale getBlack()
public static Grayscale getLightGrey()
public static Grayscale getSilver()
public static Grayscale getDarkGray()
public static Grayscale getGray()
public static Grayscale getDimGray()
public static Grayscale getWhite()
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |