| 
 | Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1.4.0) E12063-05 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.dss.dataView.ViewPrinter
public abstract class ViewPrinter
Base class for printing or previewing data-aware controls.
 If you use the PrinterDialog class in
 oracle.dss.dataView.gui, then you do not need to call any
 of the methods in this class.
 Instead, you need only to create an instance of the appropriate subclass
 of this class and pass it in the PrinterDialog constructor.
 The ViewPrinter takes responsibility for the printer job.
 It takes ownership of the entire page that is printed, and it manages
 pagination and other printing tasks.
 
 If you create your own UI, then you call methods of a ViewPrinter
 subclass.
 
There are three different methods for printing:
print -- use when you are printing to a full page and you
 are printing a single logical page or all logical pages of a view.
 The view printer gets the page size from the printer job.
 You set properties to specify margins.
 The view printer respects margin settings.
 You call setRangeType to specify how much of the view
 to print.renderPage -- use when you want to print a view and
 any other object on the same printed page, or when you want more control
 over the logical pages that are printed.
 For example, use renderPage if you have a crosstab and a graph
 that display the same data, and you want to print the first logical page of
 the crosstab, then the first logical page of the graph, then the next
 logical page of the crosstab, and so on.
 renderPage if you provide your own UI for
 print preview.
 setRangeType to specify how much of the view to print.
 You call setViewDimension to specify the area into
 which the view should be printed.
 The view printer respects margin settings.printPage -- use when you want to print part of a
 table or crosstab, but you do not want to start printing at the first
 row and column of the view.
 You can also use printPage to print a graph.
 setLogicalPage to specify the page to print.
 You call setViewDimension to specify the area into which
 the view should be printed.
 The view printer does not respect margin settings.
print(boolean), 
renderPage(java.awt.Graphics), 
GraphPrinter.printPage(Graphics), 
oracle.dss.crosstab.CrosstabPrinter#printPage, 
oracle.dss.crosstab.CrosstabPrinter#printPage(Graphics, DataSubsetRecord), 
oracle.dss.table.TablePrinter#printPage(Graphics), 
oracle.dss.table.TablePrinter#printPage(Graphics, DataSubsetRecord), 
oracle.dss.dataView.gui.PrintDialog| Nested Class Summary | |
|---|---|
|  class | ViewPrinter.HPosWrapper | 
| Field Summary | |
|---|---|
| protected  CustomHeaderAndFooterCallback | _callback | 
| static int | ABOVE_FOOTERPosition for line. | 
| static int | ADJUST_FOR_HEADERS_AND_FOOTERSMargin adjustment: When headers or footers do not fit in the specified margin, the margins are enlarged so that the headers or footers fit. | 
| static int | ALL_LOGICAL_PAGESRange type: Print all the logical pages in the view. | 
| static int | BELOW_HEADERPosition for line. | 
| static int | BOTTOM_FORMATTED_TEXT_AREAID for dataView bottom FormattedTextArea. | 
| protected  int | bottomFTAHeight | 
| protected  int | bottomMargin | 
| protected  int | callbackMask | 
| protected  HeaderAndFooterPainter | CenterFooter | 
| protected  HeaderAndFooterPainter | CenterHeader | 
| static int | CURRENT_LOGICAL_PAGERange type: Print only the current logical page of the view. | 
| protected  boolean | currentLogicalPage | 
| protected  ViewPrinter.HPosWrapper | currLogPage | 
| protected static java.lang.String | dataUnavailableMsg | 
| protected  Dataview | dataView | 
| protected  java.awt.Dimension | dimension | 
| protected  int | fitToNumPagesTall | 
| protected  int | fitToNumPagesWide | 
| static int | FOOTER_CENTERThe center footer. | 
| static int | FOOTER_LEFTThe left footer. | 
| static int | FOOTER_RIGHTThe right footer. | 
| protected  int | footerHeight | 
| protected  Footnote | footnote | 
| static int | FOOTNOTEID for dataView footnote. | 
| protected  int | footnoteHeight | 
| static int | GRIDVIEW_COLUMN_HEADERID for GridView column header. | 
| static int | GRIDVIEW_ROW_HEADERID for GridView row header. | 
| static int | HEADER_CENTERThe center header. | 
| static int | HEADER_LEFTThe left header. | 
| static int | HEADER_RIGHTThe right header. | 
| protected  int | headerHeight | 
| static int | HEADERS_AND_FOOTERS_ALLAll headers and footers. | 
| static int | HEADERS_AND_FOOTERS_NONENo headers or footers. | 
| static int | IGNORE_HEADERS_AND_FOOTERSMargin adjustment: When headers or footers do not fit in the specified margin, they are printed over the view in the printable area. | 
| protected  HeaderAndFooterPainter | LeftFooter | 
| protected  HeaderAndFooterPainter | LeftHeader | 
| protected  int | leftMargin | 
| protected  int[] | logicalPage | 
| protected  int | m_aboveFooterWidth | 
| protected  int | m_belowHeaderWidth | 
| protected  FormattedText | m_bottomFormattedText | 
| protected  boolean | m_bPreviewMode | 
| protected  int | m_graphPrintScaleType | 
| protected  boolean | m_gridlinesVisible | 
| protected  int | m_gridViewPrintScaleType | 
| protected static java.lang.String | m_insuffSpace | 
| protected  java.awt.print.PageFormat | m_pageFormat | 
| protected  int | m_repeatComponents | 
| protected  java.util.Vector | m_selectedHPos | 
| protected  int | m_seqPageNumber | 
| protected  TokenSubstitution | m_tokenSubstitution | 
| protected  FormattedText | m_topFormattedText | 
| protected  int | MarginAdjustment | 
| static int | MIN_PRINT_ZOOM_FACTOR | 
| static int | OCCLUDE_HEADERS_AND_FOOTERSMargin adjustment: When headers or footers do not fit in the specified margin, the margins are unchanged. | 
| protected  java.awt.Dimension | oldBottomFTASize | 
| protected  java.awt.Dimension | oldFootnoteSize | 
| protected  java.awt.Dimension | oldSubtitleSize | 
| protected  java.awt.Dimension | oldTitleSize | 
| protected  java.awt.Dimension | oldTopFTASize | 
| static int | ORIGINAL_SIZEPrint scale type: Print the view at its current size. | 
| static int | PAGE_HEADERID for page header. | 
| protected static int | PAGING_CONTROL_GAP | 
| protected  java.awt.Rectangle | pagingControlBounds | 
| protected  int | paperHeight | 
| protected  int | paperWidth | 
| protected  int | pIndex | 
| protected  int | printableHeight | 
| protected  int | printableWidth | 
| protected  boolean | printByColumns | 
| protected  int | printZoomFactor | 
| protected  int | rangeType | 
| protected  PaginationRecord | record | 
| protected  int | repeatAdornHeight | 
| protected  boolean | resize | 
| protected  HeaderAndFooterPainter | RightFooter | 
| protected  HeaderAndFooterPainter | RightHeader | 
| protected  int | rightMargin | 
| static int | SCALE_TO_FIT_FULL_PAGEPrint scale type: Print the graph so that it fills the entire physical page. | 
| static int | SCALE_TO_FIT_PAGEPrint scale type: Print the graph so that it fills the physical page, keeping its on-screen proportions. | 
| static int | SCALE_TO_FIT_PAGESPrint scale type: Scale the view to fit on the specified numbers of pages. | 
| static int | SCALE_TO_ZOOM_FACTORPrint scale type: Scale the view according to the PrintZoomFactorproperty of thisViewPrinter. | 
| static int | SELECTED_LOGICAL_PAGESRange type: Print selected logical pages in the view. | 
| protected  DataSubsetRecord | subSetRecord | 
| protected  Subtitle | subtitle | 
| static int | SUBTITLEID for dataView subtitle. | 
| protected  int | subtitleHeight | 
| static int | TEXT_COMPONENTS_ALLFont scale property: Print the graph so that it scales the original font sizes of all text components according to on-screen proportions. | 
| static int | TEXT_COMPONENTS_NONEFont scale property: Print the graph so that it preserves the original font sizes of all text components. | 
| protected  Title | title | 
| static int | TITLEID for dataView title. | 
| protected  int | titleHeight | 
| static int | TOP_FORMATTED_TEXT_AREAID for dataView top FormattedTextArea. | 
| protected  int | topFTAHeight | 
| protected  int | topMargin | 
| protected  int | totalAdornHeight | 
| static int | UNIT_CM | 
| static int | UNIT_INCHES | 
| static int | UNIT_PIXELS | 
| protected  int | units | 
| protected  java.awt.Dimension | viewDim | 
| protected  ViewPrinter.HPosWrapper | viewLogPage | 
| protected  int | viewLogPageNum | 
| Fields inherited from interface java.awt.print.Printable | 
|---|
| NO_SUCH_PAGE, PAGE_EXISTS | 
| Fields inherited from interface oracle.dss.dataView.UIViewPrinter | 
|---|
| CROSSTAB_PRINTER, GRAPH_PRINTER, TABLE_PRINTER, WORKSHEET_WITH_CROSSTAB_AND_GRAPH_PRINTER, WORKSHEET_WITH_CROSSTAB_PRINTER, WORKSHEET_WITH_GRAPH_PRINTER, WORKSHEET_WITH_TABLE_AND_GRAPH_PRINTER, WORKSHEET_WITH_TABLE_PRINTER | 
| Constructor Summary | |
|---|---|
| ViewPrinter(Dataview dv)Constructor. | |
| Method Summary | |
|---|---|
| protected  void | adjustMargins() | 
| protected  void | calcAdornmentsDimension(int printableWidth) | 
|  void | calcHeaderAndFooterHeights(java.awt.Graphics g) | 
| protected  void | calcMargins(java.awt.Graphics g) | 
| protected  boolean | changePageEdgeCurrentHPos(int[] hPos,
                          int maxLayerSpecified) | 
| protected  boolean | checkDataSourceLogPage() | 
| protected  boolean | checkForNoData() | 
| abstract  void | endPrint()Sets the view back to its original state. | 
| protected  int | fetchRowBlock(int firstRow,
              int lastRow) | 
|  int | getBottomMargin()Retrieves the height of the bottom margin of printed physical pages. | 
|  CustomHeaderAndFooterCallback | getCustomHeaderAndFooterCallback()Retrieves the callback that this ViewPrinteruses for
 displaying custom headers and footers. | 
|  Dataview | getDataview()Retrieves the Dataviewthat thisViewPrinterprints. | 
|  java.awt.Cursor | getDefaultCursor() | 
|  int | getFitToNumPagesTall()Retrieves the number of physical pages on which a printed view is required to fit vertically. | 
|  int | getFitToNumPagesWide()Retrieves the number of physical pages on which a printed view is required to fit horizontally. | 
|  int | getFooterMargin()Retrieves the height of the footer margin. | 
|  HeaderAndFooterPainter | getFooterPainter()Deprecated. As of 1.6.0.9, replaced by getHeaderAndFooterPainter(int) | 
|  int | getGraphPrintScaleType()Retrieves information about how the Graph is scaled for printing. | 
|  int | getGridViewPrintScaleType()Retrieves information about how the GridView is scaled for printing. | 
|  HeaderAndFooterPainter | getHeaderAndFooterPainter(int headerOrFooterID)Retrieves a header or footer painter. | 
|  int | getHeaderMargin()Retrieves the height of the header margin. | 
|  HeaderAndFooterPainter | getHeaderPainter()Deprecated. As of 1.6.0.9, replaced by getHeaderAndFooterPainter(int) | 
|  int | getHeadersAndFootersUsingCallback()Retrieves the headers and footers that use a custom callback. | 
|  int | getLeftMargin()Retrieves the left margin of printed physical pages. | 
|  int | getLineWidth(int position)Retrieves the width of the line printed at the given position. | 
|  java.util.Locale | getLocale()Retrives the locale of the View to be printed by this UIViewPrinter | 
|  int[] | getLogicalPage()Retrieves the logical page to be printed, when you use the printPagemethod to print. | 
|  ViewPrinter.HPosWrapper | getLogicalPageInUse() | 
|  int | getMarginAdjustment()Retrieves the setting for how the margin responds when a header or footer does not fit. | 
|  java.awt.print.PageFormat | getPageFormat()Retrieves the PageFormatobject that specifies the paper
 size for thisViewPrinter. | 
|  java.awt.PrintJob | getPrintJob()Deprecated. As of 3.2.0.16, replaced by 2D printing API | 
|  int | getPrintScaleType()Deprecated. As of 3.2.0.1, replaced by getGraphPrintScaleType(),getGridViewPrintScaleType() | 
|  int | getPrintZoomFactor()Retrieves the zoom factor for printing. | 
|  int | getRangeType()Retrieves information about how much of the view will be printed. | 
|  int | getRightMargin()Retrieves the width of the right margin of printed physical pages. | 
| abstract  int | getScaleFontSize()Retrieves the text components to resize when a graph is scaled to a different size for printing. | 
|  java.util.Vector | getSelectedHPos()Retrieves the hierarchical addresses of the logical pages to print, when RangeTypeis set toSELECTED_LOGICAL_PAGES. | 
|  int | getSequentialPageNumber()Retrieves the current physical page number that this ViewPrinterhas printed. | 
|  TokenSubstitution | getTokenSubstitution()Retrieves the handler for token substitution in this ViewPrinter. | 
|  int | getTopMargin()Retrieves the height of the top margin of printed physical pages. | 
|  int | getUnits()Retrieves the unit value: UNIT_PIXEL, UNIT_INCHES, UNIT_CM. | 
|  java.awt.Dimension | getViewDimension()Retrieves the space allowed for printing a view, when you assume responsibility for a print job. | 
|  java.awt.Cursor | getWaitCursor() | 
| abstract  boolean | goToFirstPage()Deprecated. As of 1.6.0.9, replaced by prepareFirstPage(Graphics) | 
|  boolean | goToFirstPage(java.awt.Graphics g) | 
|  boolean | goToLastPage(java.awt.Graphics g) | 
| abstract  boolean | goToNextPage()Deprecated. As of 1.6.0.9, replaced by prepareNextPage(Graphics) | 
| abstract  boolean | goToPrevPage()Deprecated. As of 1.6.0.9, replaced by preparePrevPage(Graphics) | 
| abstract  boolean | hasNextPage()Indicates whether the view has a physical page after the current physical page. | 
| abstract  boolean | hasPrevPage()Indicates whether the view has a physical page before the current physical page. | 
|  boolean | isDataviewFootnoteVisible()Indicates if DataviewFootnote is visble in the View to be printed. | 
|  boolean | isDataviewSubtitleVisible()Indicates if DataviewSubtitle is visble in the View to be printed. | 
|  boolean | isDataviewTitleVisible()Indicates if DataviewTitle is visble in the View to be printed. | 
| abstract  boolean | isFirstPhysicalPage()Indicates whether the current physical page is the first physical page in the current logical page. | 
|  boolean | isGridlinesVisible()Indicates whether gridlines appear in a printed GridView. | 
| abstract  boolean | isLastPhysicalPage()Indicates whether the current physical page is the last physical page in the current logical page. | 
|  boolean | isPrintByColumns()Indicates whether physical pages are printed by rows (left-to-right then top-to-bottom) or by columns(top-to-bottom then left-to-right). | 
|  boolean | isRepeatComponent(int component)Indicates whether the component is displayed on every physical page, when a table or crosstab is printed on multiple physical pages. | 
|  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. | 
| abstract  boolean | prepareFirstPage(java.awt.Graphics g)Prepares the first physical page in the view for printing and makes it the current page to print. | 
| abstract  boolean | prepareNextPage(java.awt.Graphics g)Prepares the next physical page for printing and makes it the current page to print. | 
| abstract  boolean | preparePrevPage(java.awt.Graphics g)Prepares the previous physical page for printing and makes it the current page to print. | 
|  boolean | print(boolean endPrintJob)Deprecated. As of 3.2.0.16, replaced by print(Graphics, PageFormat, int) | 
| protected  void | print(boolean currentLogPage,
      boolean endPrintJob)Deprecated. As of 3.2.0.16, replaced by 2D printing API | 
