org.freehep.swing.print.table
Interface PrintableTableModel

All Known Implementing Classes:
PrintModelAdapter

public interface PrintableTableModel

Used to provide table data for printing


Method Summary
 CellPrinter getCellPrinter(int column)
          Get the cell printer to be used for the table body
 CellPrinter getHeaderPrinter(int column)
          Get the cell printer to be used for the table header
 String getTitle()
          Get the title for the document
 Object headerForColumn(int i)
          Get the header for a column
 boolean hideColumn(int i)
          Allows some columns to be skipped when printing
 int numberOfColumns()
          Total number of columns (including hidden columns)
 int numberOfRows()
          Total number of rows
 Object valueAt(int i, int j)
          Get the data to be printed in a certain cell.
 

Method Detail

getCellPrinter

CellPrinter getCellPrinter(int column)
Get the cell printer to be used for the table body

Parameters:
column - The column index
Returns:
The cell printer for this column

getHeaderPrinter

CellPrinter getHeaderPrinter(int column)
Get the cell printer to be used for the table header

Parameters:
column - The column index
Returns:
The cell printer to use for this column's header

getTitle

String getTitle()
Get the title for the document

Returns:
The title.

headerForColumn

Object headerForColumn(int i)
Get the header for a column

Parameters:
i - The column index.
Returns:
The header text for this column

hideColumn

boolean hideColumn(int i)
Allows some columns to be skipped when printing

Parameters:
i - The column index
Returns:
true if this column should be skipped

numberOfColumns

int numberOfColumns()
Total number of columns (including hidden columns)

Returns:
The number of columns

numberOfRows

int numberOfRows()
Total number of rows

Returns:
The number of rows

valueAt

Object valueAt(int i,
               int j)
Get the data to be printed in a certain cell.

Parameters:
i - The column index
j - The row index
Returns:
The object representing the data at the referenced cell


Copyright © 2000-2007 FreeHEP. All Rights Reserved.