CN104539795A - Data flow display method and device and mobile terminal - Google Patents

Data flow display method and device and mobile terminal Download PDF

Info

Publication number
CN104539795A
CN104539795A CN201410831758.XA CN201410831758A CN104539795A CN 104539795 A CN104539795 A CN 104539795A CN 201410831758 A CN201410831758 A CN 201410831758A CN 104539795 A CN104539795 A CN 104539795A
Authority
CN
China
Prior art keywords
area
liquid particle
viewing area
color
value
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
CN201410831758.XA
Other languages
Chinese (zh)
Other versions
CN104539795B (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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410831758.XA priority Critical patent/CN104539795B/en
Publication of CN104539795A publication Critical patent/CN104539795A/en
Application granted granted Critical
Publication of CN104539795B publication Critical patent/CN104539795B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a data flow display method and device and a mobile terminal, and belongs to the technical field of mobile terminals. The method comprises the steps of obtaining a first surplus flow value and a first total flow value at the current moment; determining a first region for indicating the surplus flow at the current moment in a designated display region according to the display area of the designated display region and the first percentage of the first surplus flow value to the first total flow value; when the designated display region is displayed, rendering the first region in the designated display region as a first color, and rendering a second region except the first region as a second color. According to the method, after the first region is determined according to the first surplus flow value and the first total flow value at the current moment and the display area of the designated display region, the first region is rendered as the first color, and the second region except the first region is rendered as the second color, so that the surplus flow at the current moment is visually indicated according to the size of the first region, and the displayed data flow is vivid.

Description

The display packing of data traffic, device and mobile terminal
Technical field
The disclosure relates to technical field of mobile terminals, particularly a kind of display packing of data traffic, device and mobile terminal.
Background technology
At present, user is by often needing usage data flow during mobile terminal Internet access, when data traffic use value exceedes the flow restriction of the flow package of customization, because the flow rate in the flow rate specific discharge set meal of excess flow restriction are much expensive, thus the data traffic rate easily causing mobile terminal costly, therefore, user often compares the residue situation of focused data flow, limits to avoid the use amount excess flow of data traffic.
In order to meet the user demand of user, correlation technique is often through the service condition of certain traffic monitoring software Real-Time Monitoring flow.Such as, traffic monitoring software, after preset duration adds up a flow use value, according to the flow use value in total flow value and each preset duration, determines residual stream value, thus with the form of numerical value display residual stream value.
Summary of the invention
The disclosure provides a kind of display packing of data traffic, device and mobile terminal.
According to the first aspect of disclosure embodiment, provide a kind of display packing of data traffic, described method comprises:
Obtain the first residual stream value and the first total flow value of current time;
According to the first percentage and the display area of specifying viewing area, determine the first area of specifying viewing area, described first percentage is the ratio of described first residual stream value and described first total flow value, and described first area is used to indicate the residual flow of current time;
When showing described appointment viewing area, being played up the described first area in described appointment viewing area is the first color, and being played up by the second area beyond described first area is the second color.
In conjunction with first aspect, in the first possible implementation of first aspect, described when showing described appointment viewing area, being played up described first area in described appointment viewing area is the first color, second area beyond described first area is played up after being the second color, also comprises:
After detecting and rocking operation, determine the acceleration of each liquid particle because being produced by rocking in described appointment viewing area;
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, predetermined fluid simulation algorithm is adopted to calculate the speed of described each liquid particle;
Rock the primary importance at front place according to the speed of described each liquid particle, described each liquid particle, determine the second place of described each liquid particle after preset duration;
According to the second place of described each liquid particle, determining to rock molecular 3rd region of rear all liq grain, is described first color by described 3rd zone rendering.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, viscosity coefficient between the described acceleration according to each liquid particle, fluid density, liquid particle and liquid pressure, adopt predetermined fluid simulation algorithm to calculate the speed of described each liquid particle, comprising:
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, navier stokes equations is adopted to calculate the speed of described each liquid particle;
The described speed according to described each liquid particle, described each liquid particle rock the primary importance at front place, determine the second place of described each liquid particle after preset duration, comprising:
Rock the primary importance at front place according to the speed of described each liquid particle and described each liquid particle, determine the second place of described each liquid particle after preset duration by forward direction euler algorithm.
In conjunction with first aspect, in the third possible implementation of first aspect, described when showing described appointment viewing area, being played up described first area in described appointment viewing area is the first color, second area beyond described first area is played up after being the second color, also comprises:
After SIM (Subscriber Identity Module, client identification module) card handover operation being detected, obtain the second total flow value and the second residual stream value of the SIM card after switching;
According to the display area of the second percentage and described appointment viewing area, determine the 4th region of described appointment viewing area, described second percentage is the ratio of described second residual stream value and described second total flow value, and described 4th region is used to indicate the residual flow of the SIM card current time after described switching;
Control the liquid of described appointment viewing area by described first area gradual change extremely described 4th region;
When showing described appointment viewing area, being described first color by the 4th zone rendering in described appointment viewing area, is described second color by the 5th zone rendering beyond described 4th region.
In conjunction with first aspect to any one the possible implementation in the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, described when showing described appointment viewing area, being played up described first area in described appointment viewing area is the first color, second area beyond described first area is played up after being the second color, also comprises:
Show described first residual stream value in described appointment viewing area with numeric form, use flow value and flow status information, whether described flow status information is greater than predetermined threshold value for the ratio identifying described first residual stream value and described first total flow value.
According to the second aspect of disclosure embodiment, provide a kind of display unit of data traffic, described device comprises:
First acquisition module, for obtaining the first residual stream value and the first total flow value of current time;
First determination module, for the display area according to the first percentage and appointment viewing area, determine the first area of specifying viewing area, described first percentage is the ratio of described first residual stream value and described first total flow value, and described first area is used to indicate the residual flow of current time;
First rendering module, for when showing described appointment viewing area, being played up the described first area in described appointment viewing area is the first color, and being played up by the second area beyond described first area is the second color.
In conjunction with second aspect, in the first possible implementation of second aspect, described device also comprises:
Second determination module, for after detecting and rocking operation, determines the acceleration of each liquid particle because being produced by rocking in described appointment viewing area;
Computing module, for the viscosity coefficient between the acceleration according to each liquid particle, fluid density, liquid particle and liquid pressure, adopts predetermined fluid simulation algorithm to calculate the speed of described each liquid particle;
3rd determination module, rocks the primary importance at front place, determines the second place of described each liquid particle after preset duration for the speed according to described each liquid particle, described each liquid particle;
4th determination module, for the second place according to described each liquid particle, determines to rock molecular 3rd region of rear all liq grain;
Second rendering module, for being described first color by described 3rd zone rendering.
In conjunction with the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, described computing module, for the viscosity coefficient between the acceleration according to each liquid particle, fluid density, liquid particle and liquid pressure, navier stokes equations is adopted to calculate the speed of described each liquid particle;
Described 3rd determination module, for rocking the primary importance at front place according to the speed of described each liquid particle and described each liquid particle, determines the second place of described each liquid particle after preset duration by forward direction euler algorithm.
In conjunction with second aspect, in the third possible implementation of second aspect, described device also comprises:
Second acquisition module, for after SIM card handover operation being detected, obtains the second total flow value and the second residual stream value of the SIM card after switching;
5th determination module, for the display area according to the second percentage and described appointment viewing area, determine the 4th region of described appointment viewing area, described second percentage is the ratio of described second residual stream value and described second total flow value, and described 4th region is used to indicate the residual flow of the SIM card current time after described switching;
Control module, for controlling the liquid of described appointment viewing area by described first area gradual change extremely described 4th region;
3rd rendering module, for when showing described appointment viewing area, being described first color by the 4th zone rendering in described appointment viewing area, is described second color by the 5th zone rendering beyond described 4th region.
In conjunction with second aspect to any one the possible implementation in the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described device also comprises:
Display module, for showing described first residual stream value in described appointment viewing area with numeric form, use flow value and flow status information, whether described flow status information is greater than predetermined threshold value for the ratio identifying described first residual stream value and described first total flow value.
According to the third aspect of disclosure embodiment, provide a kind of mobile terminal, described mobile terminal comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the first residual stream value and the first total flow value of current time;
According to the first percentage and the display area of specifying viewing area, determine the first area of specifying viewing area, described first percentage is the ratio of described first residual stream value and described first total flow value, and described first area is used to indicate the residual flow of current time;
When showing described appointment viewing area, being played up the described first area in described appointment viewing area is the first color, and being played up by the second area beyond described first area is the second color.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
By the first residual stream value according to current time, the first total flow value and the display area of specifying viewing area, after determining first area, be the first color by first area is played up, being played up by second area beyond first area is the second color, the residual flow of current time can not only be indicated intuitively by the size of first area, and be the first color first area is played up, during to realize the display of data traffic, the data traffic of display can be made more lively.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.
Fig. 1 is the flow chart of the display packing of a kind of data traffic according to an exemplary embodiment.
Fig. 2 is the flow chart of the display packing of a kind of data traffic according to an exemplary embodiment.
Fig. 3 is the terminal interface schematic diagram of a kind of display data stream amount according to an exemplary embodiment.
Fig. 4 is the terminal interface schematic diagram of a kind of display data stream amount according to an exemplary embodiment.
Fig. 5 is the block diagram of the display unit of a kind of data traffic according to an exemplary embodiment.
Fig. 6 is the block diagram of the display unit of a kind of data traffic according to an exemplary embodiment.
Fig. 7 is the block diagram of the display unit of a kind of data traffic according to an exemplary embodiment.
Fig. 8 is the block diagram of the display unit of a kind of data traffic according to an exemplary embodiment.
Fig. 9 is the block diagram of a kind of mobile terminal according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
In order to realize vivid ground display data stream amount, the disclosure implements the display packing providing a kind of data traffic.Fig. 1 is the flow chart of the display packing of a kind of data traffic according to an exemplary embodiment.As shown in Figure 1, the display packing of data traffic is used for, in mobile terminal, comprising the following steps:
In step S101, obtain the first residual stream value and the first total flow value of current time.
In step s 102, according to the first percentage and the display area of specifying viewing area, determine the first area of specifying viewing area, wherein, first percentage is the ratio of the first residual stream value and the first total flow value, and first area is used to indicate the residual flow of current time.
In step s 103, when showing appointment viewing area, being played up the first area of specifying in viewing area is the first color, and being played up by the second area beyond first area is the second color.
The method that disclosure embodiment provides, by the first residual stream value according to current time, the first total flow value and the display area of specifying viewing area, after determining first area, be the first color by first area is played up, being played up by second area beyond first area is the second color, the residual flow of current time can not only be indicated intuitively by the size of first area, and be the first color first area is played up, during to realize the display of data traffic, the data traffic of display can be made more lively.
In another embodiment, when showing appointment viewing area, being played up the first area of specifying in viewing area is the first color, is played up by the second area beyond first area after being the second color, also comprises:
After detecting and rocking operation, determine to specify the acceleration of each liquid particle because being produced by rocking in viewing area;
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, predetermined fluid simulation algorithm is adopted to calculate the speed of each liquid particle;
Rock the primary importance at front place according to the speed of each liquid particle, each liquid particle, determine the second place of each liquid particle after preset duration;
According to the second place of each liquid particle, determining to rock molecular 3rd region of rear all liq grain, is the first color by the 3rd zone rendering.
In another embodiment, according to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, adopt predetermined fluid simulation algorithm to calculate the speed of each liquid particle, comprising:
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, navier stokes equations is adopted to calculate the speed of each liquid particle;
Rock the primary importance at front place according to the speed of each liquid particle, each liquid particle, determine the second place of each liquid particle after preset duration, comprising:
Rock the primary importance at front place according to the speed of each liquid particle and each liquid particle, determine the second place of each liquid particle after preset duration by forward direction euler algorithm.
In another embodiment, when showing appointment viewing area, being played up the first area of specifying in viewing area is the first color, is played up by the second area beyond first area after being the second color, also comprises:
After SIM card handover operation being detected, obtain the second total flow value and the second residual stream value of the SIM card after switching;
According to the second percentage and the display area of specifying viewing area, determine the 4th region of specifying viewing area, wherein, the second percentage is the ratio of the second residual stream value and the second total flow value, and the 4th region is used to indicate the residual flow of the SIM card current time after switching;
Control to specify the liquid of viewing area by first area gradual change to the 4th region;
When showing appointment viewing area, being the first color by the 4th zone rendering of specifying in viewing area, is the second color by the 5th zone rendering beyond the 4th region.
In another embodiment, when showing appointment viewing area, being played up the first area of specifying in viewing area is the first color, is played up by the second area beyond first area after being the second color, also comprises:
Show the first residual stream value in appointment viewing area with numeric form, use flow value and flow status information, wherein, whether flow status information is greater than predetermined threshold value for the ratio identifying the first residual stream value and the first total flow value.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
The content of embodiment corresponding to composition graphs 1, Fig. 2 is the flow chart of the display packing of a kind of data traffic according to an exemplary embodiment.As shown in Figure 2, the display packing of data traffic is used for, in mobile terminal, comprising the following steps:
In step s 201, the first residual stream value and the first total flow value of current time is obtained.
About acquisition the first residual stream value of current time and the mode of the first total flow value, can have a variety of.Such as, mobile terminal can inquire about total flow value and residual stream value to operator.Wherein, mobile terminal, when to operator's inquiry total flow value and residual stream value, to operator's transmitted traffic short message enquiry, and can be realized by the flow Query Result receiving operator's reply.Wherein, total flow value and residual stream value can usually be comprised in this flow Query Result.Therefore, mobile terminal, after receiving the flow Query Result that returns of operator, can be resolved this flow Query Result, obtain total flow value and residual stream value, using this total flow valuve and residual stream value as the first total flow value got and the first residual stream value.
In addition, the flow service condition of all right real-time statistics user of mobile terminal, such as, mobile terminal is every the flow use amount of an one hour or each one day statistics user.On this basis, all flow use amounts counted on can be superposed, be used flow, and deduct by the first total flow value got and use flow, thus obtain the first residual stream value of current time.
In addition, service condition and the residue situation of its data traffic is understood for the ease of user by operator, usual meeting timing send data traffic messages with short message mode to mobile terminal, as operator sends data traffic messages to mobile terminal on every Mondays, this data traffic messages comprises total flow value and the residual stream value of customer flow set meal, therefore, following steps can be carried out: call short message port when obtaining the first residual stream value and the first total flow value of current time, the data traffic messages that operator sends is searched from short message port, and obtain the first total flow value and the first residual stream value by resolution data traffic messages.
In step S202, according to the first percentage and the display area of specifying viewing area, determine the first area of specifying viewing area, wherein, first percentage is the ratio of the first residual stream value and the first total flow value, and first area is used to indicate the residual flow of current time.
Disclosure embodiment, when display data stream amount, specifies viewing area by pre-setting on mobile terminals, and by specifying the container of viewing area simulation carrying liquid, with the residual flow by specifying the amount of liquid instruction current time in viewing area.Such as, display area during this appointment viewing area simulation Sheng filled with fluid is corresponding with the first total flow value; In the use procedure of data traffic, the residual liquid quantity area occupied of specifying viewing area simulation splendid attire is first area, along with the use of data traffic, the area of first area constantly reduces, from visual effect, specify the amount of liquid of simulating splendid attire in viewing area constantly to reduce, the service condition of user to data traffic is had cognitive intuitively.On this basis, can by the residual flow of this first area instruction current time, the area of this first area is corresponding with the first residual stream value.
About the shape of specifying viewing area, disclosure embodiment does not do concrete restriction, and when implementing, the shape of this appointment viewing area can be rectangle, square, circle or hourglass shape etc.When specify viewing area be rectangle, square or circular time, specify viewing area display area correspondence the first total flow value; The bottom section of specifying viewing area is first area, and this first area is corresponding with the first residual stream value; Specify the second area of viewing area except first area and use flow value corresponding.When specifying viewing area to be hourglass shape, the subregion in the lower hopper region of hourglass is first area, is used to indicate the residual flow of current time; Second area in hourglass except first area may be used for instruction and uses flow.
In order to determine the size of first area, indicating current residual flow by first area, when can specify the display area of viewing area according to the first percentage of the first residual stream value and the first total flow value, determining to specify the first area in viewing area.
Such as, if specify viewing area to be 2cm (centimetre) * 3cm=6cm 2the rectangular area of (square centimeter), the first total flow value is 60M (million), and the first residual stream value is 12M, then the first percentage is 12/60*100%=20%, and first area is 6cm 2* 20%=1.2cm 2.In addition; due to when the container by specifying viewing area simulation carrying liquid; liquid is due to the effect of gravity; usually the bottom section of specifying viewing area can be contained in; namely length is that 2cm remains unchanged, and 1.2/2=0.6cm, therefore; first area is length is 2cm, is highly the viewing area of 0.6cm.
As shown in Figure 3, it illustrates terminal interface schematic diagram during a kind of display data stream amount.In figure 3, the rectangular area shown in thick line is specifies viewing area, and first area is the shadow region shown in (a) figure in such as Fig. 3.Certainly, the length of the appointment viewing area in Fig. 3 shown in (a) figure and highly only for illustrating, does not form the restriction to disclosure embodiment.
In step S203, when showing appointment viewing area, being played up the first area of specifying in viewing area is the first color, and being played up by the second area beyond first area is the second color.
Specifying the opportunity of viewing area about display, can being when stream of user queries amount being detected, in traffic management interface display; Also viewing area can be specified for showing in the appointed area of mobile terminal always.Such as, the region near mobile terminal display electricity icon shows always specifies viewing area, with the service condition making user can grasp flow in real time.
Further, after determining first area, in order to be indicated the residual flow of current time by first area, need first area and the second area of specifying in viewing area except first area to be differently shown, thus make the residual flow of display more directly perceived.Therefore, when specifying viewing area to carry out display data stream amount by display, being played up the first area of specifying in viewing area is the first color, and being played up by the second area beyond first area is the second color.Still as shown in Figure 3, in Fig. 3, in (a) figure and Fig. 3, in (b) figure, specify the shadow region in viewing area to be first area, specify the white space in viewing area except this shadow region to be second area.
In conjunction with the citing in above-mentioned steps S202, with by the bottom straight line in this rectangular area for highly making origin, can long be 2cm, it be the first color that the high first area for 0.6cm formation is played up; Be 2cm by length, the zone rendering of the high 2.4cm for more than 0.6cm is the second color.
About the concrete color of the first color and the second color, disclosure embodiment is not construed as limiting, and ensures to enable the appointment viewing area of display interface distinguish first area and second area.Such as, the first color can be white, and the second color can be blue; First color is yellow, and the second color is redness etc.Wherein, in order to make display specify the display interface better appearance of viewing area, the second color can be made to remain the background colour of this display interface, and to be played up first area be the first color.Wherein, when second area remains the background colour of this display interface, when performing Rendering operations, can only be played up first area is the first color, and keeps the color of second area constant.
Wherein, being the first color by specifying the first area in viewing area to play up, second area being played up when being the second color, can pass through OPENGL (open graphic package interface) realization.In addition, due in the disclosed embodiments, specifying viewing area for simulating the container of carrying liquid, in order to the characteristic enabling the appointment viewing area of display characterize liquid well, making the intersection of first area and second area smoother when playing up.Therefore, when carrying out Rendering operations, need the smoothing process of intersection to first area and second area.Wherein, when processing the intersection of first area and second area is smoothing, MC (Marching Cubes, marching cube) algorithm realization can be passed through.
In the continuous use procedure of data traffic, the display area of first area is more and more less, until after data traffic finishes using, the display area of first area is 0.Wherein, in the ever-reduced process in first area, the reduction process of flow can be represented by the form of specifying the liquid of simulating splendid attire in viewing area dynamically to reduce.Still as shown in Figure 3, in Fig. 3, in (a) figure to Fig. 3, namely the change procedure of (b) figure represents the ever-reduced process of flow.By (b) Tu Ke get in (a) figure to Fig. 3 in Fig. 3, in the use procedure of flow, the area of first area constantly reduces.
In addition, due to the data traffic that the data traffic of specifying viewing area to show is the SIM card of the current use of mobile terminal, and mobile terminal often may switch SIM card due to a variety of causes, such as, change SIM card or switch to another SIM card pattern by current SIM card pattern.When after switching SIM card, due to the total flow value of different SIM card and residual stream value often not identical, therefore, after switching SIM card, will change by specifying the data traffic of viewing area display.Wherein, when showing the data traffic of the SIM card after switching, can be realized by following step S2031 to step S2034:
In step S2031, after SIM card handover operation being detected, obtain the second total flow value and the second residual stream value of the SIM card after switching.
Wherein, if a SIM card is inserted in mobile terminal support, then SIM card handover operation is the operation being replaced by another SIM card by current SIM card.Now, when detecting SIM card handover operation, whether can be replaced by another SIM card to realize by current SIM card by the SIM card in test card slot.If the card in draw-in groove is replaced by another SIM card by current SIM card, then determine SIM card handover operation to be detected.Wherein, when whether the SIM card in test card slot is replaced by another SIM card by current SIM card, whether can be changed by the number that detection SIM is corresponding and realize.If two SIM cards are inserted in mobile terminal support, then SIM card handover operation is the operation being switched to another SIM card pattern by current SIM card pattern.Now, when detecting SIM card handover operation, can by detecting whether carried out SIM card mode switching operation.If detect and carried out SIM card mode switching operation, then determine SIM card handover operation to be detected.
When obtaining the second total flow value and the second residual stream value of the SIM card after switching, see mode when above-mentioned acquisition first total flow value and the first residual stream value, can not repeat them here.
In step S2032, according to the second percentage and the display area of specifying viewing area, determine the 4th region of specifying viewing area, wherein, second percentage is the ratio of the second residual stream value and the second total flow value, and the 4th region is used to indicate the residual flow of the SIM card current time after switching.
The principle of this step is consistent with the principle of above-mentioned steps S202, specifically see the content in above-mentioned steps S202, can not repeat them here.
In step S2033, control to specify the liquid of viewing area by first area gradual change to the 4th region.
Wherein, control to specify the liquid of viewing area by first area gradual change to the 4th region time, when the four-range area that the area ratio of the first area determined by step S202 is determined by step S2032 is large, the liquid level that can control to simulate in first area carrying liquid declines gradually, until specifying the liquid of viewing area simulation splendid attire to account for the area of specifying viewing area is four-range area; When the area ratio four-range area hour of first area, the liquid level that can control to simulate in first area carrying liquid rises gradually, until specifying the liquid of viewing area simulation splendid attire to account for the area of specifying viewing area is four-range area.
In step S2034, when showing appointment viewing area, being the first color by the 4th zone rendering of specifying in viewing area, is the second color by the 5th zone rendering beyond the 4th region.
The principle of this step is consistent with the principle of above-mentioned steps S203, specifically see the content in above-mentioned steps S203, can not repeat them here.
Composition graphs 3, above-mentioned steps S201 to step S203 is the specific implementation of mobile terminal display data stream amount when keeping vertical state.But mobile terminal may can not keep vertical state due to a variety of causes, such as, after mobile terminal is shaken, it may run-off the straight etc.Owing to specifying viewing area for simulating the container of carrying liquid, when mobile terminal is not vertical state, the liquid in viewing area is specified to flow.In order to determine that mobile terminal is shaken the liquid condition in rear appointment viewing area, can continue to perform following optional step S204 to step S207.
In step S204, after detecting and rocking operation, determine to specify the acceleration of each liquid particle because being produced by rocking in viewing area.
Wherein, specify in viewing area the liquid of simulating splendid attire to be made up of each liquid particle, each liquid particle all can the variation of occurrence positions because being shaken.Therefore, when determining the state after specifying viewing area to be shaken, the state of each liquid particle all should be considered.State after each liquid particle is shaken is the position that each liquid particle is shaken rear place.When determining the position at place after each liquid particle is shaken, the acceleration that each liquid particle produces because being shaken first can be determined.
When determining the acceleration that each liquid particle produces because being shaken, can be realized by acceleration transducer built-in in mobile terminal.In addition, because each liquid particle is also subject to the effect of gravity, therefore, the acceleration of each liquid particle, except comprising rocking except external force acceleration of being subject to because being shaken, also comprises acceleration of gravity.
In step S205, according to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, predetermined fluid simulation algorithm is adopted to calculate the speed of each liquid particle.
During liquid flow, the factor such as viscosity coefficient and liquid pressure between the density of liquid, liquid particle, the speed of each liquid particle during liquid flow will be affected, therefore, can, according to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, predetermined fluid simulation algorithm be adopted to calculate the speed of each liquid particle.
About the content of predetermined fluid simulation algorithm, disclosure embodiment does not do concrete restriction.When implementing, predetermined fluid simulation algorithm includes but not limited to navier stokes equations.In addition, because liquid is incompressible form, therefore, predetermined fluid simulation algorithm can be incompressible navier stokes equations further.
Wherein, incompressible navier stokes equations includes but not limited to as following form:
Formula (1) is the equation of momentum, and formula (2) is for mass equation or be incompressibility.In formula, represent the speed of each liquid particle; ρ is fluid density; it is the acceleration of each liquid particle; V is the viscosity coefficient between liquid particle; P express liquid pressure; ▽ and ▽ represents gradient and divergence operator respectively; ▽ ▽ represents Laplacian.
Analysis is carried out to the incompressible navier stokes equations in above-mentioned formula (1) and formula (2) known, according to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, navier stokes equations can be adopted to calculate the speed of each liquid particle.Wherein, the acceleration of each liquid particle can be obtained by above-mentioned steps S204, the viscosity coefficient between fluid density, liquid particle and liquid pressure when carrying out the display of data traffic, can in advance rule of thumb or experimental result be set as some numerical value.
In step S206, rock the primary importance at front place according to the speed of each liquid particle, each liquid particle, determine the second place of each liquid particle after preset duration.
Wherein, preset duration is the time step of the change in location for adding up each liquid particle preset, and namely adds up once the position of each liquid particle every preset duration.
After the speed that the primary importance at place, each liquid particle produce because rocking before getting each liquid particle and rocking and preset duration, just can determine the second place of each liquid particle after preset duration.Such as, the primary importance at place before the speed according to each liquid particle, each liquid particle rock, when determining the second place of each liquid particle after preset duration, include but not limited to: the primary importance of rocking front place according to the speed of each liquid particle and each liquid particle, determine the second place of each liquid particle after preset duration by forward direction euler algorithm.
Wherein, forward direction euler algorithm formula is described below:
x n+1=x n+δtu n
y n+1=y n+δty n(3)
z n+1=z n+δtz n
In formula (3), x n+1, y n+1and z n+1represent each liquid particle second place in three dimensions respectively, x n, y nand z nrepresent each liquid particle primary importance in three dimensions respectively, δ t represents preset duration.
Wherein, when determining primary importance and the second place of each liquid particle, can coordinate system be preestablished, and be realized by the coordinate of each liquid particle under this coordinate system.
In step S207, according to the second place of each liquid particle, determining to rock molecular 3rd region of rear all liq grain, is the first color by the 3rd zone rendering.
Wherein, the second place of each liquid particle can form the 3rd region.In order to identify each liquid particle be shaken after position, be the first color by the 3rd zone rendering.
Certainly, this first color can be also different colors from the first color in step S203, and disclosure embodiment is not construed as limiting this.As shown in Figure 4, it illustrates a kind of terminal interface schematic diagram of display data stream amount.Mobile terminal is by vertical state to heeling condition, the change procedure of first area by the process shown in (b) figure in (a) figure to Fig. 4 in Fig. 4.By (b) Tu Ke get in Fig. 4, after mobile terminal is tilted, the water flow effects that the liquid level mimetic surface of first area simulative display produces.
Further, in order to make the data traffic content of flow indication interface display abundanter, the first residual stream value can also be shown with numeric form, use flow value and flow status information in appointment viewing area.Wherein, flow status information is whether the ratio of mark first residual stream value and the first total flow value is greater than predetermined threshold value, thus whether further illustrate current residual flow sufficient.Such as, when the ratio of the first residual stream value and the first total flow value is not more than predetermined threshold value, determine that data traffic is inadequate; When the ratio of the first residual stream value and the first total flow value is greater than predetermined threshold value, determine that data traffic is sufficient.About the concrete numerical value of predetermined threshold value, disclosure embodiment is not construed as limiting.Such as, predetermined threshold value can be 60%, also can be 70% etc.
During by display flow status information, user can be made whether sufficient can to understand its current data traffic intuitively.
Wherein, show the first residual stream value with numeric form in appointment viewing area, use the terminal interface of flow value and flow status information can still as shown in Figure 3.By (a) Tu Ke get in Fig. 3, the first residual stream value of current time is 12M, has been 48M with flow value, and due to the first residual stream value fewer, therefore, the residual flow of current time is not enough.
In addition, when determining that data traffic is insufficient, flow package information can also be pushed to user, whether can continue to buy flow, whether change flow package etc. according to flow package Information Selection to make user.
The method that disclosure embodiment provides, by the first residual stream value according to current time, the first total flow value and the display area of specifying viewing area, after determining first area, be the first color by first area is played up, being played up by second area beyond first area is the second color, the residual flow of current time can not only be indicated intuitively by the size of first area, and be the first color first area is played up, during to realize the display of data traffic, the data traffic of display can be made more lively.
Fig. 5 is the block diagram of the display unit of a kind of data traffic according to an exemplary embodiment, and the display unit of this data traffic is for performing the display packing of the data traffic that embodiment provides corresponding to above-mentioned Fig. 1 or Fig. 2.See Fig. 5, the display unit of this data traffic comprises the first acquisition module 501, first determination module 502 and the first rendering module 503.Wherein:
This first acquisition module 501 is configured to the first residual stream value and the first total flow value that obtain current time;
This first determination module 502 is configured to according to the first percentage and the display area of specifying viewing area, determine the first area of specifying viewing area, wherein, the first percentage is the ratio of the first residual stream value and the first total flow value, and first area is used to indicate the residual flow of current time;
This first rendering module 503 is configured to when showing appointment viewing area, and being played up the first area of specifying in viewing area is the first color, and being played up by the second area beyond first area is the second color.
The device that disclosure embodiment provides, by the first residual stream value according to current time, the first total flow value and the display area of specifying viewing area, after determining first area, be the first color by first area is played up, being played up by second area beyond first area is the second color, the residual flow of current time can not only be indicated intuitively by the size of first area, and be the first color first area is played up, during to realize the display of data traffic, the data traffic of display can be made more lively.
In another embodiment, see Fig. 6, the display unit of data traffic also comprises the second determination module 504, computing module 505, the 3rd determination module 506, the 4th determination module 507 and the second rendering module 508.Wherein:
This second determination module 504 is configured to after detecting and rocking operation, determines to specify the acceleration of each liquid particle because being produced by rocking in viewing area;
This computing module 505 is configured to viscosity coefficient between acceleration according to each liquid particle, fluid density, liquid particle and liquid pressure, adopts predetermined fluid simulation algorithm to calculate the speed of each liquid particle;
The primary importance that 3rd determination module 506 is configured to the speed according to each liquid particle, each liquid particle rocks front place, determines the second place of each liquid particle after preset duration;
4th determination module 507 is configured to the second place according to each liquid particle, determines to rock molecular 3rd region of rear all liq grain;
It is the first color that this second rendering module 508 is configured to the 3rd zone rendering.
In another embodiment, this computing module 505 is configured to viscosity coefficient between acceleration according to each liquid particle, fluid density, liquid particle and liquid pressure, adopts navier stokes equations to calculate the speed of each liquid particle;
3rd determination module 506 is configured to the primary importance of rocking front place according to the speed of each liquid particle and each liquid particle, determines the second place of each liquid particle after preset duration by forward direction euler algorithm.
In another embodiment, see Fig. 7, the display unit of data traffic also comprises the second acquisition module 509, the 5th determination module 510, control module 511 and the 3rd rendering module 512.Wherein:
This second acquisition module 509 is configured to after SIM card handover operation being detected, obtains the second total flow value and the second residual stream value of the SIM card after switching;
5th determination module 510 is configured to according to the second percentage and the display area of specifying viewing area, determine the 4th region of specifying viewing area, wherein, second percentage is the ratio of the second residual stream value and the second total flow value, and the 4th region is used to indicate the residual flow of the SIM card current time after switching;
This control module 511 is configured to control to specify the liquid of viewing area by first area gradual change to the 4th region;
3rd rendering module 512 is configured to when showing appointment viewing area, and being the first color by the 4th zone rendering of specifying in viewing area, is the second color by the 5th zone rendering beyond the 4th region.
In another embodiment, see Fig. 8, the display unit of data traffic also comprises display module 513.Wherein:
This display module 513 is configured to show the first residual stream value in appointment viewing area with numeric form, use flow value and flow status information, and wherein, whether flow status information is sufficient for identifying flow.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 9 is the block diagram of a kind of mobile terminal 900 according to an exemplary embodiment, and this mobile terminal may be used for the display packing performing the data traffic that embodiment provides corresponding to above-mentioned Fig. 1 or Fig. 2.Such as, mobile terminal 900 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 9, mobile terminal 900 can comprise following one or more assembly: processing components 902, memory 904, power supply module 906, multimedia groupware 908, audio-frequency assembly 910, I/O (Input/Output, I/O) interface 912, sensor cluster 914, and communications component 916.
Processing components 902 controls the integrated operation of mobile terminal 900 usually, and such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 902 can comprise one or more processor 920 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 902 can comprise one or more module, and what be convenient between processing components 902 and other assembly is mutual.Such as, processing components 902 can comprise multi-media module, mutual with what facilitate between multimedia groupware 908 and processing components 902.
Memory 904 is configured to store various types of data to be supported in the operation of mobile terminal 900.The example of these data comprises for any application program of operation on mobile terminal 900 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 904 can be realized by the volatibility of any type or non-volatile memory device or their combination, as SRAM (Static RandomAccess Memory, static RAM), EEPROM (Electrically-ErasableProgrammable Read-Only Memory, Electrically Erasable Read Only Memory), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), ROM (Read-OnlyMemory, read-only memory), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 906 is mobile terminal 900 provide electric power.Power supply module 906 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for mobile terminal 900 and be associated.
Multimedia groupware 908 is included in the screen providing an output interface between described mobile terminal 900 and user.In certain embodiments, screen can comprise LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touch panel).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant with touch or slide and pressure.In certain embodiments, multimedia groupware 908 comprises a front-facing camera and/or post-positioned pick-up head.When mobile terminal 900 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to export and/or input audio signal.Such as, audio-frequency assembly 910 comprises a MIC (Microphone, microphone), and when mobile terminal 900 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 904 further or be sent via communications component 916.In certain embodiments, audio-frequency assembly 910 also comprises a loud speaker, for output audio signal.
I/O interface 912 is for providing interface between processing components 902 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 914 comprises one or more transducer, for providing the state estimation of various aspects for mobile terminal 900.Such as, sensor cluster 914 can detect the opening/closing state of mobile terminal 900, the relative positioning of assembly, such as assembly is display and the keypad of mobile terminal 900, the position that sensor cluster 914 can also detect mobile terminal 900 or mobile terminal 900 1 assemblies changes, the presence or absence that user contacts with mobile terminal 900, the variations in temperature of mobile terminal 900 orientation or acceleration/deceleration and mobile terminal 900.Sensor cluster 914 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 914 can also comprise optical sensor, as CMOS (Complementary Metal Oxide Semiconductor, CMOS (Complementary Metal Oxide Semiconductor)) or CCD (Charge-coupled Device, charge coupled cell) imageing sensor, for using in imaging applications.In certain embodiments, this sensor cluster 914 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 916 is configured to the communication being convenient to wired or wireless mode between mobile terminal 900 and miscellaneous equipment.Mobile terminal 900 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 916 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 916 also comprises NFC (Near Field Communication, near-field communication) module, to promote junction service.Such as, can based on RFID (Radio Frequency Identification in NFC module, radio-frequency (RF) identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) technology, UWB (UltraWideband, ultra broadband) technology, BT (Bluetooth, bluetooth) technology and other technologies realize.
In the exemplary embodiment, mobile terminal 900 can by one or more ASIC (ApplicationSpecific Integrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, digital signal processor), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, programmable logic device), FPGA (Field ProgrammableGate Array, field programmable gate array), controller, microcontroller, microprocessor or other electronic components realize, for performing the display packing of the data traffic that embodiment provides corresponding to above-mentioned Fig. 1 or Fig. 2.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as comprise the memory 904 of instruction, above-mentioned instruction can have been performed the display packing of the data traffic that embodiment provides corresponding to above-mentioned Fig. 1 or Fig. 2 by the processor 920 of mobile terminal 900.Such as, described non-transitory computer-readable recording medium can be ROM, RAM (Random Access Memory, random access memory), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of display packing of data traffic, described method comprises:
Obtain the first residual stream value and the first total flow value of current time;
According to the first percentage and the display area of specifying viewing area, determine the first area of specifying viewing area, wherein, the first percentage is the ratio of the first residual stream value and the first total flow value, and first area is used to indicate the residual flow of current time;
When showing appointment viewing area, being played up the first area of specifying in viewing area is the first color, and being played up by the second area beyond first area is the second color.
Suppose that above-mentioned is the first possible execution mode, in the execution mode that the second then provided based on the execution mode that the first is possible is possible, the instruction for performing following operation is also comprised: when showing appointment viewing area in the memory of mobile terminal, being played up the first area of specifying in viewing area is the first color, second area beyond first area is played up after being the second color, also comprises:
After detecting and rocking operation, determine to specify the acceleration of each liquid particle because being produced by rocking in viewing area;
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, predetermined fluid simulation algorithm is adopted to calculate the speed of each liquid particle;
Rock the primary importance at front place according to the speed of each liquid particle, each liquid particle, determine the second place of each liquid particle after preset duration;
According to the second place of each liquid particle, determining to rock molecular 3rd region of rear all liq grain, is the first color by the 3rd zone rendering.
In the third the possible implementation provided based on the implementation that the second is possible, the instruction for performing following operation is also comprised: according to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure in the memory of mobile terminal, adopt predetermined fluid simulation algorithm to calculate the speed of each liquid particle, comprising:
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, navier stokes equations is adopted to calculate the speed of each liquid particle;
Rock the primary importance at front place according to the speed of each liquid particle, each liquid particle, determine the second place of each liquid particle after preset duration, comprising:
Rock the primary importance at front place according to the speed of each liquid particle and each liquid particle, determine the second place of each liquid particle after preset duration by forward direction euler algorithm.
In the 4th kind of possible implementation provided based on the implementation that the first is possible, the instruction for performing following operation is also comprised: when showing appointment viewing area in the memory of mobile terminal, being played up the first area of specifying in viewing area is the first color, second area beyond first area is played up after being the second color, also comprises:
After SIM card handover operation being detected, obtain the second total flow value and the second residual stream value of the SIM card after switching;
According to the second percentage and the display area of specifying viewing area, determine the 4th region of specifying viewing area, wherein, the second percentage is the ratio of the second residual stream value and the second total flow value, and the 4th region is used to indicate the residual flow of the SIM card current time after switching;
Control to specify the liquid of viewing area by first area gradual change to the 4th region;
When showing appointment viewing area, being the first color by the 4th zone rendering of specifying in viewing area, is the second color by the 5th zone rendering beyond the 4th region.
In the third possible implementation that the first provides to any one the possible implementation in the 4th kind of possible implementation, the instruction for performing following operation is also comprised: when showing appointment viewing area in the memory of mobile terminal, being played up the first area of specifying in viewing area is the first color, second area beyond first area is played up after being the second color, also comprises:
Show the first residual stream value in appointment viewing area with numeric form, use flow value and flow status information, wherein, whether flow status information is greater than predetermined threshold value for the ratio identifying the first residual stream value and the first total flow value.
The non-transitory computer-readable recording medium that disclosure embodiment provides, by the first residual stream value according to current time, the first total flow value and the display area of specifying viewing area, after determining first area, be the first color by first area is played up, being played up by second area beyond first area is the second color, the residual flow of current time can not only be indicated intuitively by the size of first area, and be the first color first area is played up, during to realize the display of data traffic, the data traffic of display can be made more lively.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (11)

