Class PdfShading


  • public class PdfShading
    extends java.lang.Object
    Implements the shading dictionary (or stream).
    • Field Detail

      • shadingType

        protected int shadingType
      • shadingName

        protected PdfName shadingName
      • bBox

        protected float[] bBox
        Holds value of property bBox.
      • antiAlias

        protected boolean antiAlias
        Holds value of property antiAlias.
    • Constructor Detail

      • PdfShading

        protected PdfShading​(PdfWriter writer)
        Creates new PdfShading
    • Method Detail

      • setColorSpace

        protected void setColorSpace​(BaseColor color)
      • getColorSpace

        public BaseColor getColorSpace()
      • throwColorSpaceError

        public static void throwColorSpaceError()
      • checkCompatibleColors

        public static void checkCompatibleColors​(BaseColor c1,
                                                 BaseColor c2)
      • getColorArray

        public static float[] getColorArray​(BaseColor color)
      • simpleAxial

        public static PdfShading simpleAxial​(PdfWriter writer,
                                             float x0,
                                             float y0,
                                             float x1,
                                             float y1,
                                             BaseColor startColor,
                                             BaseColor endColor,
                                             boolean extendStart,
                                             boolean extendEnd)
      • simpleRadial

        public static PdfShading simpleRadial​(PdfWriter writer,
                                              float x0,
                                              float y0,
                                              float r0,
                                              float x1,
                                              float y1,
                                              float r1,
                                              BaseColor startColor,
                                              BaseColor endColor,
                                              boolean extendStart,
                                              boolean extendEnd)
      • simpleRadial

        public static PdfShading simpleRadial​(PdfWriter writer,
                                              float x0,
                                              float y0,
                                              float r0,
                                              float x1,
                                              float y1,
                                              float r1,
                                              BaseColor startColor,
                                              BaseColor endColor)
      • getShadingName

        PdfName getShadingName()
      • setName

        void setName​(int number)
      • addToBody

        public void addToBody()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getBBox

        public float[] getBBox()
      • setBBox

        public void setBBox​(float[] bBox)
      • isAntiAlias

        public boolean isAntiAlias()
      • setAntiAlias

        public void setAntiAlias​(boolean antiAlias)