CN111338741A - Task progress display method and device and storage medium - Google Patents

Task progress display method and device and storage medium Download PDF

Info

Publication number
CN111338741A
CN111338741A CN202010232200.5A CN202010232200A CN111338741A CN 111338741 A CN111338741 A CN 111338741A CN 202010232200 A CN202010232200 A CN 202010232200A CN 111338741 A CN111338741 A CN 111338741A
Authority
CN
China
Prior art keywords
progress
target
task
bar
interval
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.)
Granted
Application number
CN202010232200.5A
Other languages
Chinese (zh)
Other versions
CN111338741B (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.)
Reach Best Technology Co Ltd
Original Assignee
Reach Best Technology 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 Reach Best Technology Co Ltd filed Critical Reach Best Technology Co Ltd
Priority to CN202010232200.5A priority Critical patent/CN111338741B/en
Publication of CN111338741A publication Critical patent/CN111338741A/en
Application granted granted Critical
Publication of CN111338741B publication Critical patent/CN111338741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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 disclosure relates to a task progress display method, a device and a storage medium thereof, and relates to the field of computers. The disclosed embodiments can solve the problem in the related art that, when the progress bar provided with the milestone nodes is used to display the progress of a task to a user, the progress marker does not highlight the process of crossing the milestone nodes. The method comprises the following steps: displaying a target progress bar indicating an execution progress of the target task; one or more milestone nodes are arranged on the target progress bar; and responding to the start of the target task, and moving the progress mark on the target progress bar from the starting point of the target progress bar to the end point of the target progress bar according to a preset mode. Wherein, the preset mode includes: in the first interval, the progress mark moves in an accelerated manner, and in the second interval, the progress mark moves in a decelerated manner. The present disclosure applies to the display of task progress.

Description

