Optimizing rendering of data tables
First Claim
1. A computer implemented method for rendering a table, the method comprising:
- receiving, by a processor of a data processing system, at least one table parameter associated with the contents of the table;
determining, from the at least one table parameter, whether data in the table has changed;
in response to determining the data in the table has changed, calculating, based on the at least one table parameter, two or more statistical values for a plurality of visible columns of the table;
receiving, for each of the plurality of visible columns, a selection, via an input device of the data processing system, of at least one of a user-selected run time column width and a default column width;
calculating, for data displayed in the plurality of visible columns, at least one readability index based on the selected column width and at least one of a data type and the two or more statistical values;
calculating, based on the at least one readability index, a maximum readability index for the plurality of visible columns, wherein the maximum readability index of a visible column identifies a length within a distribution of field lengths that allows all data in each row of the visible column to be viewed without adjusting a column width of any of the plurality of visible columns;
determining a chosen resolution for a display of the data processing system, wherein the chosen resolution is associated with a current user session of the data processing system;
determining, from the current user session, a total width that specifies an available space for presenting, on the display, an entire table at the chosen resolution;
determining an optimal column width of each of the plurality of visible columns based on the maximum readability index, wherein the optimal column width of a visible column maximizes a width of the visible column based on the total width and the chosen resolution;
setting the column widths for the plurality of visible columns to the optimal column widths;
storing the optimal column widths as metadata within system memory of the data processing system; and
rendering the table on the display using the optimal column widths;
wherein the optimal column widths of the table are accessed from the metadata within the system memory during subsequent renderings of the table on the display.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for determining optimal column widths used in the rendering of data tables displayed in a graphical user interface. The method includes receiving a table parameter associated with the contents of the table and determining if the table parameter has changed. If the table parameter has changed, statistical values are calculated for visible columns of the table. A user choice for a run time column width and a default column width are received for each of the columns. A readability index for data displayed in the visible columns is calculated. A maximum readability index for visible columns is calculated. The optimal column widths based on the maximum readability index are determined. The column widths are set to the optimal column widths. The optimal column widths are stored as meta-data. The table of data is displayed using the optimal column widths.
21 Citations
16 Claims
-
1. A computer implemented method for rendering a table, the method comprising:
-
receiving, by a processor of a data processing system, at least one table parameter associated with the contents of the table; determining, from the at least one table parameter, whether data in the table has changed; in response to determining the data in the table has changed, calculating, based on the at least one table parameter, two or more statistical values for a plurality of visible columns of the table; receiving, for each of the plurality of visible columns, a selection, via an input device of the data processing system, of at least one of a user-selected run time column width and a default column width; calculating, for data displayed in the plurality of visible columns, at least one readability index based on the selected column width and at least one of a data type and the two or more statistical values; calculating, based on the at least one readability index, a maximum readability index for the plurality of visible columns, wherein the maximum readability index of a visible column identifies a length within a distribution of field lengths that allows all data in each row of the visible column to be viewed without adjusting a column width of any of the plurality of visible columns; determining a chosen resolution for a display of the data processing system, wherein the chosen resolution is associated with a current user session of the data processing system; determining, from the current user session, a total width that specifies an available space for presenting, on the display, an entire table at the chosen resolution; determining an optimal column width of each of the plurality of visible columns based on the maximum readability index, wherein the optimal column width of a visible column maximizes a width of the visible column based on the total width and the chosen resolution; setting the column widths for the plurality of visible columns to the optimal column widths; storing the optimal column widths as metadata within system memory of the data processing system; and rendering the table on the display using the optimal column widths; wherein the optimal column widths of the table are accessed from the metadata within the system memory during subsequent renderings of the table on the display. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
Specification