public class PDFRectangle extends java.lang.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(java.io.OutputStream out,
java.io.Writer writer)
Writes a "direct object" (inline object) representation to the stream.
|
java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public void outputInline(java.io.OutputStream out, java.io.Writer writer) throws java.io.IOException
flush()
is called before any direct calls to out
are made.outputInline
in interface PDFWritable
out
- the OutputStream (for binary content)writer
- the Writer (for text content, wraps the above OutputStream)java.io.IOException
- if an I/O error occursCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.