ReportCat 1.1

li.netcat.print.table
Interface ColumnWidthCalculator

All Known Implementing Classes:
DefaultColumnWidthCalculator

public interface ColumnWidthCalculator

This strategy is the first step of the table cell size calculation algorithm. It calculates the minimum, preferred and maximum column widths for a table. It supposes, that the available width of the table is infinite. The second step is done by the ColumnWidthDistributor.

Author:
Arthur Marxer
See Also:
TablePrint, ColumnWidthDistributor

Method Summary
 int[] getMaximumColumnWidths()
          Returns (a clone of) the maximum column widths of the table.
 int[] getMinimumColumnWidths()
          Returns (a clone of) the minimum column widths of the table.
 int[] getPreferredColumnWidths()
          Returns (a clone of) the preferred column widths of the table.
 void initialize(TablePrint table, java.awt.Graphics g)
          Callback, that initializes this calculator with the given table and the relevant Graphics object.
 

Method Detail

initialize

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

Parameters:
table - The current table object.
g - The relevant graphics object.

getMinimumColumnWidths

public int[] getMinimumColumnWidths()
Returns (a clone of) the minimum column widths of the table.

Returns:
The minimum column widths of the table.

getPreferredColumnWidths

public int[] getPreferredColumnWidths()
Returns (a clone of) the preferred column widths of the table.

Returns:
The preferred column widths of the table.

getMaximumColumnWidths

public int[] getMaximumColumnWidths()
Returns (a clone of) the maximum column widths of the table.

Returns:
The maximum column widths of the table.

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