Class ColorSpaceHelperFactory


  • public class ColorSpaceHelperFactory
    extends java.lang.Object
    This factory create the right Helper according to the owner of the ColorSpace entry.
    • Constructor Detail

      • ColorSpaceHelperFactory

        public ColorSpaceHelperFactory()
    • Method Detail

      • getColorSpaceHelper

        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 - the PreflightContext to access useful data
        cs - the High level PDFBox object which represents the ColorSpace
        csr - the color space restriction
        Returns:
        the ColorSpaceHelper instance.