public final class PrinterUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static javax.print.attribute.standard.MediaSizeName |
findMedia(java.lang.String media,
float width,
float height,
int sz) |
static javax.print.PrintService |
getDefaultPrintService()
Get default Print service.
|
static java.awt.print.PageFormat |
getPageFormat(com.elixirtech.glint.IEye.PageSetup pageSetup) |
static java.lang.String[] |
getPrinters()
Retrieve printer deployed on the system.
|
static javax.print.PrintService[] |
getPrintServices()
Retrieve Print services.
|
static java.awt.print.PageFormat |
getScaledPageFormat(com.elixirtech.glint.IEye.PageSetup pageSetup,
java.awt.Dimension physicalPageSize) |
static javax.print.PrintService |
getSelectedPrintService(java.lang.String printerName)
Get selected Print services.
|
public static java.lang.String[] getPrinters()
String[] Array of string of printer names.public static javax.print.PrintService[] getPrintServices()
PrintService[] Array of PrintServices.public static javax.print.PrintService getSelectedPrintService(java.lang.String printerName)
PrintService[] Array of PrintServices.public static javax.print.PrintService getDefaultPrintService()
PrintService[] Array of PrintServices.public static javax.print.attribute.standard.MediaSizeName findMedia(java.lang.String media,
float width,
float height,
int sz)
public static java.awt.print.PageFormat getPageFormat(com.elixirtech.glint.IEye.PageSetup pageSetup)
public static java.awt.print.PageFormat getScaledPageFormat(com.elixirtech.glint.IEye.PageSetup pageSetup,
java.awt.Dimension physicalPageSize)