Class PatternColor


  • public class PatternColor
    extends Color
    Representation of a Pattern Color.
    • Field Detail

      • underlyingColor

        private Color underlyingColor
    • Constructor Detail

      • PatternColor

        public PatternColor​(PdfPattern coloredPattern)
        Creates a pattern color using the given color pattern object.
        Parameters:
        coloredPattern - Color space that uses pattern objects
      • PatternColor

        public PatternColor​(PdfPattern.Tiling uncoloredPattern,
                            Color color)
        Creates a pattern color using the given uncolored pattern object and color.
        Parameters:
        uncoloredPattern - Tiling pattern object of the color space
        color - Color object
      • PatternColor

        public PatternColor​(PdfPattern.Tiling uncoloredPattern,
                            PdfColorSpace underlyingCS,
                            float[] colorValue)
        Creates a pattern color using the given uncolored pattern object, an underlying color space and color values.
        Parameters:
        uncoloredPattern - Tiling pattern object of the color space
        underlyingCS - Underlying color space object
        colorValue - Color values
      • PatternColor

        public PatternColor​(PdfPattern.Tiling uncoloredPattern,
                            PdfSpecialCs.UncoloredTilingPattern uncoloredTilingCS,
                            float[] colorValue)
        Creates a pattern color using the given uncolored pattern object, uncolored tiling pattern and color values.
        Parameters:
        uncoloredPattern - Tiling pattern object of the color space
        uncoloredTilingCS - Tiling pattern color space
        colorValue - Color values
    • Method Detail

      • getPattern

        public PdfPattern getPattern()
        Returns the pattern of the color space.
        Returns:
        PdfPattern object
      • setColorValue

        public void setColorValue​(float[] value)
        Description copied from class: Color
        Sets the color value of the color
        Overrides:
        setColorValue in class Color
        Parameters:
        value - new color value
      • equals

        public boolean equals​(java.lang.Object o)
        Description copied from class: Color
        Indicates whether the color is equal to the given color. The color space and color value are considered during the comparison.
        Overrides:
        equals in class Color