FreeHEP API
Version current

org.freehep.swing.table
Class TableColumnPacker

java.lang.Object
  extended byorg.freehep.swing.table.TableColumnPacker

public class TableColumnPacker
extends Object

Version:
$Id: TableColumnPacker.java,v 1.2 2004/07/02 23:03:20 duns Exp $
Author:
Tony Johnson
Source Code:
TableColumnPacker.java

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.

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.