|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--superwaba.ext.xplat.io.print.PrintManager
|
+--superwaba.ext.xplat.io.print.pboy.PBoyPrintManager
Implementation of the print.PrintManager for the PrintBoy support under SuperWaba.
| Fields inherited from class superwaba.ext.xplat.io.print.PrintManager |
g,
set,
tw |
| Constructor Summary | |
PBoyPrintManager()
This class may not be directly instantiated. |
|
| Method Summary | |
void |
close()
Closes this print manager. |
void |
finishPage()
Ends a page, flushing the contents. |
void |
formFeed()
Do a form feed. |
java.lang.String |
getDetailedErrorMessage(PrinterException e)
Given the PrinterException, returns a detailed error message for the problem. |
FontMetrics |
getFontMetrics(Font f)
Gets a FontMetrics object for the given font |
void |
open(java.lang.String printerName,
java.lang.String portName,
int baudRate,
boolean textMode)
Open this print manager. |
void |
startPage()
Start a new page. |
int |
writeBytes(byte[] buf,
int start,
int len)
Send bytes to the printer, usualy scape codes and contents |
| Methods inherited from class superwaba.ext.xplat.io.print.PrintManager |
getGraphics,
getSettings,
getTypeWriter |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public PBoyPrintManager()
try
{
Class c = Class.forName("superwaba.ext.xplat.io.print.pboy.PBoyPrintManager");
pm = (PrintManager)c.newInstance();
...
}
catch (ClassNotFoundException e) {throw new RuntimeException("Please install PalmIoPrintPBoy.pdb");}
catch (Exception ee) {ee.printStackTrace();}
| Method Detail |
public void open(java.lang.String printerName,
java.lang.String portName,
int baudRate,
boolean textMode)
throws PrinterException
public void close()
throws PrinterException
public void formFeed()
throws PrinterException,
NotSupportedException
public FontMetrics getFontMetrics(Font f)
public int writeBytes(byte[] buf,
int start,
int len)
throws PrinterException,
java.lang.ArrayIndexOutOfBoundsException,
NotSupportedException
public void startPage()
throws PrinterException
public void finishPage()
throws PrinterException
public java.lang.String getDetailedErrorMessage(PrinterException e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||