ReportCat 1.1

li.netcat.print.table
Class DefaultColumnWidthCalculator

java.lang.Object
  extended byli.netcat.print.table.DefaultColumnWidthCalculator
All Implemented Interfaces:
ColumnWidthCalculator

public class DefaultColumnWidthCalculator
extends java.lang.Object
implements ColumnWidthCalculator

This is a default implementation of the ColumnWidthCalculator. It uses the the minimum and preferred width of the table cell renderers, the minimum width of the column and the constraints of the columns to calculate the result.

Author:
Arthur Marxer

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

Constructor Detail

DefaultColumnWidthCalculator

public DefaultColumnWidthCalculator()
Method Detail

initialize

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

Specified by:
initialize in interface ColumnWidthCalculator
Parameters:
table - The current table object.
g - The relevant graphics object.

getMinimumColumnWidths

public int[] getMinimumColumnWidths()
Description copied from interface: ColumnWidthCalculator
Returns (a clone of) the minimum column widths of the table.

Specified by:
getMinimumColumnWidths in interface ColumnWidthCalculator
Returns:
The minimum column widths of the table.

getPreferredColumnWidths

public int[] getPreferredColumnWidths()
Description copied from interface: ColumnWidthCalculator
Returns (a clone of) the preferred column widths of the table.

Specified by:
getPreferredColumnWidths in interface ColumnWidthCalculator
Returns:
The preferred column widths of the table.

getMaximumColumnWidths

public int[] getMaximumColumnWidths()
Description copied from interface: ColumnWidthCalculator
Returns (a clone of) the maximum column widths of the table.

Specified by:
getMaximumColumnWidths in interface ColumnWidthCalculator
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