|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CBook
implements the book interface
| 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 |
|---|
void setTitle(java.lang.String title)
title - the title of the bookjava.lang.String getTitle()
void setHeaderFont(java.awt.Font font)
font - the font used for the header of the bookjava.awt.Font getHeaderFont()
void setPageFont(java.awt.Font font)
font - page fontjava.awt.Font getPageFont()
void addObject(java.lang.Object o)
o - objectvoid addBoldObject(java.lang.Object o)
o - the object to be draw bold
void addKeyValue(java.lang.String key,
java.lang.String value)
key - the key (drawn in bold)value - the value (drawn plain)void addObjects(java.lang.Object[] objects)
objects - array of objects
void addObjects(java.lang.Object[] objects,
java.awt.Font font)
objects - array of objectsfont - the font to be used for the objects.void startNewPage()
void startNewLine()
void setHeader(PageHeader header)
header - custom page header
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||