Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.gridView
Class GridViewPrinter

java.lang.Object
  |
  +--oracle.dss.dataView.ViewPrinter
        |
        +--oracle.dss.gridView.GridViewPrinter
All Implemented Interfaces:
java.awt.print.Printable
Direct Known Subclasses:
CrosstabPrinter, TablePrinter

public abstract class GridViewPrinter
extends ViewPrinter

Class for printing or previewing tables and crosstabs.


Fields inherited from class oracle.dss.dataView.ViewPrinter
ADJUST_FOR_HEADERS_AND_FOOTERS, ALL_LOGICAL_PAGES, CURRENT_LOGICAL_PAGE, FOOTER_CENTER, FOOTER_LEFT, FOOTER_RIGHT, HEADER_CENTER, HEADER_LEFT, HEADER_RIGHT, HEADERS_AND_FOOTERS_ALL, HEADERS_AND_FOOTERS_NONE, IGNORE_HEADERS_AND_FOOTERS, OCCLUDE_HEADERS_AND_FOOTERS, ORIGINAL_SIZE, SCALE_TO_FIT_FULL_PAGE, SCALE_TO_FIT_PAGE, SCALE_TO_FIT_PAGES, SCALE_TO_ZOOM_FACTOR, SELECTED_LOGICAL_PAGES

 

Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS

 

Constructor Summary
GridViewPrinter(GridView gv)
          Constructor

 

Method Summary
 boolean isRepeatHeaders()
          Indicates whether the column and row headers are displayed on every physical page, when a table or crosstab is printed on multiple physical pages.
 boolean setLogicalPage(int[] hPos)
          Specifies the logical page to print, when you use the printPage method to print.
 void setRepeatHeaders(boolean repeat)
          Specifies whether to display the column and row headers on every physical page, when a table or crosstab is printed on multiple physical pages.

 

Methods inherited from class oracle.dss.dataView.ViewPrinter
endPrint, getBottomMargin, getCustomHeaderAndFooterCallback, getDataview, getFitToNumPagesTall, getFitToNumPagesWide, getFooterMargin, getFooterPainter, getHeaderAndFooterPainter, getHeaderMargin, getHeaderPainter, getHeadersAndFootersUsingCallback, getLeftMargin, getLogicalPage, getMarginAdjustment, getPageFormat, getPrintJob, getPrintScaleType, getPrintZoomFactor, getRangeType, getRightMargin, getScaleFontSize, getSelectedHPos, getSequentialPageNumber, getTokenSubstitution, getTopMargin, getViewDimension, goToFirstPage, goToNextPage, goToPrevPage, hasNextPage, hasPrevPage, isFirstPhysicalPage, isGridlinesVisible, isLastPhysicalPage, isPrintByColumns, prepareFirstPage, prepareNextPage, preparePrevPage, print, print, renderPage, setBottomMargin, setCustomHeaderAndFooterCallback, setFitToNumPagesTall, setFitToNumPagesWide, setFooterMargin, setGridlinesVisible, setHeaderMargin, setHeadersAndFootersUsingCallback, setLeftMargin, setMarginAdjustment, setPageFormat, setPrintByColumns, setPrintJob, setPrintScaleType, setPrintZoomFactor, setRangeType, setRightMargin, setScaleFontSize, setSelectedHPos, setSequentialPageNumber, setTokenSubstitution, setTopMargin, setViewDimension, showPrintJob, startPrint, startPrint

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

GridViewPrinter

public GridViewPrinter(GridView gv)
Constructor
Parameters:
gv - The GridView that this GridViewPrinter will print.
Method Detail

setRepeatHeaders

public void setRepeatHeaders(boolean repeat)
Specifies whether to display the column and row headers on every physical page, when a table or crosstab is printed on multiple physical pages.

When RepeatHeaders is true, then the title, subtitle, footnote, and paging component are also repeated on each page.

When RepeatHeaders is false, then the title, subtitle, and paging component appear only on the first page. The footnote appears only on the last page. The column headers appear only on pages that display the first column, and the row headers appear only on pages that display the first row.

Overrides:
setRepeatHeaders in class ViewPrinter
Parameters:
repeat - true to repeat row and column headers and titles, false to prevent repeating.

isRepeatHeaders

public boolean isRepeatHeaders()
Indicates whether the column and row headers are displayed on every physical page, when a table or crosstab is printed on multiple physical pages.

When RepeatHeaders is true, then the title, subtitle, footnote, and paging component are also repeated on each page.

When RepeatHeaders is false, then the title, subtitle, and paging component appear only on the first page. The footnote appears only on the last page. The column headers appear only on pages that display the first column, and the row headers appear only on pages that display the first row.

Overrides:
isRepeatHeaders in class ViewPrinter
Parameters:
repeat - true if row and column headers and titles appear on each page, false if they do not.

setLogicalPage

public boolean setLogicalPage(int[] hPos)
Specifies the logical page to print, when you use the printPage method to print. Call this method after you call the startPrint method for each view that you print.
Overrides:
setLogicalPage in class ViewPrinter
Parameters:
hPos - The hPos array that identifies the logical page to print.
Returns:
true if the logical page has been set, false if the data in the view is not available to this GridViewPrinter.
See Also:
CrosstabPrinter.printPage(java.awt.Graphics), CrosstabPrinter.printPage(Graphics, DataSubsetRecord), TablePrinter.printPage(Graphics), TablePrinter.printPage(Graphics, DataSubsetRecord), PrintDialog, DataAccess.getFirstHPos(int), DataAccess.getNextHPos(int, int[])

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.