Class ShaderType2


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

      • axisStart

        private java.awt.geom.Point2D axisStart
        the start of the axis
      • axisEnd

        private java.awt.geom.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 Detail

      • ShaderType2

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

      • parse

        public void parse​(PDFObject shaderObj)
                   throws java.io.IOException
        Parse the shader-specific data
        Specified by:
        parse in class PDFShader
        Throws:
        java.io.IOException
      • getAxisStart

        public java.awt.geom.Point2D getAxisStart()
        Get the start of the axis
      • setAxisStart

        protected void setAxisStart​(java.awt.geom.Point2D axisStart)
        Set the start of the axis
      • getAxisEnd

        public java.awt.geom.Point2D getAxisEnd()
        Get the end of the axis
      • setAxisEnd

        protected void setAxisEnd​(java.awt.geom.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