CN109359255B - Form data display method and terminal equipment - Google Patents

Form data display method and terminal equipment Download PDF

Info

Publication number
CN109359255B
CN109359255B CN201811018236.2A CN201811018236A CN109359255B CN 109359255 B CN109359255 B CN 109359255B CN 201811018236 A CN201811018236 A CN 201811018236A CN 109359255 B CN109359255 B CN 109359255B
Authority
CN
China
Prior art keywords
display
single character
important data
data
important
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811018236.2A
Other languages
Chinese (zh)
Other versions
CN109359255A (en
Inventor
陈战仁
高勇
曾雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811018236.2A priority Critical patent/CN109359255B/en
Publication of CN109359255A publication Critical patent/CN109359255A/en
Application granted granted Critical
Publication of CN109359255B publication Critical patent/CN109359255B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a form data display method and terminal equipment, which are suitable for the technical field of data processing, wherein the method comprises the following steps: calculating the display space area corresponding to the important data column according to the preset single character display size and the character data content contained in the important data column; calculating the difference value area of the display space area corresponding to the data table to which the important data columns belong, and determining the non-important data columns with displayable difference value area based on the single character display size and the character data content contained in the non-important data columns; based on the single character display size, the important data columns and the displayable non-important data columns are displayed on two sides of the display space. The embodiment of the invention can improve the display of the data column content and the display efficiency of the table data while ensuring the display effect under various different display configurations.

Description

Form data display method and terminal equipment
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a form data display method and terminal equipment.
Background
When an embedded data table is displayed in a browser page, the available display space of the table is often smaller due to limiting factors such as the size and the attractive degree of the browser page, so that the table data is often difficult to completely display in the display space. In the prior art, in order to facilitate a user to view a table, only data columns with higher importance levels in the table are fixedly displayed in a display space, other relatively minor data columns are directly hidden, and the data columns are provided for the user to view in a form of exporting a table file or opening a new page when the user needs, so that the user can be helped to view some important data columns, but the display of other data columns is not friendly, therefore, the display method of the table embedded in a browser page in the prior art has low display efficiency of the table data and cannot effectively display the table data.
Disclosure of Invention
In view of the above, the embodiment of the invention provides a method and terminal equipment for displaying form data, so as to solve the problems that in the prior art, when the embedded form is displayed in a browser page, the display efficiency of the form data is low, the effect is poor, and the form data cannot be effectively displayed.
A first aspect of an embodiment of the present invention provides a method for displaying table data, including:
calculating a display space area corresponding to an important data column according to a preset single character display size and character data content contained in the important data column, wherein the single character display size represents the space size of a single character when the single character is displayed by a display module, and the important data column is a data column with an important grade higher than a preset grade;
calculating the difference value area of the display space area corresponding to the data table to which the important data column belongs, and determining an unimportant data column which can be displayed by the difference value area based on the single character display size and the character data content contained in the unimportant data column;
and displaying the important data columns and the displayable non-important data columns on two sides of the display space based on the single character display size.
A second aspect of the embodiment of the present invention provides a terminal device, where the terminal device includes a memory and a processor, where the memory stores a computer program that can be run on the processor, and the processor implements the following steps when executing the computer program.
Calculating a display space area corresponding to an important data column according to a preset single character display size and character data content contained in the important data column, wherein the single character display size represents the space size of a single character when the single character is displayed by a display module, and the important data column is a data column with an important grade higher than a preset grade;
calculating the difference value area of the display space area corresponding to the data table to which the important data column belongs, and determining an unimportant data column which can be displayed by the difference value area based on the single character display size and the character data content contained in the unimportant data column;
and displaying the important data columns and the displayable non-important data columns on two sides of the display space based on the single character display size.
A third aspect of an embodiment of the present invention provides a computer-readable storage medium comprising: a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the tabular data presentation method as described above.
Compared with the prior art, the embodiment of the invention has the beneficial effects that: when the table is displayed, the redundant space of the display space is fully utilized to display the relatively secondary data columns on the premise of ensuring the display of the important data columns, so that the display effect of the data columns is improved, meanwhile, the characters are displayed according to the space size of the set single characters when displayed by the display module, and the table data is displayed under the condition of meeting the basic requirement of the display viewing effect, so that the table data can be displayed while the display effect is ensured, and the display efficiency of the table data is improved under various different display configurations.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an implementation flow of a table data display method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an implementation flow of a table data display method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of an implementation flow of a table data display method according to a third embodiment of the present invention;
fig. 4 is a schematic implementation flow chart of a table data display method according to a fourth embodiment of the present invention;
fig. 5 is a schematic flow chart of an implementation of a table data display method according to a fifth embodiment of the present invention;
fig. 6 is a schematic diagram of an implementation flow of a table data display method according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a table data display device according to a seventh embodiment of the present invention;
fig. 8 is a schematic diagram of a terminal device according to an eighth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to illustrate the technical scheme of the invention, the following description is made by specific examples.
For ease of understanding, embodiments of the invention will be briefly described herein: considering that the display of the table data is performed according to the font size set by the browser in practical application, for example, common font size four or font five, but the display effect of the table data in practical situations is not directly determined by the font sizes, but is determined by the specific size of each character in the table data displayed on the display module, that is, whether the set font size is the font size four or the font five, the end user checks how the effect is or needs to see the specific space size of each character when displayed on the display module such as the display, for example, 0.3cm x 0.3cm or 1cm x 1cm, if the size is too small, for example, 0.1cm x 0.1cm, at this time, even if the set font is still larger, the user still cannot see the characters clearly, so that the display effect is extremely poor. In the embodiment of the invention, in order to ensure the final display effect, the display fonts are not preset for the characters as in the prior art, but the corresponding single character display sizes are set according to the requirements of users for the character display sizes when the users view the characters in practical application, so as to ensure the effectiveness of final display.
Because the display space area for displaying the table data is limited, in order to improve the utilization rate of the display space as much as possible and improve the display effect, in the embodiment of the invention, the display space is divided into two parts, one part is used for displaying the important data columns, the other part is used for displaying the non-important data columns, the display space area required to occupy by the important data columns is calculated according to the set single character display size value, and the rest of the non-important data columns with the space area capable of being displayed are calculated, so that the user can display the important data columns preferentially, and meanwhile, more table data are displayed by using the rest of the space, and the display efficiency is improved, and the details are as follows:
fig. 1 shows a flowchart of an implementation of a table data display method according to an embodiment of the present invention, which is described in detail below:
s101, calculating a display space area corresponding to an important data column according to a preset single character display size and character data content contained in the important data column, wherein the single character display size represents the space size of a single character when the single character is displayed by a display module, and the important data column is a data column with an important grade higher than a preset grade.
The specific single character display size value may be set by a technician at his own discretion, but in order to ensure that the user can view the table normally, the technician should not set the single character display size value too small, preferably 0.3cm by 0.3cm, or calculated according to an algorithm set by the technician.
After the single character display size is obtained, in order to determine the display space area required by displaying the important data columns, the embodiment of the invention reads the character data content contained in the important data columns, calculates the line width and the line height of each line of data when the characters are displayed in the single character display size according to the character length, the character line number and other data of each line of data, and then calculates the total width and the line height of the whole important data columns to obtain the corresponding display space area size. If the height of the data column is greater than the height of the display space, the area of the display space corresponding to the data column is calculated according to the height of the display space, so that the effectiveness of the obtained display space area is ensured, and the specific grade of the preset grade is required to be set by a technician according to the user requirement.
S102, calculating the difference value area of the display space area corresponding to the data table to which the important data columns belong, and determining the non-important data columns with displayable difference value area based on the single character display size and the character data content contained in the non-important data columns.
After the display space area required to be occupied by the important data columns is calculated, the difference value between the display space area and the display space area is calculated, and the difference value area for displaying the non-important data columns can be obtained. Since the display space is generally smaller in practical situations, it is generally difficult to fully display all non-important data columns after the occupied space of the important data columns is subtracted, so that the embodiment of the invention further calculates the content of the non-important data columns that can be displayed by the difference area.
When calculating displayable non-important data columns according to the single character display size and character data content contained in the non-important data columns, specific data content contained in each non-important data column may be different, namely the corresponding occupied area of each non-important data column may be different, and the difference area is fixed, so that it is required to determine which non-important data columns are preferentially displayed at this time to calculate specific occupied areas, and finally determine the non-important data columns which can be displayed finally. The priority display order of the non-important data sequence can be set by the skilled person according to the requirement, and is not limited herein. For example, if priority display is performed according to the order of the importance levels of the non-important data columns from high to low, in this case, the embodiment of the present invention needs to sequentially calculate the area occupied by each non-important data column from high to low according to the importance levels, then determine that the area of the difference value can display several non-important data columns with the highest importance levels, and if priority display is performed sequentially according to the order of the data columns in the original table, in this case, it needs to sequentially calculate the area occupied by each non-important data column according to the order, and then determine that the area of the difference value can display several non-important data columns with the highest order.
And S103, displaying the important data columns and the displayable non-important data columns on two sides of the display space based on the single character display size.
After determining the important data columns and the non-important data columns to be displayed, the embodiment of the invention can display the important data columns and the non-important data columns on two sides of the display space respectively, for example, the important data columns are displayed on the left side of the display space, the non-important data columns are displayed on the right side of the display space, or the non-important data columns are displayed on the right side of the left side of the display space, so that the display space is fully utilized, and a user can conveniently and simultaneously view a plurality of columns of table data with different importance degrees.
When the table is displayed, the embodiment of the invention fully utilizes the redundant space of the display space to display the relatively secondary data columns on the premise of ensuring the display of the important data columns, so as to improve the display effect of the data columns, meanwhile, the actual display effect is not directly determined by the font size in practical application, but is directly determined by the display size of the final characters on the display module in practical application, and the table data is directly displayed according to the font size set by the browser, so that the amount of the table data displayable in the display space is often less and the display efficiency is lower. Therefore, in order to display more data columns as much as possible to improve the display efficiency, the embodiment of the invention can display the characters according to the space size of the set single characters when the display module displays, and the display size of the single characters only needs to meet the basic character viewing requirement of a user, namely only needs to see the characters clearly, and the specific value of the single characters can be set smaller.
As a specific implementation manner for displaying the data column in the first embodiment of the present invention, as shown in fig. 2, the second embodiment of the present invention includes:
s1031, carrying out fixed display on the important data column at one side of the display space, carrying out non-fixed display on the displayable non-important data column at the other side of the display space, and switching the displayed non-important data column according to the received data column dragging instruction input by the user at one side of the non-fixed display.
In order to improve the display efficiency of the table data, the embodiment of the invention performs fixed display on the important data columns when displaying the data columns, so as to ensure that the normal display of the important data columns is not influenced by the dragging operation of the user data columns, and the dragging display is adopted on the non-important data columns, thereby enabling the user to drag the dragging bars in the display space according to the own requirements to switch and browse different non-important data columns.
The embodiment of the invention ensures the fixed display of the important data columns of the user, and provides a draggable display mode for the non-important data columns for the user when the basic form data browsing requirement of the user is met, so that the user can freely browse the non-important data columns according to the requirement while the basic browsing requirement is met, and the display efficiency of the form data is greatly improved while the display effect of the form data is ensured.
As another specific implementation manner for displaying the data column in the first embodiment of the present invention, as shown in fig. 3, the third embodiment of the present invention includes:
s1032, judging whether the number of columns of the displayable non-important data columns is larger than a column number threshold, if so, fixedly displaying the front N columns with the highest importance level and the important data columns, and fixedly displaying the rest non-important data columns on the other side of the display space, wherein one side of the non-stationary display can switch the displayed non-important data columns according to the received data column dragging instruction input by the user, and N is a positive integer.
In the embodiment of the invention, in order to improve the display effect of the table data, a part of non-important data columns with higher importance levels are fixedly displayed together with the important data columns, so that a user can conveniently review the data, and the rest non-important data columns are dragably displayed, so that the user can drag a dragging bar in a display space according to own requirements to switch and browse different non-important data columns.
As shown in fig. 4, in order to ensure the rationality of the set single character display size, and ensure that the user can normally and clearly view each character, the embodiment of the invention does not waste the display space due to the excessively large single character display size, and in the first embodiment of the invention, the embodiment of the invention adaptively determines the most suitable single character display size according to the hardware configuration condition of the display space display module, which is described in detail as follows:
s401, obtaining the preset minimum pixel number occupied by the single character, the preset minimum display size of the single character and the pixel density of the display module corresponding to the display space, and calculating the pixel number occupied by the single character based on the pixel density and the minimum display size of the single character.
Since whether a character is normally clearly viewable by a user when displayed depends mainly on two factors: the number of pixel points occupied by the character and the display size occupied by the character. When the number of occupied pixels is too small, character features can not be displayed completely during display, at this time, even if the display size is too large, a user still can not recognize characters, for example, for a common LED advertising screen with very small pixel density and very large display area, when the number of occupied pixels is small but the display size is large, for example, if the display size is 2cm by 2cm, and the number of occupied pixels is 3*3, although the display size is far larger than that of a small screen device such as a mobile phone, the user can not distinguish the characters at this time because the number of occupied pixels is too small. When the occupied display size is too small, even if the number of occupied pixel points is too high, the character features are all displayed, and the human eyes cannot recognize things with too small size, so that the user still cannot see the character at this time, for example, if the display area of 0.1cm x 0.1cm is used for displaying the character features in a display screen with very high pixel point density, the character display size is too small, and the user still cannot see the character.
In order to ensure that the characters can be normally and clearly checked by users, the pixel points occupied by the characters and the display size must meet the requirement of the minimum value at the same time, so as to prevent the situation that any factor value is too small to cause the users to check, therefore, in the embodiment of the invention, a minimum occupied pixel point and a minimum display size are preset for the single characters, so as to provide guarantee for the rationality of the calculation of the display size of the subsequent single characters, wherein, considering the difference of character recognition capability of different users and the difference of the recognizable capability of the minimum display size of the characters, the specific values of the minimum occupied pixel points of the single characters and the minimum display size of the single characters are not limited, and can be set by technicians according to actual requirements.
After the set minimum display size of the single character and the pixel density of the display module corresponding to the display space are obtained, the minimum display size of the single character is multiplied by the pixel density to calculate the number of pixel points actually contained in the minimum display size of the single character in the display module. The display module can be a display device such as a liquid crystal display screen or an LED display screen.
S402, if the number of occupied pixels corresponding to the single character is greater than or equal to the number of minimum occupied pixels of the single character, setting the minimum display size of the single character as the display size of the single character.
If the number of pixel points actually contained in the minimum display size of the single character in the display module is greater than or equal to the number of pixel points occupied by the minimum display size of the single character, the display module displays the single character with the minimum display size of the single character, which is enough to ensure the normal viewing of the character by a user, so that the embodiment of the invention can directly use the set minimum display size of the single character as the display size of the single character in the first embodiment of the invention, thereby saving the display space and improving the display efficiency of the form data while ensuring the normal and clear display of the character.
S403, if the number of occupied pixels corresponding to the single character is smaller than the minimum number of occupied pixels of the single character, calculating the display size of the single character according to the minimum number of occupied pixels of the single character and the density of the pixels.
If the number of pixel points actually contained in the minimum display size of the single character in the display module is smaller than the number of pixel points occupied by the minimum display size of the single character, it is stated that if a single character is displayed in the display module with the minimum display size of the single character, the number of pixel points actually occupied by each character can not meet the requirement, and the user can not normally view the character. Therefore, in order to ensure normal viewing of a user, in the embodiment of the invention, the minimum occupied pixel point number of the single character is divided by the pixel point density to calculate the occupied area corresponding to the minimum occupied pixel point number of the single character in the display module, so as to obtain the finally required single character display size, save the display space and improve the table data display efficiency while ensuring normal and clear display of the characters.
In order to save controls for single character display while guaranteeing character display effects and to guarantee rationality of single character display size setting, in the embodiment of the invention, according to the minimum pixel occupation number of the set single characters, the minimum display size of the single characters and the pixel density of a display module of a display space, the optimal single character display size of the display module is calculated in a self-adaptive manner, so that the purpose of displaying more table data in the display space as far as possible while guaranteeing that table data displayed in the display space are clearly visible is achieved, thereby guaranteeing the display effect of the table data and greatly improving the display efficiency of the table data.
As shown in fig. 5, in consideration of the fact that in the embodiment of the present invention, when the display space displays the table data, the size area of the display space may change, for example, when the user reduces the size of the browser page to reduce the display space, or other tasks in the terminal device trigger to change the size of the browser page, so that the size area of the display space changes, at this time, the display space area and the calculated difference area have both changed, and the displayable non-important data columns have changed, so that in the embodiment of the present invention, when the size area of the display space changes, the update display is performed on the data columns displayed in the display space again, which is described in detail below:
and S104, if an area adjustment instruction corresponding to the display space is received, adjusting the area of the display space according to the area adjustment instruction, and returning to execute the operation of calculating the difference area between the display space area and the display space area corresponding to the data table.
The area adjustment instruction is used for adjusting the size area of the display space, and can be directly input when the user operates, for example, the user manually adjusts the size of the browser page to cause the display space to change together, or can be triggered by some processor tasks in the terminal equipment, for example, a timing task is set, and the display space is caused to change together when the browser page is maximized at a specific moment.
When an area adjustment instruction is received, the embodiment of the invention firstly adjusts the area of the display space according to the received instruction, and then performs operations such as calculating the difference area and the like again so as to ensure the normal display of the display space and the table data and ensure the display effect on users.
As shown in fig. 6, in consideration of the situation that in the embodiment of the present invention, when the table data is displayed in the display space, a user may need to perform a scaling operation on the data table, so that both the content of the table data that can be displayed in the display space and the size of the character display size may change, and at this time, the table data that needs to be displayed in the display space needs to be typeset again to ensure that the user's requirement can be responded in time, which is described in detail as follows:
s105, if a data table scaling instruction input by a user is received, adjusting the single character display size based on the data table scaling instruction, and returning to execute the operation of calculating the display space area corresponding to the important data column according to the preset single character display size and the character data content contained in the important data column.
When receiving a data table scaling instruction of a user, the embodiment of the invention firstly calculates the scaling ratio of the data table scaling instruction to the characters, calculates the actual display size of the single characters after the data table scaling according to the scaling ratio and the initially set single character display size, then returns the actual display size as the newly preset single character display size to calculate the display space area of the important data column in the first embodiment of the invention again, and continues to execute the subsequent typesetting display steps of the difference area and the displayable non-important data column, so that the embodiment of the invention can respond to the data table scaling requirement of the user in time and ensure the display effect of the scaled table data.
It should be understood that, the specific value of the adjusted single character display size is determined by the user scaling requirement, which is not required to limit the single character display size in the first embodiment of the present invention, that is, in order to ensure the display effect of each character in the first embodiment of the present invention, the technician has the minimum limit on the setting of the single character display size, but in the sixth embodiment of the present invention, it is preferably ensured that the user scaling requirement is effectively responded in time, so that there is no minimum limit on the single character display size, and only the corresponding adjustment needs to be performed according to the user data table scaling instruction.
Corresponding to the method of the above embodiment, fig. 7 shows a block diagram of a table data display device provided by the embodiment of the present invention, and for convenience of explanation, only the portion relevant to the embodiment of the present invention is shown. The table data presentation apparatus illustrated in fig. 7 may be an execution subject of the table data presentation method provided in the first embodiment.
Referring to fig. 7, the table data display apparatus includes:
the display area calculating module 71 is configured to calculate, according to a preset single character display size and character data content included in an important data column, a display space area corresponding to the important data column, where the single character display size represents a space size of a single character when the single character is displayed by the display module, and the important data column is a data column with an important level higher than a preset level.
The difference area calculating module 72 is configured to calculate a difference area of the display space area and a display space area corresponding to a data table to which the important data column belongs, and determine a non-important data column that can be displayed by the difference area based on the single character display size and the character data content included in the non-important data column.
And a display module 73, configured to display the important data column and the displayable non-important data column on both sides of the display space based on the single character display size.
Further, the table data display device further includes:
the pixel point calculating module is used for obtaining the preset minimum occupied pixel point number of the single character, the preset minimum display size of the single character and the pixel point density of the display module corresponding to the display space, and calculating the occupied pixel point number corresponding to the single character based on the pixel point density and the minimum display size of the single character.
And the first size determining module is used for setting the minimum display size of the single character as the display size of the single character if the number of occupied pixels corresponding to the single character is larger than or equal to the number of minimum occupied pixels of the single character.
And the second size determining module is used for calculating the display size of the single character according to the minimum occupied pixel point number of the single character and the pixel point density if the occupied pixel point number corresponding to the single character is smaller than the minimum occupied pixel point number of the single character.
Further, the display module 73 includes:
and fixedly displaying the important data column on one side of the display space, and displaying the displayable non-important data column on the other side of the display space, wherein the non-important data column displayed on one side of the non-fixed display can be switched according to a received data column dragging instruction input by a user.
Further, the table data display device further includes:
and if an area adjustment instruction corresponding to the display space is received, adjusting the area of the display space according to the area adjustment instruction, and returning to execute the operation of calculating the difference area of the display space area and the display space area corresponding to the data table to which the important data column belongs.
Further, the table data display device further includes:
and if a data table scaling instruction input by a user is received, adjusting the single character display size based on the data table scaling instruction, and returning to execute the operation of calculating the display space area corresponding to the important data column according to the preset single character display size and the character data content contained in the important data column.
The process of implementing the respective functions of each module in the table data display device provided in the embodiment of the present invention may refer to the description of the first embodiment shown in fig. 1, and will not be repeated here.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
It will also be understood that, although the terms "first," "second," etc. may be used herein in some embodiments of the invention to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first contact may be named a second contact, and similarly, a second contact may be named a first contact without departing from the scope of the various described embodiments. The first contact and the second contact are both contacts, but they are not the same contact.
Fig. 8 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 8, the terminal device 8 of this embodiment includes: a processor 80, a memory 81, said memory 81 having stored therein a computer program 82 executable on said processor 80. The steps of the various tabular data presentation method embodiments described above, such as steps 101 through 103 shown in fig. 1, are implemented by the processor 80 executing the computer program 82. Alternatively, the processor 80, when executing the computer program 82, performs the functions of the modules/units of the apparatus embodiments described above, such as the functions of the modules 71 to 73 shown in fig. 7.
The terminal device 8 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor 80, a memory 81. It will be appreciated by those skilled in the art that fig. 8 is merely an example of a terminal device 8 and does not constitute a limitation of the terminal device 8, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal device may also include an input transmitting device, a network access device, a bus, etc.
The processor 80 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 81 may be an internal storage unit of the terminal device 8, such as a hard disk or a memory of the terminal device 8. The memory 81 may be an external storage device of the terminal device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the terminal device 8. The memory 81 is used for storing the computer program as well as other programs and data required by the terminal device. The memory 81 may also be used for temporarily storing data that has been transmitted or is to be transmitted.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (8)

1. A method for displaying tabular data, comprising:
calculating a display space area corresponding to an important data column according to a preset single character display size and character data content contained in the important data column, wherein the single character display size represents the space size of a single character when the single character is displayed by a display module, and the important data column is a data column with an important grade higher than a preset grade;
calculating the difference value area of the display space area corresponding to the data table to which the important data column belongs, and determining an unimportant data column which can be displayed by the difference value area based on the single character display size and the character data content contained in the unimportant data column;
displaying the important data columns and the displayable non-important data columns on two sides of the display space based on the single character display size;
before calculating the display space area corresponding to the important data column according to the preset single character display size and the character data content contained in the important data column, the method further comprises the following steps: acquiring a preset minimum pixel point number occupied by a single character, a preset minimum display size of the single character and pixel point density of a display module corresponding to the display space, and calculating the pixel point number occupied by the single character based on the pixel point density and the minimum display size of the single character; if the number of occupied pixels corresponding to the single character is greater than or equal to the number of minimum occupied pixels of the single character, setting the minimum display size of the single character as the display size of the single character; if the number of occupied pixels corresponding to the single character is smaller than the number of minimum occupied pixels of the single character, calculating the display size of the single character according to the number of minimum occupied pixels of the single character and the pixel density.
2. The method for displaying tabular data as claimed in claim 1, wherein said displaying said important data columns and said displayable non-important data columns on both sides of said display space comprises:
and fixedly displaying the important data column on one side of the display space, and displaying the displayable non-important data column on the other side of the display space, wherein the non-important data column displayed on one side of the non-fixed display can be switched according to a received data column dragging instruction input by a user.
3. The form data display method according to any one of claims 1 to 2, further comprising, after said displaying the important data columns and the displayable non-important data columns on both sides of the display space:
and if an area adjustment instruction corresponding to the display space is received, adjusting the area of the display space according to the area adjustment instruction, and returning to execute the operation of calculating the difference area of the display space area and the display space area corresponding to the data table to which the important data column belongs.
4. The form data display method according to any one of claims 1 to 2, further comprising, after said displaying the important data columns and the displayable non-important data columns on both sides of the display space:
and if a data table scaling instruction input by a user is received, adjusting the single character display size based on the data table scaling instruction, and returning to execute the operation of calculating the display space area corresponding to the important data column according to the preset single character display size and the character data content contained in the important data column.
5. A terminal device, characterized in that the terminal device comprises a memory, a processor, the memory storing a computer program executable on the processor, the processor executing the computer program implementing the steps of:
calculating a display space area corresponding to an important data column according to a preset single character display size and character data content contained in the important data column, wherein the single character display size represents the space size of a single character when the single character is displayed by a display module, and the important data column is a data column with an important grade higher than a preset grade;
calculating the difference value area of the display space area corresponding to the data table to which the important data column belongs, and determining an unimportant data column which can be displayed by the difference value area based on the single character display size and the character data content contained in the unimportant data column;
displaying the important data columns and the displayable non-important data columns on two sides of the display space based on the single character display size;
wherein the processor when executing the computer program further performs the steps of: acquiring a preset minimum pixel point number occupied by a single character, a preset minimum display size of the single character and pixel point density of a display module corresponding to the display space, and calculating the pixel point number occupied by the single character based on the pixel point density and the minimum display size of the single character; if the number of occupied pixels corresponding to the single character is greater than or equal to the number of minimum occupied pixels of the single character, setting the minimum display size of the single character as the display size of the single character; if the number of occupied pixels corresponding to the single character is smaller than the number of minimum occupied pixels of the single character, calculating the display size of the single character according to the number of minimum occupied pixels of the single character and the pixel density.
6. The terminal device of claim 5, wherein displaying the important data columns and the displayable non-important data columns on both sides of the presentation space comprises:
and fixedly displaying the important data column on one side of the display space, and displaying the displayable non-important data column on the other side of the display space, wherein the non-important data column displayed on one side of the non-fixed display can be switched according to a received data column dragging instruction input by a user.
7. The terminal device according to any of the claims 5 to 6, wherein the processor when executing the computer program further implements the steps of:
and if a data table scaling instruction input by a user is received, adjusting the single character display size based on the data table scaling instruction, and returning to execute the operation of calculating the display space area corresponding to the important data column according to the preset single character display size and the character data content contained in the important data column.
8. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 4.
CN201811018236.2A 2018-09-03 2018-09-03 Form data display method and terminal equipment Active CN109359255B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811018236.2A CN109359255B (en) 2018-09-03 2018-09-03 Form data display method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811018236.2A CN109359255B (en) 2018-09-03 2018-09-03 Form data display method and terminal equipment

Publications (2)

Publication Number Publication Date
CN109359255A CN109359255A (en) 2019-02-19
CN109359255B true CN109359255B (en) 2023-09-01

Family

ID=65350474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811018236.2A Active CN109359255B (en) 2018-09-03 2018-09-03 Form data display method and terminal equipment

Country Status (1)

Country Link
CN (1) CN109359255B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109934556B (en) * 2019-02-22 2021-05-07 上海市建设工程监理咨询有限公司 Construction project supervision project acceptance system
CN111414368A (en) * 2020-04-03 2020-07-14 中国建设银行股份有限公司 Method and device for processing data
CN113378533B (en) * 2021-06-08 2023-12-05 傲普(上海)新能源有限公司 Form processing method for large amount of data based on energy system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10198748A (en) * 1997-01-13 1998-07-31 Hitachi Ltd Data display method
CN105005550A (en) * 2014-04-18 2015-10-28 腾讯科技(深圳)有限公司 Table generation method and apparatus
CN108446152A (en) * 2018-02-02 2018-08-24 阿里巴巴集团控股有限公司 page display method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8312366B2 (en) * 2009-02-11 2012-11-13 Microsoft Corporation Displaying multiple row and column header areas in a summary table
US9558171B2 (en) * 2014-09-17 2017-01-31 Sap Se Formatting tables for display on computing devices of varying screen size

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10198748A (en) * 1997-01-13 1998-07-31 Hitachi Ltd Data display method
CN105005550A (en) * 2014-04-18 2015-10-28 腾讯科技(深圳)有限公司 Table generation method and apparatus
CN108446152A (en) * 2018-02-02 2018-08-24 阿里巴巴集团控股有限公司 page display method and device

Also Published As

Publication number Publication date
CN109359255A (en) 2019-02-19

Similar Documents

Publication Publication Date Title
CN109783181B (en) Screen adaptive display method, electronic device and computer storage medium
CN109359255B (en) Form data display method and terminal equipment
US8885001B2 (en) Reducing power consumption for a mobile terminal
US10089957B2 (en) Page display method and terminal
CN108476306B (en) Image display method and terminal equipment
CN111984351A (en) Page adaptation method, electronic device and computer-readable storage medium
CN107959965B (en) Frame dropping method and device of application program, mobile terminal and readable storage medium
CN112114928A (en) Display page processing method and device
CN111951206A (en) Image synthesis method, image synthesis device and terminal equipment
US20190371039A1 (en) Method and smart terminal for switching expression of smart terminal
CN108681531B (en) Document input control method and device
CN106558019B (en) Picture arrangement method and device
US9594955B2 (en) Modified wallis filter for improving the local contrast of GIS related images
CN111177079A (en) Network file system data reading method, device, equipment and medium
CN113297313B (en) Table data display method and device, electronic equipment and storage medium
CN113391779B (en) Parameter adjusting method, device and equipment for paper-like screen
CN109445652B (en) PDF document display method and terminal equipment
CN112581899B (en) Control method and electronic device
CN114527980A (en) Display rendering method and device, electronic equipment and readable storage medium
CN111880880A (en) Interaction method, device, equipment and storage medium for dynamic wallpaper and desktop
CN107895563B (en) Display control method and device, terminal and computer readable storage medium
CN111143012B (en) Method, device, equipment and storage medium for completely displaying display elements
CN114267308B (en) Liquid crystal display screen scanning method and device, and liquid crystal display screen
CN110764764B (en) Webpage end image fixed stretching method and device, computer equipment and storage medium
CN111179174B (en) Image stretching method and device based on face recognition points

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant