public class PrintFilePainter
extends java.lang.Object
implements java.awt.print.Printable
Constructor and Description |
---|
PrintFilePainter(java.lang.String file)
Builds the painter.
|
Modifier and Type | Method and Description |
---|---|
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex) |
void |
setFont(java.awt.Font f) |
void |
setForeground(java.awt.Color c) |
public PrintFilePainter(java.lang.String file)
file
- name of the file.public void setFont(java.awt.Font f)
public void setForeground(java.awt.Color c)
public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex) throws java.awt.print.PrinterException
print
in interface java.awt.print.Printable
java.awt.print.PrinterException
JHepSim. A part of HSTOOLS. version-1.2