com.sshtools.common.ui

Class PrintPreview

Implemented Interfaces:
ActionListener, Runnable

public class PrintPreview
extends JPanel
implements ActionListener, Runnable

Version:
$Revision: 1.13 $
Author:
$author$

Field Summary

protected PrinterJob
job
protected PageFormat
pageFormat
protected int
pageHeight
protected int
pageWidth
protected com.sshtools.common.ui.PrintPreview.PreviewContainer
previewer
protected Printable
printable
protected JComboBox
scale
protected JScrollPane
scrollpane
protected JButton
setup

Constructor Summary

PrintPreview(Printable printable, PageFormat pageFormat)
Creates a new PrintPreview object.

Method Summary

void
actionPerformed(ActionEvent actionevent)
PageFormat
getPageFormat()
void
run()

Field Details

job

protected PrinterJob job

pageFormat

protected PageFormat pageFormat

pageHeight

protected int pageHeight

pageWidth

protected int pageWidth

previewer

protected com.sshtools.common.ui.PrintPreview.PreviewContainer previewer

printable

protected Printable printable

scale

protected JComboBox scale

scrollpane

protected JScrollPane scrollpane

setup

protected JButton setup

Constructor Details

PrintPreview

public PrintPreview(Printable printable,
                    PageFormat pageFormat)
Creates a new PrintPreview object.
Parameters:
printable -
pageFormat -

Method Details

actionPerformed

public void actionPerformed(ActionEvent actionevent)
Parameters:
actionevent -

getPageFormat

public PageFormat getPageFormat()
Returns:

run

public void run()

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.