Enum BlendMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<BlendMode>

    public enum BlendMode
    extends java.lang.Enum<BlendMode>
    Defines all possible blend modes and their mapping to pdf names.
    • Enum Constant Detail

      • NORMAL

        public static final BlendMode NORMAL
      • MULTIPLY

        public static final BlendMode MULTIPLY
      • SCREEN

        public static final BlendMode SCREEN
      • OVERLAY

        public static final BlendMode OVERLAY
      • DARKEN

        public static final BlendMode DARKEN
      • LIGHTEN

        public static final BlendMode LIGHTEN
      • COLOR_DODGE

        public static final BlendMode COLOR_DODGE
      • COLOR_BURN

        public static final BlendMode COLOR_BURN
      • HARD_LIGHT

        public static final BlendMode HARD_LIGHT
      • SOFT_LIGHT

        public static final BlendMode SOFT_LIGHT
      • DIFFERENCE

        public static final BlendMode DIFFERENCE
      • EXCLUSION

        public static final BlendMode EXCLUSION
      • SATURATION

        public static final BlendMode SATURATION
      • LUMINOSITY

        public static final BlendMode LUMINOSITY
    • Field Detail

      • pdfRepresentation

        private final PdfName pdfRepresentation
    • Constructor Detail

      • BlendMode

        private BlendMode​(PdfName pdfRepresentation)
    • Method Detail

      • values

        public static BlendMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BlendMode c : BlendMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BlendMode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getPdfRepresentation

        public PdfName getPdfRepresentation()
        Get the pdf representation of the current blend mode.
        Returns:
        the PdfName representation of the current blend mode.