Method and system for automatically resizing tables
First Claim
1. A method in a computer system for automatically resizing a table, the table having a plurality of columns, each column having a column width and a width of longest data, the method comprising the steps of:
- for each column in which the column width is greater than the width of the longest data, setting the column width to the width of the longest data; and
when a sum of the column widths of all the columns is greater than a specified width, proportionally decreasing the column width of each column so that the sum of the column widths of all the columns is equal to the specified width.
2 Assignments
0 Petitions
Accused Products
Abstract
A computer system for automatically resizing a table. A table includes various columns. Each column has a column width and an associated width of the longest data in the column. In a preferred embodiment, the system initially resizes the width of each unwrapped column to the width of its longest data. If the sum of the column widths after resizing is greater than the margin width, then the system proportionally decreases the column width of each column so that the sum of the column width is equal to the margin width. If, however, the sum of the column width is less than the margin width, the system proportionally increases the column width of each wrapped column so that the sum of the column widths is equal to the margin width.
103 Citations
26 Claims
-
1. A method in a computer system for automatically resizing a table, the table having a plurality of columns, each column having a column width and a width of longest data, the method comprising the steps of:
-
for each column in which the column width is greater than the width of the longest data, setting the column width to the width of the longest data; and when a sum of the column widths of all the columns is greater than a specified width, proportionally decreasing the column width of each column so that the sum of the column widths of all the columns is equal to the specified width. - View Dependent Claims (2, 3)
-
-
4. A method in a computer system for automatically resizing a table, the table having a plurality of columns, each column having a column width and a width of longest data, the method comprising the steps of:
-
for each column which contains data and in which the column width is greater than the width of the longest data, setting the column width to the width of the longest data; when a sum of the column widths of all the columns is greater than a specified width, decreasing the column width of blank columns so that the sum of the column widths of all the columns is equal to the specified width; and when the decreased column widths of the blank columns are not such that the sum of the column widths of all the columns is equal to the specified width, decreasing the column width of each column so that the sum of the column widths of all the columns is equal to the specified width.
-
-
5. A method in a computer system for automatically resizing a table, the table having a plurality of columns, each column having a column width and a width of longest data, the method comprising the steps of:
-
for each column in which the column width is greater than the width of the longest data, setting the column width to the width of the longest data; and when a sum of the column widths of all the columns is less than a specified width, proportionally increasing the column width of each column so that the sum of the column widths of all the columns is equal to the specified width. - View Dependent Claims (6, 7, 8, 9, 10)
-
-
11. A method in a computer system for automatically resizing a table, the table having a plurality of columns, each column having a column width and a width of longest data, the method comprising when a sum of the column widths of all the columns is less than a specified width, proportionally increasing the column width of each column in which the width of the longest data is wider than the column width so that the sum of the column widths of all the columns is equal to the specified width and so that each increased column width is less than or equal to the width of the longest data of the column.
-
12. A method in a computer system for automatically resizing a table, the table having a plurality of columns, each column having a column width and a width of longest data, the method comprising the steps of:
-
for each column in which the column width is greater than the width of the longest data, setting the column width to the width of the longest data; when a sum of the column widths of all the columns is greater than a margin width, proportionally decreasing the column width of each column so that the sum of the column widths of all the columns is equal to the margin width; and when the sum of the column widths of all the columns is less than the margin width, proportionally increasing the column width of each column so that the sum of the column widths of all the columns is equal to the margin width. - View Dependent Claims (13, 14, 15)
-
-
16. A computer system for automatically resizing a table, the table having a plurality of columns, each column having a column width and a width of longest data, the system comprising:
-
means for setting the column width to the width of the longest data for each column in which the column width is greater than the width of the longest data; means for proportionally decreasing the column width of each column so that the sum of the column widths of all the columns is equal to a margin width when a sum of the column widths of all the columns is greater than the margin width; and means for proportionally increasing the column width of each column so that the sum of the column widths of all the columns is equal to the margin width when the sum of the column widths of all the columns is less than the margin width.
-
-
17. A computer system for automatically resizing a table, the table having a plurality of columns, each column having a column width and a width of longest data, the system comprising a table resizing program that operates when a sum of the column widths of all the columns is less than a margin width to proportionally increase the column width of each column in which the width of the longest data is wider than the column width so that the sum of the column widths of all the columns is equal to the margin width and so that each increased column width is less than or equal to the width of the longest data of the column.
-
18. A method in a computer system for automatically resizing a table, the table having a plurality of columns, each column having a column width and a width of longest data, the method comprising:
-
for each column in which the column width is different than the width of the longest data, setting the column width to the width of the longest data; and unwrapping any wrapped data contained in the column; and when a sum of the column widths of all the columns is less than a specified width, increasing the column width of each blank column so the sum of the column widths of all the columns is equal to the specified width. - View Dependent Claims (19, 20)
-
-
21. A method in a computer system for automatically resizing a table, the table having a plurality of columns, each column having a column width and a width of longest data, the method comprising:
-
for each column in which the column width is different than the width of the longest data, setting the column width to the width of the longest data; and unwrapping any wrapped data contained in the column; and when a sum of the column widths of all the columns is greater than a specified width, rewrapping the unwrapped data contained in each column that originally contained wrapped data; and resetting the column width of each column containing the rewrapped data to the original column width of the column. - View Dependent Claims (22, 23)
-
-
24. A computer-readable storage medium upon which is stored a program for controlling a computer system to automatically resize a table, the table having a plurality of columns, each column having a column width and a width of longest data by the steps of:
-
for each column in which the column width is different than the width of the longest data, setting the column width to the width of the longest data; and unwrapping any wrapped data contained in the column; and when a sum of the column widths of all the columns is greater than a specified width, rewrapping the unwrapped data contained in each column that originally contained wrapped data; and resetting the column width of each column containing the rewrapped data to the original column width of the column. - View Dependent Claims (25)
-
-
26. A computer-readable storage medium upon which is stored a program for controlling a computer system to perform in accordance with a method for automatically resizing a table, the table having a plurality of columns, each column having a column width and a width of longest data, the method comprising:
-
for each column in which the column width is different than the width of the longest data, setting the column width to the width of the longest data; and unwrapping any wrapped data contained in the column; and when a sum of the column widths of all the columns is less than a specified width, increasing the column width of each blank column so the sum of the column widths of all the columns is equal to the specified width.
-
Specification