All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.bwt.JCOutlinerPrinter

java.lang.Object
   |
   +----jclass.bwt.JCOutlinerPrinter

public class JCOutlinerPrinter
extends Object
implements JCSerializable
The JCOutlinerPrinter component allows the user to add enhanced printing functionality under JDK 1.1.

Properties

Name Method
HeaderOnEachPagesetHeaderOnEachPage
MarginUnitssetMarginUnits
OutlineOnEachPagesetOutlineOnEachPage
PageDimensionssetPageDimensions
PageHeightsetPageHeight
PageMarginssetPageMargins
PageResolutionsetPageResolution
PageWidthsetPageWidth
PrintAllNodessetPrintAllNodes

Events

Class Listener Description
PrintListener addPrintListener Posted when a page header or page footer is printed.


Variable Index

 o MARGIN_IN_INCHES
 o MARGIN_IN_PIXELS

Constructor Index

 o JCOutlinerPrinter(JCOutlinerComponent)
Controls JCOutliner printing

Method Index

 o drawPage(Graphics, int)
Draws a page.
 o getDefaultPageMargins()
Returns the default margins
 o getHeaderOnEachPage()
Returns true if a header is printed on each page
 o getMarginUnits()
Gets the units for margin calculations
 o getNumHorizontalPages()
Returns the number of horizontal pages
 o getNumPages()
Returns the number of pages required to print the table.
 o getNumVerticalPages()
Returns the number of vertical pages
 o getOutlineOnEachPage()
Returns true if an outline is printed on each page
 o getPageDimensions()
Returns the page dimensions
 o getPageHeight()
Returns the height of a page
 o getPageMargins()
Returns the page margins
 o getPageResolution()
Returns the page resolution
 o getPageWidth()
Returns the width of a page
 o getPrintAllNodes()
Returns true if all nodes are printed (regardless of collapse state).
 o setHeaderOnEachPage(boolean)
If true, the header is printed on each page
 o setMarginUnits(int)
Sets the units for margin calculations
 o setOutlineOnEachPage(boolean)
If true, the outline is printed on each page
 o setPageDimensions(int, int)
Sets the dimensions of a page
 o setPageHeight(int)
Sets the height of a page
 o setPageMargins(Insets)
Sets the page margins.
 o setPageResolution(int)
Sets the page resolution in pixels/inch
 o setPageWidth(int)
Sets the width of a page
 o setPrintAllNodes(boolean)
Set true if all nodes are printed (regardless of collapse state).

Variables

 o MARGIN_IN_INCHES
 public static final int MARGIN_IN_INCHES
 o MARGIN_IN_PIXELS
 public static final int MARGIN_IN_PIXELS

Constructors

 o JCOutlinerPrinter
 public JCOutlinerPrinter(JCOutlinerComponent outliner)
Controls JCOutliner printing

Methods

 o getHeaderOnEachPage
 public boolean getHeaderOnEachPage()
Returns true if a header is printed on each page

 o setHeaderOnEachPage
 public void setHeaderOnEachPage(boolean v)
If true, the header is printed on each page

 o getMarginUnits
 public int getMarginUnits()
Gets the units for margin calculations

 o setMarginUnits
 public void setMarginUnits(int margin_units)
Sets the units for margin calculations

 o getNumPages
 public int getNumPages()
Returns the number of pages required to print the table.

 o getOutlineOnEachPage
 public boolean getOutlineOnEachPage()
Returns true if an outline is printed on each page

 o setOutlineOnEachPage
 public void setOutlineOnEachPage(boolean v)
If true, the outline is printed on each page

 o getPageDimensions
 public Dimension getPageDimensions()
Returns the page dimensions

 o setPageDimensions
 public void setPageDimensions(int page_width,
                               int page_height)
Sets the dimensions of a page

 o getPageHeight
 public int getPageHeight()
Returns the height of a page

 o setPageHeight
 public void setPageHeight(int page_height)
Sets the height of a page

 o getPageMargins
 public Insets getPageMargins()
Returns the page margins

 o getDefaultPageMargins
 public Insets getDefaultPageMargins()
Returns the default margins

 o setPageMargins
 public void setPageMargins(Insets margin)
Sets the page margins. Passing null sets the margins to the default.

 o getPageResolution
 public int getPageResolution()
Returns the page resolution

 o setPageResolution
 public void setPageResolution(int page_resolution)
Sets the page resolution in pixels/inch

 o getPageWidth
 public int getPageWidth()
Returns the width of a page

 o setPageWidth
 public void setPageWidth(int page_width)
Sets the width of a page

 o getPrintAllNodes
 public boolean getPrintAllNodes()
Returns true if all nodes are printed (regardless of collapse state).

 o setPrintAllNodes
 public void setPrintAllNodes(boolean value)
Set true if all nodes are printed (regardless of collapse state).

 o getNumHorizontalPages
 public int getNumHorizontalPages()
Returns the number of horizontal pages

 o getNumVerticalPages
 public int getNumVerticalPages()
Returns the number of vertical pages

 o drawPage
 public void drawPage(Graphics gc,
                      int page)
Draws a page.


All Packages  Class Hierarchy  This Package  Previous  Next  Index