ReportCat 1.1

li.netcat.print.table
Interface RowHeightCalculator

All Known Implementing Classes:
DefaultRowHeightCalculator

public interface RowHeightCalculator

Calculates the row heights of a table, given the column widths. This strategy is the second step of the table cell size calculation algorithm. It calculates the height of the table rows using the given column widths. It may use the preferred height of the cell renderers and other attributes of the table to calculate the result. The first step of the calculation is done by the ColumnWidthCalculator and the second step is done by the ColumnWidthDistributor.

Author:
Arthur Marxer
See Also:
TablePrint, ColumnWidthCalculator, ColumnWidthDistributor

Method Summary
 int getFooterHeight()
          Returns the final height of the table footer.
 int getHeaderHeight()
          Returns the final height of the table header.
 int[] getRowHeights()
          Returns the final height of the rows of the table.
 void initialize(TablePrint table, java.awt.Graphics g, int[] columnWidths)
          Callback, that initializes this calculator with the given table, the relevant Graphics object and the given columnWidths.
 

Method Detail

initialize

public void initialize(TablePrint table,
                       java.awt.Graphics g,
                       int[] columnWidths)
Callback, that initializes this calculator with the given table, the relevant Graphics object and the given columnWidths.

Parameters:
table - The current table object.
g - The relevant graphics object.
columnWidths - The final widths of the table columns.

getHeaderHeight

public int getHeaderHeight()
Returns the final height of the table header.

Returns:
The final height of the tabel header.

getFooterHeight

public int getFooterHeight()
Returns the final height of the table footer.

Returns:
The final height of the tabel footer.

getRowHeights

public int[] getRowHeights()
Returns the final height of the rows of the table.

Returns:
The final heights of the rows.

ReportCat 1.1

Copyright 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation, Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation, Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation