Class PdfShading

java.lang.Object
com.lowagie.text.pdf.PdfShading

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

    • shading

      protected PdfDictionary shading
    • writer

      protected PdfWriter writer
    • shadingType

      protected int shadingType
    • colorDetails

      protected ColorDetails colorDetails
    • shadingName

      protected PdfName shadingName
    • shadingReference

      protected PdfIndirectReference shadingReference
    • bBox

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

      protected boolean antiAlias
      Holds value of property antiAlias.
    • cspace

      private Color cspace
  • Constructor Details

    • PdfShading

      protected PdfShading(PdfWriter writer)
      Creates new PdfShading
      Parameters:
      writer - the PdfWriter
  • Method Details

    • throwColorSpaceError

      public static void throwColorSpaceError()
    • checkCompatibleColors

      public static void checkCompatibleColors(Color c1, Color c2)
    • getColorArray

      public static float[] getColorArray(Color color)
    • type1

      public static PdfShading type1(PdfWriter writer, Color colorSpace, float[] domain, float[] tMatrix, PdfFunction function)
    • type2

      public static PdfShading type2(PdfWriter writer, Color colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend)
    • type3

      public static PdfShading type3(PdfWriter writer, Color colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend)
    • simpleAxial

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

      public static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor)
    • simpleRadial

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

      public static PdfShading simpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, Color startColor, Color endColor)
    • getColorSpace

      public Color getColorSpace()
    • setColorSpace

      protected void setColorSpace(Color color)
    • getShadingName

      PdfName getShadingName()
    • getShadingReference

      PdfIndirectReference getShadingReference()
    • setName

      void setName(int number)
    • addToBody

      void addToBody() throws IOException
      Throws:
      IOException
    • getWriter

      PdfWriter getWriter()
    • getColorDetails

      ColorDetails getColorDetails()
    • getBBox

      public float[] getBBox()
    • setBBox

      public void setBBox(float[] bBox)
    • isAntiAlias

      public boolean isAntiAlias()
    • setAntiAlias

      public void setAntiAlias(boolean antiAlias)