superwaba.ext.xplat.io.print
Class TypeWriter
java.lang.Object
|
+--superwaba.ext.xplat.io.print.TypeWriter
- public abstract class TypeWriter
- extends Object
This class acts like a simple typewriter. You can print only text through
it. And, if supported, also set the font. Very good if sending just text is
enough for you.
Constructor Summary |
protected |
TypeWriter()
This class cannot be instantiated |
Method Summary |
abstract void |
println(String s)
This method prints the given String using the current font. |
abstract void |
printParagraph(String s)
This method prints the given String using the current font. |
abstract void |
setFont(Font font)
Sets the font. |
TypeWriter
protected TypeWriter()
throws NotSupportedException
- This class cannot be instantiated
println
public abstract void println(String s)
throws PrinterException
- This method prints the given String using the current font. The text
is not wrapped at end of line.
printParagraph
public abstract void printParagraph(String s)
throws PrinterException,
NotSupportedException
- This method prints the given String using the current font. The text
is wrapped at end of line.
setFont
public abstract void setFont(Font font)
throws PrinterException,
NotSupportedException
- Sets the font. This method may not be supported.