|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectli.netcat.print.table.DefaultColumnWidthCalculator
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.
| 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 |
public DefaultColumnWidthCalculator()
| Method Detail |
public void initialize(TablePrint table,
java.awt.Graphics g)
ColumnWidthCalculator
initialize in interface ColumnWidthCalculatortable - The current table object.g - The relevant graphics object.public int[] getMinimumColumnWidths()
ColumnWidthCalculator
getMinimumColumnWidths in interface ColumnWidthCalculatorpublic int[] getPreferredColumnWidths()
ColumnWidthCalculator
getPreferredColumnWidths in interface ColumnWidthCalculatorpublic int[] getMaximumColumnWidths()
ColumnWidthCalculator
getMaximumColumnWidths in interface ColumnWidthCalculator
|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||