superwaba.ext.palm.io.print.irprint
Class IrPrintTypeWriter
java.lang.Object
|
+--superwaba.ext.xplat.io.print.TypeWriter
|
+--superwaba.ext.palm.io.print.irprint.IrPrintTypeWriter
- public class IrPrintTypeWriter
- extends TypeWriter
This class implements the superwaba.ext.xplat.print.TypeWriter class.
It 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.
|
Method Summary |
void |
println(java.lang.String s)
This method prints the given String using the current font. |
void |
printParagraph(java.lang.String s)
This method prints the given String using the current font. |
void |
setFont(Font font)
This method is not be supported in the PrintBoy library for a TypeWritter.
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
println
public void println(java.lang.String s)
throws PrinterException
- This method prints the given String using the current font. The text
is not wrapped at end of line. Note: in IrPrint, when you print multiple columns,
you must use
println to define the text columns. Then you must call
printParagraph with the first text used in the first column, to
start printing from it. Seems messy, but is how it is specified.
- Overrides:
- println in class TypeWriter
- See Also:
printParagraph(java.lang.String)
setFont
public void setFont(Font font)
throws PrinterException,
NotSupportedException
- This method is not be supported in the PrintBoy library for a TypeWritter.
Note: font faces must be: Roman, Courier, Gothic or Pretige.
- Overrides:
- setFont in class TypeWriter
printParagraph
public void printParagraph(java.lang.String s)
throws PrinterException,
NotSupportedException
- This method prints the given String using the current font. The text
is wrapped at end of line.
- Overrides:
- printParagraph in class TypeWriter