|  int | print(java.awt.Graphics graphics,
      java.awt.print.PageFormat pageFormat,
      int pageIndex)Prints a physical page of this Dataviewto aGraphics. | 
| protected  void | printHeaderAndFooter(java.awt.Graphics g) | 
| protected abstract  void | printPages(java.awt.PrintJob pjob,
           boolean currentLogPage)Deprecated. As of 3.2.0.16, replaced by 2D printing API | 
| protected abstract  void | printToGraphics(java.awt.Graphics g,
                PaginationRecord record) | 
|  boolean | renderFirstPage(java.awt.Graphics g) | 
|  boolean | renderLastPage(java.awt.Graphics g) | 
|  boolean | renderPage(java.awt.Graphics g)Renders a physical page of a view to a Graphicsobject. | 
| protected  void | resetAdornmentsSize() | 
| protected abstract  void | resetCurrentLogicalPage() | 
| protected  void | restoreTitlesFocus() | 
| protected  void | saveAdornmentsSize() | 
| protected  void | saveTitlesFocus() | 
|  void | setBottomFormattedText(FormattedText fta) | 
|  void | setBottomMargin(int mrgn)Specifies the height of the bottom margin of printed physical pages. | 
|  void | setCustomHeaderAndFooterCallback(CustomHeaderAndFooterCallback callback)Registers a custom callback with this ViewPrinter. | 
| protected  void | setDataview(Dataview dv) | 
|  void | setFitToNumPagesTall(int num)Specifies the number of physical pages on which to fit a printed view vertically. | 
|  void | setFitToNumPagesWide(int num)Specifies the number of physical pages on which to fit a printed view horizontally. | 
|  void | setFooterMargin(int mrgn)Specifies the height of the footer margin. | 
|  void | setGraphPrintScaleType(int type)Specifies how to scale the Graph for printing. | 
|  void | setGridlinesVisible(boolean visible)Specifies whether gridlines appear in a printed GridView. | 
|  void | setGridViewPrintScaleType(int type)Specifies how to scale the GridView for printing. | 
|  void | setHeaderMargin(int mrgn)Specifies the height of the header margin. | 
|  void | setHeadersAndFootersUsingCallback(int mask)Specifies the headers and footers to which a custom callback applies. | 
|  void | setLeftMargin(int mrgn)Specifies the width of left margin of printed physical pages. | 
|  void | setLineWidth(int position,
             int width)Specifies the width of the line to be printed at the given position. | 
|  boolean | setLogicalPage(int[] hPos)Specifies the logical page to print, when you use the printPagemethod to print. | 
|  void | setMarginAdjustment(int adjustment)Specifies how the margin behaves when a header or footer does not fit in the margin. | 
|  void | setPageFormat(java.awt.print.PageFormat pf)Specifies the PageFormatobject that specifies paper
 size for thisViewPrinter. | 
|  void | setPrintByColumns(boolean byColumns)Specifies whether physical pages are printed by columns (left-to-right then top-to-bottom) or by rows(top-to-bottom then left-to-right). | 
|  void | setPrintJob(java.awt.PrintJob job)Deprecated. As of 3.2.0.16, replaced by 2D printing API | 
|  void | setPrintScaleType(int type)Deprecated. As of 3.2.0.1, replaced by setGraphPrintScaleType(int),setGridViewPrintScaleType(int) | 
|  void | setPrintZoomFactor(int zoom)Specifies the zoom factor for printing. | 
|  void | setRangeType(int type)Specifies whether to print the current logical page or all logical pages. | 
|  void | setRepeatComponent(int component,
                   boolean repeat)Specifies whether to repeat the component on every physical page, when a table or crosstab is printed on multiple physical pages. | 
|  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. | 
|  void | setRightMargin(int mrgn)Specifies the width of the right margin of printed physical pages. | 
| abstract  void | setScaleFontSize(int mask)Specifies text components to resize when a graph is scaled to a different size for printing. | 
|  void | setSelectedHPos(java.util.Vector printHPos)Specifies logical pages to print, when the RangeTypeisSELECTED_LOGICAL_PAGES. | 
|  void | setSequentialPageNumber(int pageNum)Specifies the starting page number for this ViewPrinter. | 
|  void | setTokenSubstitution(TokenSubstitution token)Specifies a handler for token substitution in this ViewPrinter. | 
|  void | setTopFormattedText(FormattedText fta) | 
|  void | setTopMargin(int mrgn)Specifies the height of the top margin of printed physical pages. | 
|  void | setUnits(int iUnit)Specifies which unit value to use: UNIT_PIXEL, UNIT_INCHES, UNIT_CM.. | 
|  void | setViewDimension(java.awt.Dimension dim)Specifies the space allowed for printing a view. | 
|  boolean | showPrintJob()Deprecated. As of 3.2.0.16, replaced by 2D printing API | 
| abstract  boolean | startPrint()Puts the view in a state for printing. | 
| abstract  boolean | startPrint(boolean bPreviewMode)Puts the view in a state for printing. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface oracle.dss.dataView.UIViewPrinter | 
|---|
| getViewPrinterType | 
| Field Detail | 
|---|
public static final int CURRENT_LOGICAL_PAGE
public static final int ALL_LOGICAL_PAGES
public static final int SELECTED_LOGICAL_PAGES
setSelectedHPos
 method.
setSelectedHPos(java.util.Vector), 
Constant Field Valuespublic static final int ORIGINAL_SIZE
PrintScaleType to this value, the view is
 printed at its current size, as determined by its
 ZoomFactor property.
public static final int SCALE_TO_ZOOM_FACTOR
PrintZoomFactor property of this ViewPrinter.
 When you set PrintScaleType to this value, you must also
 call setPrintZoomFactor to specify the scale for printing.
 
 If you use the printPage method to print, and you
 use this scale type, then set the margins to 0 before you call
 the startPrint method.
