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
-
Method Summary
Modifier and TypeMethodDescriptiongetPaint()
Returns paint that represents the selected shadervoid
Parse the shader-specific dataprotected void
setFunctions
(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:
parse
in classPDFShader
- Parameters:
shaderObj
- aPDFObject
object.- 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 ofPDFFunction
objects.
-