|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.print.Book
com.tensegrity.gui.swing.print.TableBook
The TableBook class extends the java.awt.print.Book
class about the possibility to layout the pages of the book in a
grid-alike style where you can address pages via a x,y semantic.
| Field Summary |
| Fields inherited from interface java.awt.print.Pageable |
UNKNOWN_NUMBER_OF_PAGES |
| Constructor Summary | |
TableBook()
Constructor for TableBook. |
|
| Method Summary | |
int |
getColumnCount()
Method getColumnCount returns the number of columns in this book. |
int |
getPageCount()
Returns the total amount of pages of this book by multiplying getRowCount() with getColumnCount(). |
java.awt.print.PageFormat |
getPageFormat(int pageIndex)
|
java.awt.print.PageFormat |
getPageFormat(int row,
int colum)
Returns the PageFormat instance of the given
rowxcolumn. |
java.awt.print.Printable |
getPrintable(int row,
int colum)
Returns the Printable instance of the given
rowxcolumn. |
int |
getRowCount()
Method getRowCount returns the number of rows of this book. |
void |
setColumnCount(int columns)
Method setColumnCount sets the internal column field. |
void |
setRowCount(int rows)
Method setRowCount sets the internal row field. |
| Methods inherited from class java.awt.print.Book |
append, append, getNumberOfPages, getPrintable, setPage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TableBook()
| Method Detail |
public void setRowCount(int rows)
rows - The new number of rows of this book.public int getRowCount()
public void setColumnCount(int columns)
columns - The new number of columns of this book.public int getColumnCount()
public java.awt.print.Printable getPrintable(int row,
int colum)
throws java.lang.IndexOutOfBoundsException
Printable instance of the given
rowxcolumn.
row - the row index.colum - the column index
java.lang.IndexOutOfBoundsException - forwards the exception from the
Book.getPrintable(int) call.Book.getPrintable(int)
public java.awt.print.PageFormat getPageFormat(int row,
int colum)
throws java.lang.IndexOutOfBoundsException
PageFormat instance of the given
rowxcolumn.
row - the row index.colum - the column index
java.lang.IndexOutOfBoundsException - forwards the exception from the
Book.getPageFormat(int) call.Book.getPageFormat(int)public int getPageCount()
getRowCount() with getColumnCount().
public java.awt.print.PageFormat getPageFormat(int pageIndex)
throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||