PDF Clown
0.1.2

org.pdfclown.documents.contents.colorSpaces
Class LabColorSpace

java.lang.Object
  extended by org.pdfclown.objects.PdfObjectWrapper<TDataObject>
      extended by org.pdfclown.documents.contents.colorSpaces.ColorSpace<PdfArray>
          extended by org.pdfclown.documents.contents.colorSpaces.CIEBasedColorSpace
              extended by org.pdfclown.documents.contents.colorSpaces.LabColorSpace
All Implemented Interfaces:
Cloneable, IPdfObjectWrapper

@PDF(value=PDF11)
public final class LabColorSpace
extends CIEBasedColorSpace

CIE-based ABC double-transformation-stage color space, where A, B and C represent the L*, a* and b* components of a CIE 1976 L*a*b* space [PDF:1.6:4.5.4].

Version:
0.1.1, 11/09/11
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Method Summary
 LabColorSpace clone(Document context)
          Gets a clone of the object, registered inside the given document context.
 LabColor getColor(List<PdfDirectObject> components, IContentContext context)
          Gets the color value corresponding to the specified components interpreted according to this color space [PDF:1.6:4.5.1].
 int getComponentCount()
          Gets the number of components used to represent a color value.
 LabColor getDefaultColor()
          Gets the initial color value within this color space.
 Paint getPaint(Color<?> color)
          Gets the rendering representation of the specified color value.
 List<Interval<Double>> getRanges()
          Gets the (inclusive) ranges of the color components.
 
Methods inherited from class org.pdfclown.documents.contents.colorSpaces.CIEBasedColorSpace
getBlackPoint, getDictionary, getWhitePoint
 
Methods inherited from class org.pdfclown.documents.contents.colorSpaces.ColorSpace
wrap
 
Methods inherited from class org.pdfclown.objects.PdfObjectWrapper
checkCompatibility, delete, equals, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clone

public LabColorSpace clone(Document context)
Description copied from class: PdfObjectWrapper
Gets a clone of the object, registered inside the given document context.

Overrides:
clone in class PdfObjectWrapper<PdfArray>
Parameters:
context - Which document the clone has to be registered in.

getColor

public LabColor getColor(List<PdfDirectObject> components,
                         IContentContext context)
Description copied from class: ColorSpace
Gets the color value corresponding to the specified components interpreted according to this color space [PDF:1.6:4.5.1].

Specified by:
getColor in class ColorSpace<PdfArray>
Parameters:
components - Color components.
context - Content context.

getComponentCount

public int getComponentCount()
Description copied from class: ColorSpace
Gets the number of components used to represent a color value.

Specified by:
getComponentCount in class ColorSpace<PdfArray>

getDefaultColor

public LabColor getDefaultColor()
Description copied from class: ColorSpace
Gets the initial color value within this color space.

Specified by:
getDefaultColor in class ColorSpace<PdfArray>

getRanges

public List<Interval<Double>> getRanges()
Gets the (inclusive) ranges of the color components.

Component values falling outside the specified range are adjusted to the nearest valid value.


getPaint

public Paint getPaint(Color<?> color)
Description copied from class: ColorSpace
Gets the rendering representation of the specified color value.

Specified by:
getPaint in class ColorSpace<PdfArray>
Parameters:
color - Color value to convert into an equivalent rendering representation.

PDF Clown
0.1.2

Project home page

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