org.apache.fop.pdf

Class PDFRectangle

Implemented Interfaces:
PDFWritable

public class PDFRectangle
extends java.lang.Object
implements PDFWritable

class representing a rectangle Rectangles are specified on page 183 of the PDF 1.3 spec.

Field Summary

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 Summary

PDFRectangle(int llx, int lly, int urx, int ury)
create a rectangle giving the four separate values
PDFRectangle(int[] array)
create a rectangle giving an array of four values

Method Summary

void
outputInline(OutputStream out, Writer writer)
String
toString()

Field Details

llx

protected int llx
lower left x coordinate

lly

protected int lly
lower left y coordinate

urx

protected int urx
upper right x coordinate

ury

protected int ury
upper right y coordinate

Constructor Details

PDFRectangle

public PDFRectangle(int llx,
                    int lly,
                    int urx,
                    int ury)
create a rectangle giving the four separate values
Parameters:
llx - lower left x coordinate
lly - lower left y coordinate
urx - upper right x coordinate
ury - upper right y coordinate

PDFRectangle

public PDFRectangle(int[] array)
create a rectangle giving an array of four values
Parameters:
array - values in the order llx, lly, urx, ury

Method Details

outputInline

public void outputInline(OutputStream out,
                         Writer writer)
            throws IOException
Specified by:
outputInline in interface PDFWritable

toString

public String toString()

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.