Side of Software
Print Preview Library 1.8.1

sos.preview
Class PrintPreviewPaneUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--sos.preview.PrintPreviewPaneUI
Direct Known Subclasses:
BasicPrintPreviewPaneUI

public abstract class PrintPreviewPaneUI
extends javax.swing.plaf.ComponentUI

The JPrintPreviewPane pluggable look and feel delegate.

Since:
1.0
See Also:
JPrintPreviewPane

Constructor Summary
PrintPreviewPaneUI()
           
 
Method Summary
abstract  java.awt.LayoutManager createFitAllLayout(JPrintPreviewPane printPreviewPane)
          Creates and returns a layout scheme that scales all pages such that they fit in the specified print preview pane's viewport.
abstract  java.awt.LayoutManager createFitLayout(JPrintPreviewPane printPreviewPane)
          Creates and returns a layout scheme that scales all pages such that one dimension of the largest page fits in the specified print preview pane's viewport.
abstract  java.awt.LayoutManager createMatrixLayout(JPrintPreviewPane printPreviewPane, int numRows, int numColumns)
          Creates and returns a layout scheme that arranges pages into rows and columns that fit the bounds of the specified print preview pane's parent.
abstract  java.awt.LayoutManager createZoomLayout(JPrintPreviewPane printPreviewPane, double scale)
          Creates and returns a layout scheme (appropriate for the specified print preview pane) that scales pages a fixed amount.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintPreviewPaneUI

public PrintPreviewPaneUI()
Method Detail

createFitAllLayout

public abstract java.awt.LayoutManager createFitAllLayout(JPrintPreviewPane printPreviewPane)
Creates and returns a layout scheme that scales all pages such that they fit in the specified print preview pane's viewport.

Parameters:
printPreviewPane - print preview pane for which the layout manager is to be created
Returns:
a layout manager that fits all pages in the bounds of the print preview pane's viewport

createFitLayout

public abstract java.awt.LayoutManager createFitLayout(JPrintPreviewPane printPreviewPane)
Creates and returns a layout scheme that scales all pages such that one dimension of the largest page fits in the specified print preview pane's viewport.

Parameters:
printPreviewPane - print preview pane for which the layout manager is to be created
Returns:
a layout manager that sizes the pages such that one dimension matches the print preview pane's viewport

createMatrixLayout

public abstract java.awt.LayoutManager createMatrixLayout(JPrintPreviewPane printPreviewPane,
                                                          int numRows,
                                                          int numColumns)
Creates and returns a layout scheme that arranges pages into rows and columns that fit the bounds of the specified print preview pane's parent.

Parameters:
printPreviewPane - print preview pane for which the layout manager is to be created
numRows - number of rows per "screen"
numColumns - number of columns per "screen"
Returns:
a layout manager that arranges the print preview pane's pages into a matrix

createZoomLayout

public abstract java.awt.LayoutManager createZoomLayout(JPrintPreviewPane printPreviewPane,
                                                        double scale)
Creates and returns a layout scheme (appropriate for the specified print preview pane) that scales pages a fixed amount.

Parameters:
printPreviewPane - print preview pane for which the layout manager is to be created
scale - about to scale the pages
Returns:
a layout manager that scales print preview pages by scale

Side of Software
Print Preview Library 1.8.1

Copyright 2003-07 Side of Software (SOS). All rights reserved.