Class OutputProfile.Separation

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(OutputProfile.Separation s)
      Compare two Separations for sorting.
      java.awt.Color getColor()
      Return the color of the Separation.
      float getDotGain​(float input)
      Evaluate the "dot gain" function for this Separation.
      java.lang.String getName()
      Return the name of the Separation
      java.util.Collection<PDFPage> getPages()
      Return the set of pages this Separation was used in, in no particular order
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getName

        public java.lang.String getName()
        Return the name of the Separation
      • getColor

        public java.awt.Color getColor()

        Return the color of the Separation. The ColorSpace will be a SpotColorSpace if the separation was used from a SpotColorSpace or a DeviceNColorSpace with the recommended "Colorants" array; it may be a regular process colorSpace if used from a DeviceNColorSpace that identifies the process colorSpace this ink it belongs to; or it may be null if part of a DeviceNColorSpace that doesn't defined the ink at all.

        If a SpotColorspace, the sole component will typically be 1, but may be less based on the "Solidity" specified in the PDF

      • getPages

        public java.util.Collection<PDFPage> getPages()
        Return the set of pages this Separation was used in, in no particular order
      • getDotGain

        public float getDotGain​(float input)
        Evaluate the "dot gain" function for this Separation. The supplied value should be between 0 and 1 - the returned value will be between 0 and 1 if a function is specified, or Float.NaN if no DotGain function is specified for this Separation (which is normal, and required PDF/X).
        Parameters:
        input - the input value between 0..1
        Returns:
        the computedvalue between 0..1, or NaN.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(OutputProfile.Separation s)
        Compare two Separations for sorting. Since release 2.26 Separations are comparable - the sort order is our approximation of the sort order used by Acrobat, with higher priority Separations of the same name taking priority where names must be unique.
        Specified by:
        compareTo in interface java.lang.Comparable<OutputProfile.Separation>
        Since:
        2.26