Class ShaderType2

java.lang.Object
com.sun.pdfview.pattern.PDFShader
com.sun.pdfview.pattern.ShaderType2

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

    • axisStart

      private Point2D axisStart
      the start of the axis
    • axisEnd

      private Point2D axisEnd
      the end of the axis
    • minT

      private float minT
      the domain minimum
    • maxT

      private float maxT
      the domain maximum
    • extendStart

      private boolean extendStart
      whether to extend the start of the axis
    • extendEnd

      private boolean extendEnd
      whether to extend the end of the axis
    • functions

      private PDFFunction[] functions
      functions, as an array of either 1 or n functions
  • 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
      Specified by:
      parse in class PDFShader
      Throws:
      IOException
    • getPaint

      public PDFPaint getPaint()
      Create a paint that paints this pattern
      Specified by:
      getPaint in class PDFShader
    • getAxisStart

      public Point2D getAxisStart()
      Get the start of the axis
    • setAxisStart

      protected void setAxisStart(Point2D axisStart)
      Set the start of the axis
    • getAxisEnd

      public Point2D getAxisEnd()
      Get the end of the axis
    • setAxisEnd

      protected void setAxisEnd(Point2D axisEnd)
      Set the start of the axis
    • getMinT

      public float getMinT()
      Get the domain minimum
    • setMinT

      protected void setMinT(float minT)
      Set the domain minimum
    • getMaxT

      public float getMaxT()
      Get the domain maximum
    • setMaxT

      protected void setMaxT(float maxT)
      Set the domain maximum
    • getExtendStart

      public boolean getExtendStart()
      Get whether to extend the start of the axis
    • setExtendStart

      protected void setExtendStart(boolean extendStart)
      Set whether to extend the start of the axis
    • getExtendEnd

      public boolean getExtendEnd()
      Get whether to extend the end of the axis
    • setExtendEnd

      protected void setExtendEnd(boolean extendEnd)
      Set whether to extend the end of the axis
    • getFunctions

      public PDFFunction[] getFunctions()
      Get the functions associated with this shader
    • setFunctions

      protected void setFunctions(PDFFunction[] functions)
      Set the functions associated with this shader