net.windward.xmlreport
Interface ProcessTxtAPI

All Superinterfaces:
ProcessReportAPI, ProcessReportAPIBase
All Known Implementing Classes:
ProcessTxt

public interface ProcessTxtAPI
extends ProcessReportAPI

This class is a subclass of ProcessReportAPI specifically for creating an output in the ASCII text format.

Version:
2.0 2 January 2004

Fields inherited from interface net.windward.xmlreport.ProcessReportAPI
CHARSET_DEFAULT, CHARSET_RTF, CHARSET_UNICODE, LOCALE_DEFAULT, LOCALE_SYSTEM, TYP_DOCX, TYP_EXCEL_ML, TYP_HTML, TYP_PDF, TYP_RTF, TYP_TXT, TYP_WORD_ML, TYP_XLS, TYP_XLSX
 
Method Summary
 java.lang.String getFont()
          Get the font used when formatting txt output.
 int getFontSize()
          Get the font size used when formatting txt output.
 int getReportType()
          Get the report format of the output stream.
 boolean isBreakPage()
          Returns true if a Ctrl-L is in the report for each page break.
 boolean isShowHeaders()
          Returns true if the header and footers are printed in the report.
 boolean isUseMargins()
          If true, then the left page margin will be included in the output, creating leading spaces for each line.
 void setBreakPage(boolean breakPage)
          Set true if a Ctrl-L is in the report for each page break.
 void setFont(java.lang.String font)
          Set the font used when formatting txt output.
 void setFontSize(int twips)
          Set the font size used when formatting txt output.
 void setShowHeaders(boolean showHeaders)
          Set if the header and footers are printed in the report.
 void setUseMargins(boolean useThem)
          If true, then the left page margin will be included in the output, creating leading spaces for each line.
 
Methods inherited from interface net.windward.xmlreport.ProcessReportAPI
setChartProvider
 
Methods inherited from interface net.windward.xmlreport.ProcessReportAPIBase
addBean, close, duplicate, getBaseDirectory, getCharset, getInfo, getKeywords, getLocale, getNumPages, getReport, getSubject, getTitle, isDebugMode, process, processComplete, processData, processSetup, processSetup, setBaseDirectory, setCharset, setDebugMode, setKeywords, setLocale, setSubject, setTitle
 

Method Detail

getReportType

public int getReportType()
Get the report format of the output stream.
Specified by:
getReportType in interface ProcessReportAPIBase
Returns:
The type (format) of the output report. Will be TYP_TXT.

isUseMargins

public boolean isUseMargins()
If true, then the left page margin will be included in the output, creating leading spaces for each line. If false, the page margins will be ignored and any paragraph with no left indent will start at the begining of a line. The default is false.
Returns:
True if it will include the page margins, false otherwise.

setUseMargins

public void setUseMargins(boolean useThem)
If true, then the left page margin will be included in the output, creating leading spaces for each line. If false, the page margins will be ignored and any paragraph with no left indent will start at the begining of a line. The default is false.
Parameters:
useThem - Set to true to include the page margins, false otherwise.

isShowHeaders

public boolean isShowHeaders()
Returns true if the header and footers are printed in the report. False and they will not be printed. The default is false.
Returns:
true if the headers and footers are printed in the final report.

setShowHeaders

public void setShowHeaders(boolean showHeaders)
Set if the header and footers are printed in the report. True to print and false and they will not be printed. The default is false.
Parameters:
showHeaders - true if the headers and footers are printed in the final report.

isBreakPage

public boolean isBreakPage()
Returns true if a Ctrl-L is in the report for each page break. The default is false.
Returns:
true if a Ctrl-L is in the report for each page break.

setBreakPage

public void setBreakPage(boolean breakPage)
Set true if a Ctrl-L is in the report for each page break. The default is false.
Parameters:
breakPage - true if a Ctrl-L is in the report for each page break.

getFont

public java.lang.String getFont()
Get the font used when formatting txt output. The default is Courier.
Returns:
The name of the font used to format txt output.

setFont

public void setFont(java.lang.String font)
Set the font used when formatting txt output. The default is Courier.
Parameters:
font - The name of the font used to format txt output.

getFontSize

public int getFontSize()
Get the font size used when formatting txt output. This is set in TWIPS or 20ths of a point. So a value of 240 (the default) is 12 points.
Returns:
The size of the font used to format txt output in twips.

setFontSize

public void setFontSize(int twips)
Set the font size used when formatting txt output. This is set in TWIPS or 20ths of a point. So a value of 240 (the default) is 12 points.
Parameters:
twips - The size of the font used to format txt output in twips.


Copyright © 2002 - 2008 Windward Reports - All Rights Reserved. java reporting software