edu.stanford.hci.r3.printing
Class Printer

java.lang.Object
  extended by edu.stanford.hci.r3.printing.Printer
Direct Known Subclasses:
Java2DPrinter, PDFPrinter, PostscriptPrinter

public class Printer
extends java.lang.Object

Represents a printer, and enables you to control it.

This software is distributed under the BSD License.


Constructor Summary
Printer(javax.print.PrintService serv)
          Creates a Printer that points to the default print service.
 
Method Summary
static void displayPageFormat(java.awt.print.PageFormat pageFormat)
           
 double getDPI()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Printer

public Printer(javax.print.PrintService serv)
Creates a Printer that points to the default print service.

Parameters:
serv -
Method Detail

displayPageFormat

public static void displayPageFormat(java.awt.print.PageFormat pageFormat)
Parameters:
pageFormat -

getDPI

public double getDPI()
Returns:
the dots per inch (resolution) of this printer.

Copyright 2006 Stanford University