|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--com.klg.jclass.page.awt.JCAWTPreviewer
The JCAWTPreviewer
is a frame to display print pages. It allows
users to flip through the pages and send the current page or
all the pages to the printer.
Nested Class Summary |
Nested classes inherited from class javax.swing.JDialog |
JDialog.AccessibleJDialog |
Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected JButton |
closeButton
|
protected com.klg.jclass.page.JCDocument |
document
|
protected JButton |
firstButton
|
protected JButton |
lastButton
|
protected JButton |
nextButton
|
protected JScrollPane |
pane
|
protected JButton |
prevButton
|
protected JButton |
printButton
|
protected com.klg.jclass.page.awt.JCAWTScreenPrinter |
printer
|
protected com.klg.jclass.page.awt.JCPrintPage |
printPage
|
protected JLabel |
status
|
Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JCAWTPreviewer(String title,
JFrame frame,
com.klg.jclass.page.JCDocument document)
Creates a new PrintPreview frame. |
|
JCAWTPreviewer(String title,
JFrame frame,
com.klg.jclass.page.JCDocument document,
com.klg.jclass.page.JCPrinter printer)
Creates a new PrintPreview frame. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
ActionListener method. |
void |
createPage(Dimension d)
Creates an image of the page to preview. |
void |
dispose()
Disposes of the PageLayout objects that are being held. |
protected int |
getNumPages()
Returns the number of pages in this document. |
int |
getPageHeight()
Gets the height of a page. |
int |
getPageWidth()
Gets the width of a page. |
com.klg.jclass.page.JCPrinter |
getPrinter()
Returns the screen printer for this previewer. |
void |
showPage(int pageIndex)
Generates a new page image and posts it to the PrintPage component for display. |
void |
windowActivated(WindowEvent e)
WindowListener methods. |
void |
windowClosed(WindowEvent e)
|
void |
windowClosing(WindowEvent e)
|
void |
windowDeactivated(WindowEvent e)
|
void |
windowDeiconified(WindowEvent e)
|
void |
windowIconified(WindowEvent e)
|
void |
windowOpened(WindowEvent e)
|
Methods inherited from class java.awt.Dialog |
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected JButton firstButton
protected JButton prevButton
protected JButton nextButton
protected JButton lastButton
protected JButton printButton
protected JButton closeButton
protected JScrollPane pane
protected JLabel status
protected com.klg.jclass.page.awt.JCAWTScreenPrinter printer
protected com.klg.jclass.page.JCDocument document
protected com.klg.jclass.page.awt.JCPrintPage printPage
Constructor Detail |
public JCAWTPreviewer(String title, JFrame frame, com.klg.jclass.page.JCDocument document)
PrintPreview
frame.
title
- the title of the frameframe
- the frame in which to show the previewerdocument
- the laid out document to previewpublic JCAWTPreviewer(String title, JFrame frame, com.klg.jclass.page.JCDocument document, com.klg.jclass.page.JCPrinter printer)
PrintPreview
frame.
title
- the title of the frameframe
- the frame in which to show the previewerdocument
- the laid out document to previewprinter
- the JCAWTScreenPrinter
whose component will be
be used to draw on in this previewerMethod Detail |
public void createPage(Dimension d)
d
- public void showPage(int pageIndex)
PrintPage
component for display.
pageIndex
- public void dispose()
dispose
in class Dialog
protected int getNumPages()
public void actionPerformed(ActionEvent e)
ActionListener
method.
actionPerformed
in interface ActionListener
e
- public int getPageWidth()
public int getPageHeight()
public com.klg.jclass.page.JCPrinter getPrinter()
public void windowActivated(WindowEvent e)
WindowListener
methods.
windowActivated
in interface WindowListener
e
- public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |