COSObjectable
PDShadingPattern
, PDTilingPattern
public abstract class PDAbstractPattern extends java.lang.Object implements COSObjectable
Modifier and Type | Field | Description |
---|---|---|
static int |
TYPE_SHADING_PATTERN |
Shading pattern type.
|
static int |
TYPE_TILING_PATTERN |
Tiling pattern type.
|
Constructor | Description |
---|---|
PDAbstractPattern() |
Creates a new Pattern dictionary.
|
PDAbstractPattern(COSDictionary dictionary) |
Creates a new Pattern dictionary from the given COS dictionary.
|
Modifier and Type | Method | Description |
---|---|---|
static PDAbstractPattern |
create(COSDictionary dictionary) |
Create the correct PD Model pattern based on the COS base pattern.
|
COSDictionary |
getCOSObject() |
This will get the underlying dictionary.
|
Matrix |
getMatrix() |
Returns the pattern matrix, or the identity matrix is none is available.
|
abstract int |
getPatternType() |
This will return the pattern type.
|
java.lang.String |
getType() |
This will return the paint type.
|
void |
setMatrix(java.awt.geom.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 dictionary)
dictionary
- The COSDictionary for this pattern.public static PDAbstractPattern create(COSDictionary dictionary) throws java.io.IOException
dictionary
- the COS pattern dictionaryjava.io.IOException
- If we are unable to create the PDPattern object.public COSDictionary getCOSObject()
getCOSObject
in interface COSObjectable
public void setPaintType(int paintType)
paintType
- The new paint type.public java.lang.String getType()
public void setPatternType(int patternType)
patternType
- The new pattern type.public abstract int getPatternType()
public Matrix getMatrix()
public void setMatrix(java.awt.geom.AffineTransform transform)
transform
- the transformation matrixCopyright © 2002–2018. All rights reserved.