The PageSettings object
Constructor:
PageSettings() A simple constructor.
Methods:
getBottomMargin() Gets the bottom margin (int, in pixels) value. getFooterAlign() Gets the footer alignment (int) value. getFooterBG() Gets the footer background (java.awt.Color) value. getFooterFG() Gets the footer foreground (java.awt.Color) value. getFooterFont() Gets the footer font (java.awt.Font) value. getFooterHeight() Gets the footer height (int, in pixels) value. getFooterText() Gets the footer text (java.lang.String) value. getHeaderAlign() Gets the header alignment (int) value. getHeaderBG() Gets the header background (java.awt.Color) value. getHeaderFG() Gets the header foreground (java.awt.Color) value. getHeaderFont() Gets the header font (java.awt.Font) value. getHeaderHeight() Gets the header height (int, in pixels) value. getHeaderText() Gets the header text (java.lang.String) value. getImageAlign() Gets the image alignment (int) value. getImagePath() Gets the image path and file name (java.lang.String) value. getLeftMargin() Gets the left margin (int, in pixels) value. getPageAlign() Gets the page alignment (int) value. getPageBG() Gets the page background (java.awt.Color) value. getPageFG() Gets the page foreground (java.awt.Color) value. getRightMargin() Gets the right margin (int, in pixels) value. getTopMargin() Gets the top margin (int, in pixels) value. setBottomMargin(int) Sets the bottom margin (int, in pixels) value. setFooterAlign(int) Sets the footer alignment (int) value. setFooterBG(Color) Sets the footer background (java.awt.Color) value. setFooterFG(Color) Sets the footer foreground (java.awt.Color) value. setFooterFont(Font) Sets the footer font (java.awt.Font) value. setFooterHeight(int) Sets the footer height (int, in pixels) value. setFooterText(String) Sets the footer text (java.lang.String) value. setHeaderAlign(int) Sets the header alignment (int) value. setHeaderBG(Color) Sets the header background (java.awt.Color) value. setHeaderFG(Color) Sets the header foreground (java.awt.Color) value. setHeaderFont(Font) Sets the header font (java.awt.Font) value. setHeaderHeight(int) Sets the header height (int, in pixels) value. setHeaderText(String) Sets the header text (java.lang.String) value. setImageAlign(int) Sets the image alignment (int) value. setImagePath(String) Sets the image path and file name (java.lang.String) value. setLeftMargin(int) Sets the left margin (int, in pixels) value. setPageAlign(int) Sets the page alignment (int) value. setPageBG(Color) Sets the page background (java.awt.Color) value. setPageFG(Color) Sets the page foreground (java.awt.Color) value. setRightMargin(int) Sets the right margin (int, in pixels) value. setTopMargin(int) Sets the top margin (int, in pixels) value.
Constructor:
PageSettings
public PageSettings()
A simple constructor.
Methods:
getBottomMargin
public int getBottomMargin()
Gets the bottom margin, in pixels.
getFooterAlign
public int getFooterAlign()
Gets the footerAlign property (int) value.
Values can be:
- 0 (zero), meaning right-aligned.
- 1 (one), meaning left-aligned.
- 2 (two), meaning centered.
Returns: The footerAlign property value. See Also: setFooterAlign
getFooterBG
public Color getFooterBG()
Gets the footerBG property (java.awt.Color) value.
getFooterFG
public Color getFooterFG()
Gets the footerFG property (java.awt.Color) value.
getFooterFont
public Font getFooterFont()
Gets the footerFont property (java.awt.Font) value.
getFooterHeight
public int getFooterHeight()
Gets the footerHeight property (int) value (units: pixels). Returns:
getFooterText
public String getFooterText()
Gets the footerText property (java.lang.String) value. You can embed the following macros in the text:
setFooterText
getHeaderAlign
public int getHeaderAlign()
Gets the headerAlign property (int) value.
Values can be:
- 0 (zero), meaning right-aligned.
- 1 (one), meaning left-aligned.
- 2 (two), meaning centered.
getHeaderBG
public Color getHeaderBG()
Gets the headerBG property (java.awt.Color) value.
getHeaderFG
public Color getHeaderFG()
Gets the headerFG property (java.awt.Color) value.
getHeaderFont
public Font getHeaderFont()
Gets the headerFont property (java.awt.Font) value.
getHeaderHeight
public int getHeaderHeight()
Gets the headerHeight property (int) value (units: pixels).
getHeaderText
public String getHeaderText()
Gets the headerText property (java.lang.String) value. You can embed the following macros in the text:
setHeaderText
getImageAlign
public int getImageAlign()
Gets the image alignment value (how the image will be laid out in the page). Values can be:
setImageAlign
getImagePath
public String getImagePath()
Gets the background image path and file name (String).
getLeftMargin
public int getLeftMargin()
Gets the left margin, in pixels.
getPageAlign
public int getPageAlign()
Gets the pageAlign property (int) value. Values can be:
setPageAlign
getPageBG
public Color getPageBG()
Gets the pageBG property (java.awt.Color) value.
getPageFG
public Color getPageFG()
Gets the pageFG property (java.awt.Color) value.
getRightMargin
public int getRightMargin()
Gets the right margin, in pixels.
getTopMargin
public int getTopMargin()
Gets the top margin, in pixels.
setBottomMargin
public void setBottomMargin(int bottomMargin)
Sets the bottom margin, in pixels.
setFooterAlign
public void setFooterAlign(int footerAlign)
Sets the footerAlign property (int) value. Values can be:
getFooterAlign
setFooterBG
public void setFooterBG(Color footerBG)
Sets the footerBG property (java.awt.Color) value.
setFooterFG
public void setFooterFG(Color footerFG)
Sets the footerFG property (java.awt.Color) value.
setFooterFont
public void setFooterFont(Font footerFont)
Sets the footerFont property (java.awt.Font) value.
setFooterHeight
public void setFooterHeight(int footerHeight)
Sets the footerHeight property (int) value (units: pixels).
setFooterText
public void setFooterText(String footerText)
Sets the footerText property (java.lang.String) value. You can embed the following macros in the text:
getFooterText
setHeaderAlign
public void setHeaderAlign(int headerAlign)
Sets the headerAlign property (int) value. Values can be:
getHeaderAlign
setHeaderBG
public void setHeaderBG(Color headerBG)
Sets the headerBG property (java.awt.Color) value.
setHeaderFG
public void setHeaderFG(Color headerFG)
Sets the headerFG property (java.awt.Color) value.
setHeaderFont
public void setHeaderFont(Font headerFont)
Sets the headerFont property (java.awt.Font) value.
setHeaderHeight
public void setHeaderHeight(int headerHeight)
Sets the headerHeight property (int) value (units: pixels).
setHeaderText
public void setHeaderText(String headerText)
Sets the headerText property (java.lang.String) value. You can embed the following macros in the text:
getHeaderText
setImageAlign
public void setImageAlign(int imageAlign)
Sets the image alignment value (how the image will be laid out in the page). Values can be:
getImageAlign
setImagePath
public void setImagePath(String imagePath)
Sets the background image path and file name (String).
setLeftMargin
public void setLeftMargin(int leftMargin)
Sets the left margin, in pixels.
setPageAlign
public void setPageAlign(int pageAlign)
Sets the pageAlign property (int) value. Values can be:
getPageAlign
setPageBG
public void setPageBG(Color pageBG)
Sets the pageBG property (java.awt.Color) value.
setPageFG
public void setPageFG(Color pageFG)
Sets the pageFG property (java.awt.Color) value.
setRightMargin
public void setRightMargin(int rightMargin)
Sets the right margin, in pixels.
setTopMargin
public void setTopMargin(int topMargin)
Sets the top margin, in pixels.
|