public abstract class PDAbstractPattern extends Object implements COSObjectable, PDInheritableResource
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_SHADING_PATTERN
Shading pattern type.
|
static int |
TYPE_TILING_PATTERN
Tiling pattern type.
|
| Constructor and Description |
|---|
PDAbstractPattern()
Creates a new Pattern dictionary.
|
PDAbstractPattern(COSDictionary resourceDictionary)
Creates a new Pattern dictionary from the given COS dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
static PDAbstractPattern |
create(COSDictionary resourceDictionary)
Create the correct PD Model pattern based on the COS base pattern.
|
COSDictionary |
getCOSObject()
This will get the underlying dictionary.
|
String |
getFilter()
Get the name of the filter.
|
int |
getLength()
This will return the length of the content stream.
|
Matrix |
getMatrix()
Returns the pattern matrix, or the identity matrix is none is available.
|
abstract int |
getPatternType()
This will return the pattern type.
|
String |
getType()
This will return the paint type.
|
boolean |
isInherited() |
void |
setFilter(String filter)
Sets the filter entry of the encryption dictionary.
|
void |
setInherited(boolean inherited) |
void |
setLength(int length)
This will set the length of the content stream.
|
void |
setMatrix(AffineTransform transform)
Sets the optional Matrix entry for the Pattern.
|
void |
setPaintType(int paintType)
This will set the paint type.
|
void |
setPatternType(int patternType)
This will set the pattern type.
|
public static final int TYPE_TILING_PATTERN
public static final int TYPE_SHADING_PATTERN
public PDAbstractPattern()
public PDAbstractPattern(COSDictionary resourceDictionary)
resourceDictionary - The COSDictionary for this pattern resource.public static PDAbstractPattern create(COSDictionary resourceDictionary) throws IOException
resourceDictionary - the COS pattern dictionaryIOException - If we are unable to create the PDPattern object.public COSDictionary getCOSObject()
getCOSObject in interface COSObjectablepublic boolean isInherited()
isInherited in interface PDInheritableResourcepublic void setFilter(String filter)
filter - The filter name.public String getFilter()
public void setLength(int length)
length - The new stream length.public int getLength()
public void setPaintType(int paintType)
paintType - The new paint type.public String getType()
public void setPatternType(int patternType)
patternType - The new pattern type.public abstract int getPatternType()
public Matrix getMatrix()
public void setMatrix(AffineTransform transform)
transform - the transformation matrixpublic void setInherited(boolean inherited)
Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.