Class PDShadingPattern
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.pattern.PDAbstractPattern
org.apache.pdfbox.pdmodel.graphics.pattern.PDShadingPattern
- All Implemented Interfaces:
COSObjectable
A shading pattern dictionary.
-
Field Summary
FieldsFields inherited from class org.apache.pdfbox.pdmodel.graphics.pattern.PDAbstractPattern
TYPE_SHADING_PATTERN, TYPE_TILING_PATTERN
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new shading pattern.PDShadingPattern
(COSDictionary resourceDictionary) Creates a new shading pattern from the given COS dictionary. -
Method Summary
Modifier and TypeMethodDescriptionThis will get the external graphics state for this 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 external graphics state for this pattern.void
setShading
(PDShading shadingResources) This will set the shading resources for this pattern.Methods inherited from class org.apache.pdfbox.pdmodel.graphics.pattern.PDAbstractPattern
create, create, getCOSObject, getMatrix, getType, setMatrix, setPaintType, setPatternType
-
Field Details
-
extendedGraphicsState
-
shading
-
-
Constructor Details
-
PDShadingPattern
public PDShadingPattern()Creates a new shading pattern. -
PDShadingPattern
Creates a new shading pattern from the given COS dictionary.- Parameters:
resourceDictionary
- The COSDictionary for this pattern resource.
-
-
Method Details
-
getPatternType
public int getPatternType()Description copied from class:PDAbstractPattern
This will return the pattern type.- Specified by:
getPatternType
in classPDAbstractPattern
- Returns:
- The pattern type
-
getExtendedGraphicsState
This will get the external graphics state for this pattern.- Returns:
- The extended graphics state for this pattern.
-
setExtendedGraphicsState
This will set the external 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 resources for 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.
-