public class NetworkPrinter
extends java.lang.Object
implements java.awt.print.Printable
Constructor and Description |
---|
NetworkPrinter(TNetwork network)
construct a network printer.
|
Modifier and Type | Method and Description |
---|---|
TNetwork |
getNetwork()
get the network component.
|
java.awt.print.PageFormat |
getPageFormat()
Get the page format.
|
boolean |
isEqual(java.awt.print.PageFormat pf1,
java.awt.print.PageFormat pf2)
Tests, whether the given two page format objects are equal.
|
boolean |
isPreviewing() |
boolean |
isPrinting() |
void |
preview()
Display the network print preview dialog.
|
void |
print()
Print network canvas.
|
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pageFormat,
int pageIndex)
Print network component.
|
protected boolean |
setup()
Setup the printer job.
|
public NetworkPrinter(TNetwork network)
network
- TNetwork the network component.public void preview()
public boolean isPrinting()
public boolean isPreviewing()
public void print()
protected boolean setup()
public boolean isEqual(java.awt.print.PageFormat pf1, java.awt.print.PageFormat pf2)
pf1
- the first page format that should be compared.pf2
- the second page format that should be compared.public int print(java.awt.Graphics g, java.awt.print.PageFormat pageFormat, int pageIndex) throws java.awt.print.PrinterException
print
in interface java.awt.print.Printable
g
- Graphics graphics object.pageFormat
- PageFormat the page format object.pageIndex
- int the page index.java.awt.print.PrinterException
public java.awt.print.PageFormat getPageFormat()
public TNetwork getNetwork()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.