public class IlvPrintableRectangle extends IlvPrintableShape
NO_SUCH_PAGE, PAGE_EXISTS
Constructor and Description |
---|
IlvPrintableRectangle(IlvUnit.Rectangle area)
Creates a
IlvPrintableRectangle . |
Modifier and Type | Method and Description |
---|---|
IlvUnit.Rectangle |
getPrintableArea()
Returns the area, in page coordinates, defining where the rectangle
should be printed.
|
int |
print(Graphics dst,
PageFormat format,
int pageIndex)
Implements the
java.awt.print.Printable.print method. |
void |
setPrintableArea(IlvUnit.Rectangle area)
Sets the area, in page coordinates, defining where the rectangle
should be printed.
|
getColor, getStroke, setColor, setStroke
getPage
public IlvPrintableRectangle(IlvUnit.Rectangle area)
IlvPrintableRectangle
.area
- The area on the page where the object should be printed.public IlvUnit.Rectangle getPrintableArea()
setPrintableArea(ilog.views.util.print.IlvUnit.Rectangle)
public void setPrintableArea(IlvUnit.Rectangle area)
area
- The print area, defined in page coordinates.getPrintableArea()
public int print(Graphics dst, PageFormat format, int pageIndex) throws PrinterException
java.awt.print.Printable.print
method. This method is called
to print the object.dst
- The output device, which must be a Graphics2D
object.format
- The format of the page.pageIndex
- The index of the page.PrinterException
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.