|
Side of Software Print Preview Library 1.8.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.plaf.ComponentUI | +--sos.preview.PrintPreviewPaneUI | +--sos.preview.BasicPrintPreviewPaneUI
A basic implementation of the print preview pane look and feel.
PrintPreviewPaneUI
,
JPrintPreviewPane
Field Summary | |
static java.lang.Object |
BACKGROUND_KEY
The look-and-feel key for the background color. |
static java.lang.Object |
BOTTOM_MARGIN
The look-and-feel key for the bottom margin. |
static java.lang.Object |
FOREGROUND_KEY
The look-and-feel key for the foreground color. |
static java.lang.Object |
HORIZONTAL_ALIGNMENT
The look-and-feel key for the horizontal alignment of print preview pages. |
static java.lang.Object |
HORIZONTAL_SPACING
The look-and-feel key for the horizontal space between print preview pages. |
static java.lang.Object |
LEFT_MARGIN
The look-and-feel key for the left margin. |
protected JPrintPreviewPane |
printPreviewPane
The print preview pane that this look and feel is overseeing. |
static java.lang.Object |
RIGHT_MARGIN
The look-and-feel key for the right margin. |
static java.lang.Object |
SELECTION_BACKGROUND_KEY
The look-and-feel key for the selection background color. |
static java.lang.Object |
SELECTION_FOREGROUND_KEY
The look-and-feel key for the selection foreground color. |
static java.lang.Object |
TOP_MARGIN
The look-and-feel key for the top margin. |
static java.lang.Object |
VERTICAL_ALIGNMENT
The look-and-feel key for the vertical alignment of print preview pages. |
static java.lang.Object |
VERTICAL_SPACING
The look-and-feel key for the vertical space between print preview pages. |
Constructor Summary | |
BasicPrintPreviewPaneUI()
Creates a new instance of BasicPrintPreviewPaneUI |
Method Summary | |
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. |
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. |
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. |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener()
Returns a PropertyChangeListener that responds to changes in the
print preview pane. |
protected java.awt.Cursor |
createSelectionCursor()
Returns a cursor that indicates that the print preview pane is in "selection" mode. |
protected javax.swing.event.ListSelectionListener |
createSelectionListener()
Returns an object that listens to page selection changes. |
protected javax.swing.event.MouseInputListener |
createSelectionMouseInputListener()
Returns a mouse listener that responds to mouse events when the print preview pane is in "selection" mode. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the UI delegate for the specified component. |
protected java.awt.Cursor |
createZoomCursor()
Returns a cursor that indicates that the print preview pane is in "zoom" mode. |
protected java.awt.Cursor |
createZoomInCursor()
Returns a cursor that indicates that the print preview pane is in "zoom in" mode. |
protected javax.swing.event.MouseInputListener |
createZoomInMouseInputListener()
Returns a mouse listener that responds to mouse events when the print preview pane is in "zoom in" mode. |
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. |
protected javax.swing.event.MouseInputListener |
createZoomMouseInputListener()
Returns a mouse listener that responds to mouse events when the print preview pane is in "zoom" mode. |
protected java.awt.Cursor |
createZoomOutCursor()
Returns a cursor that indicates that the print preview pane is in "zoom out" mode. |
protected javax.swing.event.MouseInputListener |
createZoomOutMouseInputListener()
Returns a mouse listener that responds to mouse events when the print preview pane is in "zoom out" mode. |
protected void |
installDefaults()
Installs the default colors of the print preview pane. |
protected void |
installListeners()
Installs the look and feel's listeners into the print preview pane and possibly any of its child pages. |
void |
installUI(javax.swing.JComponent c)
Configures the specified component appropriate for the look and feel. |
protected void |
uninstallDefaults()
Uninstalls the defaults installed by installDefaults . |
protected void |
uninstallListeners()
Uninstalls the listeners installed by this look and feel object. |
void |
uninstallUI(javax.swing.JComponent c)
Reverses configuration which was done on the specified component during installUI . |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.Object BACKGROUND_KEY
UIManager.put( BasicPrintPreviewPageUI.BACKGROUND_KEY, Color.blue );
public static final java.lang.Object BOTTOM_MARGIN
UIManager.put( BasicPrintPreviewPageUI.BOTTOM_MARGIN, new Integer( x ));
public static final java.lang.Object FOREGROUND_KEY
UIManager.put( BasicPrintPreviewPageUI.FOREGROUND_KEY, Color.blue );
public static final java.lang.Object LEFT_MARGIN
UIManager.put( BasicPrintPreviewPageUI.LEFT_MARGIN, new Integer( x ));
public static final java.lang.Object HORIZONTAL_ALIGNMENT
UIManager.put( BasicPrintPreviewPageUI.HORIZONTAL_ALIGNMENT, new Integer( x ));
public static final java.lang.Object HORIZONTAL_SPACING
UIManager.put( BasicPrintPreviewPageUI.HORIZONTAL_SPACING, new Integer( x ));
public static final java.lang.Object RIGHT_MARGIN
UIManager.put( BasicPrintPreviewPageUI.RIGHT_MARGIN, new Integer( x ));
public static final java.lang.Object SELECTION_BACKGROUND_KEY
UIManager.put( BasicPrintPreviewPageUI.SELECTION_BACKGROUND_KEY, Color.blue );
public static final java.lang.Object SELECTION_FOREGROUND_KEY
UIManager.put( BasicPrintPreviewPageUI.SELECTION_FOREGROUND_KEY, Color.blue );
public static final java.lang.Object TOP_MARGIN
UIManager.put( BasicPrintPreviewPageUI.TOP_MARGIN, new Integer( x ));
public static final java.lang.Object VERTICAL_ALIGNMENT
UIManager.put( BasicPrintPreviewPageUI.VERTICAL_ALIGNMENT, new Integer( x ));
public static final java.lang.Object VERTICAL_SPACING
UIManager.put( BasicPrintPreviewPageUI.VERTICAL_SPACING, new Integer( x ));
protected JPrintPreviewPane printPreviewPane
Constructor Detail |
public BasicPrintPreviewPaneUI()
BasicPrintPreviewPaneUI
Method Detail |
public java.awt.LayoutManager createFitAllLayout(JPrintPreviewPane printPreviewPane)
PrintPreviewPaneUI
createFitAllLayout
in class PrintPreviewPaneUI
printPreviewPane
- print preview pane for which the layout manager
is to be created
public java.awt.LayoutManager createFitLayout(JPrintPreviewPane printPreviewPane)
PrintPreviewPaneUI
createFitLayout
in class PrintPreviewPaneUI
printPreviewPane
- print preview pane for which the layout manager
is to be created
public java.awt.LayoutManager createMatrixLayout(JPrintPreviewPane printPreviewPane, int numRows, int numColumns)
PrintPreviewPaneUI
createMatrixLayout
in class PrintPreviewPaneUI
printPreviewPane
- print preview pane for which the layout manager
is to be creatednumRows
- number of rows per "screen"numColumns
- number of columns per "screen"
protected java.beans.PropertyChangeListener createPropertyChangeListener()
PropertyChangeListener
that responds to changes in the
print preview pane.
PropertyChangeListener
that responds to changes in the
print preview pane.protected java.awt.Cursor createSelectionCursor()
protected javax.swing.event.ListSelectionListener createSelectionListener()
ListSelectionListener
that responds
to changes in page selectionprotected javax.swing.event.MouseInputListener createSelectionMouseInputListener()
MouseInputListener
that handles selection mouse eventspublic java.awt.LayoutManager createZoomLayout(JPrintPreviewPane printPreviewPane, double scale)
PrintPreviewPaneUI
createZoomLayout
in class PrintPreviewPaneUI
printPreviewPane
- print preview pane for which the layout manager
is to be createdscale
- about to scale the pages
scale
protected java.awt.Cursor createZoomCursor()
protected java.awt.Cursor createZoomInCursor()
protected java.awt.Cursor createZoomOutCursor()
protected javax.swing.event.MouseInputListener createZoomMouseInputListener()
MouseInputListener
that handles zoom mouse eventsprotected javax.swing.event.MouseInputListener createZoomInMouseInputListener()
MouseInputListener
that handles zoom-in mouse eventsprotected javax.swing.event.MouseInputListener createZoomOutMouseInputListener()
MouseInputListener
that handles zoom-out mouse eventspublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
protected void installDefaults()
uninstallDefaults()
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
uninstallUI(javax.swing.JComponent)
protected void installListeners()
protected void uninstallDefaults()
installDefaults
.
installDefaults()
protected void uninstallListeners()
installListeners()
public void uninstallUI(javax.swing.JComponent c)
installUI
.
uninstallUI
in class javax.swing.plaf.ComponentUI
installUI(javax.swing.JComponent)
|
Side of Software Print Preview Library 1.8.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |