public class PDFRectangle extends Object implements PDFWritable
| Modifier and Type | Field and Description |
|---|---|
protected int |
llx
lower left x coordinate
|
protected int |
lly
lower left y coordinate
|
protected int |
urx
upper right x coordinate
|
protected int |
ury
upper right y coordinate
|
| Constructor and Description |
|---|
PDFRectangle(int[] array)
create a rectangle giving an array of four values
|
PDFRectangle(int llx,
int lly,
int urx,
int ury)
create a rectangle giving the four separate values
|
| Modifier and Type | Method and Description |
|---|---|
void |
outputInline(OutputStream out,
StringBuilder textBuffer)
Writes a "direct object" (inline object) representation to the stream.
|
String |
toString() |
protected int llx
protected int lly
protected int urx
protected int ury
public PDFRectangle(int llx,
int lly,
int urx,
int ury)
llx - lower left x coordinatelly - lower left y coordinateurx - upper right x coordinateury - upper right y coordinatepublic PDFRectangle(int[] array)
array - values in the order llx, lly, urx, urypublic void outputInline(OutputStream out, StringBuilder textBuffer) throws IOException
IMPORTANT: If you need to write out binary output, call
PDFDocument.flushTextBuffer(StringBuilder, OutputStream) before writing any content
to the OutputStream!
outputInline in interface PDFWritableout - the OutputStream (for binary content)textBuffer - the text buffer for text contentIOException - if an I/O error occursCopyright © 2023 Apache Software Foundation. All rights reserved.