PDF Clown
0.1.2

org.pdfclown.documents.contents.colorSpaces
Class SeparationColorSpace

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

@PDF(value=PDF12)
public final class SeparationColorSpace
extends SpecialDeviceColorSpace

Special color space that provides a means for specifying the use of additional colorants or for isolating the control of individual color components of a device color space for a subtractive device [PDF:1.6:4.5.5].

When such a space is the current color space, the current color is a single-component value, called a tint, that controls the application of the given colorant or color components only.

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

Field Summary
static String AllComponentName
          Special colorant name referring collectively to all components available on an output device, including those for the standard process components.
 
Fields inherited from class org.pdfclown.documents.contents.colorSpaces.SpecialDeviceColorSpace
NoneComponentName
 
Method Summary
 SeparationColorSpace clone(Document context)
          Gets a clone of the object, registered inside the given document context.
 SeparationColor 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.
 List<String> getComponentNames()
          Gets the name of the colorant that this separation color space is intended to represent.
 SeparationColor getDefaultColor()
          Gets the initial color value within this color space.
 
Methods inherited from class org.pdfclown.documents.contents.colorSpaces.SpecialDeviceColorSpace
getAlternateSpace, getPaint, getTintFunction
 
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
 

Field Detail

AllComponentName

public static final String AllComponentName
Special colorant name referring collectively to all components available on an output device, including those for the standard process components.

When a separation space with this component name is the current color space, painting operators apply tint values to all available components at once.

Method Detail

clone

public SeparationColorSpace 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 SeparationColor 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>

getComponentNames

public List<String> getComponentNames()
Gets the name of the colorant that this separation color space is intended to represent.

Special names:

Specified by:
getComponentNames in class SpecialDeviceColorSpace

getDefaultColor

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

Specified by:
getDefaultColor in class ColorSpace<PdfArray>

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.