1. a display packing for data traffic, is characterized in that, described method comprises:
Obtain the first residual stream value and the first total flow value of current time;
According to the first percentage and the display area of specifying viewing area, determine the first area of specifying viewing area, described first percentage is the ratio of described first residual stream value and described first total flow value, and described first area is used to indicate the residual flow of current time;
When showing described appointment viewing area, being played up the described first area in described appointment viewing area is the first color, and being played up by the second area beyond described first area is the second color.
2. method according to claim 1, it is characterized in that, described when showing described appointment viewing area, being played up the described first area in described appointment viewing area is the first color, second area beyond described first area is played up after being the second color, also comprises:
After detecting and rocking operation, determine the acceleration of each liquid particle because being produced by rocking in described appointment viewing area;
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, predetermined fluid simulation algorithm is adopted to calculate the speed of described each liquid particle;
Rock the primary importance at front place according to the speed of described each liquid particle, described each liquid particle, determine the second place of described each liquid particle after preset duration;
According to the second place of described each liquid particle, determining to rock molecular 3rd region of rear all liq grain, is described first color by described 3rd zone rendering.
3. method according to claim 2, it is characterized in that, viscosity coefficient between the described acceleration according to each liquid particle, fluid density, liquid particle and liquid pressure, adopt predetermined fluid simulation algorithm to calculate the speed of described each liquid particle, comprising:
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, navier stokes equations is adopted to calculate the speed of described each liquid particle;
The described speed according to described each liquid particle, described each liquid particle rock the primary importance at front place, determine the second place of described each liquid particle after preset duration, comprising:
Rock the primary importance at front place according to the speed of described each liquid particle and described each liquid particle, determine the second place of described each liquid particle after preset duration by forward direction euler algorithm.
4. method according to claim 1, it is characterized in that, described when showing described appointment viewing area, being played up the described first area in described appointment viewing area is the first color, second area beyond described first area is played up after being the second color, also comprises:
After client identification module SIM card handover operation being detected, obtain the second total flow value and the second residual stream value of the SIM card after switching;
According to the display area of the second percentage and described appointment viewing area, determine the 4th region of described appointment viewing area, described second percentage is the ratio of described second residual stream value and described second total flow value, and described 4th region is used to indicate the residual flow of the SIM card current time after described switching;
Control the liquid of described appointment viewing area by described first area gradual change extremely described 4th region;
When showing described appointment viewing area, being described first color by the 4th zone rendering in described appointment viewing area, is described second color by the 5th zone rendering beyond described 4th region.
5. the method according to claim arbitrary in Claims 1-4, it is characterized in that, described when showing described appointment viewing area, being played up described first area in described appointment viewing area is the first color, second area beyond described first area is played up after being the second color, also comprises:
Show described first residual stream value in described appointment viewing area with numeric form, use flow value and flow status information, whether described flow status information is greater than predetermined threshold value for the ratio identifying described first residual stream value and described first total flow value.
6. a display unit for data traffic, is characterized in that, described device comprises:
First acquisition module, for obtaining the first residual stream value and the first total flow value of current time;
First determination module, for the display area according to the first percentage and appointment viewing area, determine the first area of specifying viewing area, described first percentage is the ratio of described first residual stream value and described first total flow value, and described first area is used to indicate the residual flow of current time;
First rendering module, for when showing described appointment viewing area, being played up the described first area in described appointment viewing area is the first color, and being played up by the second area beyond described first area is the second color.
7. device according to claim 6, is characterized in that, described device also comprises:
Second determination module, for after detecting and rocking operation, determines the acceleration of each liquid particle because being produced by rocking in described appointment viewing area;
Computing module, for the viscosity coefficient between the acceleration according to each liquid particle, fluid density, liquid particle and liquid pressure, adopts predetermined fluid simulation algorithm to calculate the speed of described each liquid particle;
3rd determination module, rocks the primary importance at front place, determines the second place of described each liquid particle after preset duration for the speed according to described each liquid particle, described each liquid particle;
4th determination module, for the second place according to described each liquid particle, determines to rock molecular 3rd region of rear all liq grain;
Second rendering module, for being described first color by described 3rd zone rendering.
8. device according to claim 7, it is characterized in that, described computing module, for the viscosity coefficient between the acceleration according to each liquid particle, fluid density, liquid particle and liquid pressure, adopts navier stokes equations to calculate the speed of described each liquid particle;
Described 3rd determination module, for rocking the primary importance at front place according to the speed of described each liquid particle and described each liquid particle, determines the second place of described each liquid particle after preset duration by forward direction euler algorithm.
9. device according to claim 6, is characterized in that, described device also comprises:
Second acquisition module, for after client identification module SIM card handover operation being detected, obtains the second total flow value and the second residual stream value of the SIM card after switching;
5th determination module, for the display area according to the second percentage and described appointment viewing area, determine the 4th region of described appointment viewing area, described second percentage is the ratio of described second residual stream value and described second total flow value, and described 4th region is used to indicate the residual flow of the SIM card current time after described switching;
Control module, for controlling the liquid of described appointment viewing area by described first area gradual change extremely described 4th region;
3rd rendering module, for when showing described appointment viewing area, being described first color by the 4th zone rendering in described appointment viewing area, is described second color by the 5th zone rendering beyond described 4th region.
10. the device according to claim arbitrary in claim 6 to 9, is characterized in that, described device also comprises:
Display module, for showing described first residual stream value in described appointment viewing area with numeric form, use flow value and flow status information, whether described flow status information is greater than predetermined threshold value for the ratio identifying described first residual stream value and described first total flow value.
11. 1 kinds of mobile terminals, is characterized in that, described mobile terminal comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the first residual stream value and the first total flow value of current time;
According to the first percentage and the display area of specifying viewing area, determine the first area of specifying viewing area, described first percentage is the ratio of described first residual stream value and described first total flow value, and described first area is used to indicate the residual flow of current time;
When showing described appointment viewing area, being played up the described first area in described appointment viewing area is the first color, and being played up by the second area beyond described first area is the second color.
CN201410831758.XA 2014-12-26 2014-12-26 The display packing of data traffic, device and mobile terminal Active CN104539795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410831758.XA CN104539795B (en) 2014-12-26 2014-12-26 The display packing of data traffic, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410831758.XA CN104539795B (en) 2014-12-26 2014-12-26 The display packing of data traffic, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN104539795A true CN104539795A (en) 2015-04-22
CN104539795B CN104539795B (en) 2017-03-01

