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
-
pageDimension
- Dimensions of the preview page.
-
PrintPreview(Frame, String)
- Constructor for the print previewer.
-
PrintPreview(Frame, String, boolean)
-
-
actionSettings()
- Performs the management of the main ActionListeners settings.
-
changeBorders(double, double, double, double)
- Changes the printing borders.
-
changeBordersDialog()
- Shows the Change Borders Dialog.
-
changeSpokenLanguage(String)
- Implements the LanguageSpeaker interface and listens to the changes of
the spoken language.
-
getActionManager()
- Gets the associated ActionManager.
-
getLanguageLearner()
- Returns a LanguageLearner for the PrintPreview (it's used to learn other
languages).
-
getSpokenLanguages()
- Gets the languages spoken by the PrintPreview.
-
info()
- Shows the Dialog Information of the PreviewDialog.
-
initialize()
- Initializes all the settings in the right order.
-
languageSettings()
- Performs the management of the main LanguageManager settings.
-
nextPage()
- Shows the next page.
-
previewSettings()
- Performs the management of the preview page settings.
-
prevPage()
- Shows the previous page.
-
printDocument()
- Prints the current document.
-
propertiesSettings()
- Performs the management of the main persistent Properties of the
PrintPreview.
-
setPageDimensionMagnifyFactor(double)
- Workaroud for a strange behaviour in the Printing.
-
setText(String)
- Sets the text for the preview.
-
toolbarSettings()
- Performs the management of the main Toolbar settings.
pageDimension
protected Dimension pageDimension
- Dimensions of the preview page.
PrintPreview
public PrintPreview(Frame parent,
String title)
- Constructor for the print previewer. Defines the title.
- Parameters:
- title - the title.
PrintPreview
public PrintPreview(Frame parent,
String title,
boolean modal)
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.
setText
public void setText(String t)
- Sets the text for the preview.
- Parameters:
- t - the text.
getActionManager
public ActionManager getActionManager()
- Gets the associated ActionManager.
- Returns:
- the ActionManager.
propertiesSettings
public void propertiesSettings()
- Performs the management of the main persistent Properties of the
PrintPreview.
toolbarSettings
public void toolbarSettings()
- Performs the management of the main Toolbar settings.
actionSettings
public void actionSettings()
- Performs the management of the main ActionListeners settings.
languageSettings
public void languageSettings()
- Performs the management of the main LanguageManager settings.
previewSettings
public void previewSettings()
- Performs the management of the preview page settings.
initialize
public void initialize()
- Initializes all the settings in the right order.
changeBordersDialog
public void changeBordersDialog()
- Shows the Change Borders Dialog.
changeBorders
public void changeBorders(double left,
double bottom,
double right,
double top)
- Changes the printing borders.
prevPage
public void prevPage()
- Shows the previous page.
nextPage
public void nextPage()
- Shows the next page.
printDocument
public void printDocument()
- Prints the current document.
info
public void info()
- Shows the Dialog Information of the PreviewDialog.
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
getSpokenLanguages
public Enumeration getSpokenLanguages()
- Gets the languages spoken by the PrintPreview.
- Returns:
- languages spoken.
- Overrides:
- getSpokenLanguages in class BoxDialog
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