Class PDShadingPatternResources
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.pattern.PDPatternResources
org.apache.pdfbox.pdmodel.graphics.pattern.PDShadingPatternResources
- All Implemented Interfaces:
COSObjectable
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
ConstructorsConstructorDescriptionDefault constructor.PDShadingPatternResources
(COSDictionary resourceDictionary) Prepopulated pattern resources. -
Method Summary
Modifier and TypeMethodDescriptionThis will get the extended graphics state for this pattern.This will get the optional Matrix of a Pattern.getPaint
(int pageHeight) This will return the paint of the pattern.int
This will return the pattern type.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
-
Constructor Details
-
PDShadingPatternResources
public PDShadingPatternResources()Default constructor. -
PDShadingPatternResources
Prepopulated pattern resources.- Parameters:
resourceDictionary
- The COSDictionary for this pattern resource.
-
-
Method Details
-
getPatternType
public int getPatternType()This will return the pattern type.- Specified by:
getPatternType
in classPDPatternResources
- Returns:
- The pattern type
-
getMatrix
This will get the optional Matrix of a Pattern. It maps the form space into the user space- Returns:
- the form matrix
-
setMatrix
Sets the optional Matrix entry for the Pattern.- Parameters:
transform
- the transformation matrix
-
getExtendedGraphicsState
This will get the extended graphics state for this pattern.- Returns:
- The extended graphics state for this pattern.
-
setExtendedGraphicsState
This will set the extended graphics state for this pattern.- Parameters:
extendedGraphicsState
- The new extended graphics state for this pattern.
-
getShading
This will get the shading resources for this pattern.- Returns:
- The shading resourcesfor this pattern.
- Throws:
IOException
- if something went wrong
-
setShading
This will set the shading resources for this pattern.- Parameters:
shadingResources
- The new shading resources for this pattern.
-
getPaint
This will return the paint of the pattern.- Specified by:
getPaint
in classPDPatternResources
- Parameters:
pageHeight
- the height of the current page- Returns:
- the paint of the pattern
- Throws:
IOException
-