Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for displaying data

A data and data block technology, applied in the computer field, can solve problems such as waste of resources, increased memory overhead, and limited number of interface display controls, and achieve the effects of meeting business needs, reducing the amount of calculation, and saving resources

Active Publication Date: 2012-05-02
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In prior art 1, because each data block uses a separate control, a large number of controls need to be cached, resulting in increased memory overhead, and because the number of interface display controls is limited, resulting in waste of resources; prior art 2 provides The list control needs to pre-set the height of the control, and the height of each control needs to be consistent, resulting in a certain limitation in the display space of the control, so it cannot meet the actual business needs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for displaying data
  • Method and device for displaying data
  • Method and device for displaying data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] see figure 1 , this embodiment provides a method for displaying data, and the method flow is as follows:

[0062] 101: Determine the position of the scroll box;

[0063] 102: When it is determined that the scroll box is in the jth grid, starting from the jth data block among the multiple data blocks, draw the data blocks one by one on the control in order from top to bottom;

[0064] 103: Adjust the size and quantity of controls drawing data blocks according to the size of the data blocks until the total height of all controls drawing data blocks is greater than or equal to the height of the display interface, and j is a positive integer less than or equal to the number of data blocks.

[0065] The method provided in this embodiment can save resources by adjusting the size and quantity of controls that have drawn data blocks according to the size of the data blocks, and making the total height of all controls that have drawn data blocks greater than or equal to the hei...

Embodiment 2

[0067] This embodiment provides a method for displaying data. By creating a limited number of controls, and when displaying data blocks, the size of the controls is adjusted according to the size of the data blocks, thereby saving resources and reducing overhead. Meet actual business needs, especially for application scenarios that need to display large amounts of data. For the convenience of description, this embodiment takes the case where a scroll bar appears when displaying data as an example for description, see figure 2 , the method flow provided by this embodiment is specifically as follows:

[0068] 201: Determine the position of the scroll box;

[0069] For this step, when determining the position of the scroll box, the step size of the scroll can be determined by detecting the scroll operation, so as to determine the position of the scroll box after the scroll operation is performed according to the position of the last scroll box, and other methods can also be use...

Embodiment 3

[0097] see Figure 4 , this embodiment provides a device for displaying data, the device includes:

[0098] The first determination module 401 is configured to determine the position of the scroll frame;

[0099] The first display module 402 is used to draw the data blocks one by one in order from top to bottom starting from the jth data block among the multiple data blocks when the first determination module 401 determines that the scroll box is in the jth grid On the control, adjust the size and number of controls that draw data blocks according to the size of the data block until the total height of all controls that have drawn data blocks is greater than or equal to the height of the display interface, and j is a positive value that is less than or equal to the number of data blocks integer.

[0100] Further, see Figure 5 , the device also includes:

[0101] The second determination module 403 is used to determine the largest data block serial number i, so that the to...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for displaying data, belonging to the technical field of computers. The method comprises the following steps of: determining the position where a scroll box is located; when the scroll box is positioned at the jth grid, drawing data blocks on controls one by one from top to bottom by starting from the jth data block in a plurality of data blocks; and adjusting the size and the quantity of the controls for drawing the data blocks according to the sizes of the data blocks until the total height of all controls where data blocks are drawn is greater than or equal to the height of a display interface, wherein j is a positive integer smaller than or equal to the number of the data blocks. According to the method and the device disclosed by the invention, the size and the quantity of the controls for drawing the data blocks are regulated according to the sizes of the data blocks and the total height of all drawn data blocks is enabled to be greater than or equal to the height of the display interface, thereby the resource expenditure can be saved and the calculated quantity can be reduced; in addition, the heights of the controls are adjusted according to the sizes of the data blocks, so that diversified data business can be supported and the actual business demand can be met.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for displaying data. Background technique [0002] With the rapid development of the Internet, various Internet applications continue to appear, especially the rapid development of the mobile Internet, and the uploading and downloading of information is increasingly diversified. More and more people access to network information resources is not limited to computers, various mobile terminals, netbooks and other portable equipment, making it a reality for users to obtain information anytime and anywhere. While acquiring more and more information through the network, how to display data in large quantities poses a challenge to software designers. [0003] In prior art 1, when displaying data, a separate control is used to display each data block, and the control for displaying data is inserted into the container in a specified order. The more messages there a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F9/4443G06F3/04855G06F9/451
Inventor 杜修杏李斌王春鹏谢昕虬周蔚
Owner TENCENT TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More