|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.pdfview.colorspace.PDFColorSpace
com.sun.pdfview.colorspace.PatternSpace
public class PatternSpace
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.
| Field Summary |
|---|
| Fields inherited from class com.sun.pdfview.colorspace.PDFColorSpace |
|---|
COLORSPACE_CMYK, COLORSPACE_GRAY, COLORSPACE_PATTERN, COLORSPACE_RGB |
| Constructor Summary | |
|---|---|
PatternSpace()
|
|
PatternSpace(PDFColorSpace base)
Create a pattern space with the given color space as a base |
|
| Method Summary | |
|---|---|
PDFColorSpace |
getBase()
Get the base color space |
int |
getNumComponents()
Get the number of components we want |
PDFPaint |
getPaint(float[] components)
get the PDFPaint representing the color described by the given color components |
PDFPaint |
getPaint(PDFObject patternObj,
float[] components,
java.util.Map resources)
Get the paint representing a pattern, optionally with the given base paint. |
| Methods inherited from class com.sun.pdfview.colorspace.PDFColorSpace |
|---|
getColorSpace, getColorSpace, getColorSpace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PatternSpace()
public PatternSpace(PDFColorSpace base)
| Method Detail |
|---|
public PDFColorSpace getBase()
public int getNumComponents()
getNumComponents in class PDFColorSpacepublic PDFPaint getPaint(float[] components)
getPaint in class PDFColorSpacecomponents - the color components corresponding to the given
colorspace
public PDFPaint getPaint(PDFObject patternObj,
float[] components,
java.util.Map resources)
throws java.io.IOException
patternObj - the pattern to rendercomponents - the components of the base paint
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||