setPrintScaleType(int), 
setPrintZoomFactor(int), 
Constant Field Valuespublic static final int SCALE_TO_FIT_PAGES
PrintScaleType to this value, you must also
 call setFitToNumPagesTall and
 setFitToNumPagesWide to specify the number of pages on
 which you want the view to fit.
 
 This value does not work in a GraphPrinter.
 If you use it, the graph will be printed at its original size.
 
 If you use the printPage method to print, and you
 use this scale type, then set the margins to 0 before you call
 the startPrint method.
setPrintScaleType(int), 
setFitToNumPagesTall(int), 
setFitToNumPagesWide(int), 
Constant Field Valuespublic static final int SCALE_TO_FIT_FULL_PAGE
 If you use the printPage method to print, and you
 use this scale type, then set the margins to 0 before you call
 the startPrint method.
public static final int SCALE_TO_FIT_PAGE
 If you use the printPage method to print, and you
 use this scale type, then set the margins to 0 before you call
 the startPrint method.
public static final int TEXT_COMPONENTS_ALL
public static final int TEXT_COMPONENTS_NONE
public static final int BELOW_HEADER
public static final int ABOVE_FOOTER
public static final int GRIDVIEW_COLUMN_HEADER
public static final int GRIDVIEW_ROW_HEADER
public static final int PAGE_HEADER
public static final int TITLE
public static final int SUBTITLE
public static final int FOOTNOTE
public static final int TOP_FORMATTED_TEXT_AREA
public static final int BOTTOM_FORMATTED_TEXT_AREA
public static final int HEADER_LEFT
public static final int HEADER_CENTER
public static final int HEADER_RIGHT
public static final int FOOTER_LEFT
public static final int FOOTER_CENTER
public static final int FOOTER_RIGHT
public static final int HEADERS_AND_FOOTERS_ALL
setHeadersAndFootersUsingCallback(int), 
Constant Field Valuespublic static final int HEADERS_AND_FOOTERS_NONE
setHeadersAndFootersUsingCallback(int), 
Constant Field Valuespublic static final int IGNORE_HEADERS_AND_FOOTERS
public static final int ADJUST_FOR_HEADERS_AND_FOOTERS
public static final int OCCLUDE_HEADERS_AND_FOOTERS
public static final int MIN_PRINT_ZOOM_FACTOR
public static final int UNIT_PIXELS
public static final int UNIT_INCHES
public static final int UNIT_CM
protected int paperWidth
protected int paperHeight
protected int leftMargin
protected int rightMargin
protected int topMargin
protected int bottomMargin
protected int units
protected int printZoomFactor
protected int fitToNumPagesTall
protected int fitToNumPagesWide
protected int m_gridViewPrintScaleType
protected int m_graphPrintScaleType
protected int rangeType
protected int headerHeight
protected int footerHeight
protected int[] logicalPage
protected int printableWidth
protected int printableHeight
protected ViewPrinter.HPosWrapper currLogPage
protected ViewPrinter.HPosWrapper viewLogPage
protected java.util.Vector m_selectedHPos
protected int viewLogPageNum
protected int m_seqPageNumber
protected boolean printByColumns
protected boolean currentLogicalPage
protected boolean resize
protected boolean m_gridlinesVisible
protected int m_repeatComponents
protected PaginationRecord record
protected DataSubsetRecord subSetRecord
protected HeaderAndFooterPainter LeftHeader
protected HeaderAndFooterPainter CenterHeader
protected HeaderAndFooterPainter RightHeader
protected HeaderAndFooterPainter LeftFooter
protected HeaderAndFooterPainter CenterFooter
protected HeaderAndFooterPainter RightFooter
protected CustomHeaderAndFooterCallback _callback
protected int callbackMask
protected int MarginAdjustment
protected java.awt.Rectangle pagingControlBounds
protected TokenSubstitution m_tokenSubstitution
protected FormattedText m_topFormattedText
protected FormattedText m_bottomFormattedText
protected Title title
protected Subtitle subtitle
protected Footnote footnote
protected Dataview dataView
protected java.awt.Dimension oldTitleSize
protected java.awt.Dimension oldSubtitleSize
protected java.awt.Dimension oldFootnoteSize
protected java.awt.Dimension oldTopFTASize
protected java.awt.Dimension oldBottomFTASize
protected int titleHeight
protected int subtitleHeight
protected int footnoteHeight
protected int topFTAHeight
protected int bottomFTAHeight
protected int totalAdornHeight
protected int repeatAdornHeight
protected int m_aboveFooterWidth
protected int m_belowHeaderWidth
protected boolean m_bPreviewMode
protected java.awt.print.PageFormat m_pageFormat
protected java.awt.Dimension viewDim
protected java.awt.Dimension dimension
protected static final java.lang.String dataUnavailableMsg
protected static final java.lang.String m_insuffSpace
protected static final int PAGING_CONTROL_GAP
protected int pIndex
| Constructor Detail | 
|---|
public ViewPrinter(Dataview dv)
dv - The Dataview that this ViewPrinter
           prints.| Method Detail | 
|---|
public void setTopFormattedText(FormattedText fta)
fta - the FormattedText to be printed above the View.public void setBottomFormattedText(FormattedText fta)
fta - the FormattedText to be printed below the View.public boolean print(boolean endPrintJob)
print(Graphics, PageFormat, int)
Dataview, onto multiple physical pages if necessary.
 The call to this method belongs between calls to
 startPrint and endPrint.
endPrintJob - true to end the print job with this method,
                    false not to end the print job.
                    Pass false only when you plan to print
                    another object, after this Dataview,
                    using the same print job.
true if the view is successfully printed,
         false if the data in the view is not available
                           to this ViewPrinter.startPrint(), 
endPrint()public void setUnits(int iUnit)
UIViewPrinter
setUnits in interface UIViewPrinteriUnit - The unit value to set: UNIT_PIXEL, UNIT_INCHES, UNIT_CM..public int getUnits()
UIViewPrinter
getUnits in interface UIViewPrinterpublic void setLeftMargin(int mrgn)
 This method has no effect when you use the printPage
 method to print.
setLeftMargin in interface UIViewPrintermrgn - The width of the left margin, pixels.public int getLeftMargin()
getLeftMargin in interface UIViewPrinterpublic void setRightMargin(int mrgn)
 This method has no effect when you use the printPage
 method to print.
setRightMargin in interface UIViewPrintermrgn - The width of the right margin, in pixels.public int getRightMargin()
getRightMargin in interface UIViewPrinterpublic void setTopMargin(int mrgn)
 This method has no effect when you use the printPage
 method to print.
setTopMargin in interface UIViewPrintermrgn - The height of the top margin, in pixels.public int getTopMargin()
getTopMargin in interface UIViewPrinterpublic void setBottomMargin(int mrgn)
 This method has no effect when you use the printPage
 method to print.
setBottomMargin in interface UIViewPrintermrgn - The height of the bottom margin, in pixels.public int getBottomMargin()
getBottomMargin in interface UIViewPrinterpublic void setHeaderMargin(int mrgn)
 This method has no effect when you use the printPage
 method to print.
setHeaderMargin in interface UIViewPrintermrgn - The height of the header margin, in pixels.public int getHeaderMargin()
getHeaderMargin in interface UIViewPrinterpublic void setFooterMargin(int mrgn)
 This method has no effect when you use the printPage
 method to print.
setFooterMargin in interface UIViewPrintermrgn - The height of the footer margin, in pixels.public int getFooterMargin()
getFooterMargin in interface UIViewPrinterpublic void setPrintZoomFactor(int zoom)
DataView is
 enlarged or reduced for printing.
 The value of the PrintZoomFactor property takes effect only
 when the PrintScaleType property is set to
 SCALE_TO_ZOOM_FACTOR.
 By default, the view is printed at full size (100 percent).
