Skip navigation links


com.essbase.eas.ui.print
Interface CPrintable

All Known Implementing Classes:
CPrint, CPrintPreview

public interface CPrintable

Title: Description: Copyright: Copyright (c) 2001 Company: Hyperion Solutions Corporation

Version:
1.0
Author:
Sree Menon

Field Summary
static int FIT_HEIGHT_TO_PAGE
           
static int FIT_TO_PAGE
           
static int FIT_WIDTH_TO_PAGE
           
static int LIMIT_COMPONENT_HEIGHT
           
static int LIMIT_COMPONENT_SIZE
           
static int LIMIT_COMPONENT_WIDTH
           
static int USE_COMPONENT_SIZE
           

 

Method Summary
 void addBoldObject(java.lang.Object o)
           
 void addJComponentObject(java.awt.Component comp)
          This will add a UI component to the printing page.
 void addJComponentObject(java.awt.Component jcomp, int mode)
          This will add a UI component to the printing page.
 void addJList(javax.swing.JList list)
           
 void addKeyValue(java.lang.String key, java.lang.String value)
           
 void addListModel(javax.swing.DefaultListModel model)
           
 void addObject(java.lang.Object o)
           
 void addObjects(java.lang.Object[] objects)
           
 void addObjects(java.lang.Object[] objects, java.awt.Font font)
           
 void addRAFObjects(java.lang.Object[] objects)
           
 void addRootTreeNode(javax.swing.tree.TreeNode node)
           
 void addStringWithPagebreaks(java.lang.String text)
           
 void addTable(javax.swing.JTable table)
           
 void addTableModel(javax.swing.table.TableModel model)
           
 void addTextComponent(javax.swing.text.JTextComponent txt)
           
 void addTree(javax.swing.JTree tree)
           
 void addTreeModel(javax.swing.tree.TreeModel model)
           
 java.awt.Font getHeaderFont()
           
 java.awt.Font getPageFont()
           
 java.awt.print.PageFormat getPageFormat()
           
 java.lang.String getTitle()
           
 void setHeader(PageHeader header)
           
 void setHeaderFont(java.awt.Font font)
           
 void setPageFont(java.awt.Font font)
           
 void setTitle(java.lang.String title)
           
 void startNewLine()
           
 void startNewPage()
           

 

Field Detail

USE_COMPONENT_SIZE

static final int USE_COMPONENT_SIZE
See Also:
Constant Field Values

FIT_WIDTH_TO_PAGE

static final int FIT_WIDTH_TO_PAGE
See Also:
Constant Field Values

FIT_HEIGHT_TO_PAGE

static final int FIT_HEIGHT_TO_PAGE
See Also:
Constant Field Values

LIMIT_COMPONENT_WIDTH

static final int LIMIT_COMPONENT_WIDTH
See Also:
Constant Field Values

LIMIT_COMPONENT_HEIGHT

static final int LIMIT_COMPONENT_HEIGHT
See Also:
Constant Field Values

LIMIT_COMPONENT_SIZE

static final int LIMIT_COMPONENT_SIZE
See Also:
Constant Field Values

FIT_TO_PAGE

static final int FIT_TO_PAGE
See Also:
Constant Field Values

Method Detail

setTitle

void setTitle(java.lang.String title)

getTitle

java.lang.String getTitle()

setHeaderFont

void setHeaderFont(java.awt.Font font)

getHeaderFont

java.awt.Font getHeaderFont()

setPageFont

void setPageFont(java.awt.Font font)

getPageFont

java.awt.Font getPageFont()

addObject

void addObject(java.lang.Object o)

addJList

void addJList(javax.swing.JList list)

addListModel

void addListModel(javax.swing.DefaultListModel model)

addRootTreeNode

void addRootTreeNode(javax.swing.tree.TreeNode node)

addTable

void addTable(javax.swing.JTable table)

addTableModel

void addTableModel(javax.swing.table.TableModel model)

addTextComponent

void addTextComponent(javax.swing.text.JTextComponent txt)

addTree

void addTree(javax.swing.JTree tree)

addTreeModel

void addTreeModel(javax.swing.tree.TreeModel model)

addJComponentObject

void addJComponentObject(java.awt.Component comp)
This will add a UI component to the printing page. Note that this will use the current size of the component in rendering the component. So if the component is large, it will span multiple pages.
Parameters:
comp - The component to print

addJComponentObject

void addJComponentObject(java.awt.Component jcomp,
                         int mode)
This will add a UI component to the printing page.
Parameters:
jcomp - The component to print
fitToPage - if true, will scale the component to fit the reamaining space on the current page. So if the component is large, it will be shrunk or if the component is smaller, it will be scaled up. If the value is false, the component is only scaled up to fit the page if the current component size is larger than the page size. So for a component with smaller size, it will be printed using that size.

addRAFObjects

void addRAFObjects(java.lang.Object[] objects)

addBoldObject

void addBoldObject(java.lang.Object o)

addKeyValue

void addKeyValue(java.lang.String key,
                 java.lang.String value)

addObjects

void addObjects(java.lang.Object[] objects)

addObjects

void addObjects(java.lang.Object[] objects,
                java.awt.Font font)

addStringWithPagebreaks

void addStringWithPagebreaks(java.lang.String text)

startNewPage

void startNewPage()

startNewLine

void startNewLine()

setHeader

void setHeader(PageHeader header)

getPageFormat

java.awt.print.PageFormat getPageFormat()

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.