Skip navigation links
com.essbase.eas.ui.print
Class CPrint
java.lang.Object
com.essbase.eas.utils.print.CDefaultPrint
com.essbase.eas.ui.print.CPrint
- All Implemented Interfaces:
- CPrintable, CBook
- Direct Known Subclasses:
- CPrintPreview
-
public class CPrint
- extends CDefaultPrint
- implements CPrintable
Title: Description: Copyright: Copyright (c) 2001 Company: Hyperion Solutions Corporation
- Version:
- 1.0
- Author:
- Sree Menon
Fields inherited from class com.essbase.eas.utils.print.CDefaultPrint |
EOL, FIT_HEIGHT_TO_PAGE, FIT_TO_PAGE, FIT_WIDTH_TO_PAGE, header, headerFont, job, LIMIT_COMPONENT_HEIGHT, LIMIT_COMPONENT_SIZE, LIMIT_COMPONENT_WIDTH, lineBreak, lines, pageBreak, pageFont, pageFormat, previewComp, title, USE_COMPONENT_SIZE |
Method Summary |
void |
addObject(java.lang.Object o)
Adds an object to the print The object could be one of the following: TableModel JTable TreeNode TreeModel JTree String Color Font Component Incase the object is a string, its broken up into multiple lines if it has new line characters in it. |
java.awt.print.Pageable |
createBook()
|
static java.awt.FontMetrics |
getFontMetrics(java.awt.Font font)
|
boolean |
print(java.awt.print.Book book)
|
Methods inherited from class com.essbase.eas.utils.print.CDefaultPrint |
addBoldObject, addDocument, addJComponentObject, addJComponentObject, addJList, addKeyValue, addListModel, addObjects, addObjects, addRAFObjects, addRootTreeNode, addStringWithPagebreaks, addTable, addTableModel, addTextComponent, addTree, addTreeModel, createBook, dispose, disposeObject, getHeaderFont, getPageFont, getPageFormat, getPreviewComponent, getTextPainter, getTitle, pageSetup, print, print, setHeader, setHeaderFont, setPageFont, setPreviewComponent, setTitle, startNewLine, startNewPage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.essbase.eas.ui.print.CPrintable |
addBoldObject, addJComponentObject, addJComponentObject, addJList, addKeyValue, addListModel, addObjects, addObjects, addRAFObjects, addRootTreeNode, addStringWithPagebreaks, addTable, addTableModel, addTextComponent, addTree, addTreeModel, getHeaderFont, getPageFont, getPageFormat, getTitle, setHeader, setHeaderFont, setPageFont, setTitle, startNewLine, startNewPage |
CPrint
public CPrint()
CPrint
public CPrint(java.lang.String title)
CPrint
public CPrint(PageHeader header)
CPrint
public CPrint(java.lang.String title,
PageHeader header)
addObject
public void addObject(java.lang.Object o)
- Description copied from interface:
CBook
- Adds an object to the print The object could be one of the following:
- TableModel
- JTable
- TreeNode
- TreeModel
- JTree
- String
- Color
- Font
- Component
Incase the object is a string, its broken up into multiple lines if it has new line characters in it. Incase of Component, it will be drawn with the current width and height.
-
- Specified by:
addObject
in interface CPrintable
- Specified by:
addObject
in interface CBook
- Overrides:
addObject
in class CDefaultPrint
-
- Parameters:
o
- object
createBook
public java.awt.print.Pageable createBook()
-
- Overrides:
createBook
in class CDefaultPrint
print
public boolean print(java.awt.print.Book book)
getFontMetrics
public static java.awt.FontMetrics getFontMetrics(java.awt.Font font)
Skip navigation links
Copyright © 2001, 2007, Oracle. All rights reserved.