public class StandardColorSpaceHelper extends Object implements ColorSpaceHelper
Modifier and Type | Field and Description |
---|---|
protected PreflightContext |
context
The context which contains useful information to process the validation.
|
protected ICCProfileWrapper |
iccpw
The ICCProfile contained in the DestOutputIntent
|
protected PDColorSpace |
pdcs
High level object which represents the colors space to check.
|
Modifier | Constructor and Description |
---|---|
protected |
StandardColorSpaceHelper(PreflightContext _context,
PDColorSpace _cs) |
Modifier and Type | Method and Description |
---|---|
protected void |
processAllColorSpace(PDColorSpace colorSpace)
Method called by the validate method.
|
protected void |
processCalibratedColorSpace(PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is a Clibrated Color (CalGary, CalRGB, Lab).
|
protected void |
processCYMKColorSpace(PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is DeviceCYMK.
|
protected boolean |
processDefaultColorSpace(PDColorSpace colorSpace)
Look up in the closest PDResources objects if there are a default ColorSpace.
|
protected void |
processDeviceNColorSpace(PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is DeviceN.
|
protected void |
processGrayColorSpace(PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is DeviceGray.
|
protected void |
processICCBasedColorSpace(PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is a ICCBased color space.
|
protected void |
processIndexedColorSpace(PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is Indexed.
|
protected void |
processPatternColorSpace(PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is a Pattern.
|
protected void |
processRGBColorSpace(PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is DeviceRGB.
|
protected void |
processSeparationColorSpace(PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is Separation.
|
void |
validate()
Process the ColorSpace validation.
|
protected PreflightContext context
protected ICCProfileWrapper iccpw
protected PDColorSpace pdcs
protected StandardColorSpaceHelper(PreflightContext _context, PDColorSpace _cs)
public final void validate() throws ValidationException
ColorSpaceHelper
validate
in interface ColorSpaceHelper
ValidationException
protected final void processAllColorSpace(PDColorSpace colorSpace)
colorSpace
- the color space object to check.protected void processRGBColorSpace(PDColorSpace colorSpace)
protected void processCYMKColorSpace(PDColorSpace colorSpace)
protected void processPatternColorSpace(PDColorSpace colorSpace)
colorSpace
- protected void processGrayColorSpace(PDColorSpace colorSpace)
protected void processCalibratedColorSpace(PDColorSpace colorSpace)
colorSpace
- protected void processICCBasedColorSpace(PDColorSpace colorSpace)
colorSpace
- the color space object to check.protected void processDeviceNColorSpace(PDColorSpace colorSpace)
colorSpace
- the color space object to check.protected void processIndexedColorSpace(PDColorSpace colorSpace)
colorSpace
- the color space object to check.protected void processSeparationColorSpace(PDColorSpace colorSpace)
colorSpace
- the color space object to check.protected boolean processDefaultColorSpace(PDColorSpace colorSpace)
colorSpace
- Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.