com.sun.pdfview.pattern

Class ShaderType2

public class ShaderType2 extends PDFShader

A shader that performs axial shader based on a function.
Constructor Summary
ShaderType2()
Creates a new instance of ShaderType2
Method Summary
Point2DgetAxisEnd()
Get the end of the axis
Point2DgetAxisStart()
Get the start of the axis
booleangetExtendEnd()
Get whether to extend the end of the axis
booleangetExtendStart()
Get whether to extend the start of the axis
PDFFunction[]getFunctions()
Get the functions associated with this shader
floatgetMaxT()
Get the domain maximum
floatgetMinT()
Get the domain minimum
PDFPaintgetPaint()
Create a paint that paints this pattern
voidparse(PDFObject shaderObj)
Parse the shader-specific data
protected voidsetAxisEnd(Point2D axisEnd)
Set the start of the axis
protected voidsetAxisStart(Point2D axisStart)
Set the start of the axis
protected voidsetExtendEnd(boolean extendEnd)
Set whether to extend the end of the axis
protected voidsetExtendStart(boolean extendStart)
Set whether to extend the start of the axis
protected voidsetFunctions(PDFFunction[] functions)
Set the functions associated with this shader
protected voidsetMaxT(float maxT)
Set the domain maximum
protected voidsetMinT(float minT)
Set the domain minimum

Constructor Detail

ShaderType2

public ShaderType2()
Creates a new instance of ShaderType2

Method Detail

getAxisEnd

public Point2D getAxisEnd()
Get the end of the axis

getAxisStart

public Point2D getAxisStart()
Get the start of the axis

getExtendEnd

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

getExtendStart

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

getFunctions

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

getMaxT

public float getMaxT()
Get the domain maximum

getMinT

public float getMinT()
Get the domain minimum

getPaint

public PDFPaint getPaint()
Create a paint that paints this pattern

parse

public void parse(PDFObject shaderObj)
Parse the shader-specific data

setAxisEnd

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

setAxisStart

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

setExtendEnd

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

setExtendStart

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

setFunctions

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

setMaxT

protected void setMaxT(float maxT)
Set the domain maximum

setMinT

protected void setMinT(float minT)
Set the domain minimum