|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFPathPaint
org.apache.fop.pdf.PDFPattern
class representing a PDF Function. PDF Functions represent parameterized mathematical formulas and sampled representations with arbitrary resolution. Functions are used in two areas: device-dependent rasterization information for halftoning and transfer functions, and color specification for smooth shading (a PDF 1.3 feature). All PDF Functions have a FunctionType (0,2,3, or 4), a Domain, and a Range.
Field Summary | |
protected List |
bBox
List of Doubles representing the Bounding box rectangle |
protected StringBuffer |
extGState
String representing the extended Graphics state. |
protected List |
matrix
List of Doubles representing the Transformation matrix. |
protected int |
paintType
1 for colored pattern, 2 for uncolored |
protected StringBuffer |
patternDataStream
The stream of a pattern |
protected String |
patternName
The name of the pattern such as "Pa1" or "Pattern1" |
protected int |
patternType
Either one (1) for tiling, or two (2) for shading. |
protected PDFResources |
resources
The resources associated with this pattern |
protected PDFShading |
shading
The Shading object comprising the Type 2 pattern |
protected int |
tilingType
1 for constant spacing, 2 for no distortion, and 3 for fast rendering |
protected double |
xStep
Horizontal spacing |
protected List |
xUID
List of Integers represetning the Extended unique Identifier |
protected double |
yStep
Vertical spacing |
Fields inherited from class org.apache.fop.pdf.PDFPathPaint |
colorSpace |
Fields inherited from class org.apache.fop.pdf.PDFObject |
generation, number |
Constructor Summary | |
PDFPattern(int theNumber,
String thePatternName,
int thePatternType,
PDFShading theShading,
List theXUID,
StringBuffer theExtGState,
List theMatrix)
Create a type 2 pattern (smooth shading) |
|
PDFPattern(int theNumber,
String thePatternName,
PDFResources theResources,
int thePatternType,
int thePaintType,
int theTilingType,
List theBBox,
double theXStep,
double theYStep,
List theMatrix,
List theXUID,
StringBuffer thePatternDataStream)
Create a tiling pattern (type 1). |
Method Summary | |
String |
getColorSpaceOut(boolean fillNotStroke)
|
String |
getName()
Get the name of the pattern |
byte[] |
toPDF()
represent as PDF. |
Methods inherited from class org.apache.fop.pdf.PDFPathPaint |
getColorSpace, setColorSpace |
Methods inherited from class org.apache.fop.pdf.PDFObject |
getNumber, output, referencePDF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected PDFResources resources
protected int patternType
protected String patternName
protected int paintType
protected int tilingType
protected List bBox
protected double xStep
protected double yStep
protected PDFShading shading
protected List xUID
protected StringBuffer extGState
protected List matrix
protected StringBuffer patternDataStream
Constructor Detail |
public PDFPattern(int theNumber, String thePatternName, PDFResources theResources, int thePatternType, int thePaintType, int theTilingType, List theBBox, double theXStep, double theYStep, List theMatrix, List theXUID, StringBuffer thePatternDataStream)
theNumber
- The object number of this PDF ObjectthePatternName
- The name of the pattern such as "Pa1" or "Pattern1"theResources
- the resources associated with this patternthePatternType
- the type of pattern, which is 1 for tiling.thePaintType
- 1 or 2, colored or uncolored.theTilingType
- 1, 2, or 3, constant spacing, no distortion, or faster tilingtheBBox
- List of Doubles: The pattern cell bounding boxtheXStep
- horizontal spacingtheYStep
- vertical spacingtheMatrix
- Optional List of Doubles transformation matrixtheXUID
- Optional List of Integers that uniquely identify the patternthePatternDataStream
- The stream of pattern data to be tiled.public PDFPattern(int theNumber, String thePatternName, int thePatternType, PDFShading theShading, List theXUID, StringBuffer theExtGState, List theMatrix)
theNumber
- the object number of this PDF objectthePatternName
- the name of the patternthePatternType
- the type of the pattern, which is 2, smooth shadingtheShading
- the PDF Shading object that comprises this patterntheXUID
- optional:the extended unique Identifier if used.theExtGState
- optional: the extended graphics state, if used.theMatrix
- Optional:List of Doubles that specify the matrix.Method Detail |
public String getName()
public String getColorSpaceOut(boolean fillNotStroke)
getColorSpaceOut
in class PDFPathPaint
public byte[] toPDF()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |