Package com.ribs.pdf

Class DefaultFactories

    • Constructor Detail

      • DefaultFactories

        public DefaultFactories()
    • Method Detail

      • createColorSpace

        public java.awt.color.ColorSpace createColorSpace​(int type,
                                                          java.lang.Object params)
        Description copied from interface: ColorFactory
        Create a colorspace object from one of the above space IDs.

        The value of "params" can be as follows: Device spaces - ignored CIE spaces - a Map ICC spaces - a PDF Stream Indexed spaces - a Map with keys 'base", "hival", and "lookup" Pattern - null Separation - a Map with "Colorant", "Base", & "TintTransform" DeviceN - - a Map with "Colorants", "Base", "TintTransform", & "Attributes"

        Specified by:
        createColorSpace in interface ColorFactory
      • createColor

        public java.awt.Color createColor​(java.awt.color.ColorSpace space,
                                          float[] values)
        Description copied from interface: ColorFactory
        Create a specific color in the colorspace
        Specified by:
        createColor in interface ColorFactory
      • createEmptyPath

        public java.awt.geom.GeneralPath createEmptyPath()
        Description copied from interface: PathFactory
        Initialize and return a new empty path. This path may be used as either the current path or the clipping path.
        Specified by:
        createEmptyPath in interface PathFactory
      • createStroke

        public java.awt.Stroke createStroke​(PDFGState gs)
        Description copied from interface: PathFactory
        Create a Stroke object using the linecap,linejoin,linewidth,dashpattern, etc from the gstate. Like all objects created by the factories, the parser just creates them and passes them through to the page markup handler, which can choose to use as much or as little as it wants from them.
        Specified by:
        createStroke in interface PathFactory
      • createComposite

        public java.awt.Composite createComposite​(java.awt.color.ColorSpace sourcespace,
                                                  int blendMode,
                                                  boolean alphaIsShape,
                                                  float alpha)
        Description copied from interface: ColorFactory
        Create a Composite for the blend mode and alpha parameters. The destination onto which things will be composited will always be 32bit argb, but the source colorspace can be arbitrary. The composite will need to do some conversions if the source colorspace is anything other than deviceRGB.
        Specified by:
        createComposite in interface ColorFactory