Family

ID=52855262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410831758.XA Active CN104539795B (en) 2014-12-26 2014-12-26 The display packing of data traffic, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN104539795B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100943A (en) * 2015-08-29 2015-11-25 天脉聚源(北京)科技有限公司 Method and device for displaying information of users participating in interaction
CN105430690A (en) * 2016-01-22 2016-03-23 青岛海信移动通信技术股份有限公司 Traffic displaying method and system and mobile terminal
CN106792878A (en) * 2016-12-27 2017-05-31 努比亚技术有限公司 A kind of data traffic monitoring method and device
CN107295572A (en) * 2016-04-11 2017-10-24 北京搜狗科技发展有限公司 A kind of dynamic self-adapting current-limiting method and electronic equipment
WO2018223374A1 (en) * 2017-06-09 2018-12-13 深圳市伊特利网络科技有限公司 Timely notification method and system for terminal charging
CN109039664A (en) * 2017-06-09 2018-12-18 深圳市伊特利网络科技有限公司 The timely notification method and system of terminal charging
CN109101211A (en) * 2018-07-27 2018-12-28 Oppo广东移动通信有限公司 Data traffic display methods, device, storage medium and electronic equipment
WO2020186865A1 (en) * 2019-03-21 2020-09-24 北京京东尚科信息技术有限公司 Liquid commodity presentation method, terminal device, storage medium, and electronic device
WO2022033445A1 (en) * 2020-08-10 2022-02-17 北京字节跳动网络技术有限公司 Interactive dynamic fluid effect processing method and device , and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591766A (en) * 2011-12-31 2012-07-18 惠州Tcl移动通信有限公司 Mobile equipment and method and system for carrying out prompt processing on power consumption of programs of mobile equipment
CN103188647A (en) * 2011-12-29 2013-07-03 北京网秦天下科技有限公司 Method and system for statistically analyzing and warning Internet surfing flow of mobile terminal
CN103259690A (en) * 2012-02-16 2013-08-21 腾讯科技(深圳)有限公司 Information processing method and client
CN103414833A (en) * 2013-08-30 2013-11-27 贝壳网际(北京)安全技术有限公司 Mobile terminal and electric quantity display method and device thereof
CN103675690A (en) * 2012-09-25 2014-03-26 腾讯科技(深圳)有限公司 A method for displaying a terminal charging status and a terminal
CN104133760A (en) * 2014-08-14 2014-11-05 北京锐美无限科技发展有限公司 Battery state display method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188647A (en) * 2011-12-29 2013-07-03 北京网秦天下科技有限公司 Method and system for statistically analyzing and warning Internet surfing flow of mobile terminal
CN102591766A (en) * 2011-12-31 2012-07-18 惠州Tcl移动通信有限公司 Mobile equipment and method and system for carrying out prompt processing on power consumption of programs of mobile equipment
CN103259690A (en) * 2012-02-16 2013-08-21 腾讯科技(深圳)有限公司 Information processing method and client
CN103675690A (en) * 2012-09-25 2014-03-26 腾讯科技(深圳)有限公司 A method for displaying a terminal charging status and a terminal
CN103414833A (en) * 2013-08-30 2013-11-27 贝壳网际(北京)安全技术有限公司 Mobile terminal and electric quantity display method and device thereof
CN104133760A (en) * 2014-08-14 2014-11-05 北京锐美无限科技发展有限公司 Battery state display method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100943A (en) * 2015-08-29 2015-11-25 天脉聚源(北京)科技有限公司 Method and device for displaying information of users participating in interaction
CN105430690A (en) * 2016-01-22 2016-03-23 青岛海信移动通信技术股份有限公司 Traffic displaying method and system and mobile terminal
CN107295572A (en) * 2016-04-11 2017-10-24 北京搜狗科技发展有限公司 A kind of dynamic self-adapting current-limiting method and electronic equipment
CN106792878A (en) * 2016-12-27 2017-05-31 努比亚技术有限公司 A kind of data traffic monitoring method and device
WO2018223374A1 (en) * 2017-06-09 2018-12-13 深圳市伊特利网络科技有限公司 Timely notification method and system for terminal charging
CN109039664A (en) * 2017-06-09 2018-12-18 深圳市伊特利网络科技有限公司 The timely notification method and system of terminal charging
CN109101211A (en) * 2018-07-27 2018-12-28 Oppo广东移动通信有限公司 Data traffic display methods, device, storage medium and electronic equipment
WO2020186865A1 (en) * 2019-03-21 2020-09-24 北京京东尚科信息技术有限公司 Liquid commodity presentation method, terminal device, storage medium, and electronic device
CN111724225A (en) * 2019-03-21 2020-09-29 北京京东尚科信息技术有限公司 Liquid commodity display method, terminal device, storage medium and electronic device
WO2022033445A1 (en) * 2020-08-10 2022-02-17 北京字节跳动网络技术有限公司 Interactive dynamic fluid effect processing method and device , and electronic device

