COSObjectable
public class PDTilingPatternResources extends PDPatternResources
SHADING_PATTERN, TILING_PATTERN
Constructor | Description |
---|---|
PDTilingPatternResources() |
Default constructor.
|
PDTilingPatternResources(COSDictionary resourceDictionary) |
Prepopulated pattern resources.
|
Modifier and Type | Method | Description |
---|---|---|
PDRectangle |
getBBox() |
An array of four numbers in the form coordinate system (see
below), giving the coordinates of the left, bottom, right, and top edges,
respectively, of the pattern's bounding box.
|
int |
getLength() |
This will return the length of the content stream.
|
Matrix |
getMatrix() |
This will get the optional Matrix of a Pattern.
|
java.awt.Paint |
getPaint(int pageHeight) |
This will return the paint of the pattern.
|
int |
getPaintType() |
This will return the paint type.
|
int |
getPatternType() |
This will return the pattern type.
|
PDResources |
getResources() |
This will get the resources for this pattern.
|
int |
getTilingType() |
This will return the tiling type.
|
int |
getXStep() |
This will return the XStep value.
|
int |
getYStep() |
This will return the YStep value.
|
void |
setBBox(PDRectangle bbox) |
This will set the BBox (bounding box) for this Pattern.
|
void |
setLength(int length) |
This will set the length of the content stream.
|
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 |
setResources(PDResources resources) |
This will set the resources for this pattern.
|
void |
setTilingType(int tilingType) |
This will set the tiling type.
|
void |
setXStep(int xStep) |
This will set the XStep value.
|
void |
setYStep(int yStep) |
This will set the YStep value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, getCOSDictionary, getCOSObject, getFilter, getType, setFilter, setPatternType
public PDTilingPatternResources()
public PDTilingPatternResources(COSDictionary resourceDictionary)
resourceDictionary
- The COSDictionary for this pattern resource.public int getPatternType()
getPatternType
in class PDPatternResources
public void setLength(int length)
setLength
in class PDPatternResources
length
- The new stream length.public int getLength()
getLength
in class PDPatternResources
public void setPaintType(int paintType)
setPaintType
in class PDPatternResources
paintType
- The new paint type.public int getPaintType()
public void setTilingType(int tilingType)
tilingType
- The new tiling type.public int getTilingType()
public void setXStep(int xStep)
xStep
- The new XStep value.public int getXStep()
public void setYStep(int yStep)
yStep
- The new YStep value.public int getYStep()
public PDResources getResources()
public void setResources(PDResources resources)
resources
- The new resources for this pattern.public PDRectangle getBBox()
public void setBBox(PDRectangle bbox)
bbox
- The new BBox for this Pattern.public Matrix getMatrix()
public void setMatrix(java.awt.geom.AffineTransform transform)
transform
- the transformation matrixpublic java.awt.Paint getPaint(int pageHeight) throws java.io.IOException
getPaint
in class PDPatternResources
pageHeight
- the height of the current pagejava.io.IOException