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
Events
Class | Listener | Description |
PrintListener | addPrintListener | Posted when a page header or page footer is printed. |
|
-
MARGIN_IN_INCHES
-
-
MARGIN_IN_PIXELS
-
-
JCOutlinerPrinter(JCOutlinerComponent)
- Controls JCOutliner printing
-
drawPage(Graphics, int)
- Draws a page.
-
getDefaultPageMargins()
- Returns the default margins
-
getHeaderOnEachPage()
- Returns true if a header is printed on each page
-
getMarginUnits()
- Gets the units for margin calculations
-
getNumHorizontalPages()
- Returns the number of horizontal pages
-
getNumPages()
- Returns the number of pages required to print the table.
-
getNumVerticalPages()
- Returns the number of vertical pages
-
getOutlineOnEachPage()
- Returns true if an outline is printed on each page
-
getPageDimensions()
- Returns the page dimensions
-
getPageHeight()
- Returns the height of a page
-
getPageMargins()
- Returns the page margins
-
getPageResolution()
- Returns the page resolution
-
getPageWidth()
- Returns the width of a page
-
getPrintAllNodes()
- Returns true if all nodes are printed (regardless of collapse state).
-
setHeaderOnEachPage(boolean)
- If true, the header is printed on each page
-
setMarginUnits(int)
- Sets the units for margin calculations
-
setOutlineOnEachPage(boolean)
- If true, the outline is printed on each page
-
setPageDimensions(int, int)
- Sets the dimensions of a page
-
setPageHeight(int)
- Sets the height of a page
-
setPageMargins(Insets)
- Sets the page margins.
-
setPageResolution(int)
- Sets the page resolution in pixels/inch
-
setPageWidth(int)
- Sets the width of a page
-
setPrintAllNodes(boolean)
- Set true if all nodes are printed (regardless of collapse state).
MARGIN_IN_INCHES
public static final int MARGIN_IN_INCHES
MARGIN_IN_PIXELS
public static final int MARGIN_IN_PIXELS
JCOutlinerPrinter
public JCOutlinerPrinter(JCOutlinerComponent outliner)
- Controls JCOutliner printing
getHeaderOnEachPage
public boolean getHeaderOnEachPage()
- Returns true if a header is printed on each page
setHeaderOnEachPage
public void setHeaderOnEachPage(boolean v)
- If true, the header is printed on each page
getMarginUnits
public int getMarginUnits()
- Gets the units for margin calculations
setMarginUnits
public void setMarginUnits(int margin_units)
- Sets the units for margin calculations
getNumPages
public int getNumPages()
- Returns the number of pages required to print the table.
getOutlineOnEachPage
public boolean getOutlineOnEachPage()
- Returns true if an outline is printed on each page
setOutlineOnEachPage
public void setOutlineOnEachPage(boolean v)
- If true, the outline is printed on each page
getPageDimensions
public Dimension getPageDimensions()
- Returns the page dimensions
setPageDimensions
public void setPageDimensions(int page_width,
int page_height)
- Sets the dimensions of a page
getPageHeight
public int getPageHeight()
- Returns the height of a page
setPageHeight
public void setPageHeight(int page_height)
- Sets the height of a page
getPageMargins
public Insets getPageMargins()
- Returns the page margins
getDefaultPageMargins
public Insets getDefaultPageMargins()
- Returns the default margins
setPageMargins
public void setPageMargins(Insets margin)
- Sets the page margins. Passing null sets the margins to the default.
getPageResolution
public int getPageResolution()
- Returns the page resolution
setPageResolution
public void setPageResolution(int page_resolution)
- Sets the page resolution in pixels/inch
getPageWidth
public int getPageWidth()
- Returns the width of a page
setPageWidth
public void setPageWidth(int page_width)
- Sets the width of a page
getPrintAllNodes
public boolean getPrintAllNodes()
- Returns true if all nodes are printed (regardless of collapse state).
setPrintAllNodes
public void setPrintAllNodes(boolean value)
- Set true if all nodes are printed (regardless of collapse state).
getNumHorizontalPages
public int getNumHorizontalPages()
- Returns the number of horizontal pages
getNumVerticalPages
public int getNumVerticalPages()
- Returns the number of vertical pages
drawPage
public void drawPage(Graphics gc,
int page)
- Draws a page.
All Packages Class Hierarchy This Package Previous Next Index