|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pdfbox.pdmodel.graphics.pattern.PDPatternResources
org.apache.pdfbox.pdmodel.graphics.pattern.PDShadingPatternResources
public class PDShadingPatternResources
This represents the resources for a shading pattern.
| Field Summary |
|---|
| Fields inherited from class org.apache.pdfbox.pdmodel.graphics.pattern.PDPatternResources |
|---|
SHADING_PATTERN, TILING_PATTERN |
| Constructor Summary | |
|---|---|
PDShadingPatternResources()
Default constructor. |
|
PDShadingPatternResources(COSDictionary resourceDictionary)
Prepopulated pattern resources. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.pdfbox.pdmodel.graphics.pattern.PDPatternResources |
|---|
create, getCOSDictionary, getCOSObject, getFilter, getLength, getType, setFilter, setLength, setPaintType, setPatternType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PDShadingPatternResources()
public PDShadingPatternResources(COSDictionary resourceDictionary)
resourceDictionary - The COSDictionary for this pattern resource.| Method Detail |
|---|
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 page
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||