|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.higrid.PrintGrid | +--com.klg.jclass.higrid.PrintGrid12
Controls printing of pages with header and footer. Margin insets are for the grid area only. Header and footer are part of the margin area.
Field Summary | |
protected int |
columnPageIndex
|
protected int |
columnPages
|
protected int |
currentPage
|
protected PageFormat |
currentPageFormat
|
static int |
DEFAULT_PAGE_MARGIN_IN_72TH_INCHES
|
protected Insets |
defaultMargin
|
protected com.klg.jclass.higrid.HiGrid |
grid
|
protected Insets |
margin
|
protected static int |
MARGIN_ADJUSTMENT_IN_72TH_INCHES
|
protected int |
printFormat
|
protected com.klg.jclass.higrid.RowTree |
printRowTree
|
protected Vector |
rowNodeList
|
protected int |
rowPageIndex
|
protected int |
rowPages
|
protected int |
totalNumPages
|
Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
Fields inherited from interface java.awt.print.Pageable |
UNKNOWN_NUMBER_OF_PAGES |
Constructor Summary | |
PrintGrid12(com.klg.jclass.higrid.HiGrid grid)
Constructor. |
Method Summary | |
protected void |
disposePrintTimeRowTree()
Cleanup the print time row tree. |
protected void |
doPrintEnd(Graphics graphicContext,
PageFormat pageFormat,
int top)
Notifies print listeners that the end of the last page is being printed. |
protected void |
doPrintPageFooter(Graphics graphicContext,
PageFormat pageFormat)
Notifies print listeners that the page footer is being printed. |
protected void |
doPrintPageHeader(Graphics graphicContext,
PageFormat pageFormat)
Notifies print listeners that the page header is being printed. |
int |
getColumnPageIndex()
Gets the column page index value. |
int |
getCurrentPageIndex()
Gets the current page index. |
Insets |
getDefaultMargin()
Gets the default margin. |
Insets |
getMargin()
Gets the margin insets. |
int |
getNumberOfPages()
Gets the number of pages in the set. |
PageFormat |
getPageFormat()
Gets the current pageFormat. |
PageFormat |
getPageFormat(int pageIndex)
Always returns the PageFormat of the page specified by
pageIndex . |
int |
getPageHeight()
Gets the height of a page. |
int |
getPageWidth()
Gets the width of a page. |
Printable |
getPrintable(int pageIndex)
Gets the Printable instance responsible for
rendering the page specified by pageIndex . |
int |
getPrintableHeight()
Gets the printable height of a page. |
int |
getPrintableWidth()
Gets the printable width of a page. |
protected Point |
getPrintOffset(PageFormat pageFormat)
Gets the top/left corner of the printable area on the page. |
protected com.klg.jclass.higrid.RowTree |
getPrintTimeRowTree()
Setup the print time row tree. |
int |
getRowPageIndex()
Gets the row page index value. |
int |
getTotalNumPages()
Gets the total number of pages to print. |
void |
initialize(PageFormat pageFormat)
Computes the total number of pages for this job. |
int |
print(Graphics gc,
PageFormat pageFormat,
int pageIndex)
Print/Paint the indicated page. |
void |
printPageFooter(com.klg.jclass.higrid.HiGridPrintEvent event)
Prints default footer. |
void |
setMargin(Insets margin)
Sets the page margins. |
void |
setPageFormat(PageFormat format)
Sets the current pageFormat. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_PAGE_MARGIN_IN_72TH_INCHES
protected static final int MARGIN_ADJUSTMENT_IN_72TH_INCHES
protected transient com.klg.jclass.higrid.HiGrid grid
protected transient PageFormat currentPageFormat
protected transient Insets defaultMargin
protected transient Insets margin
protected transient int totalNumPages
protected transient int currentPage
protected transient int rowPageIndex
protected transient int columnPageIndex
protected transient int printFormat
protected transient com.klg.jclass.higrid.RowTree printRowTree
protected transient Vector rowNodeList
protected transient int rowPages
protected transient int columnPages
Constructor Detail |
public PrintGrid12(com.klg.jclass.higrid.HiGrid grid)
Method Detail |
public void initialize(PageFormat pageFormat)
pageFormat
- describes the page orientation for all pages to be printed.protected void disposePrintTimeRowTree()
protected com.klg.jclass.higrid.RowTree getPrintTimeRowTree()
public int getPageWidth()
public int getPageHeight()
public Insets getMargin()
public void setMargin(Insets margin)
margin
- the new margin.public Insets getDefaultMargin()
public PageFormat getPageFormat()
public void setPageFormat(PageFormat format)
format
- the new pageFormat.public int getPrintableHeight()
public int getPrintableWidth()
protected Point getPrintOffset(PageFormat pageFormat)
public int getRowPageIndex()
public int getColumnPageIndex()
public int getCurrentPageIndex()
public int getTotalNumPages()
public int print(Graphics gc, PageFormat pageFormat, int pageIndex)
print
in interface Printable
gc
- the context into which the page is drawn.pageFormat
- - the size and orientation of the page being drawnpageIndex
- - the zero based index of the page to be drawnpublic int getNumberOfPages()
getNumberOfPages
in interface Pageable
Pageable
.public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException
PageFormat
of the page specified by
pageIndex
.
getPageFormat
in interface Pageable
pageIndex
- ignored
PageFormat
describing the size and
orientation.
IndexOutOfBoundsException
- the Pageable
does not contain the requested
page.public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException
Printable
instance responsible for
rendering the page specified by pageIndex
.
getPrintable
in interface Pageable
pageIndex
- ignored
Printable
that renders the page.
IndexOutOfBoundsException
- the Pageable
does not contain the requested
page.protected void doPrintPageHeader(Graphics graphicContext, PageFormat pageFormat)
graphicContext
- the context into which the page is drawn.pageFormat
- - the size and orientation of the page being drawnprotected void doPrintPageFooter(Graphics graphicContext, PageFormat pageFormat)
graphicContext
- the context into which the page is drawn.pageFormat
- - the size and orientation of the page being drawnprotected void doPrintEnd(Graphics graphicContext, PageFormat pageFormat, int top)
graphicContext
- the context into which the page is drawn.pageFormat
- - the size and orientation of the page being drawnpublic void printPageFooter(com.klg.jclass.higrid.HiGridPrintEvent event)
event
- the print event sent when rendering of the footer is needed.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |