CN104539795B - The display packing of data traffic, device and mobile terminal - Google Patents

The display packing of data traffic, device and mobile terminal Download PDF

Info

Publication number
CN104539795B
CN104539795B CN201410831758.XA CN201410831758A CN104539795B CN 104539795 B CN104539795 B CN 104539795B CN 201410831758 A CN201410831758 A CN 201410831758A CN 104539795 B CN104539795 B CN 104539795B
Authority
CN
China
Prior art keywords
area
liquid particle
viewing area
liquid
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410831758.XA
Other languages
Chinese (zh)
Other versions
CN104539795A (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.)
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 disclosure is directed to a kind of display packing of data traffic, device and mobile terminal, belong to technical field of mobile terminals.Including:Obtain the first residual stream value and the first total flow value of current time;The first percentage ratio according to the first residual stream value and the first total flow value and the display area of specified viewing area, determine and specify in viewing area for indicating the first area of the residual flow of current time;When viewing area is specified in display, the first area in specified viewing area is rendered into the first color, the second area beyond first area is rendered into the second color.The disclosure passes through the display area of the first residual stream value, the first total flow value and specified viewing area of current time, after determining first area, by first area is rendered into the first color, second area beyond first area is rendered into the second color, can not only intuitively indicate the residual flow of current time by the size of first area, and make display data traffic more lively.

Description

The display packing of data traffic, device and mobile terminal
Technical field
It relates to technical field of mobile terminals, particularly to a kind of display packing of data traffic, device and movement Terminal.
Background technology
At present, user is by being frequently necessary to during mobile terminal Internet access use data traffic, when data traffic use value exceedes During the flow restriction of flow package of user's customization, due to the flow money in the flow rate specific discharge set meal beyond flow restriction Take expensive a lot, thus being easily caused the data traffic rate of mobile terminal costly, therefore, user often compares focused data The remaining situation of flow, exceeds flow restriction with the usage amount avoiding data traffic.
In order to meet the use demand of user, correlation technique is often through certain traffic monitoring software real-time monitoring flow Service condition.For example, traffic monitoring software is after preset duration counts a flow use value, according to total flow value and every Flow use value in individual preset duration, determines residual stream value, thus showing residual stream value in the form of numerical value.
Content of the invention
The disclosure provides a kind of display packing of data traffic, device and mobile terminal.
According to the embodiment of the present disclosure in a first aspect, providing a kind of display packing of data traffic, methods described includes:
Obtain the first residual stream value and the first total flow value of current time;
According to the display area of the first percentage ratio and specified viewing area, determine the first area specifying viewing area, institute State the ratio that the first percentage ratio is described first residual stream value and described first total flow value, described first area is used for indicating The residual flow of current time;
When showing described specified viewing area, the described first area in described specified viewing area is rendered into first Color, the second area beyond described first area is rendered into the second color.
In conjunction with a first aspect, in the first possible implementation of first aspect, described show described specify aobvious When showing region, the described first area in described specified viewing area is rendered into the first color, beyond described first area Second area be rendered into the second color after, also include:
After detecting and rocking operation, determine that each liquid particle in described specified viewing area produces because being shaken Acceleration;
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, adopt Calculate the speed of each liquid particle described with predetermined fluid simulation algorithm;
The primary importance being located before being rocked according to the speed of each liquid particle described, each liquid particle described, determines The second position after preset duration for each liquid particle described;
According to the second position of each liquid particle described, determine and rock molecular 3rd region of rear all liq grain, Described 3rd zone rendering is described first color.
In conjunction with the first possible implementation of first aspect, in the possible implementation of the second of first aspect In, the viscosity coefficient between described acceleration according to each liquid particle, fluid density, liquid particle and liquid pressure, adopt Calculate the speed of each liquid particle described with predetermined fluid simulation algorithm, including:
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, adopt Calculate the speed of each liquid particle described with navier stokes equations;
The primary importance at place before the speed of each liquid particle, each liquid particle described rock described in described basis, Determine the described second position after preset duration for each liquid particle, including:
The primary importance that speed according to each liquid particle described and each liquid particle described are located before rocking, passes through Forward direction euler algorithm determines the described second position after preset duration for each liquid particle.
In conjunction with a first aspect, in the third possible implementation of first aspect, described show described specify aobvious When showing region, the described first area in described specified viewing area is rendered into the first color, beyond described first area Second area be rendered into the second color after, also include:
After SIM (Subscriber Identity Module, client identification module) card handover operation is detected, obtain Second total flow value of the SIM after switching and the second residual stream value;
According to the display area of the second percentage ratio and described specified viewing area, determine the 4th of described specified viewing area the Region, described second percentage ratio is the ratio of described second residual stream value and described second total flow value, described 4th region For indicating the residual flow of the SIM current time after described switching;
The liquid controlling described specified viewing area is by described first area gradual change to described 4th region;
When showing described specified viewing area, the 4th zone rendering in described specified viewing area is described first Color, the 5th zone rendering beyond described 4th region is described second color.
In conjunction with any one the possible implementation in the third possible implementation of first aspect to first aspect, In the 4th kind of possible implementation of first aspect, during the described described specified viewing area in display, will described specify aobvious Show that the described first area in region is rendered into the first color, the second area beyond described first area is rendered into the second face After color, also include:
Show described first residual stream value, used flow value and flow shape with numeric form in described specified viewing area State information, whether described flow status information is used for identifying the ratio of described first residual stream value and described first total flow value More than predetermined threshold value.
According to the second aspect of the embodiment of the present disclosure, provide a kind of display device of data traffic, described device includes:
First acquisition module, for obtaining the first residual stream value and the first total flow value of current time;
First determining module, for the display area according to the first percentage ratio and specified viewing area, determines and specifies display The first area in region, described first percentage ratio is the ratio of described first residual stream value and described first total flow value, institute State first area for indicating the residual flow of current time;
First rendering module, for when showing described specified viewing area, described in described specified viewing area First area is rendered into the first color, and the second area beyond described first area is rendered into the second color.
In conjunction with second aspect, in the first possible implementation of second aspect, described device also includes:
Second determining module, for, after detecting and rocking operation, determining each liquid grain in described specified viewing area The acceleration that son produces because being shaken;
Computing module, for according to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle And liquid pressure, the speed of each liquid particle described is calculated using predetermined fluid simulation algorithm;
3rd determining module, for rocking front institute according to the speed of each liquid particle described, each liquid particle described Primary importance, determine the described second position after preset duration for each liquid particle;
4th determining module, for the second position according to each liquid particle described, determines and rocks rear all liq grain Molecular 3rd region;
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 possible implementation of the second of second aspect In, described computing module, for according to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle And liquid pressure, the speed of each liquid particle described is calculated using navier stokes equations;
Described 3rd determining module, rocks for the speed according to each liquid particle described and each liquid particle described The primary importance at front place, determines the described second position after preset duration for each liquid particle by front to euler algorithm.
In conjunction with second aspect, in the third possible implementation of second aspect, described device also includes:
Second acquisition module, second for, after SIM handover operation is detected, obtaining the SIM after switching is always flowed Value and the second residual stream value;
5th determining module, for the display area according to the second percentage ratio and described specified viewing area, determines described 4th region of specified viewing area, described second percentage ratio is described second residual stream value and described second total flow value Ratio, described 4th region is for indicating the residual flow of the SIM current time after described switching;
Control module, for controlling the liquid of described specified viewing area by described first area gradual change to described 4th area Domain;
3rd rendering module, for when showing described specified viewing area, by the 4th in described specified viewing area Zone rendering is described first color, and the 5th zone rendering beyond described 4th region is described second color.
In conjunction with any one the possible implementation in the third possible implementation of second aspect to second aspect, In the 4th kind of possible implementation of second aspect, described device also includes:
Display module, for being shown described first residual stream value, having been used with numeric form in described specified viewing area Flow value and flow status information, described flow status information is used for identifying described first residual stream value and always flows with described first Whether the ratio of value is more than predetermined threshold value.
According to the third aspect of the embodiment of the present disclosure, provide a kind of mobile terminal, described mobile terminal includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtain the first residual stream value and the first total flow value of current time;
According to the display area of the first percentage ratio and specified viewing area, determine the first area specifying viewing area, institute State the ratio that the first percentage ratio is described first residual stream value and described first total flow value, described first area is used for indicating The residual flow of current time;
When showing described specified viewing area, the described first area in described specified viewing area is rendered into first Color, the second area beyond described first area is rendered into the second color.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect:
Display surface by the first residual stream value, the first total flow value and specified viewing area according to current time Long-pending, after determining first area, by first area is rendered into the first color, the second area beyond first area is rendered into Second color, can not only intuitively indicate the residual flow of current time by the size of first area, and by first Zone rendering be the first color, with realize data traffic display when, the data traffic of display can be made more lively.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement meeting the present invention Example, and be used for explaining the principle of the present invention together with description.
Fig. 1 is a kind of flow chart of the display packing of data traffic according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of the display packing of data traffic according to an exemplary embodiment.
Fig. 3 is a kind of terminal interface schematic diagram of the video data flow according to an exemplary embodiment.
Fig. 4 is a kind of terminal interface schematic diagram of the video data flow according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of the display device of data traffic according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of the display device of data traffic according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of the display device of data traffic according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of the display device of data traffic according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of the mobile terminal according to an exemplary embodiment.
Specific embodiment
Here will in detail exemplary embodiment be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the present invention.On the contrary, they be only with such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, the present invention.
In order to realize vivid ground video data flow, the disclosure is implemented to provide a kind of display side of data traffic Method.Fig. 1 is a kind of flow chart of the display packing of data traffic according to an exemplary embodiment.As shown in figure 1, data The display packing of flow is used in mobile terminal, comprises 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, the display area according to the first percentage ratio and specified viewing area, determines and specifies viewing area First area, wherein, the first percentage ratio is the first residual stream value and the ratio of the first total flow value, and first area is used for referring to Show the residual flow of current time.
In step s 103, when viewing area is specified in display, the first area in specified viewing area is rendered into the One color, the second area beyond first area is rendered into the second color.
The method that the embodiment of the present disclosure provides, by according to the first residual stream value of current time, the first total flow value And the display area of specified viewing area, after determining first area, by first area is rendered into the first color, by the firstth area Second area beyond domain is rendered into the second color, can not only intuitively indicate current time by the size of first area Residual flow, and first area is rendered into the first color, with realize data traffic display when, the number of display can be made More lively according to flow-rate ratio.
In another embodiment, when viewing area is specified in display, the first area in specified viewing area is rendered For the first color, after the second area beyond first area is rendered into the second color, also include:
After detecting and rocking operation, determine and specify the acceleration that in viewing area, each liquid particle produces because being shaken Degree;
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, adopt Calculate the speed of each liquid particle with predetermined fluid simulation algorithm;
The primary importance being located before being rocked according to the speed of each liquid particle, each liquid particle, determines each liquid The second position after preset duration for the particle;
According to the second position of each liquid particle, determine and rock molecular 3rd region of rear all liq grain, by the Three zone rendering are the first color.
In another embodiment, according to the viscosity between the acceleration of each liquid particle, fluid density, liquid particle Coefficient and liquid pressure, calculate the speed of each liquid particle using predetermined fluid simulation algorithm, including:
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, adopt Calculate the speed of each liquid particle with navier stokes equations;
The primary importance being located before being rocked according to the speed of each liquid particle, each liquid particle, determines each liquid The second position after preset duration for the particle, including:
The primary importance that speed according to each liquid particle and each liquid particle are located before rocking, by front to Euler Algorithm determines the second position after preset duration for each liquid particle.
In another embodiment, when viewing area is specified in display, the first area in specified viewing area is rendered For the first color, after the second area beyond first area is rendered into the second color, also include:
After SIM handover operation is detected, obtain the second total flow value of SIM after switching and the second residual flow Value;
According to the display area of the second percentage ratio and specified viewing area, determine the 4th region specifying viewing area, its In, the second percentage ratio is the second residual stream value and the ratio of the second total flow value, and the 4th region is used for the SIM after instruction switching The residual flow of card current time;
Control the liquid specifying viewing area by first area gradual change to the 4th region;
When viewing area is specified in display, the 4th zone rendering in specified viewing area is the first color, by the 4th The 5th zone rendering beyond region is the second color.
In another embodiment, when viewing area is specified in display, the first area in specified viewing area is rendered For the first color, after the second area beyond first area is rendered into the second color, also include:
Show the first residual stream value, used flow value and flow status information with numeric form in specified viewing area, Wherein, flow status information is used for mark the first residual stream value and whether the ratio of the first total flow value is more than predetermined threshold value.
Above-mentioned all optional technical schemes, can be using the alternative embodiment arbitrarily combining to form the present invention, and here is no longer Repeat one by one.
In conjunction with the content of embodiment corresponding to Fig. 1, Fig. 2 is a kind of data traffic according to an exemplary embodiment The flow chart of display packing.As shown in Fig. 2 the display packing of data traffic is used in mobile terminal, comprise the following steps:
In step s 201, the first residual stream value and the first total flow value of current time are obtained.
With regard to obtaining the first residual stream value of current time and the mode of the first total flow value, can there are many kinds.Example As mobile terminal can inquire about total flow value and residual stream value to operator.Wherein, mobile terminal is total to operator's inquiry When flow value and residual stream value, can to operator's transmitted traffic short message enquiry, and pass through to receive the flow that operator is replied Query Result is realized.Wherein, total flow value and residual stream value would generally be included in this flow Query Result.Therefore, mobile whole End, after receiving the flow Query Result that operator returns, can parse this flow Query Result, obtain total flow value and residue Flow value, using this total flow valuve and residual stream value as the first total flow value getting and the first residual stream value.
In addition, mobile terminal can be with the flow service condition of real-time statistics user, for example, mobile terminal is little every one When or each one day statistics user flow usage amount.On this basis, can be by all flow usage amounts counting on It is overlapped, obtains using flow, and deduct with flow with the first total flow value getting, thus obtaining current time First residual stream value.
Additionally, operator understands the service condition of its data traffic and remaining situation for the ease of user it will usually timing Data traffic messages are sent to mobile terminal with short message mode, such as operator sends data traffic to mobile terminal on every Mondays and disappears Breath, this data traffic messages includes total flow value and the residual stream value of customer flow set meal, therefore, is obtaining current time The first residual stream value and can follow the steps below during the first total flow value:Call short message port, look into from short message port Look for the data traffic messages that operator sends, and obtain the first total flow value and the first residual stream by parsing data traffic messages Value.
In step S202, according to the display area of the first percentage ratio and specified viewing area, determine and specify viewing area First area, wherein, the first percentage ratio is the first residual stream value and the ratio of the first total flow value, and first area is used for referring to Show the residual flow of current time.
The embodiment of the present disclosure in video data flow, by pre-setting specified viewing area on mobile terminals, and Contain the container of liquid by specifying viewing area simulation, with by the liquid amount instruction current time in specified viewing area Residual flow.For example, the display area that this specified viewing area simulation contains during full liquid is corresponding with the first total flow value;Counting It is first area according to the residual liquid quantity occupied area that the simulation of during the use of flow it is intended that viewing area contains, with number According to the use of flow, the area of first area constantly reduces, from visual effect for it is intended that in viewing area simulation contain Amount of liquid constantly reduces so that user has intuitively cognition to the service condition of data traffic.On this basis, can be by being somebody's turn to do First area indicates the residual flow of current time, and the area of this first area is corresponding with the first residual stream value.
With regard to specifying the shape of viewing area, the embodiment of the present disclosure is not especially limited, when implementing, this specified viewing area The shape in domain can be rectangle, square, circle or hourglass shape etc..When specified viewing area be rectangle, square or circular when, The display area of specified viewing area corresponds to the first total flow value;The bottom section of specified viewing area is first area, and this One region is corresponding with the first residual stream value;Second area in addition to first area for the specified viewing area with flow value pair Should.When specified viewing area is hourglass shape, the subregion in the lower hopper region of hourglass is first area, for indicating The residual flow of current time;In hourglass, the second area in addition to first area can serve to indicate that and uses flow.
In order to determine the size of first area, so that current residual flow is indicated by first area, can be according to first First percentage of residual stream value and the first total flow value when specifies the display area of viewing area, determines and specifies viewing area In first area.
For example, if specifying viewing area to be 2cm (centimetre) * 3cm=6cm2The rectangular area of (square centimeter), first is total Flow value is 60M (million), and the first residual stream value is 12M, then the first percentage ratio is 12/60*100%=20%, first area For 6cm2* 20%=1.2cm2.Further, since in the container by specifying viewing area simulation splendid attire liquid, liquid is due to weight It will usually be contained in the bottom section of specified viewing area, that is, length keeps constant for 2cm for the effect of power, and 1.2/2= 0.6cm, therefore, first area is 2cm for length, the highly viewing area for 0.6cm.
As shown in figure 3, it illustrates terminal interface schematic diagram during a kind of video data flow.In figure 3, shown in thick line Rectangular area be specify viewing area, first area is the shadow region as shown in (a) figure in Fig. 3.Certainly, in Fig. 3 (a) The length of specified viewing area shown in figure and height are only used for being illustrated, and do not constitute the restriction to the embodiment of the present disclosure.
In step S203, when viewing area is specified in display, the first area in specified viewing area is rendered into the One color, the second area beyond first area is rendered into the second color.
Specify the opportunity of viewing area with regard to display, can be when stream of user queries amount is detected, in traffic management circle Face shows;Can also be to show specified viewing area always in the designated area of mobile terminal.For example, show electricity in mobile terminal Region near spirogram mark shows specified viewing area always, so that user can grasp the service condition of flow in real time.
Further, after determining first area, in order to indicate the residual flow of current time by first area, Need the second area in addition to first area in first area and specified viewing area is differently shown, so that display Residual flow more directly perceived.Therefore, when viewing area is specified come video data flow by display, by specified viewing area In first area be rendered into the first color, the second area beyond first area is rendered into the second color.Still as Fig. 3 institute Show, in (a) figure and Fig. 3 in Fig. 3, (b) in figure specifies the shadow region in viewing area is first area it is intended that in viewing area White space in addition to this shadow region is second area.
In conjunction with the citing in above-mentioned steps S202, so that the bottom straight line in this rectangular area to be made the former of coordinate for height Point, can be by a length of 2cm, and the first area that a height of 0.6cm is constituted is rendered into the first color;By a length of 2cm, a height of 0.6cm with On 2.4cm zone rendering be the second color.
With regard to the concrete color of the first color and the second color, the embodiment of the present disclosure is not construed as limiting it is ensured that making display interface Specified viewing area can distinguish first area and second area.For example, the first color can be white, the second color Can be blueness;First color is yellow, and the second color is redness etc..Wherein, in order that the display of viewing area is specified in display Interface better appearance, can make the background colour that the second color keep is this display interface, and first area is rendered into the first face Color.Wherein, when second area remains the background colour of this display interface, when executing Rendering operations, can be only by the firstth area Domain is rendered into the first color, and keep second area color constant.
Wherein, the first area in specified viewing area is being rendered into the first color, second area is being rendered into second During color, can be realized by OPENGL (open graphic package interface).Further, since in the disclosed embodiments it is intended that Viewing area is used for the container that simulation contains liquid, in order that the specified viewing area of display can characterize the spy of liquid well Property, make first area smoother with the intersection of second area when rendering.Therefore, when carrying out Rendering operations, need The intersection of first area and second area is smoothed.Wherein, in the boundary to first area and second area When place is smoothed, can be realized by MC (Marching Cubes, marching cube) algorithm.
During the continuing on of data traffic, the display area of first area is less and less, until data traffic makes After finishing, the display area of first area is 0.Wherein, during first area is ever-reduced, can be aobvious by specifying Show that the dynamic form reducing of the liquid simulating splendid attire in region represents the reduction process of flow.Still as shown in figure 3, (a) figure in Fig. 3 To Fig. 3, the change procedure of (b) figure represents the ever-reduced process of flow.By (a) figure in Fig. 3 to (b) Tu Ke get in Fig. 3, During the use of flow, the area of first area constantly reduces.
Further, since specifying the data flow that the data traffic that viewing area shows is the currently used SIM of mobile terminal Amount, and mobile terminal often may switch SIM due to a variety of causes, for example, changes SIM or by current SIM card mould Formula switches to another SIM pattern.After switching SIM, due to the total flow value of different SIM card and residual stream value often And differ, therefore, after switching SIM, will be changed by the data traffic specifying viewing area to show.Wherein, When the data traffic of the SIM after to switching shows, can be realized by following step S2031 to step S2034:
In step S2031, after SIM handover operation is detected, obtain the second total flow value of the SIM after switching And the second residual stream value.
Wherein, if mobile terminal is supported to insert a SIM card, SIM handover operation is to be replaced by separately by current SIM card The operation of one SIM.Now, when detecting SIM handover operation, can be by the SIM in test card slot whether by current SIM is replaced by another SIM card to realize.If the card in draw-in groove is replaced by another SIM card by current SIM card, really Regular inspection measures SIM handover operation.Wherein, whether the SIM in test card slot is replaced by another SIM by current SIM card During card, can be realized by detecting whether the corresponding number of SIM changes.If mobile terminal is supported to insert two SIM cards, The operation that then SIM handover operation is is another SIM pattern by current SIM card pattern switching.Now, cut in detection SIM When changing operation, can be by detecting whether to have carried out SIM mode switching operation.Cut if detecting and having carried out SIM pattern Change operation it is determined that SIM handover operation is detected.
When the second total flow value of the SIM after obtaining switching and the second residual stream value, may refer to above-mentioned acquisition Mode when the first total flow value and the first residual stream value, will not be described here.
In step S2032, according to the display area of the second percentage ratio and specified viewing area, determine and specify viewing area The 4th region, wherein, the second percentage ratio is the second residual stream value and the ratio of the second total flow value, and the 4th region is used for referring to Show the residual flow of the SIM current time after switching.
The principle of this step is consistent with the principle of above-mentioned steps S202, specifically can be found in the content in above-mentioned steps S202, Will not be described here.
In step S2033, control the liquid specifying viewing area by first area gradual change to the 4th region.
Wherein, when controlling the liquid specifying viewing area by first area gradual change to four regions, when by step When the area of the first area that S202 determines is bigger than the four-range area determining by step S2032, first can be controlled In region, the liquid level of simulation splendid attire liquid is gradually reduced, until specifying the liquid that viewing area simulation contains to account for specified viewing area Area be four-range area;When the area of first area is less than four-range area, first area can be controlled The liquid level that middle simulation contains liquid is gradually increasing, until specifying the liquid that viewing area simulation contains to account for the face of specified viewing area Amass as four-range area.
In step S2034, when viewing area is specified in display, the 4th zone rendering in specified viewing area is the One color, the 5th zone rendering beyond the 4th region is the second color.
The principle of this step is consistent with the principle of above-mentioned steps S203, specifically can be found in the content in above-mentioned steps S203, Will not be described here.
In conjunction with Fig. 3, above-mentioned steps S201 to step S203 keep video data flow during vertical state for mobile terminal Specific implementation.However, mobile terminal can not keep vertical state because of a variety of causes, for example, work as mobile terminal After being shaken, itself it may happen that tilt etc..Due to specifying viewing area to be used for the container that simulation contains liquid, work as mobile terminal It is not during vertical state it is intended that the liquid in viewing area can flow.Aobvious in order to determine that mobile terminal is specified after being shaken Show the liquid condition in region, following optional steps S204 can be continued executing with to step S207.
In step S204, after detecting and rocking operation, determine and specify in viewing area each liquid particle because being shaken The acceleration moving and producing.
Wherein it is intended that the liquid simulating splendid attire in viewing area is made up of each liquid particle, each liquid particle The variation of position all can occur because being shaken.Therefore, when determining the state after specifying viewing area to be shaken, each liquid The state of particle all it is also contemplated that.State after each liquid particle is shaken is place after each liquid particle is shaken Position.When determining the position being located after each liquid particle is shaken, can first determine each liquid particle because being shaken The acceleration producing.
When determining the acceleration that each liquid particle produces because being shaken, can be by built-in adding in mobile terminal Velocity sensor is realized.Further, since each liquid particle is also affected by gravity, therefore, the acceleration of each liquid particle Degree accelerates to be outside one's consideration except the external force of rocking including being subject to because being shaken, and also includes 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, the speed of each liquid particle is calculated using predetermined fluid simulation algorithm.
During liquid flowing, the factor such as the viscosity coefficient between the density of liquid, liquid particle and liquid pressure, it will impact During liquid flowing, the speed of each liquid particle, therefore, it can acceleration according to each liquid particle, fluid density, liquid Viscosity coefficient between particle and liquid pressure, calculate the speed of each liquid particle using predetermined fluid simulation algorithm.
With regard to the content of predetermined fluid simulation algorithm, the embodiment of the present disclosure is not especially limited.When implementing, predetermined fluid Simulation algorithm includes but is not limited to navier stokes equations.Further, since liquid is incompressible form, therefore, preset Fluid emulation algorithm can be incompressible navier stokes equations further.
Wherein, incompressible navier stokes equations are including but not limited to following form:
Formula (1) is the equation of momentum, and formula (2) is mass equation or is incompressibility.In formula,Represent each liquid The speed of body particle;ρ is fluid density;It is the acceleration of each liquid particle;V is the viscosity coefficient between liquid particle;p Represent liquid pressure;And represent gradient and divergence operator respectively;Represent Laplace operator.
Incompressible navier stokes equations in above-mentioned formula (1) and formula (2) are analyzed understand, according to Viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, can adopt Na Weisi The speed of lentor each liquid particle of Equation for Calculating.Wherein, the acceleration of each liquid particle can pass through above-mentioned steps S204 obtains, and the viscosity coefficient between fluid density, liquid particle and liquid pressure are when carrying out the display of data traffic, permissible It is set as some numerical value previously according to experience or experimental result.
In step S206, the primary importance that is located before being rocked according to the speed of each liquid particle, each liquid particle, Determine the second position after preset duration for each liquid particle.
Wherein, preset duration is the time step of the change in location for counting each liquid particle set in advance, that is, Count once the position of each liquid particle every preset duration.
The speed that the primary importance at place, each liquid particle produce because rocking before getting each liquid particle and rocking After degree and preset duration, just can determine the second position after preset duration for each liquid particle.For example, according to each liquid The primary importance that the speed of body particle, each liquid particle are located before rocking, determines each liquid particle after preset duration During the second position, including but not limited to:Speed according to each liquid particle and each liquid particle be located before rocking first Position, determines the second position after preset duration for each liquid particle by front to euler algorithm.
Wherein, forward direction euler algorithm formula is described as follows:
xn+1=xn+δtun
yn+1=yn+δtyn(3)
zn+1=zn+δtzn
In formula (3), xn+1、yn+1And zn+1Represent each liquid particle second position in three dimensions respectively, xn、ynAnd znRepresent each liquid particle primary importance in three dimensions respectively, δ t represents preset duration.
Wherein, in the primary importance determining each liquid particle and the second position, coordinate system can be preestablished, and lead to Cross coordinate under this coordinate system for each liquid particle to realize.
In step S207, according to the second position of each liquid particle, it is molecular that rear all liq grain is rocked in determination 3rd region, the 3rd zone rendering is the first color.
Wherein, the second position of each liquid particle can form the 3rd region.Shaken to identify each liquid particle Position after rolling, the 3rd zone rendering is the first color.
Certainly, this first color can also be different colors from the first color in step S203, the embodiment of the present disclosure This is not construed as limiting.As shown in figure 4, it illustrates a kind of terminal interface schematic diagram of video data flow.By (a) figure in Fig. 4 To Fig. 4, the process shown in (b) figure is mobile terminal by vertical state to heeling condition, the change procedure of first area.By (b) Tu Ke get in Fig. 4, after mobile terminal is inclined by, the effect of current produced by liquid level mimetic surface of first area analog information Really.
Further, in order that the data traffic content of flow indication interface display is abundanter, can also show specifying Show that region is shown the first residual stream value, used flow value and flow status information with numeric form.Wherein, flow status information Whether the ratio for identifying the first residual stream value and the first total flow value is more than predetermined threshold value, thus further illustrate currently remaining Whether residual current amount is sufficient.For example, when the ratio of the first residual stream value and the first total flow value is not more than predetermined threshold value, determine Data traffic is inadequate;When the ratio of the first residual stream value and the first total flow value is more than predetermined threshold value, determine data flow Amount is sufficient.With regard to the concrete numerical value of predetermined threshold value, the embodiment of the present disclosure is not construed as limiting.For example, predetermined threshold value can be 60%, Can be 70% etc..
During by showing flow status information, it is possible to use family can be visually known whether its current data traffic fills Foot.
Wherein, show the first residual stream value, used flow value and flow status with numeric form in specified viewing area The terminal interface of information can be still as shown in Figure 3.By (a) Tu Ke get in Fig. 3, the first residual stream value of current time is 12M, It is 48M with flow value, and because the first residual stream value is 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, so that user is permissible Choose whether to continue to buy flow, whether change flow package etc. according to flow package information.
The method that the embodiment of the present disclosure provides, by according to the first residual stream value of current time, the first total flow value And the display area of specified viewing area, after determining first area, by first area is rendered into the first color, by the firstth area Second area beyond domain is rendered into the second color, can not only intuitively indicate current time by the size of first area Residual flow, and first area is rendered into the first color, with realize data traffic display when, the number of display can be made More lively according to flow-rate ratio.
Fig. 5 is a kind of block diagram of the display device of data traffic according to an exemplary embodiment, this data traffic Display device be used for executing the display packing of the data traffic that embodiment corresponding to above-mentioned Fig. 1 or Fig. 2 provides.Referring to Fig. 5, should The display device of data traffic includes the first acquisition module 501, the first determining module 502 and the first rendering module 503.Wherein:
This first acquisition module 501 is configured to obtain the first residual stream value and the first total flow value of current time;
This first determining module 502 is configured to the display area according to the first percentage ratio and specified viewing area, determines The first area of specified viewing area, wherein, the first percentage ratio is the first residual stream value and the ratio of the first total flow value, the One region is used for indicating the residual flow of current time;
This first rendering module 503 is configured to when viewing area is specified in display, by first in specified viewing area Zone rendering is the first color, and the second area beyond first area is rendered into the second color.
The device that the embodiment of the present disclosure provides, by according to the first residual stream value of current time, the first total flow value And the display area of specified viewing area, after determining first area, by first area is rendered into the first color, by the firstth area Second area beyond domain is rendered into the second color, can not only intuitively indicate current time by the size of first area Residual flow, and first area is rendered into the first color, with realize data traffic display when, the number of display can be made More lively according to flow-rate ratio.
In another embodiment, referring to Fig. 6, the display device of data traffic also includes the second determining module 504, calculates Module 505, the 3rd determining module 506, the 4th determining module 507 and the second rendering module 508.Wherein:
This second determining module 504 is configured to, after detecting and rocking operation, determine and specify each liquid in viewing area The acceleration that body particle produces because being shaken;
This computing module 505 be configured to acceleration according to each liquid particle, fluid density, between liquid particle Viscosity coefficient and liquid pressure, calculate the speed of each liquid particle using predetermined fluid simulation algorithm;
3rd determining module 506 is configured to speed according to each liquid particle, each liquid particle rocks front institute Primary importance, determine the second position after preset duration for each liquid particle;
4th determining module 507 is configured to the second position according to each liquid particle, determines all liquid after rocking Molecular 3rd region of body grain;
It is the first color that this second rendering module 508 is configured to the 3rd zone rendering.
In another embodiment, to be configured to acceleration according to each liquid particle, liquid close for this computing module 505 Viscosity coefficient between degree, liquid particle and liquid pressure, calculate the speed of each liquid particle using navier stokes equations Degree;
3rd determining module 506 is configured to speed according to each liquid particle and each liquid particle rocks front institute Primary importance, determine the second position after preset duration for each liquid particle by front to euler algorithm.
In another embodiment, referring to Fig. 7, the display device of data traffic also includes the second acquisition module the 509, the 5th Determining module 510, control module 511 and the 3rd rendering module 512.Wherein:
This second acquisition module 509 is configured to, after SIM handover operation is detected, obtain the SIM after switching Second total flow value and the second residual stream value;
5th determining module 510 is configured to the display area according to the second percentage ratio and specified viewing area, determines 4th region of specified viewing area, wherein, the second percentage ratio is the second residual stream value and the ratio of the second total flow value, the Four regions are used for the residual flow of the SIM current time after instruction switching;
This control module 511 is configured to control the liquid of specified viewing area by first area gradual change to the 4th region;
3rd rendering module 512 is configured to when viewing area is specified in display, by the 4th in specified viewing area Zone rendering is the first color, and the 5th zone rendering beyond the 4th region is the second color.
In another embodiment, referring to Fig. 8, the display device of data traffic also includes display module 513.Wherein:
This display module 513 is configured to be shown the first residual stream value, used with numeric form in specified viewing area Flow value and flow status information, wherein, whether flow status information is used for identifying flow sufficient.
Above-mentioned all optional technical schemes, can be using the alternative embodiment arbitrarily combining to form the present invention, and here is no longer Repeat one by one.
With regard to the device in above-described embodiment, wherein the concrete mode of modules execution operation is in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 9 is a kind of block diagram of the mobile terminal 900 according to an exemplary embodiment, and this mobile terminal can be used for Execute the display packing of the data traffic that embodiment corresponding to above-mentioned Fig. 1 or Fig. 2 provides.For example, mobile terminal 900 can be moved Mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, armarium, body-building sets Standby, personal digital assistant etc..
With reference to Fig. 9, mobile terminal 900 can include following one or more assemblies:Process assembly 902, memorizer 904, Power supply module 906, multimedia groupware 908, audio-frequency assembly 910, I/O (Input/Output, input/output) interface 912, sensing Device assembly 914, and communication component 916.
Process assembly 902 generally controls the integrated operation of mobile terminal 900, such as with display, call, and data is led to The associated operation of letter, camera operation and record operation.Process assembly 902 can include one or more processors 920 to hold Row instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 902 can include one or more moulds Block, is easy to the interaction between process assembly 902 and other assembly.For example, process assembly 902 can include multi-media module, with Facilitate the interaction between multimedia groupware 908 and process assembly 902.
Memorizer 904 is configured to store various types of data to support the operation in mobile terminal 900.These data Example include on mobile terminal 900 operation any application program or method instruction, contact data, telephone directory Data, message, picture, video etc..Memorizer 904 can by any kind of volatibility or non-volatile memory device or it Combination realize, such as SRAM (Static Random Access Memory, static RAM), EEPROM (Electrically-Erasable Programmable Read-Only Memory, the read-only storage of electrically erasable Device), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), (Read-Only Memory read-only deposits ROM Reservoir), magnetic memory, flash memory, disk or CD.
Power supply module 906 provides electric power for the various assemblies of mobile terminal 900.Power supply module 906 can include power supply pipe Reason system, one or more power supplys, and other generate, manage and distribute, with for mobile terminal 900, the assembly that electric power is associated.
Multimedia groupware 908 includes the screen of one output interface of offer between described mobile terminal 900 and user. In certain embodiments, screen can include LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touch panel).If screen includes touch panel, screen may be implemented as touch screen, to receive from user's Input signal.Touch panel includes one or more touch sensors with the gesture on sensing touch, slip and touch panel.Touch Touch sensor can not only sensing touch or sliding action border, but also detection and touch or related the continuing of slide Time and pressure.In certain embodiments, multimedia groupware 908 includes a front-facing camera and/or post-positioned pick-up head.Work as shifting Dynamic terminal 900 is in operator scheme, and during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can connect Multi-medium data outside receiving.Each front-facing camera and post-positioned pick-up head can be optical lens system or the tools of a fixation There is focusing and optical zoom capabilities.
Audio-frequency assembly 910 is configured to output and/or input audio signal.For example, audio-frequency assembly 910 includes a MIC (Microphone, mike), when mobile terminal 900 is in operator scheme, such as call model, logging mode and speech recognition mould During formula, mike is configured to receive external audio signal.The audio signal being received can be further stored in memorizer 904 or send via communication component 916.In certain embodiments, audio-frequency assembly 910 also includes a speaker, for exporting Audio signal.
, for providing interface between process assembly 902 and peripheral interface module, above-mentioned peripheral interface module can for I/O interface 912 To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 914 includes one or more sensors, for providing the state of various aspects for mobile terminal 900 Assessment.For example, sensor cluster 914 can detect/the closed mode of opening of mobile terminal 900, the relative localization of assembly, example If assembly is the display of mobile terminal 900 and keypad, sensor cluster 914 can also detect mobile terminal 900 or mobile The position change of 900 1 assemblies of terminal, user is presence or absence of with what mobile terminal 900 contacted, mobile terminal 900 orientation Or the temperature change of acceleration/deceleration and mobile terminal 900.Sensor cluster 914 can include proximity transducer, is configured to The presence of object near the detection when not having any physical contact.Sensor cluster 914 can also include optical sensor, such 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, should Sensor cluster 914 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature biography Sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between mobile terminal 900 and miscellaneous equipment. Mobile terminal 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Show at one In example property embodiment, communication component 916 receives broadcast singal or the broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, described communication component 916 also includes NFC (Near Field Communication, near-field communication) module, to promote junction service.For example, RFID (Radio can be based in NFC module Frequency Identification, RF identification) technology, IrDA (Infra-red Data Association, infrared number According to association) technology, UWB (Ultra Wideband, ultra broadband) technology, BT (Bluetooth, bluetooth) technology and other technologies Realize.
In the exemplary embodiment, mobile terminal 900 can be by one or more ASIC (Application Specific Integrated Circuit, application specific integrated circuit), (Digital signal Processor, at digital signal for DSP Reason device), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, PLD), FPGA (Field Programmable Gate Array, field programmable gate Array), controller, microcontroller, microprocessor or other electronic components realize, real corresponding to above-mentioned Fig. 1 or Fig. 2 for executing The display packing of the data traffic of example offer is provided.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided As included the memorizer 904 instructing, above-mentioned instruction can be executed by the processor 920 of mobile terminal 900 to complete above-mentioned Fig. 1 or figure The display packing of the data traffic that embodiment corresponding to 2 provides.For example, described non-transitorycomputer readable storage medium is permissible It is 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-transitorycomputer readable storage medium, when the instruction in described storage medium is by the process of mobile terminal So that mobile terminal is able to carry out a kind of display packing of data traffic during device execution, methods described includes:
Obtain the first residual stream value and the first total flow value of current time;
According to the display area of the first percentage ratio and specified viewing area, determine the first area specifying viewing area, its In, the first percentage ratio is the first residual stream value and the ratio of the first total flow value, and first area is used for indicating current time Residual flow;
When viewing area is specified in display, the first area in specified viewing area is rendered into the first color, by first Second area beyond region is rendered into the second color.
Assume above-mentioned for the first possible embodiment, then provide based on the first possible embodiment The possible embodiment of second in, also comprise the instruction for executing following operation in the memorizer of mobile terminal:Aobvious When showing specified viewing area, the first area in specified viewing area is rendered into the first color, by beyond first area After two zone rendering are the second color, also include:
After detecting and rocking operation, determine and specify the acceleration that in viewing area, each liquid particle produces because being shaken Degree;
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, adopt Calculate the speed of each liquid particle with predetermined fluid simulation algorithm;
The primary importance being located before being rocked according to the speed of each liquid particle, each liquid particle, determines each liquid The second position after preset duration for the particle;
According to the second position of each liquid particle, determine and rock molecular 3rd region of rear all liq grain, by the Three zone rendering are the first color.
In the third the possible implementation providing based on the possible implementation of second, mobile terminal Memorizer in also comprise for executing following operation instruction:According to the acceleration of each liquid particle, fluid density, liquid Viscosity coefficient between particle and liquid pressure, calculate the speed of each liquid particle using predetermined fluid simulation algorithm, including:
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, adopt Calculate the speed of each liquid particle with navier stokes equations;
The primary importance being located before being rocked according to the speed of each liquid particle, each liquid particle, determines each liquid The second position after preset duration for the particle, including:
The primary importance that speed according to each liquid particle and each liquid particle are located before rocking, by front to Euler Algorithm determines the second position after preset duration for each liquid particle.
In the 4th kind of possible implementation providing based on the first possible implementation, mobile terminal Memorizer in also comprise for executing following operation instruction:When viewing area is specified in display, by specified viewing area First area be rendered into the first color, after the second area beyond first area is rendered into the second color, also include:
After SIM handover operation is detected, obtain the second total flow value of SIM after switching and the second residual flow Value;
According to the display area of the second percentage ratio and specified viewing area, determine the 4th region specifying viewing area, its In, the second percentage ratio is the second residual stream value and the ratio of the second total flow value, and the 4th region is used for the SIM after instruction switching The residual flow of card current time;
Control the liquid specifying viewing area by first area gradual change to the 4th region;
When viewing area is specified in display, the 4th zone rendering in specified viewing area is the first color, by the 4th The 5th zone rendering beyond region is the second color.
There is provided based on any one possible implementation in the first is to the 4th kind of possible implementation The third possible implementation in, also comprise the instruction for executing following operation in the memorizer of mobile terminal:Aobvious When showing specified viewing area, the first area in specified viewing area is rendered into the first color, by beyond first area After two zone rendering are the second color, also include:
Show the first residual stream value, used flow value and flow status information with numeric form in specified viewing area, Wherein, flow status information is used for mark the first residual stream value and whether the ratio of the first total flow value is more than predetermined threshold value.
The non-transitorycomputer readable storage medium that the embodiment of the present disclosure provides, is remained by first according to current time The display area of residual current value, the first total flow value and specified viewing area, after determining first area, by by first area wash with watercolours Contaminate for the first color, the second area beyond first area is rendered into the second color, the big of first area can not only be passed through The little residual flow intuitively indicating current time, and first area is being rendered into the first color, to realize data traffic Display when, the data traffic of display can be made more lively.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the present invention Its embodiment.The application is intended to any modification, purposes or the adaptations of the present invention, these modifications, purposes or Person's adaptations are followed the general principle of the present invention and are included the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It is described above and precision architecture illustrated in the accompanying drawings it should be appreciated that the invention is not limited in, and And various modifications and changes can carried out without departing from the scope.The scope of the present invention only to be limited by appended claim.

