ReportCat 1.1

li.netcat.print.table
Class DefaultRowHeightCalculator

java.lang.Object
  extended byli.netcat.print.table.DefaultRowHeightCalculator
All Implemented Interfaces:
RowHeightCalculator

public class DefaultRowHeightCalculator
extends java.lang.Object
implements RowHeightCalculator

Default implementation of a RowHeightCalculator that uses the table cell renderers to calculate the heights of the rows of the table.

Author:
Arthur Marxer

Constructor Summary
DefaultRowHeightCalculator()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRowHeightCalculator

public DefaultRowHeightCalculator()
Method Detail

initialize

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

Specified by:
initialize in interface RowHeightCalculator
Parameters:
table - The current table object.
g - The relevant graphics object.
columnWidths - The final widths of the table columns.

getHeaderHeight

public int getHeaderHeight()
Description copied from interface: RowHeightCalculator
Returns the final height of the table header.

Specified by:
getHeaderHeight in interface RowHeightCalculator
Returns:
The final height of the tabel header.

getFooterHeight

public int getFooterHeight()
Description copied from interface: RowHeightCalculator
Returns the final height of the table footer.

Specified by:
getFooterHeight in interface RowHeightCalculator
Returns:
The final height of the tabel footer.

getRowHeights

public int[] getRowHeights()
Description copied from interface: RowHeightCalculator
Returns the final height of the rows of the table.

Specified by:
getRowHeights in interface RowHeightCalculator
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