|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.elixirtech.glint.print.GlintStreamPrinter
public class GlintStreamPrinter
GlintStreamPrinter will output to a printer in two modes GUI or Slient mode. In Interactive mode, a number of dialog settings are ignored because they are already fixed by the Glint data. Ideally these would not be shown, but the Java dialog doesn't give that option. The ignored values are:
Constructor Summary | |
---|---|
GlintStreamPrinter()
|
Method Summary | |
---|---|
void |
print(boolean interactive,
java.io.InputStream is,
javax.print.attribute.PrintRequestAttributeSet aset,
javax.print.event.PrintJobListener pjl)
Print API for printing a glint input stream. |
void |
printNonInteractive(javax.print.PrintService ps,
com.elixirtech.glint.IEye eye,
javax.print.attribute.PrintRequestAttributeSet aset,
javax.print.event.PrintJobListener pjl)
Print API for printing a glint Eye object with no dialog. |
void |
printNonInteractive(javax.print.PrintService ps,
java.io.InputStream is,
javax.print.attribute.PrintRequestAttributeSet aset,
javax.print.event.PrintJobListener pjl)
Print API for printing a glint input stream with no dialog. |
void |
setPhysicalPageSize(java.awt.Dimension physicalPageSizeOrNull)
|
void |
setTargetPrinters(java.lang.String[] printers)
Set the printer names that will be tried (in order) for non-interactive printing. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlintStreamPrinter()
Method Detail |
---|
public void setTargetPrinters(java.lang.String[] printers)
printers
- An array of printer names.public void setPhysicalPageSize(java.awt.Dimension physicalPageSizeOrNull)
public void print(boolean interactive, java.io.InputStream is, javax.print.attribute.PrintRequestAttributeSet aset, javax.print.event.PrintJobListener pjl) throws java.io.IOException, javax.print.PrintException, java.awt.print.PrinterException
interactive
- Pass true to show a print dialog or false for silent printingis
- Glint input stream - eg. byte array stream or file input streamaset
- The desired print attributes (see J2SE(TM) Print Service API for the possible parameters)pjl
- To monitor the status of the printer job
java.io.IOException
- An error reading the Glint stream
javax.print.PrintException
- An exception has occurred in the print system
java.awt.print.PrinterException
- No print service found that matches the desired attributes.public void printNonInteractive(javax.print.PrintService ps, java.io.InputStream is, javax.print.attribute.PrintRequestAttributeSet aset, javax.print.event.PrintJobListener pjl) throws java.io.IOException, javax.print.PrintException
ps
- The Print service.is
- Glint input stream - eg. byte array stream or file input streamaset
- The desired print attributes (see J2SE(TM) Print Service API for the possible parameters)pjl
- To monitor the status of the printer job
java.io.IOException
- An error reading the Glint stream
javax.print.PrintException
- An exception has occurred in the print systempublic void printNonInteractive(javax.print.PrintService ps, com.elixirtech.glint.IEye eye, javax.print.attribute.PrintRequestAttributeSet aset, javax.print.event.PrintJobListener pjl) throws java.io.IOException, javax.print.PrintException
ps
- The Print service.eye
- The IEye (glint) objectaset
- The desired print attributes (see J2SE(TM) Print Service API for the possible parameters)pjl
- To monitor the status of the printer job
java.io.IOException
- An error reading the Glint stream
javax.print.PrintException
- An exception has occurred in the print system
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |