|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsmacs.xngr.browser.editor.TextPrinter
A simple text printer class.
| Method Summary | |
Font |
getFont()
Get the printing font. |
static TextPrinter |
getPrinter()
returns the one text-printer object |
boolean |
isPrintHeader()
Find out if printing of the header has been enabled. |
boolean |
isPrintLineNumber()
Find out if printing of line numbers has been enabled. |
boolean |
isWrapText()
Find out if wrapping of text has been enabled. |
void |
print(PlainDocument document)
Prints a document! |
void |
print(PlainDocument document,
String title,
int tabSize)
Prints a document! |
void |
print(String[] text)
Prints an array of Strings! |
void |
print(String[] text,
String title,
int tabSize)
Prints an array of Strings! |
void |
setFont(Font font)
Set the printing font. |
void |
setPrintHeader(boolean enable)
Enable/Disable printing of the header. |
void |
setPrintLineNumber(boolean enable)
Enable/Disable printing of line numbers. |
void |
setup()
Setup the printer! |
void |
setWrapText(boolean enable)
Enable/Disable wrapping of text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static TextPrinter getPrinter()
public void print(PlainDocument document)
throws PrinterException
document - the document to print.
PrinterException
public void print(PlainDocument document,
String title,
int tabSize)
throws PrinterException
document - the document to print.title - the document title.tabSize - the size of the tabs.
PrinterException
public void print(String[] text)
throws PrinterException
text - the array of strings.
PrinterException
public void print(String[] text,
String title,
int tabSize)
throws PrinterException
text - the array of strings.title - the document title.tabSize - the size of the tabs.
PrinterExceptionpublic void setup()
public void setPrintLineNumber(boolean enable)
enable - enable the printing of line numbers.public boolean isPrintLineNumber()
public void setWrapText(boolean enable)
enable - enable the wrapping of text.public boolean isWrapText()
public void setPrintHeader(boolean enable)
enable - enable the printing of the header.public boolean isPrintHeader()
public void setFont(Font font)
font - the printing font.public Font getFont()
|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||