setPrintZoomFactor in interface UIViewPrinterzoom - The percentage at which to print the view. This methods logs
             an error if the value is less than 10.setPrintScaleType(int)public int getPrintZoomFactor()
DataView is
 enlarged or reduced for printing.
 The value of the PrintZoomFactor property takes effect only
 when the PrintScaleType property is set to
 SCALE_TO_ZOOM_FACTOR.
 By default, the view is printed at full size (100 percent).
getPrintZoomFactor in interface UIViewPrintersetPrintScaleType(int)public void setPrintScaleType(int type)
setGraphPrintScaleType(int),
                                        setGridViewPrintScaleType(int)
DataView for printing.
 By default, the view is printed at its original size.
type - A constant that indicates how to scale the
             DataView for printing. Constants are listed
             in the See Also section.ORIGINAL_SIZE, 
SCALE_TO_FIT_PAGES, 
SCALE_TO_ZOOM_FACTOR, 
SCALE_TO_FIT_PAGE, 
SCALE_TO_FIT_FULL_PAGEpublic int getPrintScaleType()
getGraphPrintScaleType(),
                                        getGridViewPrintScaleType()
DataView is scaled
 for printing.
DataView is scaled
             for printing. Constants are listed in the See Also section.ORIGINAL_SIZE, 
SCALE_TO_FIT_PAGES, 
SCALE_TO_ZOOM_FACTOR, 
SCALE_TO_FIT_PAGE, 
SCALE_TO_FIT_FULL_PAGEpublic void setGraphPrintScaleType(int type)
setGraphPrintScaleType in interface UIViewPrintertype - A constant that indicates how to scale the
             DataView for printing. Constants are listed
             in the See Also section.ORIGINAL_SIZE, 
SCALE_TO_FIT_PAGE, 
SCALE_TO_FIT_FULL_PAGEpublic int getGraphPrintScaleType()
getGraphPrintScaleType in interface UIViewPrinterDataView is scaled
             for printing. Constants are listed in the See Also section.ORIGINAL_SIZE, 
SCALE_TO_FIT_PAGE, 
SCALE_TO_FIT_FULL_PAGEpublic void setGridViewPrintScaleType(int type)
setGridViewPrintScaleType in interface UIViewPrintertype - A constant that indicates how to scale the
             DataView for printing. Constants are listed
             in the See Also section.ORIGINAL_SIZE, 
SCALE_TO_FIT_PAGES, 
SCALE_TO_ZOOM_FACTORpublic int getGridViewPrintScaleType()
getGridViewPrintScaleType in interface UIViewPrinterDataView is scaled
             for printing. Constants are listed in the See Also section.ORIGINAL_SIZE, 
SCALE_TO_FIT_PAGES, 
SCALE_TO_ZOOM_FACTORpublic void setFitToNumPagesTall(int num)
GraphPrinter.
 
 For example, suppose that you have a crosstab that has four columns and
 40 rows.
 Suppose that this crosstab would normally print on two sheets of paper,
 the first 30 rows on page 1 and the remainder on page 2.
 You could set FitToNumPagesTall to 1 in order to reduce the
 printed size of the crosstab so that all 40 rows are printed on one
 sheet of paper.
 
 The view is scaled to fit the number of pages that you specify only
 when the PrintScaleType property is set to
 SCALE_TO_FIT_PAGES.
setFitToNumPagesTall in interface UIViewPrinternum - The number of pages on which the view should fit vertically.setPrintScaleType(int)public int getFitToNumPagesTall()
PrintScaleType property is set to
 SCALE_TO_FIT_PAGES.
getFitToNumPagesTall in interface UIViewPrintersetPrintScaleType(int)public void setFitToNumPagesWide(int num)
GraphPrinter.
 
 For example, suppose you have a crosstab that has 20 columns and 10 rows.
 Suppose that this crosstab would normally print on two sheets of paper,
 the first 12 columns on page 1 and the remainder on page 2.
 You could set FitToNumPagesWide to 1 in order to reduce
 the printed size of the crosstab so that all 20 columns are printed on
 one sheet of paper.
 The view is scaled to fit the number of pages that you specify only
 when the PrintScaleType property is set to
 SCALE_TO_FIT_PAGES.
setFitToNumPagesWide in interface UIViewPrinternum - The number of pages on which the view should fit horizontally.setPrintScaleType(int)public int getFitToNumPagesWide()
PrintScaleType property is set to
 SCALE_TO_FIT_PAGES.
getFitToNumPagesWide in interface UIViewPrintersetPrintScaleType(int)public void setGridlinesVisible(boolean visible)
GridView.
 This method does nothing in a GraphPrinter.
setGridlinesVisible in interface UIViewPrintervisible - true to make gridlines appear in a printed
                                 GridView.
                false to hide gridlines.public boolean isGridlinesVisible()
GridView.
isGridlinesVisible in interface UIViewPrintertrue if gridlines appear in the GridView
                           when it is printed,
         false if they do not appear.public boolean setLogicalPage(int[] hPos)
printPage method to print.
 Call this method after you call the startPrint method for
 each view that you print.
hPos - The hPos array that identifies the logical page
             to print.
true if the logical page has been set,
         false if the data in the view is not available
                           to this ViewPrinter.GraphPrinter.printPage(Graphics), 
oracle.dss.crosstab.CrosstabPrinter#printPage, 
oracle.dss.crosstab.CrosstabPrinter#printPage(Graphics, DataSubsetRecord), 
oracle.dss.table.TablePrinter#printPage(Graphics), 
oracle.dss.table.TablePrinter#printPage(Graphics, DataSubsetRecord), 
oracle.dss.dataView.gui.PrintDialog, 
DataAccess.getFirstHPos(int), 
DataAccess.getNextHPos(int, int[])public int[] getLogicalPage()
printPage method to print.
hPos array that identifies the logical page.GraphPrinter.printPage(Graphics), 
oracle.dss.crosstab.CrosstabPrinter#printPage, 
oracle.dss.crosstab.CrosstabPrinter#printPage(Graphics, DataSubsetRecord), 
oracle.dss.table.TablePrinter#printPage(Graphics), 
oracle.dss.table.TablePrinter#printPage(Graphics, DataSubsetRecord), 
oracle.dss.dataView.gui.PrintDialog, 
DataAccess.getNextHPos(int, int[])public void setSelectedHPos(java.util.Vector printHPos)
RangeType is
 SELECTED_LOGICAL_PAGES.
 Each logical page to print is specified as an HPos.
setSelectedHPos in interface UIViewPrinterprintHPos - A Vector that contains an HPos
                  for each logical page that you want to print.SELECTED_LOGICAL_PAGES, 
setRangeType(int), 
DataAccess.getMemberHPos(int, int, int)public java.util.Vector getSelectedHPos()
RangeType is set to SELECTED_LOGICAL_PAGES.
getSelectedHPos in interface UIViewPrinterVector that contains an HPos for
         each logical page to print.SELECTED_LOGICAL_PAGES, 
setRangeType(int), 
DataAccess.getMemberHPos(int, int, int)public void setRangeType(int type)
 This method works only when you use the print method
 or the renderPage method to print.
 To set the page to print when you use the printPage method
 to print, call setLogicalPage.
