PDF Clown
0.0.8

it.stefanochizzolini.clown.documents.contents.colorSpaces
Class ColorSpace

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfDirectObject>
      extended by it.stefanochizzolini.clown.documents.contents.colorSpaces.ColorSpace
Direct Known Subclasses:
CIEBasedColorSpace, DeviceColorSpace, ICCBasedColorSpace

public abstract class ColorSpace
extends PdfObjectWrapper<PdfDirectObject>

Color space [PDF:1.6:4.5].

Version:
0.0.4
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Constructor Summary
protected ColorSpace(Document context, PdfDirectObject baseDataObject)
           
protected ColorSpace(PdfDirectObject baseObject, PdfIndirectObject container)
           
 
Method Summary
abstract  Color getColor(PdfDirectObject[] components)
           
abstract  Color getDefaultColor()
           
static ColorSpace wrap(PdfDirectObject baseObject, PdfIndirectObject container)
          Wraps a color space base object into a color space object.
static ColorSpace wrap(PdfReference reference)
          Wraps a color space reference into a color space object.
 
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObjectWrapper
clone, delete, getBaseDataObject, getBaseObject, getContainer, getDocument, getFile, setBaseObject, setContainer, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorSpace

protected ColorSpace(Document context,
                     PdfDirectObject baseDataObject)

ColorSpace

protected ColorSpace(PdfDirectObject baseObject,
                     PdfIndirectObject container)
Method Detail

wrap

public static ColorSpace wrap(PdfReference reference)
Wraps a color space reference into a color space object.

Parameters:
reference - Reference to a color space object.
Returns:
Color space object associated to the reference.

wrap

public static ColorSpace wrap(PdfDirectObject baseObject,
                              PdfIndirectObject container)
Wraps a color space base object into a color space object.

Parameters:
baseObject - Base object of a color space object.
container - Indirect object possibly containing the color space base object.
Returns:
Color space object associated to the base object.

getColor

public abstract Color getColor(PdfDirectObject[] components)

getDefaultColor

public abstract Color getDefaultColor()

PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.