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 pdcs)
Method called by the validate method.
|
protected void |
processCalibratedColorSpace(PDColorSpace pdcs)
Method called by the processAllColorSpace if the ColorSpace to check is a Clibrated Color (CalGary, CalRGB, Lab).
|
protected void |
processCYMKColorSpace(PDColorSpace pdcs)
Method called by the processAllColorSpace if the ColorSpace to check is DeviceCYMK.
|
protected boolean |
processDefaultColorSpace(PDColorSpace pdcs)
Look up in the closest PDResources objects if there are a default ColorSpace.
|
protected void |
processDeviceNColorSpace(PDColorSpace pdcs)
Method called by the processAllColorSpace if the ColorSpace to check is DeviceN.
|
protected void |
processGrayColorSpace(PDColorSpace pdcs)
Method called by the processAllColorSpace if the ColorSpace to check is DeviceGray.
|
protected void |
processICCBasedColorSpace(PDColorSpace pdcs)
Method called by the processAllColorSpace if the ColorSpace to check is a ICCBased color space.
|
protected void |
processIndexedColorSpace(PDColorSpace pdcs)
Method called by the processAllColorSpace if the ColorSpace to check is Indexed.
|
protected void |
processPatternColorSpace(PDColorSpace pdcs)
Method called by the processAllColorSpace if the ColorSpace to check is a Pattern.
|
protected void |
processRGBColorSpace(PDColorSpace pdcs)
Method called by the processAllColorSpace if the ColorSpace to check is DeviceRGB.
|
protected void |
processSeparationColorSpace(PDColorSpace pdcs)
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 pdcs)
pdcs
- the color space object to check.result
- the list of error to update if the validation fails.protected void processRGBColorSpace(PDColorSpace pdcs)
protected void processCYMKColorSpace(PDColorSpace pdcs)
protected void processPatternColorSpace(PDColorSpace pdcs)
protected void processGrayColorSpace(PDColorSpace pdcs)
protected void processCalibratedColorSpace(PDColorSpace pdcs)
protected void processICCBasedColorSpace(PDColorSpace pdcs)
pdcs
- the color space object to check.protected void processDeviceNColorSpace(PDColorSpace pdcs)
pdcs
- the color space object to check.protected void processIndexedColorSpace(PDColorSpace pdcs)
pdcs
- the color space object to check.protected void processSeparationColorSpace(PDColorSpace pdcs)
pdcs
- the color space object to check.protected boolean processDefaultColorSpace(PDColorSpace pdcs)
pdcs
- Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.