setRangeType in interface UIViewPrintertype - A constant that identifies how much of the view to print.ALL_LOGICAL_PAGES, 
CURRENT_LOGICAL_PAGE, 
SELECTED_LOGICAL_PAGES, 
setLogicalPage(int[])public int getRangeType()
getRangeType in interface UIViewPrinterALL_LOGICAL_PAGES, 
CURRENT_LOGICAL_PAGE, 
SELECTED_LOGICAL_PAGESpublic HeaderAndFooterPainter getFooterPainter()
getHeaderAndFooterPainter(int)
HeaderAndFooterPainter objects
 for footers.
 To retrieve a footer, pass FOOTER_LEFT,
 FOOTER_CENTER, or FOOTER_RIGHT to
 getHeaderAndFooterPainter.
public HeaderAndFooterPainter getHeaderPainter()
getHeaderAndFooterPainter(int)
HeaderAndFooterPainter objects
 for headers.
 To retrieve a header, pass HEADER_LEFT,
 HEADER_CENTER, or HEADER_RIGHT to
 getHeaderAndFooterPainter.
public HeaderAndFooterPainter getHeaderAndFooterPainter(int headerOrFooterID)
getHeaderAndFooterPainter in interface UIViewPrinterheaderOrFooterID - A constant that specifies which header or
                          footer painter you want.
HEADER_LEFT, 
HEADER_CENTER, 
HEADER_RIGHT, 
FOOTER_LEFT, 
FOOTER_CENTER, 
FOOTER_RIGHTpublic void setCustomHeaderAndFooterCallback(CustomHeaderAndFooterCallback callback)
ViewPrinter.
 Use this method when you have implemented a
 CustomHeaderAndFooterCallback, to be able to print
 different headers and footers on different physical pages of a
 print job.
 To specify which headers and footers the callback should be used for,
 call setHeadersAndFootersUsingCallback.
callback - The callback that this ViewPrinter
                    should use for custom headers and footers.setHeadersAndFootersUsingCallback(int)public CustomHeaderAndFooterCallback getCustomHeaderAndFooterCallback()
ViewPrinter uses for
 displaying custom headers and footers.
ViewPrinter uses to
          print custom headers and footers. If no custom callback has been
          registered with this ViewPrinter, then this
          method returns null.public void setHeadersAndFootersUsingCallback(int mask)
CustomHeaderAndFooterCallback, to specify which
 headers, footers, or both will use the custom callback.
mask - A constant that identifies the header or footer that
                uses a custom callback. You can combine the constants
                by using the OR operator (|).HEADER_LEFT, 
HEADER_CENTER, 
HEADER_RIGHT, 
FOOTER_LEFT, 
FOOTER_CENTER, 
FOOTER_RIGHT, 
HEADERS_AND_FOOTERS_ALL, 
HEADERS_AND_FOOTERS_NONE, 
setCustomHeaderAndFooterCallback(oracle.dss.dataView.CustomHeaderAndFooterCallback)public int getHeadersAndFootersUsingCallback()
HEADER_LEFT, 
HEADER_CENTER, 
HEADER_RIGHT, 
FOOTER_LEFT, 
FOOTER_CENTER, 
FOOTER_RIGHT, 
setCustomHeaderAndFooterCallback(oracle.dss.dataView.CustomHeaderAndFooterCallback)public void setMarginAdjustment(int adjustment)
adjustment - A constant that represents how you want the margin
                    to react to headers and footers that do not fit
                    in the margin.ADJUST_FOR_HEADERS_AND_FOOTERS, 
IGNORE_HEADERS_AND_FOOTERS, 
OCCLUDE_HEADERS_AND_FOOTERSpublic int getMarginAdjustment()
ADJUST_FOR_HEADERS_AND_FOOTERS, 
IGNORE_HEADERS_AND_FOOTERS, 
OCCLUDE_HEADERS_AND_FOOTERSpublic void setViewDimension(java.awt.Dimension dim)
 When you call print to print a view, you do not need to call
 this method.
 The ViewPrinter gets the size of the paper from the
 print job.
 
 When you call renderPage to print, then
 margins are taken out of the Dimension that you pass
 in this method.
 If you want to print on a full sheet of paper, then set the
 size of the paper in the Dimension.
 
 If you call printPage, then the full Dimension
 is used to print the view.
 You should account for margins when you specify the Dimension.
dim - The Dimension that specifies the size of the
            area that is alloted on the page, for the view.print(boolean), 
renderPage(java.awt.Graphics), 
oracle.dss.crosstab.CrosstabPrinter#printPage, 
GraphPrinter.printPage(Graphics), 
oracle.dss.crosstab.CrosstabPrinter#printPage(Graphics, DataSubsetRecord), 
oracle.dss.table.TablePrinter#printPage(Graphics), 
oracle.dss.table.TablePrinter#printPage(Graphics, DataSubsetRecord)public java.awt.Dimension getViewDimension()
getViewDimension in interface UIViewPrinterDimension that specifies the area for the view.public void setPrintByColumns(boolean byColumns)
 For example, suppose that you have a table that has 30 rows and 20 columns,
 and that 15 rows and 10 columns can fit on a printed sheet of paper.
 When PrintByColumns is true (the default),
 then the pages are printed as follows:
 
 When PrintByColumns is false, then the pages
 are printed as follows:
 
 This method does nothing in a GraphPrinter.
setPrintByColumns in interface UIViewPrinterbyRows - true if physical pages are printed by columns,
               false if physical pages are printed by rows.public boolean isPrintByColumns()
GraphPrinter.
isPrintByColumns in interface UIViewPrintertrue if physical pages are printed by columns,
         false if physical pages are printed by rows.public java.awt.PrintJob getPrintJob()
PrintJob object for this
 ViewPrinter.
PrintJob object.public Dataview getDataview()
Dataview that this ViewPrinter
 prints.
Dataview that this ViewPrinter
        prints.public boolean showPrintJob()
java.awt.Toolkit.DefaultToolkit.
 The user can specify the page dimensions in the standard Print dialog box
 and can accept or cancel the print job.
true if the user presses the OK button in the
                          Print dialog box,
         false if the user presses the Cancel button.public void setPrintJob(java.awt.PrintJob job)
PrintJob to use for printing.
job - The PrintJob object to use.public boolean renderPage(java.awt.Graphics g)
Graphics object.
 Use this method when you want to print to an area less than the full page,
 or when you want to print more of a view than just one logical page, but
 not all pages.
 For example, you would call this method if you had a linked crosstab and graph, and you wanted to print all the physical pages of one logical page of the crosstab, and then the same logical page of a graph, and then the next logical page of a crosstab, and then that logical page of a graph, and so on.
You should also call this method if you want to print a view and any other object on the same piece of paper.
You also call this method if you provide your own user interface for print preview.
 Before you call this method, you must call prepareFirstPage,
 which performs initialization for printing.
 
renderPage in interface UIViewPrinterg - The Graphics object onto which to render the
          page of the view. The Graphics object must be an instance of
          Graphics2D.
true if the page is successfully rendered,
         false if the data in the view is not available
                           to this ViewPrinter.prepareFirstPage(java.awt.Graphics), 
hasNextPage(), 
prepareNextPage(java.awt.Graphics), 
hasPrevPage(), 
preparePrevPage(java.awt.Graphics), 
isFirstPhysicalPage(), 
isLastPhysicalPage()public abstract boolean isFirstPhysicalPage()
renderPage method.
isFirstPhysicalPage in interface UIViewPrintertrue if the current physical page is the first
                           physical page in the current logical page,
         false if the current physical page is not the
                           first in the logical page.renderPage(java.awt.Graphics)public abstract boolean isLastPhysicalPage()
