|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFPathPaint
org.foray.pdf.object.PDFColor
public class PDFColor
A color in a PDF document.
Field Summary |
---|
Fields inherited from class org.foray.pdf.object.PDFObject |
---|
EOL, MSG_EOL, XREF_EOL |
Constructor Summary | |
---|---|
PDFColor(Color theColor)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
float |
getBlue()
Return the blue component of this color. |
Color |
getColor()
Return the encapsulated Color. |
static String |
getColorSpacePDFString(ColorSpace colorSpace)
Returns the PDF string to use to describe a color space. |
float |
getGreen()
Return the green component of this color. |
float |
getRed()
Return the red component of this color. |
String |
getSetterString(boolean fillNotStroke)
|
static float |
intToFloat(int component)
Converts an integral color component in the range 0 thru 255 to a float color component in the range 0 thru 1. |
boolean |
isBlack()
Indicates whether this color is black. |
Methods inherited from class org.foray.pdf.object.PDFPathPaint |
---|
getColorSpace, setColorSpace |
Methods inherited from class org.foray.pdf.object.PDFObject |
---|
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFColor(Color theColor)
theColor
- The encapsulated Color.Method Detail |
---|
public String getSetterString(boolean fillNotStroke)
getSetterString
in interface org.axsl.pdf.PdfPathPaint
public boolean equals(Object obj)
equals
in class Object
public static String getColorSpacePDFString(ColorSpace colorSpace)
colorSpace
- The color space to be described.
colorSpace
.public boolean isBlack()
public Color getColor()
public float getRed()
public float getGreen()
public float getBlue()
public static float intToFloat(int component)
component
- The integral color component to be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |