CN102279720B - Method and system for updating screen display contents - Google Patents

Method and system for updating screen display contents Download PDF

Info

Publication number
CN102279720B
CN102279720B CN201010195308.8A CN201010195308A CN102279720B CN 102279720 B CN102279720 B CN 102279720B CN 201010195308 A CN201010195308 A CN 201010195308A CN 102279720 B CN102279720 B CN 102279720B
Authority
CN
China
Prior art keywords
display content
updating
screen
before updating
selected object
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
CN201010195308.8A
Other languages
Chinese (zh)
Other versions
CN102279720A (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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201010195308.8A priority Critical patent/CN102279720B/en
Publication of CN102279720A publication Critical patent/CN102279720A/en
Application granted granted Critical
Publication of CN102279720B publication Critical patent/CN102279720B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for updating screen display contents. The method comprises the following steps of: acquiring non-updated display contents and updated display contents when a screen display content updating event is detected; and judging whether same parts exist between the updated display contents and the non-updated display contents, if so, copying the non-updated display contents, drawing changed display contents, combining the copied non-updated display contents and the drawn changed display contents and display, otherwise, drawing the updated display contents and displaying. Moreover, the invention further relates to a system for updating screen display contents. In the method for updating screen display contents, the presence of same parts is judged by comparing the updated display contents with the non-updated display contents, if so, the same parts are copied, the changed contents are drawn, and the same parts are not required to be drawn, so that the updating drawing efficiency of the screen display contents is increased greatly.

Description

Method and system for updating screen display content
[ technical field ] A method for producing a semiconductor device
The present invention relates to electronic information technologies, and in particular, to a method and a system for updating screen display content.
[ background of the invention ]
In general, in some software running platforms, such as the J2me platform for mobile phone software running, when updating content displayed on a screen, content updating can be implemented by only calling a function to redraw the function on the screen. However, when there are many objects to be drawn or the objects are complicated, the previous screen drawing is not finished, and the next drawing is called, which causes screen flickering, and in severe cases, the screen is torn, that is, the upper half screen and the lower half screen display different contents. Conventionally, a double-buffer technology is adopted, when drawing, an object is drawn on a buffer area a, which is a picture with the same size as a screen, and then the picture is pasted on the screen. Meanwhile, the next frame is drawn to the buffer B, and the screen can be prevented from flickering or tearing by repeating the steps.
However, the double-buffer technique still has low rendering efficiency, cannot reduce the screen rendering time, and cannot respond to the user's operation in time.
[ summary of the invention ]
Therefore, a method for updating screen display content with high rendering efficiency is needed.
In addition, it is necessary to provide a system for updating screen display content with high rendering efficiency.
A method of screen display content update, comprising the steps of:
when an event for updating the screen display content is detected, acquiring the display content before updating and the display content after updating;
and judging whether the updated display content and the display content before updating have the same part, if so, copying the display content before updating and drawing the changed display content, merging and displaying the copied display content before updating and the drawn changed display content, and if not, drawing and displaying the updated display content.
Preferably, when the event for updating the display content of the screen is that the selected object changes and the screen does not move, the specific steps of judging that the updated display content and the display content before updating have the same part, copying the display content before updating and drawing the changed display content, combining and displaying the copied display content before updating and the drawn changed display content are that the display content before updating is copied, the selected object before updating and the selected object after updating are redrawn, and the combined display content before updating and the drawn selected object after updating are displayed.
Preferably, when the event for updating the screen display content is that the screen display content moves upward or downward by one or more lines and the selected object is not changed, the updated display content and the display content before updating are judged to have the same part, the display content before updating and the display content after drawing are copied, the concrete steps of merging and displaying the copied display content before updating and the drawn display content after changing are to obtain a coordinate offset of the movement of the screen display content, copy the display content before updating and the content after new drawing according to the coordinate offset, and merge and display the display content before updating and the content after new drawing according to the coordinate offset.
Preferably, when the event for updating the screen display content is that the selected object changes and the screen display content moves up or down by one or more lines, the step of judging that the updated display content and the display content before updating have the same part is performed, the step of copying the display content before updating, the step of drawing the changed display content, and the step of combining and displaying the copied display content before updating and the drawn changed display content includes the steps of obtaining a coordinate offset of the screen display movement, copying the display content before updating according to the coordinate offset, drawing a newly added display content, the selected object before updating and the selected object after updating, and combining and displaying the copied display content before updating, the drawn newly added display content, the selected object before updating and the selected object after updating.
Preferably, when the event for updating the screen display content is complete switching of the entire screen display content, and it is determined that the updated display content does not have the same portion as the display content before updating, the updated display content is directly drawn and displayed.
A system for screen display content update, comprising:
the detection acquisition module is used for acquiring display content before updating and display content after updating when an event for updating the screen display content is detected;
the judging module is used for judging whether the updated display content and the display content before updating have the same part or not according to the acquired display content before updating and the acquired display content after updating;
an update module that copies the display content before update and draws the changed display content when the determination module determines that the updated display content and the display content before update have the same portion, and merges the copied display content before update and the drawn changed display content, and draws the updated display content when the determination module determines that the updated display content and the display content before update do not have the same portion;
and the output module is used for outputting and displaying the copied display content merged by the updating module and the drawn changed display content or outputting and displaying the updated display content drawn by the updating module.
Preferably, when the detection and acquisition module detects that the event for updating the screen display content is that the selected object changes and the screen does not move, the judgment module judges that the updated display content and the display content before updating have the same part, the update module copies the display content before updating, redraws the selected object before updating and the selected object after updating, merges the copied display content before updating, the drawn selected object before updating and the drawn selected object after updating, and outputs and displays the merged display content through the output module.
Preferably, when the detection and acquisition module detects that the event for updating the screen display content is that the screen display content moves upward or downward by one or more lines and the selected object is not changed, the judgment module judges that the updated display content and the display content before updating have the same part, the detection and acquisition module further acquires a coordinate offset of the movement of the screen display content, the update module copies the display content before updating and draws new content according to the coordinate offset, and combines the display content before updating copied according to the coordinate offset and the drawn new content and outputs the combined content for display through the output module.
Preferably, when the detection and acquisition module detects that the event for updating the screen display content is a change of the selected object and the screen display content moves up or down by one or more lines, the determination module determines that the updated display content and the display content before updating have the same portion, the detection and acquisition module further acquires a coordinate offset of the screen display movement, the update module copies the display content before updating according to the coordinate offset, draws the newly added display content, the selected object before updating and the selected object after updating, and combines the copied display content before updating, the drawn newly added display content, the selected object before updating and the selected object after updating, and outputs and displays the combined display through the output module.
Preferably, when the detection obtaining module detects that the event for updating the screen display content is complete switching of the entire screen display content, the judging module judges that the updated display content does not have the same part as the display content before updating, and the updating module directly draws the updated display content and outputs and displays the updated display content through the output module.
According to the method and the system for updating the screen display content, the updated display content and the display content before updating are compared to judge whether the same part exists or not, if so, the same part is copied, and then the changed content is drawn without drawing the same part, so that the drawing efficiency of updating the screen display content is greatly improved.
[ description of the drawings ]
FIG. 1 is a flow diagram of a method for screen display content update according to one embodiment;
FIG. 2 is a flow diagram of a method for updating a screen display content event in which a change in a selected object is detected, according to one embodiment;
FIG. 3 is a flow diagram of a method for detecting an update screen display content event in which screen display content is moved up or down one or more lines, according to one embodiment;
FIG. 4 is a flow diagram of a method for detecting a selected object change and an update screen display content event where the screen display content moves up or down one or more lines in one embodiment;
FIG. 5 is a flow diagram of a method for updating screen display content events in an embodiment in which a switch in the entire screen display content is detected;
FIG. 6 is a diagram illustrating a system architecture for updating screen display content according to an embodiment.
[ detailed description ] embodiments
As shown in fig. 1, a method for updating screen display content includes the following steps:
in step S10, the display content before the update and the display content after the update are acquired when the event of updating the screen display content is detected. The event for updating the screen display content may be generated by a user moving a page through a button, touching the screen, or rolling a mouse wheel, for example, when the user browses a web page or opens a resource manager, pressing a direction button or rolling the mouse wheel to move the entire screen display content one or more lines upwards or downwards, or switching the entire page; the event for updating the screen display content may also be a change of a selected object, where the selected object refers to a highlighted content in the screen content, such as a highlighted picture or text selected by a user in a web page, or a highlighted file selected in a resource manager, and the user may switch the selected object by pressing a key or touching the screen, thereby generating an event for updating the screen display content.
In step S20, it is determined whether the updated display content and the display content before updating have the same portion, if yes, step S30 is executed, and if no, step S40 is executed. When the user switches the selected object through the keys or the touch screen, the updated display content is the same as other contents in the display content before updating except that the selected object is changed. The same portion may also exist when the user moves the entire screen display up or down one or more lines by way of a arrow key or by scrolling the mouse wheel. In addition, the user switches the entire page by pressing a button or rolling a mouse wheel, and there is no identical portion.
In step S30, the display content before update is copied, the changed display content is rendered, and the copied display content before update and the rendered changed display content are combined and displayed. In the above case, when the content displayed on the screen has the same portion after the update as that before the update, the display content before the update of the same portion is copied to the buffer as the background layer, the changed display content is drawn into the buffer, and the copied display content before the update and the drawn changed display content in the buffer are merged and displayed. When a user browses a webpage, the selected object is changed through switching of a key or a touch screen, when an event for updating the display content of the screen is generated, the display content before updating is copied as a background layer, and then the selected object before updating (drawn to be in an unselected state) and the selected object after updating (drawn to be in a selected state) are drawn to a buffer area to cover the content of the original corresponding position.
In step S40, the updated display content is rendered and displayed. When a user browses a webpage, the whole page is switched by pressing a key or rolling a mouse wheel, and the updated display content is directly drawn into the buffer area and displayed if the updated display content does not have the same part as the content displayed before updating.
According to the method for updating the screen display content, the updated display content and the display content before updating are compared to judge whether the same part exists or not, if so, the same part is copied, then the changed content is drawn, the same part does not need to be drawn, and the drawing efficiency of updating the screen display content is greatly improved. The method for updating the screen display content can obviously improve the efficiency of updating the screen display content and avoid the condition of tearing the screen for the portable mobile terminal with relatively deficient processing capability, such as a mobile phone. Particularly, when characters are displayed, a complicated process is required from character encoding to display of the characters, and the calculation amount can be further reduced. Therefore, the method for updating the screen display content is particularly suitable for being used as a method for updating and displaying the characters of the mobile phone.
In order to better illustrate the specific flow of updating the screen display content, the following detailed description is given with reference to several specific embodiments, but not limited thereto. As shown in fig. 2, in an embodiment, when a user browses a web page or a resource manager, a selected object is changed by switching through a key or a touch screen, but the screen display content is not changed except for the selected object, specific update steps are as follows:
step S210, when an event that the screen display content is updated and the selected object is changed is detected, the display content before the update and the display content after the update are acquired. Through detection, the display content of the whole screen does not move up and down, and the selected object is changed only for the user through key or touch screen switching. For example, when browsing a web page, the selected object before updating is the text "sports", and the selected object after updating is the text "entertainment".
In step S220, it is determined whether the updated display content and the display content before updating have the same portion, and if yes, step S230 is executed. In this embodiment, when it is detected that the user moves on the current page by switching the key or the touch screen, so that the selected object changes, the other objects except the selected object do not change, that is, the updated display content and the display content before updating have the same portion.
Step S230, copying the display content before updating, redrawing the selected object before updating and the selected object after updating, and merging and displaying the copied display content before updating, the drawn selected object before updating and the drawn selected object after updating. In this embodiment, only the selected object is changed, and the updated display content is the same as the display content before the update. Therefore, the original coordinates are converted into the coordinates of the buffer area, the display content before updating is copied into the buffer area to serve as the background of the bottom layer, the obtained selected object before updating and the selected object after updating are redrawn, the original image in the buffer area on the corresponding coordinates is covered according to the corresponding coordinates, and the copied display content before updating, the redrawn selected object before updating and the copied selected object after updating are combined into the content of the buffer area to be output and displayed on a screen. Each line and object of the screen display content have corresponding coordinates. Taking a document as an example, each object in the document has coordinates, and the coordinates are calculated with respect to the initial position of the entire document. The size of the buffer is the same as the size of the screen display area. The selected object before updating refers to the object which is highlighted and already selected in the screen before the updating event occurs, and the selected object after updating refers to the object highlighted and selected by the user after the updating event occurs. If the highlighted text selected before updating in the webpage is 'sports', the highlighted text selected after updating is 'entertainment', the display content before updating is copied to the buffer area, then 'sports' and 'entertainment' are redrawn and then copied to corresponding coordinates in the buffer area, the 'sports' is not highlighted, and the 'entertainment' is highlighted.
In one embodiment, as shown in FIG. 3, a user browsing a web page or explorer, etc., moves the entire screen one or more lines up or down by a arrow key or a scrolling mouse wheel, generating an event that updates the content of the screen display. The specific updating steps are as follows:
step S310, when detecting the event that the screen display content moves upwards or downwards by one or more lines of the updated screen display content, acquiring the display content before updating and the display content after updating. When the user is detected to browse the web page or the resource manager, the whole screen is moved upwards by one or more lines or moved downwards by one or more lines through a direction key or a rolling mouse wheel, and an event for updating the display content of the screen is generated.
In step S320, it is determined whether the updated display content and the display content before updating have the same portion, and if yes, step S330 is executed. In this embodiment, it is detected that the user moves the display content of the entire screen one or more lines upward or downward by moving the key or rolling the mouse wheel, but the entire page is not completely switched, and the updated display content has the same portion as the display content before the update. In addition, in this embodiment, whether the updated display content and the display content before updating have the same portion is analyzed by obtaining the coordinate offset of the movement of the screen display content. Taking a web page as an example, the coordinates may be calculated as the coordinates of the starting point of the first line of the web page display content. The screen display content movement means that the display content of the whole screen is moved, that is, the whole screen is moved up or down by one or more lines. The coordinate offset is the amount of change in the coordinates of the screen display when it moves. In addition, the display size of the whole screen is limited, the number of lines capable of being displayed is limited, and then the size of the corresponding coordinate interval is the same as the number of lines, and a preset value can be set as the maximum display line value. When the user moves the whole screen upwards or downwards by one line or a plurality of lines by a direction key or a rolling mouse wheel and the whole page is not completely switched, the coordinate offset of the movement of the acquired screen display content is not zero and the absolute value of the coordinate offset is smaller than the preset value. Taking a web page as an example, if the coordinate range of the screen display content before updating is 1-10, the coordinate range of the screen display content after updating is 3-12, the predetermined value is 10, and the absolute value of the coordinate offset is 2 smaller than the predetermined value, the screen display content moves and the page switching does not occur, so that the updated display content is partially the same as the display content before updating. If the coordinate offset is 10, the entire page is switched, and the same portion will not exist.
Step S330, obtaining the coordinate offset of the screen display content movement, copying the display content before updating and drawing the newly added content according to the coordinate offset, and combining and displaying the display content before updating and the newly added drawing content copied according to the coordinate offset. In this embodiment, after the display content before updating is copied to the buffer area according to the coordinate offset, a part of blank area, that is, an area to be drawn exists in the buffer area, and then the newly added display content is drawn to the area to be drawn in the buffer area. If the content with the coordinates of 1 to 10 is displayed before updating in the webpage, the content with the coordinates of 3 to 12 is displayed after updating, the coordinate offset is 2, the content with the coordinates of 3 to 10 is copied to the buffer area according to the coordinate offset, two blank areas with two lines exist in the buffer area, the newly added content with the coordinates of 11 and 12 is drawn to the two blank areas in the buffer area, and then the copied content with the coordinates of 3 to 10 and the drawn content with the coordinates of 11 and 12 are combined and displayed.
As shown in fig. 4, in an embodiment, when a user browses a web page or a resource manager, a selected object is changed by switching through a key or a touch screen, and the display content of the whole screen is caused to move up or down by one or more lines, but the display content of the whole screen is not completely switched, and the updated display content has the same portion as the display content before updating, and the specific updating steps are as follows:
step S410, when detecting the event that the selected object changes and the screen display content moves up or down by one or more lines of updated screen display content, acquiring the display content before the update and the display content after the update. And detecting that the user switches the selected object through a key or a touch screen, wherein the selected object changes and the whole screen display content also moves upwards or downwards by one line or a plurality of lines, and generating an event for updating the screen display content.
In step S420, it is determined whether the updated display content and the display content before updating have the same portion, and if yes, step S430 is executed. It is detected that the selected object and the entire screen display move up or down one or more lines, but the entire screen display does not completely switch, so the updated display has the same portion as the display before the update.
Step S430, obtaining the coordinate offset of the screen display movement, copying the display content before updating according to the coordinate offset, drawing the newly added display content, the selected object before updating and the selected object after updating, merging and displaying the display content before copying and updating, the newly added display content, the selected object before updating and the selected object after updating. And if the updated display content and the display content before updating have the same part, acquiring the coordinate offset of the movement of the display content of the whole screen, copying the display content before updating according to the coordinate offset, drawing the newly added display content, redrawing the selected object before updating and the selected object after updating, and combining the three for display. Taking webpage updating as an example, after the display content before updating is copied to the buffer area according to the coordinate offset, a part of blank area, namely an area to be drawn exists in the buffer area, then the newly added display content is drawn to the area to be drawn of the buffer area, and the selected object before updating and the selected object after updating are redrawn to cover the corresponding coordinate position. If the content with the coordinates of 1 to 10 is displayed before updating in the webpage, the highlighted selected object before updating is sports, the content with the coordinates of 3 to 12 is displayed after updating, the highlighted selected object after updating is entertainment, the coordinate offset is 2, the content with the coordinates of 3 to 10 is copied to the buffer area according to the coordinate offset, two blank areas exist in the buffer area, the newly added content with the coordinates of 11 and 12 is drawn to the two blank areas in the buffer area, then the non-highlighted content of the selected object before updating is redrawn, the updated selected object entertainment is drawn as highlighted content, and the three are combined and displayed on a screen.
In one embodiment, as shown in fig. 5, the user browses the web page or the resource manager, switches the whole page by pressing a button or rolling a mouse wheel, and generates an event for updating the display content of the screen, and the display content of the whole screen is completely switched and has no overlapped part with the display content before updating. The specific updating steps are as follows:
step S510, when an event of updating the screen display content is detected, in which the entire screen display content is completely switched, acquiring the display content before updating and the display content after updating. When a user is detected to browse a webpage or a resource manager, the whole page is completely switched by pressing a key or rolling a mouse wheel, and an event for updating the display content of the screen is generated.
In step 520, it is determined whether there is a portion between the updated display content and the display content before updating, and if not, step S540 is executed. The user switches the display content of the whole screen by pressing a key or rolling a mouse wheel, and the updated display content and the display content before updating do not have the same part. In this embodiment, whether the display content before the update and the display content after the update have the same portion may be analyzed by obtaining the coordinate offset of the movement of the screen display content. The method comprises the following steps: the display size of the whole screen is limited, the number of lines capable of being displayed is limited, and the size of the corresponding coordinate interval is the same as the number of lines, so that the preset value can be set as the maximum display line numerical value. When the coordinate offset of the movement of the screen display content is larger than or equal to a preset value, the whole page of the screen display content is switched, and the updated display content and the display content before updating do not have the same part.
And step S540, drawing and displaying the updated display content. When the coordinate offset of the movement of the screen display content exceeds a predetermined value, the content of the whole screen is completely changed, and the updated display content and the display content before updating do not overlap, that is, do not have the same part. And when the user moves to cause the complete switching of the whole page, the updated display content is directly drawn into the buffer area and displayed.
As shown in fig. 6, a system for updating screen display content includes a detection acquisition module 10, a processing module 20, an updating module 30 and an output module 40. Wherein,
the detection obtaining module 10 is configured to obtain the display content before the update and the display content after the update when detecting an event that updates the screen display content. The detection and acquisition module 10 is configured to detect an event that is generated by a user moving a page through a button, a touch screen, or a rolling mouse wheel and updates a screen display content, for example, when the user browses a web page or opens a resource manager, the detection and acquisition module 10 detects that the user presses a direction button or rolls the mouse wheel, so that the entire screen display content moves up or down one or more lines, or switches the entire page; the event for updating the screen display content detected by the detection and acquisition module 10 may also be a change of a selected object, where the selected object refers to a highlighted content in the screen content, such as a highlighted picture or text selected by a user in a web page, or a highlighted file selected in a resource manager, and the user may switch the selected object by pressing a key or touching the screen, so as to generate an event for updating the screen display content.
The judging module 20 is configured to judge whether the updated display content and the display content before updating have the same portion. The determining module 20 compares the acquired updated display content with the display content before updating according to the event that is detected by the detecting and acquiring module 10 and generates the updated screen display content, and determines whether there is the same part. If the user switches the selected object on the current page of the web page through a key or a touch screen, the updated display content is the same as other content in the display content before updating except that the selected object changes, and the determining module 20 determines that the updated display content has the same portion as the display content before updating. The user moves the display content of the whole screen upwards or downwards by one or more lines through the direction key or the rolling mouse wheel, but when the whole page is not switched, the judging module 20 judges that the updated display content has the same part as the display content before updating. In addition, if the user switches the entire page by pressing a button or rolling a mouse wheel, the determination module 20 determines that there is no identical portion.
And the updating module 30 copies the display content before updating and draws the changed display content when the judging module 20 judges that the updated display content and the display content before updating have the same part, combines the copied display content before updating and the drawn changed display content, and outputs and displays the combined display content through the output module 40, and draws the updated display content and outputs and displays the drawn display content through the output module 40 when the judging module 20 judges that the updated display content and the display content before updating do not have the same part.
In this embodiment, when the content displayed on the screen has the same portion after the update as that before the update, the update module 30 copies the display content before the update of the same portion to the buffer as the background layer, and then draws the newly added display content to the buffer. For example, when the user browses a web page, the detection acquisition module 10 acquires an event of updating the screen display content, in which the selected object is changed by switching a key or a touch screen, the judgment module 20 judges that the other parts are the same except the selected object, that is, the same parts exist, the update module 30 copies the display content before updating, and then draws the selected object before updating (drawn in a non-selected state) and the selected object after updating (drawn in a selected state) to the content, in which the original corresponding position is covered by the buffer. The display size of the buffer area is the same as the display size of the screen, that is, the buffer area is equivalent to a picture with the same display size of the screen.
In the system for updating the screen display content, the judging module 20 is adopted to compare the updated display content with the display before updating to judge whether the updated display content has the same part, if so, the updating module 30 copies the same part and then draws the changed content without drawing the same part, thereby greatly improving the drawing efficiency of updating the screen display content.
In addition, the event that the detection acquisition module 10 detects that the screen display content is updated is any one of the following four cases: the selected object changes and the screen does not move; when the screen display content moves up or down one or more lines and the selected object does not change; the selected object changes and the screen display content moves up or down one or more lines; the entire screen display content is completely switched. When the system for updating the screen display content detects any one of the situations, the updating process is different, and the specific process of updating in different situations is described in detail below.
(1) The event that updates the display content of the screen is that the selected object has changed and the screen has not moved.
When the detection and acquisition module 10 detects that the event for updating the display content of the screen is that the selected object changes and the screen does not move, the display content before updating and the display content after updating are acquired. Through detection, the detection acquisition module 10 does not move up and down in the display content of the whole screen, and only changes the selected object through key or touch screen switching for the user. For example, when browsing a web page, the selected object before updating is the text "sports", and the selected object after updating is the text "entertainment".
The determining module 20 determines that the updated display content is the same as the display content before updating. The user moves on the current page through switching of the keys or the touch screen, only the selected object is changed, and except the selected object, the other objects are not changed, namely the updated display content and the display content before updating have the same part.
The update module 30 copies the display content before update, redraws the selected object before update and the selected object after update, merges the copied display content before update with the drawn selected object before update and the drawn selected object after update, and outputs the display through the output module 40. In this embodiment, only the selected object is changed, and the updated display content is the same as the display content before the update. Therefore, the updating module 30 converts the original coordinates into the coordinates of the buffer area, copies the display content before updating into the buffer area as the background of the bottom layer, redraws the obtained selected object before updating and the selected object after updating, respectively covers the original image in the buffer area on the corresponding coordinates according to the corresponding coordinates, and combines the copied display content before updating, the redrawn selected object before updating and the selected object after updating into the content of the buffer area to be output and displayed on the screen. Each line and object of the screen display content have corresponding coordinates. Taking a document as an example, each object in the document has coordinates, and the coordinates are calculated with respect to the initial position of the entire document. The size of the buffer is the same as the size of the screen display area. The selected object before updating refers to the object which is highlighted and already selected in the screen before the updating event occurs, and the selected object after updating refers to the object highlighted and selected by the user after the updating event occurs. If the selected highlighted text before the update in the web page is "sports" and the selected highlighted text after the update is "entertainment", the display content before the update is copied to the buffer, the update module 30 redraws "sports" and "entertainment", and then copies them to the corresponding coordinates in the buffer, the "sports" is not highlighted, and the "entertainment" becomes highlighted.
(2) An event that updates the screen display content is that the screen display content moves up or down one or more lines and the selected object does not change.
The detection acquiring module 10 detects that the event of updating the screen display content is that the screen display content moves up or down by one or more lines and the selected object is unchanged, and acquires the display content before updating and the display content after updating. When the detection acquisition module 10 detects that the user browses a web page or a resource manager, etc., the whole screen is moved up by one or more lines or moved down by one or more lines through a direction key or a rolling mouse wheel, and an event for updating the display content of the screen is generated.
The judgment module 20 judges that the updated display content has the same portion as the display content before updating. In this embodiment, it is detected that the user moves the display content of the entire screen one or more lines upward or downward by moving the key or rolling the mouse wheel, but the entire page is not completely switched, and the updated display content has the same portion as the display content before the update. In addition, in this embodiment, the coordinate offset of the movement of the screen display content is acquired by the detection acquisition module 10, and whether the updated display content and the display content before updating have the same part is analyzed. Taking a web page as an example, the coordinates may be calculated as the coordinates of the starting point of the first line of the web page display content. The screen display content movement means that the display content of the whole screen is moved, that is, the whole screen is moved up or down by one or more lines. The coordinate offset is the amount of change in the coordinates of the screen display when it moves. In addition, the display size of the whole screen is limited, the number of lines capable of being displayed is limited, and then the size of the corresponding coordinate interval is the same as the number of lines, and a preset value can be set as the maximum display line value. When the user moves the whole screen upward or downward by one or more lines by using the direction key or the scroll wheel of the mouse without completely switching the whole page, the coordinate offset of the movement of the screen display content acquired by the detection acquisition module 10 should be not zero, and the judgment module 20 judges that the absolute value of the coordinate offset is smaller than the predetermined value, so that the updated display content and the display content before updating have the same part. Taking a web page as an example, if the coordinate range of the screen display content before updating is 1-10, the coordinate range of the screen display content after updating is 3-12, the predetermined value is 10, and the absolute value of the coordinate offset is 2 smaller than the predetermined value, the screen display content moves and the page does not switch, and the determining module 20 determines that the updated display content is partially the same as the display content before updating. If the coordinate offset is 10, the entire page is switched, and the determining module 20 determines that the updated display content does not have the same portion as the display content before updating.
The detection acquisition module 10 acquires the coordinate offset of the screen display content movement. The update module 30 copies the display content before update and the newly added content according to the coordinate offset, combines the display content before update and the newly added content copied according to the coordinate offset, and outputs and displays the combined content through the output module 40. In this embodiment, after the update module 30 copies the display content before update to the buffer according to the coordinate offset, a part of blank space, that is, a region to be drawn exists in the buffer, and then draws the newly added display content to the region to be drawn of the buffer. If the content with coordinates 1 to 10 is displayed before updating in the web page, the content with coordinates 3 to 12 is displayed after updating, the coordinate offset is 2, the updating module 30 copies the content with coordinates 3 to 10 to the buffer area according to the coordinate offset, two blank areas will exist in the buffer area, the newly added content with coordinates 11 and 12 is drawn to the two blank areas in the buffer area, and then the copied content with coordinates 3 to 10 and the drawn content with coordinates 11 and 12 are merged and output and displayed through the output module 40.
(3) The event that updates the screen display content is a selected object change and the screen display content moves up or down one or more lines.
The detection acquiring module 10 acquires the display content before the update and the display content after the update when detecting an event that the selected object changes and the screen display content moves up or down by one or more lines of the updated screen display content. The detection acquisition module 10 detects that the user switches the selected object through a key or a touch screen, the selected object changes and causes the whole screen display content to move upwards or downwards by one line or multiple lines, and an event for updating the screen display content is generated.
The determination module 20 determines that the updated display content has the same portion as the display content before the update. The detecting and acquiring module 10 detects that the selected object and the entire screen display content move up or down by one or more lines, but the entire screen display content is not completely switched, and the determining module 20 may determine that the updated display content has the same portion as the display content before the update.
The detection acquisition module 10 acquires the coordinate offset of the screen display movement. The updating module 30 copies the display content before updating according to the coordinate offset, draws the newly added display content, the selected object before updating and the selected object after updating, combines the display content before copying and updating, the newly added display content, the selected object before updating and the selected object after updating, and outputs and displays the combined display content, the selected object before updating and the selected object after updating through the output module 40. The judging module 20 judges that the updated display content and the display content before updating have the same part, the detection obtaining module 10 first obtains the coordinate offset of the movement of the display content of the whole screen, then the updating module 30 copies the display content before updating according to the coordinate offset, then draws the newly added display content, then redraws the selected object before updating and the selected object after updating, and combines the three for display.
(4) The event for updating the screen display content is that the whole screen display content is completely switched.
When the detection and acquisition module 10 detects that the event for updating the screen display content is complete switching of the entire screen display content, the display content before updating and the display content after updating are acquired. When detecting that the user browses the web page or the resource manager, the detection acquisition module 10 completely switches the entire page by pressing a key or rolling a mouse wheel, thereby generating an event for updating the display content of the screen.
The judgment module 20 judges that the updated display content does not have the same portion as the display content before the update. The user switches the display content of the whole screen by pressing a key or rolling a mouse wheel, and the updated display content and the display content before updating do not have the same part. In this embodiment, whether the display content before the update and the display content after the update have the same portion may be analyzed by detecting the coordinate offset of the movement of the screen display content acquired by the acquisition module 10. The method comprises the following steps: the display size of the whole screen is limited, the number of lines capable of being displayed is limited, and the size of the corresponding coordinate interval is the same as the number of lines, so that the preset value can be set as the maximum display line numerical value. The judging module 20 judges whether the coordinate offset of the movement of the screen display content is greater than or equal to a predetermined value, if so, it indicates that the whole page of the screen display content is completely switched, and the updated display content does not have the same part as the display content before updating.
The update module 30 renders the updated display content and outputs the display through the output module 40. The judging module judges that there is no identical part, and the updating module 30 directly draws the updated display content and then outputs and displays it on the screen through the output module 40.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (4)

1. A method of screen display content update, comprising the steps of:
when the event for updating the screen display content is detected to be that the screen display content moves upwards or downwards by one or more lines and the selected object is unchanged, acquiring the display content before updating and the display content after updating;
judging whether the updated display content and the display content before updating have the same part or not, if so, acquiring the coordinate offset of the movement of the screen display content, copying the display content before updating and drawing the newly added content according to the coordinate offset, merging and displaying the display content before updating copied and the newly added drawn content according to the coordinate offset, and if not, drawing and displaying the updated display content;
or when the event of updating the screen display content is that the selected object changes and the screen display content moves upwards or downwards by one or more lines, judging that the updated display content and the display content before updating have the same part, copying the display content before updating, drawing the changed display content, combining and displaying the copied display content before updating and the drawn changed display content, specifically, obtaining the coordinate offset of the screen display movement, copying the display content before updating according to the coordinate offset, drawing the newly added display content, the selected object before updating and the selected object after updating, combining and displaying the copied display content before updating, the drawn newly added display content, the selected object before updating and the selected object after updating.
2. The method for updating screen content display according to claim 1, wherein when the event for updating the screen display content is a complete switch of the entire screen display content, and the updated display content is determined not to have the same portion as the display content before the update, the updated display content is directly drawn and displayed.
3. A system for updating on-screen display content, comprising:
the detection acquisition module is used for acquiring the display content before updating and the display content after updating when the event for updating the screen display content is detected that the screen display content moves upwards or downwards by one or more lines and the selected object is unchanged;
the judging module is used for judging whether the updated display content and the display content before updating have the same part or not according to the acquired display content before updating and the acquired display content after updating;
the detection acquisition module is further used for acquiring the coordinate offset of the movement of the screen display content when the judgment module judges that the updated display content and the display content before updating have the same part;
the updating module is used for copying the display content before updating and drawing a newly added content according to the coordinate offset when the judging module judges that the updated display content and the display content before updating have the same part, combining the display content before updating and the newly added content drawn according to the coordinate offset and outputting and displaying the combined content through the output module, and drawing the updated display content when the judging module judges that the updated display content and the display content before updating do not have the same part;
an output module for outputting and displaying the copied display content merged by the update module before updating and the drawn changed display content, or outputting and displaying the updated display content drawn by the update module after updating;
or when the detection acquisition module detects that the event for updating the screen display content is that the selected object changes and the screen display content moves upwards or downwards by one or more lines, the judgment module judges that the updated display content and the display content before updating have the same part, the detection acquisition module also acquires the coordinate offset of the screen display movement, the update module copies the display content before updating according to the coordinate offset, draws the newly added display content, the selected object before updating and the selected object after updating, and combines the copied display content before updating, the drawn newly added display content, the selected object before updating and the selected object after updating, and outputs and displays the combined display through the output module.
4. The system for updating screen display content according to claim 3, wherein when the detecting and obtaining module detects that the event for updating the screen display content is complete switching of the entire screen display content, the determining module determines that the updated display content does not have the same portion as the display content before updating, and the updating module directly draws the updated display content and outputs and displays the updated display content through the output module.
CN201010195308.8A 2010-06-08 2010-06-08 Method and system for updating screen display contents Active CN102279720B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010195308.8A CN102279720B (en) 2010-06-08 2010-06-08 Method and system for updating screen display contents

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010195308.8A CN102279720B (en) 2010-06-08 2010-06-08 Method and system for updating screen display contents

Publications (2)

Publication Number Publication Date
CN102279720A CN102279720A (en) 2011-12-14
CN102279720B true CN102279720B (en) 2014-03-19

Family

ID=45105192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010195308.8A Active CN102279720B (en) 2010-06-08 2010-06-08 Method and system for updating screen display contents

Country Status (1)

Country Link
CN (1) CN102279720B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677491B (en) * 2012-09-03 2018-11-13 百度在线网络技术(北京)有限公司 A kind of method and apparatus for rendering webpage
CN103677564B (en) * 2013-11-20 2016-03-30 小米科技有限责任公司 Slide response method, device and terminal device
CN104238911B (en) * 2014-08-20 2018-04-06 小米科技有限责任公司 Load icon display method and device
JP6150025B1 (en) * 2015-08-10 2017-06-21 コニカミノルタ株式会社 Display device and display method of monitored person monitoring system, and monitored person monitoring system
CN105595988A (en) * 2015-12-23 2016-05-25 石家庄翰纬医疗设备有限公司 Electrocardiogram wave form drawing method and calculation device
CN108132746B (en) * 2016-12-01 2021-02-05 腾讯科技(北京)有限公司 Picture display method, device and equipment
CN108693951B (en) * 2018-05-10 2021-04-06 Oppo广东移动通信有限公司 Display content updating method and device
CN109799940B (en) * 2018-12-28 2023-01-03 北京字节跳动网络技术有限公司 Method, apparatus, and computer recording medium for processing presentation content in response to gesture operation
CN110442410A (en) * 2019-07-15 2019-11-12 深圳市元征科技股份有限公司 Embedded type interface design method, device, electronic equipment and storage medium
CN113900758B (en) * 2021-10-22 2023-09-12 广州博冠信息科技有限公司 Content display method, apparatus, computer device, and computer-readable storage medium
US20230196361A1 (en) * 2021-12-16 2023-06-22 Bank Of America Corporation System and method providing an electronic centralized gateway switch to a plurality of network devices

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489035A (en) * 2002-09-04 2004-04-14 ������������ʽ���� Csreen display rpocessing device, screen display processing method and computer programme
CN1510568A (en) * 2002-12-26 2004-07-07 英业达股份有限公司 Screen updating method
CN1987930A (en) * 2006-09-30 2007-06-27 武汉市迅彩科技有限责任公司 Method for displaying animation in mobile communication terminal display device
CN101006417A (en) * 2004-12-03 2007-07-25 索尼计算机娱乐公司 Image display device, image display method, and program
CN101587436A (en) * 2008-05-22 2009-11-25 闪联信息技术工程中心有限公司 Method and system for regional restoration in embedded device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489035A (en) * 2002-09-04 2004-04-14 ������������ʽ���� Csreen display rpocessing device, screen display processing method and computer programme
CN1510568A (en) * 2002-12-26 2004-07-07 英业达股份有限公司 Screen updating method
CN101006417A (en) * 2004-12-03 2007-07-25 索尼计算机娱乐公司 Image display device, image display method, and program
CN1987930A (en) * 2006-09-30 2007-06-27 武汉市迅彩科技有限责任公司 Method for displaying animation in mobile communication terminal display device
CN101587436A (en) * 2008-05-22 2009-11-25 闪联信息技术工程中心有限公司 Method and system for regional restoration in embedded device

Also Published As

Publication number Publication date
CN102279720A (en) 2011-12-14

Similar Documents

Publication Publication Date Title
CN102279720B (en) Method and system for updating screen display contents
JP5999573B2 (en) Information display processing device
US9710125B2 (en) Method for generating multiple windows frames, electronic device thereof, and computer program product using the method
KR100892966B1 (en) Electronic Device With Touch Screen And Method Of Displaying Information Using Same
US20130346914A1 (en) Information display apparatus and method of user device
US11442600B2 (en) Screen display method and terminal
CN104142798A (en) Application start method and intelligent terminal equipment provided with touch screen
CN109597548B (en) Menu display method, device, equipment and storage medium
CN103135930A (en) Touch screen control method and device
JP2005234291A (en) Display apparatus and display method
US20110227844A1 (en) Method and apparatus for inputting character in portable terminal
CN109542304B (en) Display content loading method, device, equipment and storage medium
US20110161866A1 (en) Method and apparatus for managing notifications for a long scrollable canvas
CN106681616B (en) Method, device and equipment for displaying function bar of browser
US8860758B2 (en) Display control apparatus and method for displaying overlapping windows
JP2011022851A (en) Display terminal, image processing system, and image processing method
JP2014041391A (en) Touch panel device
JP6241356B2 (en) Electronic device and information display program
CN102467338A (en) Electronic device and key display method of software keyboard thereof
CN104346123A (en) Image display apparatus and method thereof
US20160110037A1 (en) Electronic apparatus, storage medium, and method for operating electronic apparatus
JP2012208633A (en) Information terminal, display control method, and display control program
JP5855537B2 (en) Electronics
JP2014209331A (en) Notification information display device and notification information display method
KR100644636B1 (en) Apparatus and method for screen enlargement of data processing device

Legal Events

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