Claims (9)

1. a kind of display packing of data traffic is it is characterised in that methods described includes:
Obtain the first residual stream value and the first total flow value of current time;
According to the display area of the first percentage ratio and specified viewing area, determine the first area specifying viewing area, described the One percentage ratio is the ratio of described first residual stream value and described first total flow value, and described first area is used for indicating currently The residual flow in moment, described specified viewing area is used for the container that simulation contains liquid;
When showing described specified viewing area, the described first area in described specified viewing area is rendered into the first face Color, the second area beyond described first area is rendered into the second color;
After detecting and rocking operation, determine the acceleration that in described specified viewing area, each liquid particle produces because being shaken Degree;
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, using pre- If fluid emulation algorithm calculates the speed of each liquid particle described;
The primary importance being located before being rocked according to the speed of each liquid particle described, each liquid particle described, determines described The second position after preset duration for each liquid particle;
According to the second position of each liquid particle described, determine and rock molecular 3rd region of rear all liq grain, by institute Stating the 3rd zone rendering is described first color.
2. method according to claim 1 is it is characterised in that described acceleration according to each liquid particle, liquid are close Viscosity coefficient between degree, liquid particle and liquid pressure, calculate each liquid particle described using predetermined fluid simulation algorithm Speed, including:
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, using receiving Dimension RANS calculates the speed of each liquid particle described;
The primary importance at place before the speed of each liquid particle, each liquid particle described rock described in described basis, determines The second position after preset duration for each liquid particle described, including:
The primary importance that speed according to each liquid particle described and each liquid particle described are located before rocking, by front to Euler algorithm determines the described second position after preset duration for each liquid particle.
3. method according to claim 1 it is characterised in that described show described specified viewing area when, will be described Described first area in specified viewing area is rendered into the first color, and the second area beyond described first area is rendered into After second color, also include:
After client identification module SIM handover operation is detected, obtain the second total flow value and second of the SIM after switching Residual stream value;
According to the display area of the second percentage ratio and described specified viewing area, determine the 4th area of described specified viewing area Domain, described second percentage ratio is the ratio of described second residual stream value and described second total flow value, and described 4th region is used The residual flow of the SIM current time after indicating described switching;
The liquid controlling described specified viewing area is by described first area gradual change to described 4th region;
When showing described specified viewing area, the 4th zone rendering in described specified viewing area is described first face Color, the 5th zone rendering beyond described 4th region is described second color.
4. the method according to any claim in claims 1 to 3 is it is characterised in that described showing described specifying During viewing area, the described first area in described specified viewing area is rendered into the first color, by described first area with After outer second area is rendered into the second color, also include:
Show described first residual stream value, used flow value and flow status letter with numeric form in described specified viewing area Breath, described flow status information is used for identifying whether described first residual stream value is more than with the ratio of described first total flow value Predetermined threshold value.
5. a kind of display device of data traffic is it is characterised in that described device includes:
First acquisition module, for obtaining the first residual stream value and the first total flow value of current time;
First determining module, for the display area according to the first percentage ratio and specified viewing area, determines and specifies viewing area First area, described first percentage ratio is the ratio of described first residual stream value and described first total flow value, described One region is used for indicating the residual flow of current time;
First rendering module, for when showing described specified viewing area, by described first in described specified viewing area Zone rendering is the first color, and the second area beyond described first area is rendered into the second color;
Second determining module, for after detecting and rocking operation, determine in described specified viewing area each liquid particle because The acceleration being shaken and producing;
Computing module, for according to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid Body pressure, calculates the speed of each liquid particle described using predetermined fluid simulation algorithm;
3rd determining module, for be located before being rocked according to the speed of each liquid particle described, each liquid particle described Primary importance, determines the described second position after preset duration for each liquid particle;
4th determining module, for the second position according to each liquid particle described, determines and rocks rear all liq particle group The 3rd region becoming;
Second rendering module, for being described first color by described 3rd zone rendering.
6. device according to claim 5 is it is characterised in that described computing module, for according to each liquid particle Viscosity coefficient between acceleration, fluid density, liquid particle and liquid pressure, are calculated described using navier stokes equations The speed of each liquid particle;
Described 3rd determining module, rocks front institute for the speed according to each liquid particle described and each liquid particle described Primary importance, determine the described second position after preset duration for each liquid particle by front to euler algorithm.
7. device according to claim 5 is it is characterised in that described device also includes:
Second acquisition module, for after client identification module SIM handover operation is detected, obtaining the SIM after switching Second total flow value and the second residual stream value;
5th determining module, for the display area according to the second percentage ratio and described specified viewing area, determines described specifying 4th region of viewing area, described second percentage ratio is the ratio of described second residual stream value and described second total flow value Value, described 4th region is for indicating the residual flow of the SIM current time after described switching;
Control module, for controlling the liquid of described specified viewing area by described first area gradual change to described 4th region;
3rd rendering module, for when showing described specified viewing area, by the 4th region in described specified viewing area It is rendered into described first color, the 5th zone rendering beyond described 4th region is described second color.
8. the device according to any claim in claim 5 to 7 is it is characterised in that described device also includes:
Display module, for being shown described first residual stream value, having been used flow with numeric form in described specified viewing area Value and flow status information, described flow status information is used for identifying described first residual stream value and described first total flow value Ratio whether be more than predetermined threshold value.
9. a kind of mobile terminal is it is characterised in that described mobile terminal includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtain the first residual stream value and the first total flow value of current time;
According to the display area of the first percentage ratio and specified viewing area, determine the first area specifying viewing area, described the One percentage ratio is the ratio of described first residual stream value and described first total flow value, and described first area is used for indicating currently The residual flow in moment;
When showing described specified viewing area, the described first area in described specified viewing area is rendered into the first face Color, the second area beyond described first area is rendered into the second color;
After detecting and rocking operation, determine the acceleration that in described specified viewing area, each liquid particle produces because being shaken Degree;
According to the viscosity coefficient between the acceleration of each liquid particle, fluid density, liquid particle and liquid pressure, using pre- If fluid emulation algorithm calculates the speed of each liquid particle described;
The primary importance being located before being rocked according to the speed of each liquid particle described, each liquid particle described, determines described The second position after preset duration for each liquid particle;
According to the second position of each liquid particle described, determine and rock molecular 3rd region of rear all liq grain, by institute Stating the 3rd zone rendering is described first 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 CN104539795A (en) 2015-04-22
CN104539795B true 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)

