Interface ColorFactory

  • All Known Implementing Classes:
    DefaultFactories

    public interface ColorFactory
    • Method Detail

      • createColorSpace

        java.awt.color.ColorSpace createColorSpace​(int type,
                                                   java.lang.Object params)
        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"

      • createColor

        java.awt.Color createColor​(java.awt.color.ColorSpace space,
                                   float[] values)
        Create a specific color in the colorspace
      • createComposite

        java.awt.Composite createComposite​(java.awt.color.ColorSpace sourcespace,
                                           int blendMode,
                                           boolean alphaIsShape,
                                           float alpha)
        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.