public class PDFPageBuffer extends PDFBuffer
Modifier and Type | Field and Description |
---|---|
static byte |
OPACITY_FILL_ONLY |
static byte |
OPACITY_STROKE_AND_FILL |
static byte |
OPACITY_STROKE_ONLY |
Constructor and Description |
---|
PDFPageBuffer(PDFPage aPage)
Creates a new PDFWriter.
|
Modifier and Type | Method and Description |
---|---|
PDFPage |
getPage()
Returns the pdf page for this page bufer.
|
void |
grestore()
Restores the last graphics state of the writer.
|
void |
gsave()
Saves the current graphics state of the writer.
|
void |
setFillColor(RMColor aColor)
Sets the given color to be the current fill color.
|
void |
setLineCap(int cap)
Sets the line cap: 0=butt, 1=round, 2=square.
|
void |
setLineJoin(int join)
Sets the line join: 0=miter, 1=round, 2=bevel
|
void |
setOpacity(float anOpacity,
byte coverage)
Sets the opacity to be the following value, for stroke operations, fill operations or both.
|
void |
setShading(RMGradientFill gradient,
RMShape aShape,
RMPath aPath)
Sets the current shading pattern to the gradient specified by the given RMGradientFill
|
void |
setStrokeColor(RMColor aColor)
Sets the given color to be the current stroke color.
|
void |
setStrokeWidth(float aWidth)
Sets the given line width to be the current line width.
|
void |
writeFill(RMFill aFill,
RMPath aPath)
Writes PDF for a plain RMFill.
|
void |
writeGradientFill(RMGradientFill gradient,
RMShape aShape,
RMPath aPath)
Writes pdf for the path filled with a shading pattern defined by the RMGradientFill
|
void |
writeShapeFill(RMShape aShape,
RMFill aFill,
RMPath aPath,
PDFFile pFile)
Writes PDF for an individual shape fill.
|
void |
writeStroke(RMStroke aStroke,
RMPath aPath)
Writes PDF for a plain RMStroke.
|
append, append, append, curveTo, length, lineTo, moveTo, print, print, print, print, print, print, print, println, println, println, println, printPDFString, quadTo, toByteArray, transform, transform
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public static final byte OPACITY_STROKE_ONLY
public static final byte OPACITY_STROKE_AND_FILL
public static final byte OPACITY_FILL_ONLY
public PDFPageBuffer(PDFPage aPage)
public PDFPage getPage()
public void writeShapeFill(RMShape aShape, RMFill aFill, RMPath aPath, PDFFile pFile)
public void writeStroke(RMStroke aStroke, RMPath aPath)
public void setFillColor(RMColor aColor)
public void writeGradientFill(RMGradientFill gradient, RMShape aShape, RMPath aPath)
public void setShading(RMGradientFill gradient, RMShape aShape, RMPath aPath)
public void setStrokeColor(RMColor aColor)
public void setOpacity(float anOpacity, byte coverage)
public void setStrokeWidth(float aWidth)
public void setLineCap(int cap)
public void setLineJoin(int join)
public void gsave()
public void grestore()