Families Citing this family (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
CN107295572B (en) * 2016-04-11 2021-10-01 北京搜狗科技发展有限公司 Dynamic self-adaptive current limiting method and electronic equipment
CN106792878B (en) * 2016-12-27 2020-07-28 南京速迈智能科技有限公司 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
CN111724225A (en) * 2019-03-21 2020-09-29 北京京东尚科信息技术有限公司 Liquid commodity display method, terminal device, storage medium and electronic device
CN114116081B (en) * 2020-08-10 2023-10-27 抖音视界有限公司 Interactive dynamic fluid effect processing method and device and electronic equipment

Family Cites Families (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
CN102591766B (en) * 2011-12-31 2015-12-09 惠州Tcl移动通信有限公司 Mobile device and the prompting of program power consumption disposal route, system
CN103259690B (en) * 2012-02-16 2014-11-12 腾讯科技(深圳)有限公司 Information processing method and client
CN103675690B (en) * 2012-09-25 2018-05-25 腾讯科技(深圳)有限公司 A kind of method and terminal of display terminal charged state
CN103414833B (en) * 2013-08-30 2016-02-03 贝壳网际(北京)安全技术有限公司 Mobile terminal and electric quantity display method and device thereof
CN104133760A (en) * 2014-08-14 2014-11-05 北京锐美无限科技发展有限公司 Battery state display method and device

Also Published As

Publication number Publication date
CN104539795A (en) 2015-04-22

Similar Documents

Publication Publication Date Title
CN104539795B (en) The display packing of data traffic, device and mobile terminal
AU2016278358B2 (en) Method and terminal for locking target in game scene
CN104156166B (en) Operational controls layout adjustment method and device
CN105511631B (en) Gesture identification method and device
CN104284240B (en) Video browsing approach and device
CN104954549B (en) Electronic device and communication means
CN107544809A (en) The method and apparatus for showing the page
CN107948667A (en) The method and apparatus that special display effect is added in live video
CN104700353A (en) Image filter generating method and device
CN104536669B (en) Information displaying method and device
CN104537132A (en) Motion data recording method and device
CN105159496A (en) Touch event response method and mobile terminal
CN104391667A (en) Item content display method and item content display device
CN106230662A (en) Network flux statistical method and device
CN106896900A (en) A kind of display control method of mobile terminal, device and mobile terminal
CN105005445B (en) Control display methods and device
CN104569839B (en) Display methods, device and the mobile terminal of charged state
CN104820549A (en) Method, device and terminal for transmitting social networking application message
CN106791083A (en) Notification message display methods and device
CN105512658A (en) Image recognition method and device for rectangular object
CN105528138A (en) Application icon grouping method and apparatus
CN107560611A (en) Moving line acquisition methods and device
CN107122149A (en) Display methods, device and the terminal of application program
CN105392056A (en) Method and device for determining television scene modes
CN105426047A (en) Thumbnail display method 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