Task progress display method and device and storage medium
Technical Field
The present disclosure relates to the field of computers, and in particular, to a task progress display method, a task progress display device, and a storage medium.
Background
Currently, when an electronic device executes a task with a large execution amount, in order to facilitate an operator to know the execution progress of the task, a progress bar for indicating the execution progress of a target task is usually displayed on a display interface, and then the execution progress of the target task is visually shown to a user by moving a position on the progress bar through a progress mark.
Fig. 1 is a schematic diagram of a progress bar of an electronic device in the prior art. The progress bar 101 may be a rectangular bar from the starting point to the ending point. Progress bar 101 also includes progress markers 102 (i.e., thick lines in fig. 1) thereon. As the target task is executed from the beginning, the completed task percentage (where the completed task percentage represents a ratio of the completed task amount to the total task amount of the target task) gradually increases, and the progress mark 102 on the corresponding progress bar 101 moves from the starting point of the progress bar 101 to the end point of the progress bar 101 until the target task is executed, and the corresponding progress mark 102 reaches the end point of the progress bar.
In some cases, in order to highlight the completion of multiple stages in the target task execution process, one or more milestone nodes may be further disposed between the start point and the end point of the progress bar, and are respectively used for dividing two stages in the target task execution process. Furthermore, the progress bar may be divided into a plurality of progress segments by one or more milestone nodes on the progress bar, each progress segment corresponding to an execution phase in the target task. For example, in the progress bar shown in fig. 2, three milestone nodes (i.e., 103a, 103b, 103c in the graph) are included between the start point and the end point, respectively, for indicating that the task is completed by 25%, 50%, and 75%. That is, the target task is divided into four stages during execution, and the task amount of the four stages respectively accounts for 25% of the total task amount of the target task.
Further, in the progress bar provided with the milestone node, the progress of the execution of the target task at each stage may be represented by moving the progress marker 102 from the start point of the progress bar and then sequentially passing through the progress sections.
In the present disclosure, it is considered that the process of progress markers crossing milestone nodes is generally a process of major concern to users. Therefore, when the progress bar provided with the milestone nodes is used for showing the progress of the task to the user, how to highlight the process of crossing the milestone nodes by the progress markers so as to improve the user experience is a problem to be solved in the field at present.
Disclosure of Invention
The present disclosure provides a task progress display method, apparatus, and storage medium thereof, to at least solve the problem in the related art that, when displaying a task progress to a user using a progress bar provided with a milestone node, a process of highlighting a progress marker crossing the milestone node is not performed. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for displaying task progress is provided, including: displaying a target progress bar indicating an execution progress of the target task; one or more milestone nodes are arranged on the target progress bar; the target progress bar is divided into a plurality of progress sections by one or a plurality of milestone nodes, and the plurality of progress sections correspond to a plurality of execution stages contained in the target task respectively; on the target progress bar, responding to the start of execution of the target task, and moving a progress mark on the target progress bar from the starting point of the target progress bar to the end point of the target progress bar according to a preset mode until the progress mark moves to the end point of the target progress bar after the target task is executed; wherein, the preset mode includes: in the first interval, the progress mark moves in an accelerated way; the first section comprises a progress bar section which is arranged on the target progress bar, is before the target milestone node and is adjacent to the target milestone node; a target milestone node comprising any of the one or more milestone nodes; the preset mode further comprises: in a second interval, the progress mark moves in a deceleration way; the second interval includes a progress bar interval on the target progress bar after and adjacent to the target milestone node.
Optionally, in the first interval, the accelerated movement of the progress marker includes: in the first interval, the increment of the ratio of the completed tasks corresponding to the moving unit length of the progress marker is gradually reduced; in a second interval, the progress mark moves in a deceleration mode, and the method comprises the following steps: in the second interval, the increment of the ratio of the completed tasks corresponding to the moving unit length of the progress mark is gradually increased.
Optionally, the preset method further includes: in the first interval, the increment of the occupied ratio of the completed task corresponding to the progress mark crossing the first subinterval is equal to the increment of the occupied ratio of the completed task corresponding to the progress mark crossing the second subinterval in the second interval; wherein the first subinterval includes: within the first interval, a progress bar interval adjacent to the target milestone; the second subinterval includes: in the second interval, a progress bar interval adjacent to the target milestone; the first subinterval and the second subinterval are of equal length.
Optionally, the preset method specifically includes: in the target progress section, the increment of the ratio of the completed tasks corresponding to the unit length of the movement of the progress marker is gradually increased from the starting point of the target progress section to the target position; from the target position to the end point of the target progress section, the increment of the ratio of the completed tasks corresponding to the unit length of the movement of the progress mark is gradually reduced; wherein, the target progress section includes: any one of the plurality of progress sections; the target location includes a point between a start point of the target progress segment and an end point of the target progress segment.
Optionally, the preset method specifically includes: in the target progress segment, the ratio of the distance Y between the progress mark and the starting point of the target progress bar to the corresponding completed task X meets the following formula group one:
Figure BDA0002429606500000021
wherein, the target progress section includes: any one of the plurality of progress sections; y is0Indicating the distance, y, between the start of the target progress segment and the start of the target progress bar3Represents the distance, x, from the end point of the target progress segment to the start point of the target progress bar0The ratio of completed tasks, x, corresponding to the starting point of the target progress segment3The ratio of completed tasks, y, corresponding to the end point of the target progress segment1、y2、x1、x2Is a preset constant.
Optionally, wherein x1、x2The value of (b) satisfies the following formula group two:
Figure BDA0002429606500000031
optionally, wherein y1、y2The value of (b) satisfies the following formula three:
y1-y0=y3-y2and (5) formula III.
Optionally, the preset method specifically includes: within the target progress segment, the distance Y between the progress marker and the starting point of the target progress bar is in proportion to the corresponding completed task X, and the following formula group four is satisfied:
Figure BDA0002429606500000032
wherein, the target progress section includes: any one of the plurality of progress sections; y is0Indicating the distance, y, between the start of the target progress segment and the start of the target progress bar3Represents the distance, x, from the end point of the target progress segment to the start point of the target progress bar0The ratio of completed tasks, x, corresponding to the starting point of the target progress segment3The ratio of completed tasks, y, corresponding to the end point of the target progress segment1、y2Is a preset constant.
According to a second aspect of the embodiments of the present disclosure, there is provided a task progress display device including: a display unit configured to perform displaying a target progress bar indicating a progress of execution of a target task; one or more milestone nodes are arranged on the target progress bar; the target progress bar is divided into a plurality of progress sections by one or a plurality of milestone nodes, and the plurality of progress sections correspond to a plurality of execution stages contained in the target task respectively; on the target progress bar, responding to the start of execution of the target task, and moving a progress mark on the target progress bar from the starting point of the target progress bar to the end point of the target progress bar according to a preset mode until the progress mark moves to the end point of the target progress bar after the target task is executed; wherein, the preset mode includes: in the first interval, the progress mark moves in an accelerated way; the first section comprises a progress bar section which is arranged on the target progress bar, is before the target milestone node and is adjacent to the target milestone node; a target milestone node comprising any of the one or more milestone nodes; the preset mode further comprises: in a second interval, the progress mark moves in a deceleration way; the second interval includes a progress bar interval on the target progress bar after and adjacent to the target milestone node.
Optionally, in the first interval, the accelerated movement of the progress marker includes: in the first interval, the increment of the ratio of the completed tasks corresponding to the moving unit length of the progress marker is gradually reduced; in a second interval, the progress mark moves in a deceleration mode, and the method comprises the following steps: in the second interval, the increment of the ratio of the completed tasks corresponding to the moving unit length of the progress mark is gradually increased.
Optionally, the preset method further includes: in the first interval, the increment of the occupied ratio of the completed task corresponding to the progress mark crossing the first subinterval is equal to the increment of the occupied ratio of the completed task corresponding to the progress mark crossing the second subinterval in the second interval; wherein the first subinterval includes: within the first interval, a progress bar interval adjacent to the target milestone; the second subinterval includes: in the second interval, a progress bar interval adjacent to the target milestone; the first subinterval and the second subinterval are of equal length.
Optionally, the preset method specifically includes: in the target progress section, the increment of the ratio of the completed tasks corresponding to the unit length of the movement of the progress marker is gradually increased from the starting point of the target progress section to the target position; from the target position to the end point of the target progress section, the increment of the ratio of the completed tasks corresponding to the unit length of the movement of the progress mark is gradually reduced; wherein, the target progress section includes: any one of the plurality of progress sections; the target location includes a point between a start point of the target progress segment and an end point of the target progress segment.
Optionally, the preset method specifically includes: in the target progress segment, the ratio of the distance Y between the progress mark and the starting point of the target progress bar to the corresponding completed task X meets the following formula group one:
Figure BDA0002429606500000041
wherein, the target progress section includes: any one of the plurality of progress sections; y is0Indicating the distance, y, between the start of the target progress segment and the start of the target progress bar3Representing the distance between the end point of the target progress section and the start point of the target progress barDistance of (a), x0The ratio of completed tasks, x, corresponding to the starting point of the target progress segment3The ratio of completed tasks, y, corresponding to the end point of the target progress segment1、y2、x1、x2Is a preset constant.
Optionally, wherein x1、x2The value of (b) satisfies the following formula group two:
Figure BDA0002429606500000042
optionally, wherein y1、y2The value of (b) satisfies the following formula three:
y1-y0=y3-y2and (5) formula III.
Optionally, the preset method specifically includes: within the target progress segment, the distance Y between the progress marker and the starting point of the target progress bar is in proportion to the corresponding completed task X, and the following formula group four is satisfied:
Figure BDA0002429606500000043
wherein, the target progress section includes: any one of the plurality of progress sections; y is0Indicating the distance, y, between the start of the target progress segment and the start of the target progress bar3Represents the distance, x, from the end point of the target progress segment to the start point of the target progress bar0The ratio of completed tasks, x, corresponding to the starting point of the target progress segment3The ratio of completed tasks, y, corresponding to the end point of the target progress segment1、y2Is a preset constant.
According to a third aspect of the embodiments of the present disclosure, there is provided a task progress display device including: a processor, a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the task progress display method as provided in the first aspect above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, characterized by comprising instructions that, when executed by a processor, cause the processor to execute the task progress display method as provided in the first aspect above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, characterized by comprising instructions which, when executed by a processor, cause the processor to execute the task progress display method as provided in the above first aspect.
In the above technical solution provided by the present disclosure, when the progress marker is close to the milestone node on the target progress bar, the progress marker is accelerated to move. The progress marker is slowed down after it crosses the milestone node. Therefore, from the perspective of the user, the progress marker can rapidly cross the milestone node, so that the progress marker crossing the milestone node can be more prominent in the whole process, and the stage significance of the milestone node is highlighted. In addition, by having the progress marker quickly cross the milestone node, the present disclosure can also reduce the ambiguity state in which the user cannot determine whether the progress marker crosses the milestone node when the progress marker is near the milestone node.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a schematic diagram of a progress bar in the prior art.
Fig. 2 is a second schematic diagram of a progress bar in the prior art.
Fig. 3 is a schematic diagram of a network structure according to an embodiment of the present disclosure.
Fig. 4 is one of schematic diagrams of a progress bar provided in an embodiment of the present disclosure.
Fig. 5 is a schematic diagram of a rectangular coordinate system reflecting a corresponding relationship between a ratio of completed tasks and a position of a progress mark according to an embodiment of the disclosure.
Fig. 6 is a schematic flowchart of a task progress display method according to an embodiment of the present disclosure.
Fig. 7 is a second schematic diagram of a progress bar according to an embodiment of the disclosure.
Fig. 8 is a third schematic diagram of a progress bar according to the embodiment of the disclosure.
Fig. 9 is a schematic diagram of a third-order bezier curve according to an embodiment of the present disclosure.
Fig. 10 is a second schematic diagram of a rectangular coordinate system reflecting the corresponding relationship between the completed task duty and the position of the progress mark according to the embodiment of the disclosure.
Fig. 11 is a third schematic diagram of a rectangular coordinate system reflecting the corresponding relationship between the completed task duty and the position of the progress mark according to the embodiment of the present disclosure.
Fig. 12 is a fourth schematic diagram of a rectangular coordinate system reflecting the corresponding relationship between the completed task duty and the position of the progress mark according to the embodiment of the disclosure.
Fig. 13 is a fifth schematic diagram of a rectangular coordinate system reflecting the corresponding relationship between the completed task duty and the position of the progress mark according to the embodiment of the disclosure.
Fig. 14 is a schematic structural diagram of a task progress display device according to an embodiment of the present disclosure.
Fig. 15 is a second schematic structural diagram of a task progress display device according to an embodiment of the disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In addition, in the description of the embodiments of the present disclosure, "/" indicates an inclusive meaning unless otherwise specified, for example, a/B may indicate a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present disclosure, "a plurality" means two or more than two.
Firstly, introduction is made to an application scenario of the technical scheme provided by the present disclosure:
referring to fig. 3, a schematic diagram of an implementation environment to which the technical solution provided by the embodiments of the present disclosure may be applied is shown. As shown in fig. 3, the implementation environment may include a server 201 and a plurality of terminal devices (e.g., a terminal device 202a, a terminal device 202b, a terminal device 202c, and a terminal device 202d), and the plurality of terminal devices may be specifically connected to the server 201 through a wired network or a wireless network.
For example, the terminal device in the embodiment of the present disclosure may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) \ Virtual Reality (VR) device, and the like, which may be installed with an instant messaging application and communicate using the instant messaging application, and the embodiment of the present disclosure does not particularly limit the specific form of the electronic device.
The server 201 may be a server that transmits data to the terminal device or receives data transmitted by the terminal device. For example, the server 201 transmits the task data to the plurality of terminal devices in a wired or wireless manner, and the plurality of terminal devices execute tasks corresponding to the task data. For example, the server transmits an installation file of a certain software to the terminal apparatus 202a, and the terminal apparatus 202a receives the installation file and performs a task of installing the software. For another example, the terminal device sends the task data to the server, and the server executes the task corresponding to the task data. For example, the terminal device sends an update file of a certain service to the server, and the server receives the update file and then executes a task of updating a program in the server.
Of course, the technical solution provided by the present disclosure may also be applied to a stand-alone device that does not establish a connection with a network, for example, when a terminal device that does not connect with a server performs a certain task (e.g., copies a certain file from one root directory to another root directory), the technical solution provided by the present disclosure may also be used to display the task progress by using a progress bar.
The technical principle of the present disclosure is described below:
in the prior art, in order to enable the position of the progress marker on the progress bar to reflect the execution progress of the target task in the progress bar without the milestone node, a mode that the ratio of the length of the progress marker to the total length of the progress bar is equal to the ratio of the current completed task is adopted when the progress marker moves is generally adopted.
For example, when the completed task percentage is 10%, i.e., the target task has been executed by 10%, the corresponding progress marker 102 should be located at a position spaced apart from the start point of the progress bar 101 by 10% of the total length of the progress bar 101.
The completed task occupation ratio refers to a ratio of the completed task amount to the total task amount of the target task.
By the method, the electronic equipment generally keeps the resources occupied by the target task unchanged when the target task is executed. Therefore, the progress mark can be moved to the end point of the progress bar at a constant speed in the target task execution process.
For convenience of description, the ratio of the completed task amount to the total task amount of the target task is referred to as a completed task ratio. The completed task amount may refer to the amount of data that has been processed currently in the target task, and the total task amount of the target task may refer to the total amount of data that needs to be processed to execute the target task. For example, 10GB of data needs to be processed in executing the target task, and if there is 3GB of data that has been processed, the occupied ratio of the completed task is 30% (i.e., 3GB/10 GB). In addition, if the execution of the target task specifically includes executing a plurality of processes included in the target task. Then, the completed task amount may also refer to the number of processes that have been processed currently in the target task, and the total task amount of the target task may refer to the total number of processes that need to be processed to execute the target task. For example, if the target task needs to be executed by 100 processes, and the number of processes that have been currently processed is 20, the percentage of completed tasks may be expressed as 20% (i.e., 20/100). That is, in the present disclosure, the amount of tasks that are already completed and the total amount of tasks of the target task may be calculated by selecting an appropriate dimension in specific implementation, and the present disclosure may not be limited thereto. For example, in the above example, the proportion of completed tasks may be represented by the dimensions of the data amount corresponding to the tasks, the number of processes, and the like. As long as the ratio of the completed task amount to the total task amount of the target task can reflect the amount of the completed part of the target task to the total content of the target task to be completed, the ratio can be used as the ratio of the completed task in the present disclosure, thereby implementing the technical scheme provided by the present disclosure.
In addition, for a target task including a plurality of execution phases, a progress bar provided with a milestone node is often used to reflect the execution progress of the target task. The progress bar can be divided into a plurality of progress sections through the milestone nodes on the progress bar, and each progress section is used for representing one execution stage in the target task.
Generally, the milestone nodes on the progress bar can be divided into two types: a linear milestone node and a non-linear milestone node. Wherein:
on one hand, the positions of the milestone nodes on the linear milestone nodes and the milestone nodes corresponding to the milestone nodes are matched with each other in terms of the proportion of completed tasks. That is, the ratio of the distance between the position of the linear milestone node on the progress bar and the starting point of the progress bar to the total length of the progress bar is equal to the ratio of the completed tasks corresponding to the linear milestone node.
For example, the progress bar shown in fig. 2 includes three milestone nodes (i.e., 103a, 103b, and 103c in the graph), and the completed tasks corresponding to the three milestone nodes respectively have the following percentage: 25%, 50% and 75%. In addition, the distances from the three milestone nodes to the starting point of the progress bar are respectively equal to 25%, 50% and 75% of the total length of the progress bar. Then, the three milestone nodes in fig. 2 are linear milestone nodes.
On the other hand, the non-linear milestone node refers to the milestone node of which the position of the milestone node on the progress bar is not matched with the proportion of the completed tasks corresponding to the milestone node.
For example, in the progress bar shown in fig. 4, the completed task percentage corresponding to each of the milestone node 103d, the milestone node 103e, and the milestone node 103f is: 10%, 60% and 90%. In addition, the distances from the three milestone nodes to the starting point of the progress bar are respectively equal to 25%, 50% and 75% of the total length of the progress bar. Then the three milestone nodes in fig. 4 are non-linear milestone nodes.
In the progress bar provided with the linear milestone nodes, one possible implementation is: the movement of the progress marker on the progress bar is realized by adopting the mode that the ratio of the length of the progress marker to the total length of the progress bar is equal to the ratio of the currently completed tasks. That is, when the progress mark is moved on the progress bar, the amount of increase in the completed task proportion per unit distance of movement of the progress mark is constant. For example, if the length of the progress bar is 100 pixels, the progress marker indicates that the percentage of completed tasks corresponding to the current target task is increased by 1% every time the progress marker moves forward by one pixel.
Through the mode, the progress mark can keep moving to the end point of the progress bar at a constant speed on the progress bar. However, in the moving mode of the progress marker, the moving mode of the progress marker when crossing the milestone node is completely consistent with the moving mode of the progress marker at other positions, and the process of crossing the milestone node by the progress marker is not highlighted.
In the progress bar provided with the non-linear milestone node, in a possible implementation manner, when the progress marker is in different progress sections, different increase amounts of the completed task occupation ratio can be set corresponding to each moving unit distance of the progress marker.
For example, in the progress bar shown in fig. 4, it is assumed that the total length of the progress bar is 100 pixels. Since the distances from the three milestone nodes (103d, 103e, 103f) to the starting point of the progress bar are respectively equal to 25%, 50%, 75% of the total length of the progress bar, the progress bar is divided into four progress sections by the milestone node 103d, the milestone node 103e, and the milestone node 103f, and each progress section respectively includes 25 pixel points.
Furthermore, when the progress marker moves within the first progress segment (i.e., the progress segment from the starting point of the progress bar to the milestone node 103 d), the increase of the completed task occupation ratio is 0.4% for every moving of one pixel point of the progress marker (i.e., the completed task occupation ratio is exactly 10% when the progress marker moves 25 pixel points). Then, when the progress marker moves within the second progress segment (i.e., the progress segment between the milestone node 103d and the milestone node 103 e), the progress marker may be moved by 2% for each pixel point of the completed task percentage (i.e., the completed task percentage is exactly 50% when the progress marker moves by 25 pixel points). And analogizing in turn, the completion progress marker moves on the progress bar. When the progress mark moves in the progress bar shown in fig. 4, the ratio X of the completed task of the target task and the corresponding relationship between the distance between the progress mark and the starting point of the progress bar and the ratio Y of the total length of the progress bar are shown in table 1 below:
TABLE 1
X 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100
Y
0% 25% 30% 35% 40% 45% 50% 58.3% 66.6% 75% 100%
In addition, a rectangular coordinate system is constructed according to the corresponding relationship between the ratio X of the completed task of the target task and the ratio Y of the distance between the progress mark and the starting point of the progress bar and the total length of the progress bar, as shown in fig. 5.
The implementation manner is still to make the progress mark keep moving at a constant speed in each progress section on the progress bar. This approach still does not highlight the phasic significance of the milestone nodes.
Based on the above, it is considered in the present disclosure that the movement of the progress marker may be controlled in such a manner that the progress marker is moved with acceleration in a first section adjacent to the milestone node, and the progress marker is moved with deceleration in a second section after the milestone node. Therefore, the moving speed of the progress marker has a maximum value at the milestone node, so that the progress marker can quickly cross the milestone node, and the process of crossing the milestone node is further highlighted in visual effect.
In addition, by having the progress marker quickly cross the milestone node, the present disclosure can also reduce the ambiguity state in which the user cannot determine whether the progress marker crosses the milestone node when the progress marker is near the milestone node.
For example, when the progress marker is located near the milestone node (e.g., the progress marker is about to cross the milestone node, or the progress marker just crosses the milestone node), a situation may occur in which the progress marker overlaps with the marker used for representing the milestone node, thereby causing the user to be unable to view whether the progress marker has crossed the milestone node, and further affecting the user experience. This can be reduced by having the progress marker quickly cross the milestone node.
Based on the technical principle, the technical scheme of the disclosure is introduced by combining the following examples:
when the technical solution provided by the present disclosure is applied to an electronic device (for example, the technical solution provided by the present disclosure is applied to a terminal device or a server in fig. 3), a task progress display method provided by the present disclosure, as shown in fig. 6, includes:
s201, the electronic equipment displays a target progress bar for indicating the execution progress of the target task.
And one or more milestone nodes are arranged on the target progress bar. The target progress bar is divided into a plurality of progress sections by the one or more milestone nodes, and the plurality of progress sections correspond to a plurality of execution stages contained in the target task respectively.
For example, after a user clicks a control for instructing to install the software a in a display interface of the electronic device, the corresponding electronic device acquires a task execution instruction for instructing to execute the target task. At this time, the target task is to install software a. The electronic device then displays a target progress bar in response to the task execution instruction in preparation for displaying the execution progress of the target task to the user.
In addition, in the process of executing the target task of installing the software a, four subtasks need to be executed. Wherein the ratio of each subtask to the total task amount of the target task is 10%, 50%, 30%, 10%. The target progress bar displayed by the electronic device may be the progress bar shown in fig. 4.
S202, in the target progress bar, responding to the start of the target task, and moving the progress mark on the target progress bar from the starting point of the target progress bar to the end point of the target progress bar according to a preset mode until the progress mark moves to the end point of the target progress bar after the target task is executed.
Wherein, the preset mode comprises: in the first interval, the progress marker is moved in an accelerated manner. And in the second interval, the progress mark is moved at a reduced speed.
Wherein the first interval includes: a progress bar interval on the target progress bar preceding and adjacent to the target milestone node. And the target milestone node comprises any one of one or more milestone nodes. The second interval includes: a progress bar interval on the target progress bar after and adjacent to the target milestone node.
It should be noted that, in the present disclosure, the progress mark moves in an accelerated manner in the first interval, specifically, when the progress mark moves in the first interval, the distance moved by the progress mark per unit time is increased one or more times. In the present disclosure, the deceleration movement of the progress marker in the second section may specifically refer to a decrease in the distance moved by the progress marker per unit time by one or more times when the progress marker moves in the second section.
In the above technical solution provided by the present disclosure, when the progress marker is close to the milestone node on the target progress bar, the progress marker accelerates the movement. The progress marker moves at a reduced speed after the progress marker crosses the milestone node. Therefore, from the perspective of the user, the progress marker can rapidly cross the milestone node, so that the progress marker crossing the milestone node can be more prominent in the whole process, and the stage significance of the milestone node is highlighted.
In addition, by having the progress marker quickly cross the milestone node, the present disclosure can also reduce the ambiguity state in which the user cannot determine whether the progress marker crosses the milestone node when the progress marker is near the milestone node.
For example, when the progress marker is located near the milestone node (e.g., the progress marker is about to cross the milestone node, or the progress marker just crosses the milestone node), a situation may occur in which the progress marker overlaps with the marker used for representing the milestone node, thereby causing the user to be unable to view whether the progress marker has crossed the milestone node, and further affecting the user experience. This can be reduced by having the progress marker quickly cross the milestone node.
It should be noted that the progress mark referred to in the present disclosure may be provided as a pattern having various shapes as needed in implementation. For example, in some implementations, a walking animal or person may be set on the progress bar, and as the target task is executed, the animal or person on the progress bar may move from the starting point of the progress bar to the ending point of the progress bar, so that the position of the animal or person is used to represent the execution progress of the task. Then the animal or human on the progress bar at this point can be considered as the progress marker in this disclosure.
For another example, in some implementations, the execution progress of the task may also be represented by gradually filling a shadow in the progress bar from the starting point of the progress bar, as shown in fig. 1 and fig. 2. Then, one end of the progress bar extending forward in the shadow can be considered as a progress marker in the present disclosure.
That is, in actual implementation, as long as various forms of patterns that can move from the start point of the progress bar to the end point of the progress bar according to the method provided by the present disclosure when a task is executed can be considered as the progress marker referred to in the present disclosure. The present disclosure may not be limited to the representation form of the progress mark.
In one implementation, it is considered that the progress mark may be moved at different speeds by changing an increase amount of a ratio of completed tasks corresponding to a unit length of movement of the progress mark when the progress mark is moved at different positions on the progress bar. Furthermore, in the present disclosure, in the preset manner, the accelerated movement of the progress marker in the first interval specifically includes:
in the first interval, the increment of the ratio of the completed tasks corresponding to the length of the progress mark mobile unit is gradually reduced.
In the preset mode, the deceleration movement of the progress marker in the second interval specifically includes:
in the second interval, the increment of the ratio of the completed tasks corresponding to the moving unit length of the progress mark is gradually increased.
For example, in the progress bar shown in fig. 7, the section a is a progress bar section (i.e., a first section) before and adjacent to the milestone node 103d, and the section B is a progress bar section (i.e., a second section) after and adjacent to the milestone node 103 d. It is assumed that, at the initial stage when the progress mark moves to the interval a, the increase of the ratio of the completed task is 5% for each time the progress mark moves by one pixel. That is, at this time, the progress marker moves forward by one pixel point every time the completed part of the target task is increased by 5% L (L is the total task amount of the target task). Then, when the progress marker moves closer to the milestone node 103d, the increase of the ratio of the corresponding completed task can be reduced to 4% for each time the progress marker moves by one pixel point. That is, at this time, the completed part of the target task only needs to be increased by 4% L, and the progress marker moves forward by one pixel point. When the progress marker is further close to the milestone node 103d, the increase of the ratio of the completed tasks corresponding to each moving of one pixel point of the progress marker can be further reduced. In this way, it is further possible to achieve an accelerated movement of the progress marker within the interval a.
Then, when the progress marker crosses the milestone node 103d and comes within the range of interval B. It is assumed that, at the initial stage when the progress mark moves to the interval a, the increase of the ratio of the completed task is 3% for each time the progress mark moves by one pixel. Then, when the progress marker moves to a position farther from the milestone node 103d, the increase of the ratio of the progress marker to the completed task per moving one pixel point may be increased to 4%. And then, the increment of the ratio of the completed task for each time the progress mark is moved by one pixel point can be increased to 5%. Further, the progress mark can be made to move at a reduced speed in the section B.
It should be noted that, in the present disclosure, the increase amount of the completed task percentage corresponding to the length of the progress mark moving unit is gradually decreased, and specifically, when the progress mark moves in the first interval, the increase amount of the completed task percentage corresponding to the length of the progress mark moving unit is decreased one or more times. In this disclosure, the increase amount of the completed task percentage corresponding to the length of the progress mark moving unit may be gradually increased, and specifically, when the progress mark moves in the second interval, the increase amount of the completed task percentage corresponding to the length of the progress mark moving unit may be increased one or more times.
In the implementation manner of the present disclosure, by changing the increase of the ratio of the completed tasks to the unit length of the movement of the progress marker, the effect of moving the progress marker in the first interval at an accelerated speed and moving the progress marker in the second interval at a decelerated speed is achieved.
In one implementation, the present disclosure contemplates that the movement of the progress marker across the milestone nodes may be made smoother by making the speed of movement of the progress marker across the milestone nodes equal before and after the milestone nodes. Therefore, in the above embodiment of the present disclosure, the preset manner further includes:
in the first interval, the increment of the occupied ratio of the completed task corresponding to the progress mark crossing the first subinterval is equal to the increment of the occupied ratio of the completed task corresponding to the progress mark crossing the second subinterval in the second interval.
Wherein the first subinterval includes: and in the first interval, the progress bar part adjacent to the target milestone. The second subinterval includes: and in the second interval, the progress bar part adjacent to the target milestone. In addition, the first subinterval and the second subinterval are equal in length.
For example, continuing with the example of the progress bar shown in fig. 7, section a is a section of the progress bar adjacent to the milestone node 103d within section a (i.e., the first section), i.e., the first sub-section. The interval B is a progress bar interval adjacent to the milestone node 103d within the interval B (i.e., the second interval), i.e., the second sub-interval. The length of the interval a is equal to that of the interval b. At this time, if the increase amount of the completed task percentage corresponding to the progress mark span section a is 2% (that is, if the progress mark moves from one end of the section a to the other end of the section a, the corresponding completed task percentage increases by 2%), the increase amount of the completed task percentage corresponding to the progress mark span section b is also 2%.
In this way, when the progress mark spans the first subinterval and the second subinterval which are equal in length, the increase amounts of the corresponding completed task ratios are equal, so that the time for the progress mark to span the first subinterval and the second subinterval can be made to be equal. Further, the above-described implementations of the present disclosure may avoid transient changes in the speed of movement of the progress marker when crossing milestone nodes. Thus, the above-described implementations of the present disclosure may make the movement of the progress marker across the milestone nodes smoother.
In one implementation manner, when the progress marker moves from the starting point of the target progress bar to the ending point of the target progress bar according to a preset manner, the preset manner further includes:
in the target progress section, the increase amount of the ratio of the completed tasks corresponding to the unit length of movement of the progress marker gradually increases from the starting point of the target progress section to the target position. From the target position to the end point of the target progress section, the increment of the ratio of the completed tasks corresponding to the unit length of the movement of the progress mark is gradually reduced.
Wherein, the target progress section includes: any one of the plurality of progress sections. The target location includes a point between a start point of the target progress segment and an end point of the target progress segment.
Illustratively, as in FIG. 8, there is a target location c between the start of the progress bar and the progress segment (i.e., the target progress segment) between the milestone node 103 d. The progress bar interval from the start point of the progress bar to the target position is an interval D, and the progress bar interval from the target position to the milestone node 103D is an interval E.
According to the implementation manner, on one hand, in the process that the progress mark crosses the interval D, the increase amount of the ratio of the completed tasks corresponding to the moving unit length of the progress mark is gradually increased. Thus, during the process of crossing the section D, the moving speed of the progress mark gradually decreases, i.e., the progress mark moves at a reduced speed. On the other hand, in the process that the progress mark crosses the section E, the increase amount of the ratio of the completed tasks corresponding to the movement unit length of the progress mark gradually decreases. Thus, during the process of crossing the interval E, the moving speed of the progress mark is gradually accelerated, that is, the progress mark moves in an accelerated manner.
It can be seen that, through the implementation manner, in the process of moving the progress marker in the target progress segment, there is a maximum value of the moving speed of the progress marker only at the positions of the milestone node and the start/end point of the progress bar. That is, when the user views that the progress marker on the progress bar moves in an accelerated manner, the user can know that the progress marker is about to reach the milestone node or the end point of the progress bar; when the user views the progress marker on the progress bar moving at a reduced speed, the user can know that the progress marker crosses the milestone node. In this way, the visual effect of the progress marker on passing the milestone node can be further highlighted.
In one implementation, it is contemplated in the present disclosure that a third order bezier curve may be utilized to fit a relationship between a position of a progress marker (which may be represented by a distance between the progress marker to a start point of a target progress bar) and a corresponding completed task fraction. Fig. 9 is a schematic diagram of a third-order bezier curve. In the third-order bezier curve, the bending state of the curve can be changed by moving the positions of the control points CP1 and CP2, so as to obtain a desired curve shape.
Furthermore, the relationship between the position of the progress marker and the corresponding ratio of completed tasks in each of the plurality of progress segments in the progress bar may be fitted to a third order bezier curve.
For example, FIG. 10 is a schematic diagram of a direct coordinate system reflecting the relationship between the position of a progress marker and the corresponding percentage of completed tasks. In the coordinate system, the horizontal axis is used for representing the ratio of the completed tasks of the target task, and the vertical axis is used for representing the distance from the progress mark to the starting point of the target progress bar.
It should be noted that, for convenience of description, fig. 10 only exemplarily illustrates a mapping relationship between a position of a progress marker in one progress segment on a progress bar and a corresponding completed task proportion, and it is understood that other progress segments may also illustrate a mapping relationship between a position of a progress marker and a corresponding completed task proportion in the same manner.
In fig. 10, the mapping relationship between the x-axis parameter and the y-axis parameter is formed by a third-order bezier curve. Wherein, the coordinates of two end points of the curve are respectively (x)0,y0) And (x)3,y3). The coordinates of the two control points of the curve are expressed as (x)1,y1) And (x)2,y2)。
It can be seen from FIG. 10 thatOne end point (x) of the curve0,y0) (corresponding to the start of the target progress segment) to the other end of the curve (x)3,y3) (i.e., corresponding to the end of the target progress segment), the slope of the curve first becomes smaller and then larger. That is, in the process of moving the progress marker from the starting point of the target progress segment to the end point of the target progress segment, the increase amount of the completed task proportion corresponding to the unit length of the movement of the progress marker shows a change rule of increasing first and then decreasing. Further, the effects to be achieved by the present disclosure can be achieved.
Therefore, in the technical solution provided by the present disclosure, when the progress mark moves from the starting point of the target progress bar to the ending point of the target progress bar according to a preset manner, the preset manner further includes:
within the target progress segment, the distance Y between the progress marker and the starting point of the target progress bar is in proportion to the corresponding completed task X, and the following formula group one is satisfied:
Figure BDA0002429606500000141
wherein, the target progress section includes: any one of the plurality of progress sections. y is0Indicating the distance, y, between the start of the target progress segment and the start of the target progress bar3Represents the distance, x, from the end point of the target progress segment to the start point of the target progress bar0The ratio of completed tasks, x, corresponding to the starting point of the target progress segment3The ratio of completed tasks, y, corresponding to the end point of the target progress segment1、y2、x1、x2Is a preset constant.
Further, in order to make the moving speed of the progress marker in the vicinity of the milestone node faster, it is considered in the present disclosure that the coordinate system diagram shown in fig. 11 can be obtained by setting the abscissa values of the two control points of the third-order bezier curve in fig. 10 to positions that coincide with the abscissa values of the two end points of the curve.
In FIG. 11, two control points CP1 of the third-order Bezier curve can be seen,The abscissa values of CP2 are coincident with the abscissa values of the two end points of the curve (i.e., x)1=x0、x2=x3). At this time, the slope of the third-order bezier curve is the largest at both end points.
Therefore, in the above implementation manner of the present disclosure, in the above formula group one, x1、x2The value of (b) satisfies the following formula group two:
Figure BDA0002429606500000151
by making x in formula set one1、x2The value of the progress marker satisfies the formula group II, and the technical scheme provided by the disclosure can enable the moving speed of the progress marker near each milestone node to be faster.
In addition, in one possible design, in the above formula set one of this disclosure, y1、y2The value of (b) satisfies the following formula three:
y1-y0=y3-y2and (5) formula III.
As shown in FIG. 11, the ordinate values at the control points CP1 and CP2 satisfy the formula sets, respectively
Figure BDA0002429606500000152
And formula y1-y0=y3-y2In this case, the third-order bezier curve shown in the figure is a central symmetrical graph. That is, the process in which the slope of the first half becomes smaller is symmetrical to the process in which the slope of the second half becomes larger.
Thus, by making y in formula set one above1、y2The value of satisfying above-mentioned formula three, the technical scheme that this disclosure provided can make the progress mark when removing in each progress section, and the deceleration process of first half section is symmetrical with the acceleration process of second half section, and then makes the removal process of progress mark more regular, improves user and uses experience.
Further, in order to make the moving process of the progress marker smoother, in the present disclosure, the progress marker is further movedCan make y1、y2Is taken to satisfy
Figure BDA0002429606500000153
As shown in FIG. 12, the ordinate values at the control points CP1 and CP2 satisfy the formula sets, respectively
Figure BDA0002429606500000154
And formulas
Figure BDA0002429606500000155
In this case, the third-order bezier curve shown in the figure is smoother, so that the moving process of the progress marker is smoother.
Specifically, in the target progress segment, the ratio of the distance Y from the progress marker to the starting point of the target progress bar to the corresponding completed task X satisfies the following formula group one:
Figure BDA0002429606500000161
in this case, the step S202 may specifically include:
s2021, in response to the target task starting to execute, periodically detecting a completed task percentage of the target task.
S2022, responding to the detected first completed task proportion, determining a target progress section where a progress mark corresponding to the first completed task proportion is located, and determining x0、x3、y0、y3The value of (c).
Wherein x is0The ratio of completed tasks, x, corresponding to the starting point of the target progress segment3The ratio of completed tasks, y, corresponding to the end point of the target progress segment0Indicating the distance, y, between the start of the target progress segment and the start of the target progress bar3Indicating the distance between the end point of the target progress segment and the start point of the target progress bar.
Specifically, step S2022 may be implemented by using a traversal method:
s1, where i is 1.
S2, judging the first completed taskWhether the value of the ratio satisfies xi0<value≤xi3. Wherein x isi0Represents the ratio of completed tasks, x, corresponding to the starting point of the ith progress segment on the progress bari3And indicating the ratio of the completed tasks corresponding to the terminal point of the ith progress section on the progress bar.
If the value of the first completed task duty satisfies xi0<value≤xi3Then S3 is executed; if not, execution proceeds to S4.
And S3, determining that the progress mark corresponding to the first completed task proportion is in the ith progress section. And then x can be converted0=xi0,x3=xi3,y0=yi0,y3=yi3To obtain x0、x3、y0、y3The value of (c).
Wherein x isi0Represents the ratio of completed tasks, x, corresponding to the starting point of the ith progress segmenti3Indicating the completed task percentage, y, corresponding to the end point of the ith progress segmenti0Represents the distance, y, from the start of the ith progress segment to the start of the target progress bari3Indicating the distance between the end point of the ith progress section and the start point of the target progress bar.
S4, let i equal i + 1. And judging whether i is less than or equal to M, if so, repeatedly executing the step S2, and if not, ending the task.
Wherein M represents the number of progress segments included on the target progress bar.
S2023, proportion of the first completed task to x0、x3、y0、y3And a predetermined constant y1、y2、x1、 x2Substituting the value into the formula group I, calculating to obtain the distance between the position of the progress mark and the starting point of the progress bar, and controlling the progress mark to move to the corresponding position.
Illustratively, in each of the plurality of progress sections included in the progress bar shown in fig. 4, after the mapping relationship between the positions of the progress markers and the corresponding completed task fractions is fitted to the corresponding third-order bezier curve. Finally, in the target progress bar, the mapping relationship between the positions of the progress markers and the corresponding completed task fractions is shown in fig. 13.
In one implementation, it is considered that if the third-order bezier curve is used to fit the relationship between the position of the progress mark and the corresponding completed task proportion, the amount of data to be calculated is relatively large, which occupies relatively many resources of the electronic device. Accordingly, it is contemplated in this disclosure that a simpler functional relationship may be utilized to reflect the mapping between the location of the progress marker and the corresponding proportion of completed tasks.
Furthermore, in the disclosure, a new fitting function can be obtained by redefining the time parameter t in the third-order bezier curve formula.
Therefore, in the technical solution provided by the present disclosure, when the progress mark moves from the starting point of the target progress bar to the ending point of the target progress bar according to a preset manner, the preset manner further includes:
within the target progress segment, the distance Y between the progress marker and the starting point of the target progress bar is in proportion to the corresponding completed task X, and the following formula group four is satisfied:
Figure BDA0002429606500000171
wherein, the target progress section includes: any one of the plurality of progress sections; y is0Indicating the distance, y, between the start of the target progress segment and the start of the target progress bar3Represents the distance, x, from the end point of the target progress segment to the start point of the target progress bar0The ratio of completed tasks, x, corresponding to the starting point of the target progress segment3The ratio of completed tasks, y, corresponding to the end point of the target progress segment1、y2Is a preset constant.
Furthermore, x in the formula group IV can be used1、x2The value of (b) satisfies the formula group two:
Figure BDA0002429606500000172
in addition, y in the formula group IV1、y2The value of (b) satisfies the formula three:
y1-y0=y3-y2formula three
Further, y may be1、y2Is taken to satisfy
Figure BDA0002429606500000173
Illustratively, taking the progress bar shown in fig. 4 as an example, it is assumed that the current target task is executed to the extent that the completed task accounts for 40%. Since 40% is between 10% -60%, it can be determined that the progress marker is between the milestone nodes 103d and 103e at this time. Therefore, according to the second formula in the formula group four,
Figure BDA0002429606500000174
i.e., t is 0.6.
Then, mixing y 010% (i.e., 10% of completed tasks corresponding to the milestone node 103 d), y 360% (i.e., the percentage of completed tasks corresponding to the milestone node 103e is 60%), and
Figure BDA0002429606500000181
substituting into the first formula in formula group four. Y was 38.8%. That is, when it is determined that the currently completed task percentage is 40%, the progress mark is moved to a position where Y is 38.8%.
In addition, the method comprises
Figure BDA0002429606500000182
And
Figure BDA0002429606500000183
substituting formula set four, it can be known that:
Figure BDA0002429606500000184
after simplification, formula five is obtained:
Figure BDA0002429606500000185
that is, when the position of the progress mark needs to be determined, the corresponding completed task ratio X and the coordinate value X corresponding to the two end nodes of the progress section where the progress mark is located can be obtained0、x3、y0、y3And inputting a formula five to obtain the Y value of the position of the current progress mark.
In the above technical solution provided by the present disclosure, when the progress marker is close to the milestone node on the target progress bar, the progress marker is accelerated to move. The progress marker is slowed down after it crosses the milestone node. Therefore, from the perspective of the user, the progress marker can rapidly cross the milestone node, so that the progress marker crossing the milestone node can be more prominent in the whole process, and the stage significance of the milestone node is highlighted. In addition, by having the progress marker quickly cross the milestone node, the present disclosure can also reduce the ambiguity state in which the user cannot determine whether the progress marker crosses the milestone node when the progress marker is near the milestone node.
The present disclosure also provides a task progress display device. Referring to fig. 14, the task progress display device 30 includes: a display unit 301. Wherein:
a display unit 301 configured to perform displaying a target progress bar indicating a progress of execution of a target task; one or more milestone nodes are arranged on the target progress bar; the target progress bar is divided into a plurality of progress sections by the one or more milestone nodes, and the plurality of progress sections correspond to a plurality of execution stages contained in the target task respectively.
In the target progress bar, responding to the start of execution of the target task, moving a progress mark on the target progress bar from a starting point of the target progress bar to an end point of the target progress bar according to a preset mode until the progress mark moves to the end point of the target progress bar after the target task is executed.
Wherein, the preset mode includes: in the first interval, the progress mark moves in an accelerated way; the first section comprises a progress bar section which is arranged on the target progress bar, is before the target milestone node and is adjacent to the target milestone node; and the target milestone node comprises any one of one or more milestone nodes.
The preset mode further comprises: in a second interval, the progress mark moves in a deceleration way; the second interval includes a progress bar interval on the target progress bar after and adjacent to the target milestone node.
Optionally, in the first interval, the accelerated movement of the progress marker includes: in the first interval, the increment of the ratio of the completed tasks corresponding to the moving unit length of the progress mark is gradually reduced.
In a second interval, the progress mark moves in a deceleration mode, and the method comprises the following steps: in the second interval, the increment of the ratio of the completed tasks corresponding to the moving unit length of the progress mark is gradually increased.
Optionally, the preset method further includes:
in the first interval, the increment of the occupied ratio of the completed task corresponding to the progress mark crossing the first subinterval is equal to the increment of the occupied ratio of the completed task corresponding to the progress mark crossing the second subinterval in the second interval.
Wherein the first subinterval includes: a progress bar portion adjacent to the target milestone within the first interval; the second subinterval includes: a progress bar portion adjacent to the target milestone within the second interval; the first subinterval and the second subinterval are of equal length.
Optionally, the preset method specifically includes:
in the target progress section, the increment of the ratio of the completed tasks corresponding to the unit length of the movement of the progress marker is gradually increased from the starting point of the target progress section to the target position; from the target position to the end point of the target progress section, the increment of the ratio of the completed tasks corresponding to the unit length of the movement of the progress mark is gradually reduced.
Wherein, the target progress section includes: any one of the plurality of progress sections; the target location includes a point between a start point of the target progress segment and an end point of the target progress segment.
Optionally, the preset method specifically includes:
in the target progress segment, the ratio of the distance Y between the progress mark and the starting point of the target progress bar to the corresponding completed task X meets the following formula group one:
Figure BDA0002429606500000191
wherein, the target progress section includes: any one of the plurality of progress sections; y is0Indicating the distance, y, between the start of the target progress segment and the start of the target progress bar3Represents the distance, x, from the end point of the target progress segment to the start point of the target progress bar0The ratio of completed tasks, x, corresponding to the starting point of the target progress segment3The ratio of completed tasks, y, corresponding to the end point of the target progress segment1、y2、x1、x2Is a preset constant.
Optionally, wherein x1、x2The value of (b) satisfies the following formula group two:
Figure BDA0002429606500000201
optionally, wherein y1、y2The value of (b) satisfies the following formula three:
y1-y0=y3-y2and (5) formula III.
Optionally, the preset method specifically includes:
within the target progress segment, the distance Y between the progress marker and the starting point of the target progress bar is in proportion to the corresponding completed task X, and the following formula group four is satisfied:
Figure BDA0002429606500000202
wherein, the target progress section includes: any one of the plurality of progress sections; y is0Indicating the distance, y, between the start of the target progress segment and the start of the target progress bar3Represents the distance, x, from the end point of the target progress segment to the start point of the target progress bar0The ratio of completed tasks, x, corresponding to the starting point of the target progress segment3The ratio of completed tasks, y, corresponding to the end point of the target progress segment1、y2Is a preset constant.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 15 is a schematic structural diagram of another task progress display device provided by the present disclosure. As shown in fig. 15, the task progress display device 40 may include at least one processor 401 and a memory 403 for storing processor-executable instructions. Wherein the processor 401 is configured to execute instructions in the memory 403 to implement the task progress display method in the above-described embodiments.
For example, in the implementation environment shown in fig. 3, the task progress display device 40 may be the server 201 shown in fig. 3 or one of the plurality of terminal devices.
In addition, the task progress display device 40 may further include a communication bus 402 and at least one communication interface 404.
Processor 401 may be a processor (CPU), a micro-processing unit, an ASIC, or one or more integrated circuits configured to control the execution of programs in accordance with the disclosed aspects.
Communication bus 402 may include a path that transfers information between the above components.
The communication interface 404 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), etc.
The memory 403 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory may be self-contained and connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
The memory 403 is used for storing instructions for executing the disclosed solution, and is controlled by the processor 401. The processor 401 is configured to execute instructions stored in the memory 403 to implement the functions of the disclosed method.
In particular implementations, processor 401 may include one or more CPUs such as CPU0 and CPU1 in fig. 15, for example, as an example.
In particular implementations, as an embodiment, the task progress display device 40 may include a plurality of processors, such as the processor 401 and the processor 407 in fig. 15. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a specific implementation, the task progress display device 40 may further include an output device 405 and an input device 406, as an embodiment. An output device 405 is in communication with the processor 401 and may display information in a variety of ways. For example, the output device 405 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. The input device 406 is in communication with the processor 401 and can accept user input in a variety of ways. For example, the input device 406 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.
Those skilled in the art will appreciate that the configuration shown in FIG. 15 does not constitute a limitation of the task progress display 40, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components may be used.
In addition, the present disclosure also provides a computer-readable storage medium including instructions, which when executed by a processor, cause the processor to perform the task progress display method provided as the above embodiment.
In addition, the present disclosure also provides a computer program product comprising instructions which, when executed by a processor, cause the processor to perform the task progress display method as provided in the above embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A task progress display method is characterized by comprising the following steps:
displaying a target progress bar indicating an execution progress of the target task; one or more milestone nodes are arranged on the target progress bar; the one or more milestone nodes divide the target progress bar into a plurality of progress sections, and the progress sections respectively correspond to a plurality of execution stages contained in the target task;
responding to the target task to start execution on the target progress bar, and moving a progress mark on the target progress bar from the starting point of the target progress bar to the end point of the target progress bar according to a preset mode until the progress mark is moved to the end point of the target progress bar after the target task is executed;
wherein, the preset mode comprises: within a first interval, the progress mark is moved in an accelerated mode; the first interval comprises a progress bar interval which is arranged on the target progress bar, is before a target milestone node and is adjacent to the target milestone node; the target milestone node comprises any of the one or more milestone nodes;
the preset mode further comprises: in a second interval, the progress mark moves in a deceleration mode; the second interval includes a progress bar interval on the target progress bar after and adjacent to the target milestone node.
2. The task progress display method according to claim 1, wherein the accelerating movement of the progress marker in the first interval comprises: in the first interval, the increment of the ratio of the completed tasks corresponding to the moving unit length of the progress marker is gradually reduced;
in the second interval, the speed reduction movement of the progress mark comprises the following steps: and in the second interval, the increment of the ratio of the completed tasks corresponding to the moving unit length of the progress marker is gradually increased.
3. The task progress display method according to claim 2, wherein the preset manner further comprises:
in the first interval, the increment of the occupied ratio of the completed tasks corresponding to the progress marker crossing the first subinterval is equal to the increment of the occupied ratio of the completed tasks corresponding to the progress marker crossing the second subinterval in the second interval;
wherein the first subinterval comprises: a progress bar portion adjacent to the target milestone within the first interval; the second subinterval includes: a progress bar portion adjacent to the target milestone within the second interval; the first subinterval and the second subinterval are of equal length.
4. The task progress display method according to claim 2, wherein the preset manner specifically includes:
in the target progress section, the increase of the ratio of the completed tasks corresponding to the unit length of the movement of the progress marker is gradually increased from the starting point of the target progress section to the target position; from the target position to the end point of the target progress section, the increment of the ratio of the completed tasks corresponding to the moving unit length of the progress mark is gradually reduced;
wherein the target progress segment comprises: any one of the plurality of progress segments; the target location includes a point between a start point of the target progress segment and an end point of the target progress segment.
5. The task progress display method according to any one of claims 1 to 4, wherein the preset manner specifically includes:
in the target progress segment, the ratio of the distance Y between the progress marker and the starting point of the target progress bar to the corresponding completed task X meets the following formula group one:
Figure FDA0002429606490000021
wherein the target progress segment comprises: any one of the plurality of progress segments; y is0Represents a distance, y, between a start point of the target progress segment and a start point of the target progress bar3Represents a distance, x, between an end point of the target progress segment and a start point of the target progress bar0The ratio of completed tasks, x, corresponding to the starting point of the target progress segment3Indicating a completed task percentage, y, corresponding to the end point of the target progress segment1、y2、x1、x2Is a preset constant。
6. The task progress display method according to claim 5, wherein x is1、x2The value of (b) satisfies the following formula group two:
Figure FDA0002429606490000022
7. the task progress display method according to claim 6, wherein y is1、y2The value of (b) satisfies the following formula three:
y1-y0=y3-y2and (5) formula III.
8. The task progress display method according to any one of claims 1 to 4, wherein the preset manner specifically includes:
within the target progress segment, the distance Y between the progress marker and the starting point of the target progress bar is in proportion to the corresponding completed task X, and the following formula group four is satisfied:
Figure FDA0002429606490000023
wherein, the target progress section includes: any one of the plurality of progress segments; y is0Represents a distance, y, between a start point of the target progress segment and a start point of the target progress bar3Represents a distance, x, between an end point of the target progress segment and a start point of the target progress bar0The ratio of completed tasks, x, corresponding to the starting point of the target progress segment3Indicating a completed task percentage, y, corresponding to the end point of the target progress segment1、y2Is a preset constant.
9. A task progress display device, comprising: a processor, a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the task progress display method according to any one of claims 1-8.
10. A computer-readable storage medium comprising instructions that, when executed by a processor, cause the processor to perform the task progress display method of any one of claims 1-8.
CN202010232200.5A 2020-03-27 2020-03-27 Task progress display method and device and storage medium Active CN111338741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010232200.5A CN111338741B (en) 2020-03-27 2020-03-27 Task progress display method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010232200.5A CN111338741B (en) 2020-03-27 2020-03-27 Task progress display method and device and storage medium

