public class PDFBuffer extends RMObject
Constructor and Description |
---|
PDFBuffer()
Creates an empty pdf buffer.
|
Modifier and Type | Method and Description |
---|---|
void |
append(byte[] buf)
Appends an arbitrary byte array.
|
void |
append(byte[] buf,
int off,
int len)
Appends an arbirary byte array with the given offset and length.
|
void |
append(PDFBuffer aBuffer)
Appends another buffer.
|
void |
curveTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Writes a curveto operator.
|
int |
length()
Returns the current length of the buffer.
|
void |
lineTo(float x,
float y)
Writes a lineto operator.
|
void |
moveTo(float x,
float y)
Writes a moveto operator.
|
void |
print(char c)
Adds a character to the pdf buffer.
|
void |
print(double d)
Adds a double and newline to the pdf buffer.
|
void |
print(float f)
Adds a float and newline to the pdf buffer.
|
void |
print(int anInt)
Adds an int to the pdf buffer.
|
void |
print(java.lang.Object anObj)
Adds an object to the pdf buffer.
|
void |
print(RMRect aRect)
Writes a rect to the pdf buffer.
|
void |
print(java.lang.String aString)
Adds a string to the pdf buffer.
|
void |
println()
Adds a newline to the pdf buffer.
|
void |
println(int anInt)
Adds an int and newline to the pdf buffer.
|
void |
println(RMRect aRect)
Writes a rect and newline to the pdf buffer.
|
void |
println(java.lang.String aString)
Adds a string and newline to the pdf buffer.
|
void |
printPDFString(java.lang.String aString)
Adds a string object ( a string enclosed in parentheses ) to the buffer.
|
void |
quadTo(float lastX,
float lastY,
float x1,
float y1,
float x2,
float y2)
Writes a quadto operator.
|
byte[] |
toByteArray()
Returns the buffer as a byte array.
|
void |
transform(float a,
float b,
float c,
float d,
float tx,
float ty)
Writes a transform to pdf buffer.
|
void |
transform(RMTransform aTransform)
Writes a transform to pdf buffer.
|
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public int length()
public void append(byte[] buf)
public void append(byte[] buf, int off, int len)
public void append(PDFBuffer aBuffer)
public byte[] toByteArray()
public void println()
public void print(java.lang.Object anObj)
public void print(char c)
public void print(java.lang.String aString)
public void printPDFString(java.lang.String aString)
public void println(java.lang.String aString)
public void print(int anInt)
public void println(int anInt)
public void print(float f)
public void print(double d)
public void print(RMRect aRect)
public void println(RMRect aRect)
public void transform(RMTransform aTransform)
public void transform(float a, float b, float c, float d, float tx, float ty)
public void moveTo(float x, float y)
public void lineTo(float x, float y)
public void quadTo(float lastX, float lastY, float x1, float y1, float x2, float y2)
public void curveTo(float x1, float y1, float x2, float y2, float x3, float y3)