Class ShaderType2
java.lang.Object
org.loboevolution.pdfview.pattern.PDFShader
org.loboevolution.pdfview.pattern.ShaderType2
A shader that performs axial shader based on a function.
-
Field Summary
Fields inherited from class org.loboevolution.pdfview.pattern.PDFShader
AXIAL_SHADING, COONS_PATCH_MESH_SHADING, FREE_FORM_SHADING, FUNCTION_SHADING, LATTICE_SHADING, RADIAL_SHADING, TENSOR_PRODUCTS_MESH_SHADING, TOLERANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPaint()Returns paint that represents the selected shadervoidParse the shader-specific dataprotected voidsetFunctions(PDFFunction[] functions) Set the functions associated with this shader
-
Constructor Details
-
ShaderType2
public ShaderType2()Creates a new instance of ShaderType2
-
-
Method Details
-
parse
Parse the shader-specific dataParse the shader-specific data
- Specified by:
parsein classPDFShader- Parameters:
shaderObj- aPDFObjectobject.- Throws:
IOException- if any.
-
getPaint
Returns paint that represents the selected shaderCreate a paint that paints this pattern
-
setFunctions
Set the functions associated with this shader- Parameters:
functions- an array ofPDFFunctionobjects.
-