public class PDShadingPattern extends PDAbstractPattern
TYPE_SHADING_PATTERN, TYPE_TILING_PATTERN
Constructor and Description |
---|
PDShadingPattern()
Creates a new shading pattern.
|
PDShadingPattern(COSDictionary resourceDictionary)
Creates a new shading pattern from the given COS dictionary.
|
Modifier and Type | Method and Description |
---|---|
PDExtendedGraphicsState |
getExtendedGraphicsState()
This will get the external graphics state for this pattern.
|
int |
getPatternType()
This will return the pattern type.
|
PDShading |
getShading()
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.
|
create, getCOSObject, getMatrix, getType, setMatrix, setPaintType, setPatternType
public PDShadingPattern()
public PDShadingPattern(COSDictionary resourceDictionary)
resourceDictionary
- The COSDictionary for this pattern resource.public int getPatternType()
PDAbstractPattern
getPatternType
in class PDAbstractPattern
public PDExtendedGraphicsState getExtendedGraphicsState()
public void setExtendedGraphicsState(PDExtendedGraphicsState extendedGraphicsState)
extendedGraphicsState
- The new extended graphics state for this pattern.public PDShading getShading() throws IOException
IOException
- if something went wrongpublic void setShading(PDShading shadingResources)
shadingResources
- The new shading resources for this pattern.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.