Also Published As

Publication number Publication date
CN104539795B (en) 2017-03-01

Similar Documents

Publication Publication Date Title
CN104539795A (en) Data flow display method and device and mobile terminal
CN105511631A (en) Gesture recognition method and device
CN105517112A (en) Method and device for displaying WiFi network information
CN105407036A (en) Red envelope sending method and device
CN107948667A (en) The method and apparatus that special display effect is added in live video
CN105204737A (en) Application program display method and device
CN106104602A (en) Card display packing and device
CN104166689A (en) Presentation method and device for electronic book
CN104850432A (en) Method and device for adjusting color
CN105159661A (en) Corner mark display method and apparatus for icon
CN104536817A (en) Computing method and device
CN104462418A (en) Page displaying method and device and electronic device
CN105117245A (en) Method and apparatus for uninstalling application program
CN104536660A (en) Interface displaying method and device
CN105487805A (en) Object operating method and device
CN104391667A (en) Item content display method and item content display device
CN105224171A (en) icon display method, device and terminal
CN105513137A (en) Three dimensional model and scene creating method and apparatus based on mobile intelligent terminal
CN104216672A (en) Display control method and display control device
CN104216525A (en) Method and device for mode control of camera application
CN105094594A (en) Operation item display method and apparatus
CN104536669A (en) Information displaying method and device
CN104320707A (en) Playback method and device of network video
CN104219714A (en) Flow control method and device of mobile router
CN106155703A (en) The display packing of emotional state and device

Legal Events

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