|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.win.swing.LySwingTable._TablePrinter
public class LySwingTable._TablePrinter
This class manages the print processus of the table.
Field Summary |
---|
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
---|---|
LySwingTable._TablePrinter()
Creates a new printer job for this table and invokes its print dialog. |
Method Summary | |
---|---|
void |
getPageInfo(java.awt.Graphics g,
java.awt.print.PageFormat pageFormat)
Computes all the parameters of the printing job. |
double |
getRatio()
Gets the rescaling ratio value. |
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pageFormat,
int pageIndex)
|
java.awt.Dimension |
printFooterCell(java.awt.Graphics g,
int column,
int x,
int y)
Prints a footer cell depending on its dimensions. |
java.awt.Dimension |
printHeaderCell(java.awt.Graphics g,
int column,
int x,
int y)
Prints a header cell depending on its dimensions. |
java.awt.Dimension |
printTableCell(java.awt.Graphics g,
int row,
int column,
int x,
int y)
Prints a table cell depending on its dimensions. |
void |
printTablePart(java.awt.Graphics2D g,
java.awt.print.PageFormat pageFormat,
int hPageNum,
int vPageNum)
Prints a page. |
void |
setRatio(double ratio)
Sets the ratio of the rescaling. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LySwingTable._TablePrinter()
Method Detail |
---|
public void setRatio(double ratio)
ratio
- the value of the ratiogetRatio()
public double getRatio()
setRatio(double)
public java.awt.Dimension printHeaderCell(java.awt.Graphics g, int column, int x, int y)
g
- the target graphicscolumn
- the index of the cellx
- the x coordinate of the left border of the celly
- the x coordinate of the top border of the cell
public java.awt.Dimension printFooterCell(java.awt.Graphics g, int column, int x, int y)
g
- the target graphicscolumn
- the index of the cellx
- the x coordinates of the left border of the celly
- the y coordinates of the top border of the cell
public java.awt.Dimension printTableCell(java.awt.Graphics g, int row, int column, int x, int y)
g
- the target graphicsrow
- the row index of the cellcolumn
- the column index of the cellx
- the x coordinates of the left border of the celly
- the y coordinates of the top border of the cell
public void printTablePart(java.awt.Graphics2D g, java.awt.print.PageFormat pageFormat, int hPageNum, int vPageNum)
g
- the target graphicspageFormat
- the format of this page, this attribute is not used herehPageNum
- the horizontal index of pagevPageNum
- the vertical index of pagepublic int print(java.awt.Graphics g, java.awt.print.PageFormat pageFormat, int pageIndex) throws java.awt.print.PrinterException
print
in interface java.awt.print.Printable
java.awt.print.PrinterException
public void getPageInfo(java.awt.Graphics g, java.awt.print.PageFormat pageFormat)
g
- the target graphicspageFormat
- the format of the page
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |