|
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 | +--com.klg.jclass.page.JCPrinter | +--com.klg.jclass.page.awt.JCAWTScreenPrinter
Implements the PrinterDriver
interface.
This class creates a component on which pages will be
drawn. Before flowing or drawing can be performed on this
component, it must be realized so its graphics can be
used.
Field Summary | |
protected JComponent |
component
|
Fields inherited from class com.klg.jclass.page.JCPrinter |
bookmarkTree, bookmarkTreeVisible, collate, compressed, endPage, graphics, imageNumber, isDocOpen, numCopies, orientation, os, pageCount, printListeners, reverseOrder, startPage |
Constructor Summary | |
JCAWTScreenPrinter()
Constructor. |
Method Summary | |
void |
beginPage(Rectangle2D pageSize,
int pageNumber)
PS Document Structuring Conventions comments, page orientation, etc. |
void |
closeDocument(Rectangle2D pageSize)
Document completion (for example, PDF cross-reference table and trailer). |
void |
dispose()
|
void |
endPage(Rectangle2D pageSize)
Page bounding box. |
JComponent |
getComponent()
Returns the component on which the pages should be written. |
Graphics |
getGraphics()
Overrides super class's getGraphics . |
boolean |
isImageScalable()
Returns false since images sent to AWT Screen Printer are pre-scaled. |
void |
openDocument(Rectangle2D pageSize)
Any required initialisation (for example, PostScript document headers, etc.). |
protected void |
setGraphics(Graphics2D g)
|
void |
setup()
Creates default styles, any other one-time initialization. |
Methods inherited from class com.klg.jclass.page.JCPrinter |
addPrintListener, getCollate, getFontFamilies, getNumCopies, getOrientation, getOutputPageEnd, getOutputPageStart, getOutputStream, getReverseOrder, isBookmarkTreeVisible, isCompressed, isDocumentOpen, isLandscape, output, output, output, output, removePrintListener, setCollate, setCompressed, setNumCopies, setOrientation, setOutputPageEnd, setOutputPageStart, setOutputStream, setReverseOrder, supportsHyperlinks |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected JComponent component
Constructor Detail |
public JCAWTScreenPrinter()
Method Detail |
public JComponent getComponent()
public Graphics getGraphics()
getGraphics
.
getGraphics
in class JCPrinter
public void setup()
setup
in class JCPrinter
public boolean isImageScalable()
false
since images sent to AWT Screen Printer are pre-scaled.
isImageScalable
in class JCPrinter
false
since images sent to AWT Screen Printer are pre-scaledpublic void openDocument(Rectangle2D pageSize)
openDocument
in class JCPrinter
pageSize
- public void closeDocument(Rectangle2D pageSize)
closeDocument
in class JCPrinter
pageSize
- public void beginPage(Rectangle2D pageSize, int pageNumber)
beginPage
in class JCPrinter
pageSize
- pageNumber
- public void endPage(Rectangle2D pageSize)
endPage
in class JCPrinter
pageSize
- protected void setGraphics(Graphics2D g)
public void dispose()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |