|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.print.SwingPrintContext
The SwingPrintContext class defines print settings to use
inside an AWT/Swing environment. Furthermore it provides
createBook methods to create a TableBook instance
from a given VisualGraphView object.
| Constructor Summary | |
SwingPrintContext()
Empty default constructor |
|
| Method Summary | |
java.awt.print.Book |
createBook(BasePageFormat pageFormat,
VisualGraphView view)
Method createBook creates a book according to current screen resolution. |
java.awt.print.Book |
createBook(BasePageFormat pageFormat,
VisualGraphView view,
boolean drawScissorBorder)
Method createBook creates a book according to current screen resolution. |
java.awt.print.Book |
createBook(BasePageFormat pageFormat,
VisualGraphView view,
boolean drawScissorBorder,
boolean forPrint)
Method createBook creates a book according to current screen resolution. |
BasePageFormat |
getPageFormat(BasePageFormat bpf)
Returns a new BasePageFormat instance based on the
given BasePageFormat object. |
BasePageFormat |
getPageFormat(java.lang.String paperName)
Returns a BasePageFormat instance specified by the
given paper name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwingPrintContext()
| Method Detail |
public BasePageFormat getPageFormat(java.lang.String paperName)
PrintContextBasePageFormat instance specified by the
given paper name.
getPageFormat in interface PrintContextpaperName - a name which marks a page format
BasePageFormatpublic BasePageFormat getPageFormat(BasePageFormat bpf)
PrintContextBasePageFormat instance based on the
given BasePageFormat object.
getPageFormat in interface PrintContextbpf - a BasePageFormat
BasePageFormat instance based on the specified
parameter
public final java.awt.print.Book createBook(BasePageFormat pageFormat,
VisualGraphView view)
pageFormat - The PageFormat to create the book for,view - the view which needs to be book'ed.
PageFormat.
public final java.awt.print.Book createBook(BasePageFormat pageFormat,
VisualGraphView view,
boolean drawScissorBorder)
pageFormat - The PageFormat to create the book for,view - the view which needs to be book'ed.drawScissorBorder - If this is true, the printables will draw the scissor borders
PageFormat.
public final java.awt.print.Book createBook(BasePageFormat pageFormat,
VisualGraphView view,
boolean drawScissorBorder,
boolean forPrint)
pageFormat - The PageFormat to create the book for,view - the view which needs to be book'ed.drawScissorBorder - If this is true, the printables will draw the scissor bordersforPrint - if true, the book will be used for printing, which means
empty pages are removed if the corresponding option
is on
PageFormat.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||