Class ShaderType2

java.lang.Object
org.loboevolution.pdfview.pattern.PDFShader
org.loboevolution.pdfview.pattern.ShaderType2

public class ShaderType2 extends PDFShader
A shader that performs axial shader based on a function.
  • Constructor Details

    • ShaderType2

      public ShaderType2()
      Creates a new instance of ShaderType2
  • Method Details

    • parse

      public void parse(PDFObject shaderObj) throws IOException
      Parse the shader-specific data

      Parse the shader-specific data

      Specified by:
      parse in class PDFShader
      Parameters:
      shaderObj - a PDFObject object.
      Throws:
      IOException - if any.
    • getPaint

      public PDFPaint getPaint()
      Returns paint that represents the selected shader

      Create a paint that paints this pattern

      Specified by:
      getPaint in class PDFShader
      Returns:
      a PDFPaint object.
    • setFunctions

      protected void setFunctions(PDFFunction[] functions)
      Set the functions associated with this shader
      Parameters:
      functions - an array of PDFFunction objects.