com.lowagie.text.pdf
Class PdfColor

java.lang.Object
  |
  +--com.lowagie.text.pdf.PdfObject
        |
        +--com.lowagie.text.pdf.PdfArray
              |
              +--com.lowagie.text.pdf.PdfColor

class PdfColor
extends PdfArray

A PdfColor defines a Color (it's a PdfArray containing 3 values).

See Also:
PdfDictionary

Field Summary
 
Fields inherited from class com.lowagie.text.pdf.PdfArray
arrayList
 
Fields inherited from class com.lowagie.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
 
Constructor Summary
(package private) PdfColor(Color color)
           
(package private) PdfColor(int red, int green, int blue)
          Constructs a new PdfColor.
 
Methods inherited from class com.lowagie.text.pdf.PdfArray
add, add, add, addFirst, contains, getArrayList, size, toPdf
 
Methods inherited from class com.lowagie.text.pdf.PdfObject
getBytes, isArray, isBoolean, isDictionary, isName, isNull, isNumber, isStream, isString, length, setContent, toString, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PdfColor

PdfColor(int red,
         int green,
         int blue)
Constructs a new PdfColor.

Parameters:
red - a value between 0 and 255
green - a value between 0 and 255
blue - a value between 0 and 255

PdfColor

PdfColor(Color color)