Package com.sun.pdfview.pattern
Class ShaderType2
java.lang.Object
com.sun.pdfview.pattern.PDFShader
com.sun.pdfview.pattern.ShaderType2
A shader that performs axial shader based on a function.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class
A subclass of paint that uses this shader to generate a paint(package private) class
A simple paint context that uses an existing raster in device space to generate pixels -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Point2D
the end of the axisprivate Point2D
the start of the axisprivate boolean
whether to extend the end of the axisprivate boolean
whether to extend the start of the axisprivate PDFFunction[]
functions, as an array of either 1 or n functionsprivate float
the domain maximumprivate float
the domain minimumFields inherited from class com.sun.pdfview.pattern.PDFShader
AXIAL_SHADING, COONS_PATCH_MESH_SHADING, FREE_FORM_SHADING, FUNCTION_SHADING, LATTICE_SHADING, RADIAL_SHADING, TENSOR_PRODUCTS_MESH_SHADING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the end of the axisGet the start of the axisboolean
Get whether to extend the end of the axisboolean
Get whether to extend the start of the axisGet the functions associated with this shaderfloat
getMaxT()
Get the domain maximumfloat
getMinT()
Get the domain minimumgetPaint()
Create a paint that paints this patternvoid
Parse the shader-specific dataprotected void
setAxisEnd
(Point2D axisEnd) Set the start of the axisprotected void
setAxisStart
(Point2D axisStart) Set the start of the axisprotected void
setExtendEnd
(boolean extendEnd) Set whether to extend the end of the axisprotected void
setExtendStart
(boolean extendStart) Set whether to extend the start of the axisprotected void
setFunctions
(PDFFunction[] functions) Set the functions associated with this shaderprotected void
setMaxT
(float maxT) Set the domain maximumprotected void
setMinT
(float minT) Set the domain minimumMethods inherited from class com.sun.pdfview.pattern.PDFShader
getBackground, getBBox, getColorSpace, getShader, getType, setBackground, setBBox, setColorSpace
-
Field Details
-
axisStart
the start of the axis -
axisEnd
the end of the axis -
minT
private float minTthe domain minimum -
maxT
private float maxTthe domain maximum -
extendStart
private boolean extendStartwhether to extend the start of the axis -
extendEnd
private boolean extendEndwhether to extend the end of the axis -
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
Parse the shader-specific data- Specified by:
parse
in classPDFShader
- Throws:
IOException
-
getPaint
Create a paint that paints this pattern -
getAxisStart
Get the start of the axis -
setAxisStart
Set the start of the axis -
getAxisEnd
Get the end of the axis -
setAxisEnd
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
Get the functions associated with this shader -
setFunctions
Set the functions associated with this shader
-