renderPage method.
isLastPhysicalPage in interface UIViewPrintertrue if the current physical page is the last
                           physical page in the current logical page,
         false if the current physical page is not the
                           last in the logical page.renderPage(java.awt.Graphics)public void setSequentialPageNumber(int pageNum)
ViewPrinter.
 This ViewPrinter increments or decrements this page number
 whenever the ViewPrinter moves to the next page or
 to the previous page.
 
 You normally call this method when you print multiple views, and you
 print the same logical page of each view before moving to the next
 logical page.
 After you print the first logical page of the first view, you call
 getSequentialPageNumber method of the ViewPrinter
 for that view to get the current physical page number.
 You then pass the return value to the setSequentialPageNumber
 method of the second ViewPrinter.
setSequentialPageNumber in interface UIViewPrinterpageNum - The page number of the physical page.getSequentialPageNumber()public int getSequentialPageNumber()
ViewPrinter
 has printed.
getSequentialPageNumber in interface UIViewPrintersetSequentialPageNumber(int)
public int print(java.awt.Graphics graphics,
                 java.awt.print.PageFormat pageFormat,
                 int pageIndex)
          throws java.awt.print.PrinterException
Dataview to a
 Graphics.
 The java.awt.print.PrinterJob class calls this method.
 Application developers should not need call this method.
print in interface java.awt.print.Printablegraphics - The context into which the page is drawn.pageFormat - The size and orientation of the page that is drawn.pageIndex - The zero-based index of the page to be drawn.
java.awt.print.Printable.PAGE_EXISTS if the page is
                   rendered successfully,
         java.awt.print.Printable.NO_SUCH_PAGE if
                     pageIndex specifies a nonexistent page.
java.awt.print.PrinterException
protected void print(boolean currentLogPage,
                     boolean endPrintJob)
currentLogPage - true if current logical page only
                       false  if all logical pagesendPrintJob - true to end print job after printing,
                    false to not end print job;
                    normally the print job should be endedprotected void printHeaderAndFooter(java.awt.Graphics g)
g - The Graphics object.
 prints header and footerprotected void calcAdornmentsDimension(int printableWidth)
protected void saveAdornmentsSize()
protected void resetAdornmentsSize()
protected void saveTitlesFocus()
protected void restoreTitlesFocus()
protected void setDataview(Dataview dv)
protected void calcMargins(java.awt.Graphics g)
protected void adjustMargins()
public void calcHeaderAndFooterHeights(java.awt.Graphics g)
protected boolean checkForNoData()
public abstract boolean startPrint()
 Calling this method is equivalent to calling startPrint(false).
 It is appropriate for printing or previewing graphs, or printing
 tables and crosstabs.
 To preview a table or crosstab, call startPrint(true).
 
 Calls to the print method
 belong between calls to startPrint and
 endPrint.
true if the print job starts successfully,
         false if the data in the view is not available
                           to this ViewPrinter.endPrint(), 
print(boolean), 
renderPage(java.awt.Graphics), 
startPrint(boolean), 
oracle.dss.crosstab.CrosstabPrinter#printPage, 
GraphPrinter.printPage(Graphics), 
oracle.dss.crosstab.CrosstabPrinter#printPage(Graphics, DataSubsetRecord), 
oracle.dss.table.TablePrinter#printPage(Graphics), 
oracle.dss.table.TablePrinter#printPage(Graphics, DataSubsetRecord)public abstract boolean startPrint(boolean bPreviewMode)
 Use this method, with the renderPage method,
 when you preview a table or crosstab.
 Passing true in the bPreviewMode parameter
 allows this ViewPrinter to cache information to improve
 performance.
 
 Calls to the print method
 belong between calls to startPrint and
 endPrint.
startPrint in interface UIViewPrinterbPreviewMode - true if you are previewing the print job,
                     false if you are actually sending
                     the print job to a printer.
true if the print job starts successfully,
         false if the data in the view is not available
                           to this ViewPrinter.endPrint(), 
print(boolean), 
renderPage(java.awt.Graphics), 
GraphPrinter.printPage(Graphics), 
oracle.dss.crosstab.CrosstabPrinter#printPage, 
oracle.dss.crosstab.CrosstabPrinter#printPage(Graphics, DataSubsetRecord), 
oracle.dss.table.TablePrinter#printPage(Graphics), 
oracle.dss.table.TablePrinter#printPage(Graphics, DataSubsetRecord)public abstract void endPrint()
startPrint method displays, and restores the active
 display of the view.
 
 Calls to the print method
 belong between calls to startPrint and
 endPrint.
endPrint in interface UIViewPrinterstartPrint(), 
print(boolean), 
renderPage(java.awt.Graphics), 
oracle.dss.crosstab.CrosstabPrinter#printPage, 
GraphPrinter.printPage(Graphics), 
oracle.dss.crosstab.CrosstabPrinter#printPage(Graphics, DataSubsetRecord), 
oracle.dss.table.TablePrinter#printPage(Graphics), 
oracle.dss.table.TablePrinter#printPage(Graphics, DataSubsetRecord)public void setRepeatHeaders(boolean repeat)
 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.
repeat - true to repeat row and column headers and
                                 titles,
               false to prevent repeating.public boolean isRepeatHeaders()
 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.
repeat - true if row and column headers and
                                 titles appear on each page,
               false if they do not.
public void setRepeatComponent(int component,
                               boolean repeat)
setRepeatComponent in interface UIViewPrintercomponent - A constant that represents the components.
                  Valid constants are listed in the See Also section.repeat - true to repeat component,
               false to prevent repeating.GRIDVIEW_COLUMN_HEADER, 
GRIDVIEW_ROW_HEADER, 
PAGE_HEADER, 
TITLE, 
SUBTITLE, 
FOOTNOTE, 
TOP_FORMATTED_TEXT_AREA, 
BOTTOM_FORMATTED_TEXT_AREApublic boolean isRepeatComponent(int component)
false in a
 GraphPrinter.
 
isRepeatComponent in interface UIViewPrintercomponent - A constant that represents the components.
                  Valid constants are listed in the See Also section.
true if the component appears on each page,
               false if they do not.GRIDVIEW_COLUMN_HEADER, 
GRIDVIEW_ROW_HEADER, 
PAGE_HEADER, 
TITLE, 
SUBTITLE, 
FOOTNOTE, 
TOP_FORMATTED_TEXT_AREA, 
BOTTOM_FORMATTED_TEXT_AREA
protected abstract void printPages(java.awt.PrintJob pjob,
                                   boolean currentLogPage)
pJob - the PrintJob objectcurrentLogPage - true if current logical page only
                       false  if all logical pages
protected abstract void printToGraphics(java.awt.Graphics g,
                                        PaginationRecord record)
g - the Graphics objectrecord - The pagination record to use for printing on the Graphics object.public abstract boolean goToFirstPage()
prepareFirstPage(Graphics)
prepareFirstPage method respects the
 MarginAdjustment property.
setMarginAdjustment(int)public abstract boolean goToNextPage()
prepareNextPage(Graphics)
prepareNextPage method respects the
 MarginAdjustment property.
setMarginAdjustment(int)public abstract boolean goToPrevPage()
preparePrevPage(Graphics)
preparePrevPage method respects the
 MarginAdjustment property.
setMarginAdjustment(int)public abstract boolean prepareFirstPage(java.awt.Graphics g)
renderPage to print.
 Call this method before you call any of the other methods for changing
 pages.
 Call this method, even if you only print one physical page.
 This method performs initialization for printing.
