COSObjectablepublic class PDShadingPatternResources extends PDPatternResources
SHADING_PATTERN, TILING_PATTERN| Constructor | Description |
|---|---|
PDShadingPatternResources() |
Default constructor.
|
PDShadingPatternResources(COSDictionary resourceDictionary) |
Prepopulated pattern resources.
|
| Modifier and Type | Method | Description |
|---|---|---|
PDExtendedGraphicsState |
getExtendedGraphicsState() |
This will get the extended graphics state for this pattern.
|
Matrix |
getMatrix() |
This will get the optional Matrix of a Pattern.
|
java.awt.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(java.awt.geom.AffineTransform transform) |
Sets the optional Matrix entry for the Pattern.
|
void |
setShading(PDShadingResources shadingResources) |
This will set the shading resources for this pattern.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, 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(java.awt.geom.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 java.io.IOException
java.io.IOException - if something went wrongpublic void setShading(PDShadingResources shadingResources)
shadingResources - The new shading resources for this pattern.public java.awt.Paint getPaint(int pageHeight)
throws java.io.IOException
getPaint in class PDPatternResourcespageHeight - the height of the current pagejava.io.IOException