Top Description Inners Constructors Methods
org.apache.pdfbox.preflight.graphic

public Class ColorSpaceHelperFactory

extends Object
Class Inheritance
Imports
org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace, org.apache.pdfbox.preflight.PreflightContext

This factory create the right Helper according to the owner of the ColorSpace entry.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
ColorSpaceHelperFactory.ColorSpaceRestriction

Enum used as argument of methods of this factory to return the right Helper.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ColorSpaceHelper

Returns:

the ColorSpaceHelper instance.
getColorSpaceHelper
(PreflightContext
the PreflightContext to access useful data
context
,
PDColorSpace
the High level PDFBox object which represents the ColorSpace
cs
,
ColorSpaceHelperFactory.ColorSpaceRestriction
the color space restriction
csr
)

Return an instance of ColorSpaceHelper according to the ColorSpaceRestriction value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ColorSpaceHelperFactoryback to summary
public ColorSpaceHelperFactory()

Method Detail

getColorSpaceHelperback to summary
public ColorSpaceHelper getColorSpaceHelper(PreflightContext context, PDColorSpace cs, ColorSpaceHelperFactory.ColorSpaceRestriction csr)

Return an instance of ColorSpaceHelper according to the ColorSpaceRestriction value.

  • ColorSpaceRestriction.NO_PATTERN : returns NoPatternColorSpaceHelper
  • ColorSpaceRestriction.ONLY_DEVICE : returns DeviceColorSpaceHelper
  • ColorSpaceRestriction.NO_RESTRICTION (default) : returns StandardColorSpaceHelper
Parameters
context:PreflightContext

the PreflightContext to access useful data

cs:PDColorSpace

the High level PDFBox object which represents the ColorSpace

csr:ColorSpaceHelperFactory.ColorSpaceRestriction

the color space restriction

Returns:ColorSpaceHelper

the ColorSpaceHelper instance.

org.apache.pdfbox.preflight.graphic back to summary

public final Enum ColorSpaceHelperFactory.ColorSpaceRestriction

extends Enum<ColorSpaceHelperFactory.ColorSpaceRestriction>
Class Inheritance

Enum used as argument of methods of this factory to return the right Helper.

Field Summary

Modifier and TypeField and Description
public static final ColorSpaceHelperFactory.ColorSpaceRestriction
public static final ColorSpaceHelperFactory.ColorSpaceRestriction
public static final ColorSpaceHelperFactory.ColorSpaceRestriction

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ColorSpaceHelperFactory.ColorSpaceRestriction
public static ColorSpaceHelperFactory.ColorSpaceRestriction[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

NO_PATTERNback to summary
public static final ColorSpaceHelperFactory.ColorSpaceRestriction NO_PATTERN
NO_RESTRICTIONback to summary
public static final ColorSpaceHelperFactory.ColorSpaceRestriction NO_RESTRICTION
ONLY_DEVICEback to summary
public static final ColorSpaceHelperFactory.ColorSpaceRestriction ONLY_DEVICE

Constructor Detail

ColorSpaceRestrictionback to summary
private ColorSpaceRestriction()

Method Detail

valueOfback to summary
public static ColorSpaceHelperFactory.ColorSpaceRestriction valueOf(String name)
valuesback to summary
public static ColorSpaceHelperFactory.ColorSpaceRestriction[] values()