Publications (2)

Publication Number Publication Date
CN111338741A true CN111338741A (en) 2020-06-26
CN111338741B CN111338741B (en) 2023-12-12

Family

ID=71184706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010232200.5A Active CN111338741B (en) 2020-03-27 2020-03-27 Task progress display method and device and storage medium

Country Status (1)

Country Link
CN (1) CN111338741B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194352A (en) * 2021-04-28 2021-07-30 中国建设银行股份有限公司 Multimedia playing progress recording method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365761A (en) * 2012-03-09 2013-10-23 苹果公司 Progress bar
CN104113681A (en) * 2013-04-19 2014-10-22 上海联影医疗科技有限公司 Control method of progress column, method and device for displaying image acquisition progress
CN104375862A (en) * 2014-11-11 2015-02-25 北京搜狗科技发展有限公司 Progress bar showing method and device
CN105205083A (en) * 2014-06-27 2015-12-30 国际商业机器公司 Method and equipment for browsing content by means of key points in progress bar
CN106383704A (en) * 2016-08-31 2017-02-08 腾讯科技(深圳)有限公司 Progress bar data processing method and apparatus
CN107291852A (en) * 2017-06-07 2017-10-24 北京金山安全软件有限公司 Progress bar display optimization method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365761A (en) * 2012-03-09 2013-10-23 苹果公司 Progress bar
CN104113681A (en) * 2013-04-19 2014-10-22 上海联影医疗科技有限公司 Control method of progress column, method and device for displaying image acquisition progress
CN105205083A (en) * 2014-06-27 2015-12-30 国际商业机器公司 Method and equipment for browsing content by means of key points in progress bar
CN104375862A (en) * 2014-11-11 2015-02-25 北京搜狗科技发展有限公司 Progress bar showing method and device
CN106383704A (en) * 2016-08-31 2017-02-08 腾讯科技(深圳)有限公司 Progress bar data processing method and apparatus
CN107291852A (en) * 2017-06-07 2017-10-24 北京金山安全软件有限公司 Progress bar display optimization method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194352A (en) * 2021-04-28 2021-07-30 中国建设银行股份有限公司 Multimedia playing progress recording method, device, equipment and storage medium
CN113194352B (en) * 2021-04-28 2023-04-07 中国建设银行股份有限公司 Multimedia playing progress recording method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111338741B (en) 2023-12-12

