public class PDTilingPattern extends PDAbstractPattern implements PDContentStream
Modifier and Type | Field and Description |
---|---|
static int |
PAINT_COLORED
paint type 1 = colored tiling pattern.
|
static int |
PAINT_UNCOLORED
paint type 2 = uncolored tiling pattern.
|
static int |
TILING_CONSTANT_SPACING
tiling type 1 = constant spacing.
|
static int |
TILING_CONSTANT_SPACING_FASTER_TILING
tiling type 3 = constant spacing and faster tiling.
|
static int |
TILING_NO_DISTORTION
tiling type 2 = no distortion.
|
TYPE_SHADING_PATTERN, TYPE_TILING_PATTERN
Constructor and Description |
---|
PDTilingPattern()
Creates a new tiling pattern.
|
PDTilingPattern(COSDictionary resourceDictionary)
Creates a new tiling pattern from the given COS dictionary.
|
Modifier and Type | Method and 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.
|
InputStream |
getContents()
Returns this stream's content, if any.
|
PDStream |
getContentStream() |
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.
|
float |
getXStep()
This will return the XStep value.
|
float |
getYStep()
This will return the YStep value.
|
void |
setBBox(PDRectangle bbox)
This will set the BBox (bounding box) for this 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(float xStep)
This will set the XStep value.
|
void |
setYStep(float yStep)
This will set the YStep value.
|
create, getCOSObject, getMatrix, getType, setMatrix, setPatternType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMatrix
public static final int PAINT_COLORED
public static final int PAINT_UNCOLORED
public static final int TILING_CONSTANT_SPACING
public static final int TILING_NO_DISTORTION
public static final int TILING_CONSTANT_SPACING_FASTER_TILING
public PDTilingPattern()
public PDTilingPattern(COSDictionary resourceDictionary)
resourceDictionary
- The COSDictionary for this pattern resource.public int getPatternType()
PDAbstractPattern
getPatternType
in class PDAbstractPattern
public void setPaintType(int paintType)
setPaintType
in class PDAbstractPattern
paintType
- The new paint type.public int getPaintType()
public void setTilingType(int tilingType)
tilingType
- The new tiling type.public int getTilingType()
public void setXStep(float xStep)
xStep
- The new XStep value.public float getXStep()
public void setYStep(float yStep)
yStep
- The new YStep value.public float getYStep()
public PDStream getContentStream()
public InputStream getContents() throws IOException
PDContentStream
getContents
in interface PDContentStream
IOException
- If the stream could not be readpublic PDResources getResources()
getResources
in interface PDContentStream
public void setResources(PDResources resources)
resources
- The new resources for this pattern.public PDRectangle getBBox()
getBBox
in interface PDContentStream
public void setBBox(PDRectangle bbox)
bbox
- The new BBox for this Pattern.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.