|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdirk_krause.tools.DkPrintClient
public class DkPrintClient
Objects of this class can be used to send print jobs to the print system. The job can be either a Printable or a String or a byte array containing PostScript. The webstart variant can handle Printable objects only.
Field Summary | |
---|---|
protected javax.print.attribute.PrintRequestAttributeSet |
asetPr
Attribute set to print a Printable object. |
protected javax.print.attribute.PrintRequestAttributeSet |
asetPs
Attribute set to print PS contents. |
static java.lang.String[] |
def_t
Default strings to show if not string file is found. |
static javax.print.DocFlavor |
dfPr
Document flavor for Printable documents. |
static javax.print.DocFlavor |
dfPs
Document flavor for PS documents. |
protected DkTool |
dkt
General tool. |
protected java.lang.String[] |
psNamesPr
Names of the print services for a Printable. |
protected java.lang.String[] |
psNamesPs
Names of the print services for PS. |
protected javax.print.PrintService[] |
psPr
Print services which can handle a Printable. |
protected javax.print.PrintService[] |
psPs
Print services which can handle PS. |
protected int |
psSelPr
Currently selected Printable printer. |
protected int |
psSelPs
Currently selected PS printer. |
static java.lang.String[] |
t
Strings to show, either from file or the default strings. |
Constructor Summary | |
---|---|
DkPrintClient(DkTool d)
Constructor. |
Method Summary | |
---|---|
DkPrintResult |
handleJob(javax.swing.JFrame w,
java.lang.String psData,
java.awt.print.Printable pr)
Submit one print job. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] def_t
public static java.lang.String[] t
protected DkTool dkt
public static javax.print.DocFlavor dfPs
public static javax.print.DocFlavor dfPr
protected javax.print.attribute.PrintRequestAttributeSet asetPs
protected javax.print.attribute.PrintRequestAttributeSet asetPr
protected javax.print.PrintService[] psPs
protected javax.print.PrintService[] psPr
protected java.lang.String[] psNamesPs
protected java.lang.String[] psNamesPr
protected int psSelPs
protected int psSelPr
Constructor Detail |
---|
public DkPrintClient(DkTool d)
d
- General tool.Method Detail |
---|
public DkPrintResult handleJob(javax.swing.JFrame w, java.lang.String psData, java.awt.print.Printable pr)
w
- The window originating the request.psData
- PS data to print.pr
- Printable to print.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |