org.freehep.swing.table
Class TableColumnPacker

java.lang.Object
  extended by org.freehep.swing.table.TableColumnPacker

public class TableColumnPacker
extends Object

Version:
$Id: TableColumnPacker.java 8584 2006-08-10 23:06:37Z duns $
Author:
Tony Johnson

Constructor Summary
TableColumnPacker()
           
 
Method Summary
 int getHeaderMargin()
           
 int getMargin()
           
 int getMaxscan()
           
 void packColumns(JTable table)
          Sets the preferred with of all columns to be just large enough to contain the widest entry in the column.
 void setHeaderMargin(int headerMargin)
          The margin to use for the header.
 void setMargin(int margin)
          A margin on the left and right of the column.
 void setMaxscan(int maxscan)
          If maxscan is set (default 50) then only the first and last maxscan rows are measured.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableColumnPacker

public TableColumnPacker()
Method Detail

packColumns

public void packColumns(JTable table)
Sets the preferred with of all columns to be just large enough to contain the widest entry in the column.

Parameters:
table - The table to pack

getHeaderMargin

public int getHeaderMargin()
Returns:
Returns the headerMargin.

setHeaderMargin

public void setHeaderMargin(int headerMargin)
The margin to use for the header.

Parameters:
headerMargin - The headerMargin to set.

getMargin

public int getMargin()
Returns:
Returns the margin.

setMargin

public void setMargin(int margin)
A margin on the left and right of the column.

Parameters:
margin - The margin to set.

getMaxscan

public int getMaxscan()
Returns:
Returns the maxscan,

setMaxscan

public void setMaxscan(int maxscan)
If maxscan is set (default 50) then only the first and last maxscan rows are measured.

Parameters:
maxscan - The maxscan to set, or 0 to clear maxscan.


Copyright © 2000-2007 FreeHEP. All Rights Reserved.