All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.awt.dialog.preview.PrintPreview

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----tea.awt.dialog.BoxDialog
                                           |
                                           +----tea.awt.dialog.DockerDialog
                                                   |
                                                   +----tea.awt.dialog.preview.PrintPreview

public class PrintPreview
extends DockerDialog
implements LanguageSpeaker

This class implements a simple Print Preview Window. It's used to show a preview of the print.

Version:
1.0 beta - 07 June 1997
Author:
Leonardo Boselli
See Also:
PropertiesManager, Toolbar

Variable Index

 o pageDimension
Dimensions of the preview page.

Constructor Index

 o PrintPreview(Frame, String)
Constructor for the print previewer.
 o PrintPreview(Frame, String, boolean)

Method Index

 o actionSettings()
Performs the management of the main ActionListeners settings.
 o changeBorders(double, double, double, double)
Changes the printing borders.
 o changeBordersDialog()
Shows the Change Borders Dialog.
 o changeSpokenLanguage(String)
Implements the LanguageSpeaker interface and listens to the changes of the spoken language.
 o getActionManager()
Gets the associated ActionManager.
 o getLanguageLearner()
Returns a LanguageLearner for the PrintPreview (it's used to learn other languages).
 o getSpokenLanguages()
Gets the languages spoken by the PrintPreview.
 o info()
Shows the Dialog Information of the PreviewDialog.
 o initialize()
Initializes all the settings in the right order.
 o languageSettings()
Performs the management of the main LanguageManager settings.
 o nextPage()
Shows the next page.
 o previewSettings()
Performs the management of the preview page settings.
 o prevPage()
Shows the previous page.
 o printDocument()
Prints the current document.
 o propertiesSettings()
Performs the management of the main persistent Properties of the PrintPreview.
 o setPageDimensionMagnifyFactor(double)
Workaroud for a strange behaviour in the Printing.
 o setText(String)
Sets the text for the preview.
 o toolbarSettings()
Performs the management of the main Toolbar settings.

Variables

 o pageDimension
 protected Dimension pageDimension
Dimensions of the preview page.

Constructors

 o PrintPreview
 public PrintPreview(Frame parent,
                     String title)
Constructor for the print previewer. Defines the title.

Parameters:
title - the title.
 o PrintPreview
 public PrintPreview(Frame parent,
                     String title,
                     boolean modal)

Methods

 o setPageDimensionMagnifyFactor
 public void setPageDimensionMagnifyFactor(double f)
Workaroud for a strange behaviour in the Printing. This function sets the magnify factor to fit the preview page in the physical page (default 1.0 - bug: usually 4/3)

Parameters:
f - the scale factor.
 o setText
 public void setText(String t)
Sets the text for the preview.

Parameters:
t - the text.
 o getActionManager
 public ActionManager getActionManager()
Gets the associated ActionManager.

Returns:
the ActionManager.
 o propertiesSettings
 public void propertiesSettings()
Performs the management of the main persistent Properties of the PrintPreview.

 o toolbarSettings
 public void toolbarSettings()
Performs the management of the main Toolbar settings.

 o actionSettings
 public void actionSettings()
Performs the management of the main ActionListeners settings.

 o languageSettings
 public void languageSettings()
Performs the management of the main LanguageManager settings.

 o previewSettings
 public void previewSettings()
Performs the management of the preview page settings.

 o initialize
 public void initialize()
Initializes all the settings in the right order.

 o changeBordersDialog
 public void changeBordersDialog()
Shows the Change Borders Dialog.

 o changeBorders
 public void changeBorders(double left,
                           double bottom,
                           double right,
                           double top)
Changes the printing borders.

 o prevPage
 public void prevPage()
Shows the previous page.

 o nextPage
 public void nextPage()
Shows the next page.

 o printDocument
 public void printDocument()
Prints the current document.

 o info
 public void info()
Shows the Dialog Information of the PreviewDialog.

 o changeSpokenLanguage
 public boolean changeSpokenLanguage(String l)
Implements the LanguageSpeaker interface and listens to the changes of the spoken language.

Parameters:
l - the spoken language.
Returns:
if the language is supported or not.
Overrides:
changeSpokenLanguage in class BoxDialog
 o getSpokenLanguages
 public Enumeration getSpokenLanguages()
Gets the languages spoken by the PrintPreview.

Returns:
languages spoken.
Overrides:
getSpokenLanguages in class BoxDialog
 o getLanguageLearner
 public LanguageLearner getLanguageLearner()
Returns a LanguageLearner for the PrintPreview (it's used to learn other languages).

Returns:
the LanguageLearner.
Overrides:
getLanguageLearner in class BoxDialog

All Packages  Class Hierarchy  This Package  Previous  Next  Index