public class PDShadingPatternResources extends PDPatternResources
SHADING_PATTERN, TILING_PATTERN| Constructor and Description |
|---|
PDShadingPatternResources()
Default constructor.
|
PDShadingPatternResources(COSDictionary resourceDictionary)
Prepopulated pattern resources.
|
| Modifier and Type | Method and Description |
|---|---|
PDExtendedGraphicsState |
getExtendedGraphicsState()
This will get the extended graphics state for this pattern.
|
Matrix |
getMatrix()
This will get the optional Matrix of a Pattern.
|
Paint |
getPaint(int pageHeight)
This will return the paint of the pattern.
|
int |
getPatternType()
This will return the pattern type.
|
PDShadingResources |
getShading()
This will get the shading resources for this pattern.
|
void |
setExtendedGraphicsState(PDExtendedGraphicsState extendedGraphicsState)
This will set the extended graphics state for this pattern.
|
void |
setMatrix(AffineTransform transform)
Sets the optional Matrix entry for the Pattern.
|
void |
setShading(PDShadingResources shadingResources)
This will set the shading resources for this pattern.
|
create, getCOSDictionary, getCOSObject, getFilter, getLength, getType, setFilter, setLength, setPaintType, setPatternTypepublic PDShadingPatternResources()
public PDShadingPatternResources(COSDictionary resourceDictionary)
resourceDictionary - The COSDictionary for this pattern resource.public int getPatternType()
getPatternType in class PDPatternResourcespublic Matrix getMatrix()
public void setMatrix(AffineTransform transform)
transform - the transformation matrixpublic PDExtendedGraphicsState getExtendedGraphicsState()
public void setExtendedGraphicsState(PDExtendedGraphicsState extendedGraphicsState)
extendedGraphicsState - The new extended graphics state for this pattern.public PDShadingResources getShading() throws IOException
IOException - if something went wrongpublic void setShading(PDShadingResources shadingResources)
shadingResources - The new shading resources for this pattern.public Paint getPaint(int pageHeight) throws IOException
getPaint in class PDPatternResourcespageHeight - the height of the current pageIOExceptionCopyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.