| |
|
| java.lang.Object com.lowagie.text.rtf.RtfElement com.lowagie.text.rtf.document.RtfPageSetting
RtfPageSetting | public class RtfPageSetting extends RtfElement implements RtfExtendedElement(Code) | | The RtfPageSetting stores the page size / page margins for a RtfDocument.
INTERNAL CLASS - NOT TO BE USED DIRECTLY
version: $Id: RtfPageSetting.java 2796 2007-05-27 09:42:20Z psoares33 $ author: Mark Hall (mhall@edu.uni-klu.ac.at) author: Thomas Bickel (tmb99@inode.at) |
Constructor Summary | |
public | RtfPageSetting(RtfDocument doc) Constructs a new RtfPageSetting object belonging to a RtfDocument. |
RtfPageSetting | public RtfPageSetting(RtfDocument doc)(Code) | | Constructs a new RtfPageSetting object belonging to a RtfDocument.
Parameters: doc - The RtfDocument this RtfPageSetting belongs to |
getMarginBottom | public int getMarginBottom()(Code) | | Gets the bottom margin
Returns the bottom margin |
getMarginLeft | public int getMarginLeft()(Code) | | Gets the left margin
Returns the left margin |
getMarginRight | public int getMarginRight()(Code) | | Gets the right margin
Returns the right margin |
getMarginTop | public int getMarginTop()(Code) | | Gets the top margin
Returns the top margin |
getPageHeight | public int getPageHeight()(Code) | | Gets the page height
Returns the page height |
getPageWidth | public int getPageWidth()(Code) | | Gets the page width
Returns the page width |
setMarginBottom | public void setMarginBottom(int marginBottom)(Code) | | Sets the bottom margin
Parameters: marginBottom - The bottom margin to use |
setMarginLeft | public void setMarginLeft(int marginLeft)(Code) | | Sets the left margin to use
Parameters: marginLeft - The left margin to use |
setMarginRight | public void setMarginRight(int marginRight)(Code) | | Sets the right margin to use
Parameters: marginRight - The right margin to use |
setMarginTop | public void setMarginTop(int marginTop)(Code) | | Sets the top margin to use
Parameters: marginTop - The top margin to use |
setPageHeight | public void setPageHeight(int pageHeight)(Code) | | Sets the page height to use
Parameters: pageHeight - The page height to use |
setPageSize | public void setPageSize(Rectangle pageSize)(Code) | | Set the page size to use. This method will use guessFormat to try to guess the correct
page format. If no format could be guessed, the sizes from the pageSize are used and
the landscape setting is determined by comparing width and height;
Parameters: pageSize - The pageSize to use |
setPageWidth | public void setPageWidth(int pageWidth)(Code) | | Sets the page width to use
Parameters: pageWidth - The page width to use |
writeSectionDefinition | public void writeSectionDefinition(OutputStream result) throws IOException(Code) | | Writes the definition part for a new section
|
|
|
|