com.sun.pdfview.pattern

Class PatternType1

public class PatternType1 extends PDFPattern

A type 1 (tiling) pattern
Field Summary
static intPAINT_COLORED
paint types
static intPAINT_UNCOLORED
static intTILE_CONSTANT
tiling types
static intTILE_FASTER
static intTILE_NODISTORT
Constructor Summary
PatternType1()
Creates a new instance of PatternType1
Method Summary
Rectangle2DgetBBox()
get the bounding box
PDFPaintgetPaint(PDFPaint basePaint)
Create a PDFPaint from this pattern and set of components.
intgetPaintType()
get the paint type
HashMapgetResources()
get the associated resources
intgetTilingType()
get the tiling type
intgetXStep()
get the x step
intgetYStep()
get the y step
protected voidparse(PDFObject patternObj, Map rsrc)
Parse the pattern from the PDFObject Note the resources passed in are ignored...

Field Detail

PAINT_COLORED

public static final int PAINT_COLORED
paint types

PAINT_UNCOLORED

public static final int PAINT_UNCOLORED

TILE_CONSTANT

public static final int TILE_CONSTANT
tiling types

TILE_FASTER

public static final int TILE_FASTER

TILE_NODISTORT

public static final int TILE_NODISTORT

Constructor Detail

PatternType1

public PatternType1()
Creates a new instance of PatternType1

Method Detail

getBBox

public Rectangle2D getBBox()
get the bounding box

getPaint

public PDFPaint getPaint(PDFPaint basePaint)
Create a PDFPaint from this pattern and set of components. This creates a buffered image of this pattern using the given paint, then uses that image to create the correct TexturePaint to use in the PDFPaint.

Parameters: basePaint the base paint to use, or null if not needed

getPaintType

public int getPaintType()
get the paint type

getResources

public HashMap getResources()
get the associated resources

getTilingType

public int getTilingType()
get the tiling type

getXStep

public int getXStep()
get the x step

getYStep

public int getYStep()
get the y step

parse

protected void parse(PDFObject patternObj, Map rsrc)
Parse the pattern from the PDFObject Note the resources passed in are ignored...