com.sun.pdfview.colorspace

Class PatternSpace

public class PatternSpace extends PDFColorSpace

A PatternSpace fills with a pattern, the name of which is specified in the call to getPaint(). This pattern is read from the resources of the current page. The pattern space may also have a base color space which the pattern is defined in.
Constructor Summary
PatternSpace()
PatternSpace(PDFColorSpace base)
Create a pattern space with the given color space as a base
Method Summary
PDFColorSpacegetBase()
Get the base color space
PDFPaintgetPaint(PDFObject patternObj, float[] components, Map resources)
Get the paint representing a pattern, optionally with the given base paint.

Constructor Detail

PatternSpace

public PatternSpace()

PatternSpace

public PatternSpace(PDFColorSpace base)
Create a pattern space with the given color space as a base

Method Detail

getBase

public PDFColorSpace getBase()
Get the base color space

getPaint

public PDFPaint getPaint(PDFObject patternObj, float[] components, Map resources)
Get the paint representing a pattern, optionally with the given base paint.

Parameters: patternObj the pattern to render components the components of the base paint