Skip navigation links


com.essbase.eas.utils.print
Interface CBook

All Known Implementing Classes:
CDefaultPrint, CPrint, CPrintPreview

public interface CBook

implements the book interface

Since:
6.5.1
Version:
7.1.0
Author:
Sree Menon

Method Summary
 void addBoldObject(java.lang.Object o)
          Adds an object with a bold font.
 void addKeyValue(java.lang.String key, java.lang.String value)
          Adds a lable and value.
 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.
 void addObjects(java.lang.Object[] objects)
          Adds an array of objects, each starting on a new line
 void addObjects(java.lang.Object[] objects, java.awt.Font font)
          Adds an array of objects using the font, each starting on a new line
 java.awt.Font getHeaderFont()
          Returns the current font used to draw the page heading
 java.awt.Font getPageFont()
          Returns the font used to draw the page
 java.lang.String getTitle()
          Returns the title
 void setHeader(PageHeader header)
          Sets the header class
 void setHeaderFont(java.awt.Font font)
          Sets the font used to draw the page heading
 void setPageFont(java.awt.Font font)
          Sets the font used to draw the page
 void setTitle(java.lang.String title)
          Sets the title for each page
 void startNewLine()
          Explicitly starts a new line
 void startNewPage()
          Explicitly starts a new page

 

Method Detail

setTitle

void setTitle(java.lang.String title)
Sets the title for each page
Parameters:
title - the title of the book

getTitle

java.lang.String getTitle()
Returns the title
Returns:
the title

setHeaderFont

void setHeaderFont(java.awt.Font font)
Sets the font used to draw the page heading
Parameters:
font - the font used for the header of the book

getHeaderFont

java.awt.Font getHeaderFont()
Returns the current font used to draw the page heading
Returns:
header font

setPageFont

void setPageFont(java.awt.Font font)
Sets the font used to draw the page
Parameters:
font - page font

getPageFont

java.awt.Font getPageFont()
Returns the font used to draw the page
Returns:
page font

addObject

void addObject(java.lang.Object o)
Adds an object to the print The object could be one of the following: 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.
Parameters:
o - object

addBoldObject

void addBoldObject(java.lang.Object o)
Adds an object with a bold font. Uses to print tab titles. The line is moved to next line
Parameters:
o - the object to be draw bold

addKeyValue

void addKeyValue(java.lang.String key,
                 java.lang.String value)
Adds a lable and value. The label will be printed using the current font and the value using a bold font
Parameters:
key - the key (drawn in bold)
value - the value (drawn plain)

addObjects

void addObjects(java.lang.Object[] objects)
Adds an array of objects, each starting on a new line
Parameters:
objects - array of objects

addObjects

void addObjects(java.lang.Object[] objects,
                java.awt.Font font)
Adds an array of objects using the font, each starting on a new line
Parameters:
objects - array of objects
font - the font to be used for the objects.

startNewPage

void startNewPage()
Explicitly starts a new page

startNewLine

void startNewLine()
Explicitly starts a new line

setHeader

void setHeader(PageHeader header)
Sets the header class
Parameters:
header - custom page header

Skip navigation links


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