prepareFirstPage in interface UIViewPrinterg - The Graphics object to which to print the page.
             The Graphics object must be an instance of Graphics2D.
true if the call is successful,
         false if the first physical page has no data.renderPage(java.awt.Graphics), 
hasNextPage(), 
prepareNextPage(java.awt.Graphics)public abstract boolean prepareNextPage(java.awt.Graphics g)
renderPage to print.
 Unless you are certain that there is a next page, you should call
 hasNextPage before you call this method.
 Also, before calling this method, call prepareFirstPage.
prepareNextPage in interface UIViewPrinterg - The Graphics object to which to print the page.
              The Graphics object must be an instance of Graphics2D.
true if the call is successful,
         false if the next physical page has no data.renderPage(java.awt.Graphics), 
prepareFirstPage(java.awt.Graphics), 
hasNextPage()public abstract void setScaleFontSize(int mask)
setScaleFontSize in interface UIViewPrintermask - A constant that represents the set of components to
             scale with the graph.
             The constants are listed in the See Also section.GraphConstants.TEXT_COMPONENTS_ALL, 
GraphConstants.TEXT_COMPONENTS_NONEpublic abstract int getScaleFontSize()
getScaleFontSize in interface UIViewPrinterGraphConstants.TEXT_COMPONENTS_ALL, 
GraphConstants.TEXT_COMPONENTS_NONEpublic abstract boolean preparePrevPage(java.awt.Graphics g)
renderPage to print.
 Unless you are certain that there is a previous page, you should call
 hasPrevPage before you call this method.
 Also, before calling this method, call prepareFirstPage.
preparePrevPage in interface UIViewPrinterg - The Graphics object to which to print the page.
              The Graphics object must be an instance of Graphics2D.
true if the call is successful,
         false if the previous physical page has no data.renderPage(java.awt.Graphics), 
prepareFirstPage(java.awt.Graphics), 
hasPrevPage()public abstract boolean hasNextPage()
renderPage to print.
 Call this method before you call prepareNextPage.
hasNextPage in interface UIViewPrintertrue if the view has another physical page after
                            the current page,
         false if the current physical page is the last
                            physical page.renderPage(java.awt.Graphics), 
prepareNextPage(java.awt.Graphics)public abstract boolean hasPrevPage()
renderPage to print.
 Call this method before you call preparePrevPage.
hasPrevPage in interface UIViewPrintertrue if the view has another physical page before
                            the current page,
         false if the current physical page is the first
                            physical page.renderPage(java.awt.Graphics), 
preparePrevPage(java.awt.Graphics)public void setTokenSubstitution(TokenSubstitution token)
ViewPrinter.
 Token substitution handlers make it possible for users to insert
 tokens (such as a token for the current dimension member) in the
 headers and footers of this ViewPrinter.
 This method sets the TokenSubstitution on this
 ViewPrinter and on all
 six of headers and footers that this ViewPrinter maintains.
 By default, the TokenSubstitution on this
 ViewPrinter and on each header and footer is null.
 You can also set a TokenSubstitution on each individual
 header and footer separately.
setTokenSubstitution in interface UIViewPrintertoken - The token substitution handler for this ViewPrinter.public void setPageFormat(java.awt.print.PageFormat pf)
PageFormat object that specifies paper
 size for this ViewPrinter.
 The PageSetupDialog calls this method to
 set the PageFormat object that it modifies, to set the
 paper size on the print job.
setPageFormat in interface UIViewPrinterpf - The PageFormat object that specifies the paper size.public java.awt.print.PageFormat getPageFormat()
PageFormat object that specifies the paper
 size for this ViewPrinter.
 The PageSetupDialog calls this method to retrieve
 the PageFormat in its initialization.
 If you use the PageSetupDialog but not the
 PrintDialog, then you should
 call this method to set the PageFormat on the
 PageSetupDialog.
getPageFormat in interface UIViewPrinterPageFormat object that specifies the paper size
         for this ViewPrinter.public TokenSubstitution getTokenSubstitution()
ViewPrinter.
 Token substitution handlers make it possible for users to insert
 tokens (such as a token for the current dimension member) in the headers
 and footers of this ViewPrinter.
 You can also set a TokenSubstitution on
 each individual
 header and footer separately.
 This method gets the TokenSubstitution that is set on this
 ViewPrinter, which
 may be overridden in one or more headers or footers.
 By default, the TokenSubstitution on this
 ViewPrinter and on each header
 and footer is null.
getTokenSubstitution in interface UIViewPrinterViewPrinter.public java.util.Locale getLocale()
getLocale in interface UIViewPrinterLocale of the Viewpublic boolean isDataviewTitleVisible()
isDataviewTitleVisible in interface UIViewPrintertrue if visible 
         false otherwisepublic boolean isDataviewSubtitleVisible()
isDataviewSubtitleVisible in interface UIViewPrintertrue if visible 
         false otherwisepublic boolean isDataviewFootnoteVisible()
isDataviewFootnoteVisible in interface UIViewPrintertrue if visible 
         false otherwise
public void setLineWidth(int position,
                         int width)
setLineWidth in interface UIViewPrinterposition - position of the line
                 Valid constants are listed in the See Also section.width - the width of the lineABOVE_FOOTER, 
BELOW_HEADERpublic int getLineWidth(int position)
getLineWidth in interface UIViewPrinterposition - position of the line
                 Valid constants are listed in the See Also section.
ABOVE_FOOTER, 
BELOW_HEADERpublic boolean renderFirstPage(java.awt.Graphics g)
renderFirstPage in interface UIViewPrinterpublic boolean renderLastPage(java.awt.Graphics g)
renderLastPage in interface UIViewPrinterpublic boolean goToFirstPage(java.awt.Graphics g)
goToFirstPage in interface UIViewPrinterpublic boolean goToLastPage(java.awt.Graphics g)
goToLastPage in interface UIViewPrinterpublic java.awt.Cursor getWaitCursor()
getWaitCursor in interface UIViewPrinterpublic java.awt.Cursor getDefaultCursor()
getDefaultCursor in interface UIViewPrinterprotected boolean checkDataSourceLogPage()
false if the DataSource logical page had to be changed
         true otherwise
protected int fetchRowBlock(int firstRow,
                            int lastRow)
firstRow - 0-based index of the first row to fetchlastRow - 0-based index of the last row to fetch
protected abstract void resetCurrentLogicalPage()
protected boolean changePageEdgeCurrentHPos(int[] hPos,
                                            int maxLayerSpecified)
                                     throws EdgeOutOfRangeException,
                                            LayerOutOfRangeException,
                                            SliceOutOfRangeException,
                                            DataDirectorException
hPos - An array of relative indexes starting with the
                          outermost layer and working in at least to
                          maxLayerSpecified.
                          This array indicates the set of new values to
                          give to the various layers that specify the
                          new current slice.maxLayerSpecified - The maximum index into hPos (layer)
                          that this method should use in making the
                          change to the current slice.
true if the current slice change is successful,
         false if the current slice change is not
         successful.
EdgeOutOfRangeException - If edge is too large.
LayerOutOfRangeException - If the number of layers in
                                  hPos is too large.
SliceOutOfRangeException - If the indexes in the hPos
                                  are out of range.
DataDirectorException - If an error occurs during the operation.public ViewPrinter.HPosWrapper getLogicalPageInUse()
| 
 | Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1.4.0) E12063-05 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||