Similar Documents

Publication Publication Date Title
CN110675471B (en) Node connection line generation method, device, equipment and storage medium
CN105183322A (en) Progress bar display method and device
CN113010937B (en) Parametric modeling method of member section steel bar and related device
KR102409355B1 (en) Method and apparatus for outputting information
KR20210093193A (en) A method, an apparatus, an electronic device, a storage medium, a roadside device, a cloud control platform, and computer program product for processing trajectory
CN113360116A (en) Method, device and equipment for controlling terminal and storage medium
CN114692250A (en) Method and device for reinforcing ribs of wall body and computer equipment
CN112632141A (en) Visualization method and device for blood margin analysis data, computer equipment and medium
CN107153495B (en) Method and device for establishing service link between network elements
US20180207531A1 (en) Program, electronic device, system, and method for determining resource allocation for executing rendering while predicting player's intent
CN111338741A (en) Task progress display method and device and storage medium
EP3842765A2 (en) Method and apparatus for displaying point of information of map, device, and readable storage medium
CN114265941A (en) Method and system for converting relationship graph into tree-like form blood relationship graph
US11204679B1 (en) Snapping objects into alignment in three-dimensional space
JP7006081B2 (en) Graph drawing system, calculation server, graph drawing system control method, and program for calculation server
CN108920367B (en) Visual debugging method for data structure
CN111951348A (en) Method and device for determining frame selection area and electronic equipment
CN115249303A (en) Layout drawing method, device, equipment and storage medium based on drawing segmentation
CN114564268A (en) Equipment management method and device, electronic equipment and storage medium
WO2021063983A1 (en) Computer-aided design methods and systems
CN102681755A (en) Method, device and equipment for realizing display transformation of display object
CN113434935B (en) Method, apparatus, computer device and readable storage medium for marking temporary size
CN111611782B (en) Connection point generation method and device
JP7235138B2 (en) Information processing device, data generation device, graph drawing system, and program
CN113448579B (en) Method and device for realizing side dynamic effect in visual interface

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