public class PDTilingPattern extends PDAbstractPattern implements PDContentStream
| Modifier and Type | Field and Description | 
|---|---|
| static int | PAINT_COLOREDpaint type 1 = colored tiling pattern. | 
| static int | PAINT_UNCOLOREDpaint type 2 = uncolored tiling pattern. | 
| static int | TILING_CONSTANT_SPACINGtiling type 1 = constant spacing. | 
| static int | TILING_CONSTANT_SPACING_FASTER_TILINGtiling type 3 = constant spacing and faster tiling. | 
| static int | TILING_NO_DISTORTIONtiling 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, setPatternTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMatrixpublic 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()
PDAbstractPatterngetPatternType in class PDAbstractPatternpublic void setPaintType(int paintType)
setPaintType in class PDAbstractPatternpaintType - 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
PDContentStreamgetContents in interface PDContentStreamIOException - If the stream could not be readpublic PDResources getResources()
getResources in interface PDContentStreampublic void setResources(PDResources resources)
resources - The new resources for this pattern.public PDRectangle getBBox()
getBBox in interface PDContentStreampublic void setBBox(PDRectangle bbox)
bbox - The new BBox for this Pattern.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.