CN102331877B - Method and device for displaying information on touch screen - Google Patents

Method and device for displaying information on touch screen Download PDF

Info

Publication number
CN102331877B
CN102331877B CN201110172712.8A CN201110172712A CN102331877B CN 102331877 B CN102331877 B CN 102331877B CN 201110172712 A CN201110172712 A CN 201110172712A CN 102331877 B CN102331877 B CN 102331877B
Authority
CN
China
Prior art keywords
screen
value
curve
unit time
time
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
CN201110172712.8A
Other languages
Chinese (zh)
Other versions
CN102331877A (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 Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201110172712.8A priority Critical patent/CN102331877B/en
Publication of CN102331877A publication Critical patent/CN102331877A/en
Application granted granted Critical
Publication of CN102331877B publication Critical patent/CN102331877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for displaying information on a touch screen, which can enrich the display function of a terminal interface, smooth the sliding effect, increase the efficiency of information display and enhance the flexibility and user experience of a display mode. The method for displaying information on the touch screen, which is provided by the embodiment of the invention, includes the following steps: adopting a parabolic curve as a velocity curve to simulate screen sliding; after the operation of dragging the screen from the top or the bottom is finished, according to the velocity curve, successively calculating the return distance within each predetermined unit time for which the screen moves to return to the top or the bottom; and by sliding the screen toward the top or the bottom for the corresponding return distance within each predetermined unit time, displaying the information on the screen.

Description

Touch the method and apparatus of information displayed on screen
Technical field
The present invention relates to terminal development technical field, especially relate to a kind of method and apparatus that touches information displayed on screen.
Background technology
The today of propagating its belief on a large scale at touch-screen smart mobile phone, the high-quality operating experience of smart mobile phone has become the attraction of mobile phone, is also the place that user's clicking the tongue is sighed in admiration.The instruction that touch-screen sends according to user's touch screen shows corresponding information on screen.
But, existingly touching the scheme of the information displayed on screen part that comes with some shortcomings, for example, when user from top or bottom pull screen skew original position, pull after end, it is too stiff, not smooth that screen returns to the sliding effect in original position; And when user constantly slides the information of carrying out while showing on screen, every slip once, can only show the information corresponding with user's sliding distance, information display efficiency is lower, and display mode is dumb, and display effect is poor.
Summary of the invention
The embodiment of the present invention provides a kind of method and apparatus that touches information displayed on screen, has enriched the Presentation Function of terminal interface, makes sliding effect more smooth, has improved user's experience; And, increase the quantity of information that sliding process can show, simplify user's operation, the efficiency that raising information shows, strengthens the dirigibility of display mode.
For achieving the above object, the technical scheme of the embodiment of the present invention is achieved in that
The embodiment of the present invention provides a kind of method that touches information displayed on screen, comprising:
The rate curve that adopts parabolic curve to slide as simulated screen;
When pulling the EO of screen, successively calculate in every scheduled unit time screen to top or moved recurrence distance is returned in bottom according to described rate curve from top or bottom;
By in every scheduled unit time by screen to top or the bottom corresponding distance that returns of sliding, the information on screen is shown.
The embodiment of the present invention provides a kind of device that touches information displayed on screen, comprising:
Return metrics calculation unit, for the rate curve that adopts parabolic curve to slide as simulated screen, when pulling the EO of screen, successively calculate in every scheduled unit time screen to top or moved recurrence distance is returned in bottom according to described rate curve from top or bottom;
Information display unit, for by every scheduled unit time by screen to top or the bottom corresponding distance that returns of sliding, the information on screen is shown;
Wherein, the following formula of described recurrence metrics calculation unit utilization represents described rate curve:
y=k(x-b) 2
In above-mentioned formula, y represents speed, x represents the time, and k and b are parameter, and the value of k is to be greater than zero predetermined value, and, according to the leg-of-mutton area of maximum inscribe of described parabolic curve, the pixel distance of screen distance top or bottom calculates the value of described parameter b, in the time that the b value calculating comprises fraction part, the b value calculating is rounded up, and the value of the total number of recurrence distance calculating is b value.
From above-mentioned, the technical scheme that the embodiment of the present invention provides is by analysing in depth the feature of sliding motion, the rate curve that adopts parabolic curve simulated screen to slide, calculate corresponding each distance that returns, make screen after being offset be returned to the starting point of slip in a kind of mode of elastic movement, thereby enrich the Presentation Function of terminal interface, made sliding effect more smooth, improved user's experience.
The embodiment of the present invention also provides a kind of method that touches information displayed on screen, comprising:
The rate curve that adopts normal distribution curve to slide as simulated screen;
When user's finger or lettering pen stop sliding after screen, according to described rate curve successively calculate every scheduled unit time when initial screen in current glide direction, continue mobile initial velocity;
By making screen move with described initial velocity in current glide direction in every scheduled unit time, and after every scheduled unit time finishes, make screen in section, keep static in rest time, the information on screen is shown.
The embodiment of the present invention also provides a kind of device that touches information displayed on screen, comprising:
Initial velocity computing unit, for the rate curve that adopts normal distribution curve to slide as simulated screen, when user's finger or lettering pen stop sliding after screen, according to described rate curve successively calculate every scheduled unit time when initial screen in current glide direction, continue mobile initial velocity;
Information display unit, be used for by making screen move with described initial velocity in current glide direction in every scheduled unit time, and after every scheduled unit time finishes, make screen in section, keep static in rest time, the information on screen is shown;
Wherein, described initial velocity computing unit is used for utilizing following formula to represent described rate curve:
f ( x ) = 1 2 π σ e - x 2 2 σ 2
Wherein, f (x) expression speed, x represents the time, and σ is parameter, and σ gets predetermined value.
From above-mentioned, the technical scheme that the embodiment of the present invention provides is by analysing in depth the feature of sliding motion, the rate curve that adopts normal distribution curve simulated screen to slide, calculate corresponding initial velocity, thereby when user's finger or lettering pen stop sliding after screen, screen continues to slide in a kind of mode of inertia motion, and can in section, keep static so that user knows reading information in rest time, increase the quantity of information that sliding process can show, simplify user's operation, improve the efficiency that information shows, strengthen the dirigibility of display mode, sliding effect is more smooth, improve user's experience.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
A kind of method flow schematic diagram that touches information displayed on screen that Fig. 1 provides for the embodiment of the present invention one;
A kind of method flow schematic diagram that touches information displayed on screen that Fig. 2 provides for the embodiment of the present invention two;
A kind of method application scenarios schematic diagram that touches information displayed on screen that Fig. 3 provides for the embodiment of the present invention three;
The schematic diagram of the parabolic curve that Fig. 4 provides for the embodiment of the present invention three;
The principle schematic of the calculation of parameter that Fig. 5 provides for the embodiment of the present invention three;
The experimental result curve corresponding to table 1 that Fig. 6 provides for the embodiment of the present invention three;
The shape schematic diagram of a kind of rate curve that Fig. 7 provides for the embodiment of the present invention four;
The slide track schematic diagram of screen of the user that Fig. 8 provides for the embodiment of the present invention four;
The experimental result curve corresponding to table 2 of Fig. 9 for providing for the embodiment of the present invention four;
The experimental result curve corresponding to table 3 of Figure 10 for providing for the embodiment of the present invention four;
A kind of apparatus structure schematic diagram that touches information displayed on screen that Figure 11 provides for the embodiment of the present invention five;
A kind of apparatus structure schematic diagram that touches information displayed on screen that Figure 12 provides for the embodiment of the present invention six.
Embodiment
Below in conjunction with accompanying drawing of the present invention, technical scheme of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, belongs to the scope of protection of the invention.
The embodiment of the present invention one provides a kind of method that touches information displayed on screen, and referring to Fig. 1, described method comprises:
11: the rate curve that adopts parabolic curve to slide as simulated screen, when pulling the EO of screen, successively calculate in every scheduled unit time screen to top or moved recurrence distance is returned in bottom according to described rate curve from top or bottom;
12: by every scheduled unit time by screen to top or the bottom corresponding distance that returns of sliding, the information on screen is shown.
Further, the embodiment of the present invention one can utilize following formula to represent described rate curve:
y=k(x-b) 2
Wherein, y represents speed, x represents the time, and k and b are parameter, and the value of k is to be greater than zero predetermined value, and, according to the leg-of-mutton area of maximum inscribe of described parabolic curve, the pixel distance of screen distance top or bottom calculates the value of described parameter b, in the time that the b value calculating comprises fraction part, the b value calculating is rounded up, and the value of the total number of recurrence distance calculating is b value.
From above-mentioned, the technical scheme that the embodiment of the present invention provides is by analysing in depth the feature of sliding motion, the rate curve that adopts parabolic curve simulated screen to slide, calculate corresponding each distance that returns, make screen after being offset be returned to the starting point of slip in a kind of mode of elastic movement, thereby enrich the Presentation Function of terminal interface, made sliding effect more smooth, improved user's experience.
A kind of method that touches information displayed on screen that the embodiment of the present invention two also provides, referring to Fig. 2, specifically comprises:
21: the rate curve that adopts normal distribution curve to slide as simulated screen, when user's finger or lettering pen stop sliding after screen, according to described rate curve successively calculate every scheduled unit time when initial screen in current glide direction, continue mobile initial velocity;
22: by making screen move with described initial velocity in current glide direction in every scheduled unit time, and after every scheduled unit time finishes, make screen in section, keep static in rest time, the information on screen is shown.
Further, the embodiment of the present invention two can utilize following formula to represent described rate curve:
f ( x ) = 1 2 π σ e - x 2 2 σ 2
Wherein, f (x) expression speed, x represents the time, and σ is parameter, and σ gets predetermined value, and the value of σ can be empirical value, or obtains by the statistics to experimental data, for example, the value of σ can be 1,0.5 or 0.4 etc.
From above-mentioned, the technical scheme that the embodiment of the present invention provides is by analysing in depth the feature of sliding motion, the rate curve that adopts normal distribution curve simulated screen to slide, calculate corresponding initial velocity, thereby when user's finger or lettering pen stop sliding after screen, screen continues to slide in a kind of mode of inertia motion, and can in section, keep static so that user knows reading information in rest time, increase the quantity of information that sliding process can show, simplify user's operation, improve the efficiency that information shows, strengthen the dirigibility of display mode, sliding effect is more smooth, improve user's experience.
A kind of method that touches the information displayed on screen below embodiment of the present invention three being provided describes.
Illustrate the technical program for the ease of clear, first the embodiment of the present invention practical application scene is introduced.Referring to Fig. 3, using the summit in the screen upper left corner, as the initial point (0,0) of set up coordinate system, screen level direction is left X change in coordinate axis direction, and screen direction is vertically downward Y change in coordinate axis direction.Rectangle frame in figure shown in solid line represents the original position of screen before pulling, the location of pixels of screen top ends is expressed as Y, Y=0, rectangle frame in figure shown in dotted line represents that screen is in the position from top pulls downwards, the location of pixels of screen top ends is expressed as Y ', utilize the technical program, after the event of pulling finishes, the position that screen can be from pulling upwards elasticity is returned to original position.If screen is upwards pulled from bottom, after the event of pulling finishes, the downward resilient in position that screen can be from pulling is to original position.
The process of resilient is similar to the inverse process that an object falls from certain altitude, and a kind of suitable method that makes object turn back to original position makes this object " naturally former road is returned " exactly.In this programme, adopt parabolic curve can simulate well the process of this resilient.Specifically comprise following processing:
11: the rate curve that adopts parabolic curve to slide as simulated screen, when pulling the EO of screen, successively calculate in every scheduled unit time screen to top or moved recurrence distance is returned in bottom according to described rate curve from top or bottom;
Above-mentioned top or bottom refer to top or the bottom of screen screen in the time of original position.
Further, the embodiment of the present invention one can utilize following formula to represent described rate curve:
y=k(x-b) 2
Wherein, y represents speed, and x represents the time, and k and b are parameter, referring to Fig. 4, has shown the shape schematic diagram to the represented parabolic curve of above-mentioned formula.
The value of k is to be greater than zero predetermined value, and for example, k gets 1.5.
According to the leg-of-mutton area of maximum inscribe of described parabolic curve, the pixel distance of screen distance top or bottom calculates the value of described parameter b, in the time that the b value calculating comprises fraction part, the b value calculating is rounded up, and the value of the total number of recurrence distance calculating is b value.In a resilient process, altogether comprise b scheduled unit time, calculate b and return distance.
Particularly, by following formula, according to the leg-of-mutton area of maximum inscribe of described parabolic curve, the pixel distance of screen distance top or bottom is determined the value of described parameter b:
S1=(S2-4/3*S3)/2
S1=|Y′-Y|
|Y′-Y|=kb 3/3
Wherein, the pixel distance of screen distance top or bottom is corresponding to the area S1 of parabolic curve and X coordinate axis and Y coordinate axis institute region;
Straight line X=2b, Y=kb 2with the area of two rectangular areas that coordinate axis is enclosed of XY be S2;
The leg-of-mutton area of maximum inscribe of described parabolic curve is S3;
Location of pixels after Y ' expression screen pulls, Y represents the location of pixels that screen is original.Particularly, in the time pulling screen downwards, the location of pixels after Y ' expression screen top pulls, Y represents the location of pixels that screen top is original; In the time upwards pulling screen, the location of pixels after Y ' expression screen bottom pulls, Y represents the location of pixels that screen bottom is original.
Parabolical maximum inscribe triangle, the triangle as shown in para-curve top dotted line in Fig. 5, cartographic represenation of area is S3; Para-curve and straight line Y=kb 2to be expressed as S arc for the bow-shaped area forming, exist relational expression: S arc=4/3*S3.Be that parabolic arch area equals: taking secant the end of as, taking the point of contact of tangent line that is parallel to the end as 3/4 of the inscribed triangle on summit.
Have so: S1=(S2-S is arc)/2;
Have again: S1=(S2-4/3*S3)/2
Introducing parameter b draws: S1=(2b*kb 2-4/3* (2b*kb 2)/2)/2
=kb 3/3;
According to above formula, the value of S1 and k also can be known, thereby obtain b value.
12: by every scheduled unit time by screen to top or the bottom corresponding distance that returns of sliding, the information on screen is shown.
Under a desirable state, the process of whole resilient can be regarded as to a uninterrupted process of sliding, and this sliding speed is calculated according to above-mentioned parabolic curve.But in the time of actual realization,
But in fact resilient is every scheduled unit time, as 0.05 second, adjust the pixel distance (returning distance) of screen slip and simulate this slip, the concrete numerical value of scheduled unit time can be adjusted as required, this pixel distance can represent with pixel quantity, also can use the size Expressing of pixel.Referring to Fig. 4 or Fig. 5, the area S1 that parabolic curve and two coordinate axis are surrounded, be divided into (b-1) sub regions by being parallel to Y-axis at the equally spaced cut-off rule of X-axis, be expressed as S (1) to S (b-1), the coordinate range of any subregion in X-axis is expressed as [a, a+1], the value of a is from 0 to (b-1), the recurrence distance that first scheduled unit time will be adjusted is S (1), by that analogy, the recurrence distance that (b-1) individual scheduled unit time will be adjusted is S (b-1).
The process of resilient can be so: every 0.05 second, obtain successively S (1) to S (b-1) according to [a, a+1], after b time is slided, be returned to original position.And the accumulative total distance out of sliding for b time is corresponding to area S1.
Exemplary, use Rectangular Method definite integral to obtain the distance of each slip, by following formula, successively calculate in every scheduled unit time screen to top or moved recurrence distance is returned in bottom according to described rate curve:
∫ a a + 1 f ( x ) dx = ( b - a ) / n * ( y 1 + y 2 + . . . + yn )
Wherein, the value of a is 0 to (b-1), and n is predetermined value, and yn represents that, by parabolic curve and straight line x=a, area that x=a+1 surrounds is divided into after n rectangle, the area of n rectangle.The value of n can be 10, is divided into 10 parts by a in X-axis to the distance of (a+1).
Referring to table 1, show the test data to three experiments of this programme.
Table 1
Can be found out by above-mentioned test data, in actual regression process, consider that error may appear in the calculating that returns distance, in the recurrence distance values calculating, can increase some pixel distance values, thereby ensure that screen finally can be returned to original position.
Referring to Fig. 6, show the experimental result curve corresponding to table 1, wherein, ordinate represents pixel distance, this pixel distance represents with pixel quantity.Horizontal ordinate represents the number of times that slides.With the curve of diamond indicia point corresponding to test 1, with the curve of rectangle marked point corresponding to test 2, with the curve of triangular marker point corresponding to testing 3.
Can find out from experimental result, test 2 results that obtain more approach parabolic curve, test result is more desirable, main cause consider test 2 in k value choose more reasonable.
From above-mentioned, the technical scheme that the embodiment of the present invention provides is by analysing in depth the feature of sliding motion, the rate curve that adopts parabolic curve simulated screen to slide, calculate corresponding each distance that returns, make screen after being offset be returned to the starting point of slip in a kind of mode of elastic movement, thereby enrich the Presentation Function of terminal interface, made sliding effect more smooth, improved user's experience.
A kind of method that touches the information displayed on screen below embodiment of the present invention four being provided describes.Technical scheme in the present embodiment is mainly when user's finger or lettering pen slip screen and after screen leaves, and screen continues to slide along current glide direction in the mode of inertia.And, read information shown on screen for the ease of user, the inertia sliding process that the present embodiment provides is for to be made up of some sliding phase and some quiescent phases, in the middle of two adjacent sliding phase, have a quiescent phase, visually screen continues to slide along current glide direction " one section one section ".
Specifically comprise following processing:
21: the rate curve that adopts normal distribution curve to slide as simulated screen, when user's finger or lettering pen stop sliding after screen, according to described rate curve successively calculate every scheduled unit time when initial screen in current glide direction, continue mobile initial velocity.
Want to simulate inertia, so just need an initial velocity, initial velocity when first scheduled unit time is initial, is the speed of lifting screen while finger after user slides screen, or, the speed of screen when user uses and lifts lettering pen after lettering pen slip screen.
If want to obtain nature, inertia sliding effect true to nature, best mode is exactly to continue to use the rule that nature exists.In production and scientific experiment, the probability distribution of a lot of stochastic variables can be described with normal distribution approx.Such as the index such as height, body weight of same biosome; The weight of same seed; Measure the error of same object; Point of impact is along the deviation of a direction; The annual precipitation that certain is regional; And the speed component of ideal gas molecule, etc.See theoretically, normal distribution curve has a lot of good character..So rate curve that adopts simulated screen to slide in this programme.
Further, the embodiment of the present invention two can utilize following formula to represent described rate curve:
f ( x ) = 1 2 π σ e - x 2 2 σ 2
Wherein, f (x) expression speed, x represents the time, and σ is parameter, and σ gets predetermined value, and the value of σ can be empirical value, or obtains by the statistics to experimental data, for example, the value of σ can be 1,0.5 or 0.4 etc.Utilize above-mentioned normal distribution curve to simulate later initial velocity corresponding to other scheduled unit times of scheduled unit time first.For example, in the time that scheduled unit time is expressed as t, second initial velocity corresponding to scheduled unit time can be expressed as f (2t), by that analogy.
And for screen the initial velocity in the time that scheduled unit time is initial first, can utilize following formula to calculate:
V0=(iDragLastPointY-iDragFirstPointY)*K0/(iDragUpTime-iDragFirstTime)
In above-mentioned formula, iSlideTotalStep represents the number of times that slides,
The pixel coordinate value of touch point in Y coordinate axis when iDragFirstPointY represents finger or lettering pen touch screen,
The pixel coordinate value of dispersal point in Y coordinate axis when iDragLastPointY represents finger or lettering pen disengaging screen,
IDragFirstTime represents finger or the lettering pen time point while starting touch screen,
Time point when iDragUpTime represents finger or lettering pen disengaging screen,
K0 represents to expand multiple, and value is predetermined constant, for example, and 1000000.
Be reflected on the figure of normal curve the peak point that initial velocity when scheduled unit time is initial is first curve.Adopting 1000000 enlargement factor, is the degree of accuracy in order to improve data.
22: by making screen move with described initial velocity in current glide direction in every scheduled unit time, and after every scheduled unit time finishes, make screen in section, keep static in rest time, the information on screen is shown.
Determine described scheduled unit time according to the width of slip number of times and selected rate curve, described scheduled unit time is the ratio of described width numerical value and slip number of times.The numerical value of the width of above-mentioned selected rate curve be in normal distribution curve X-axis from peak point to the selected predetermined value of positive dirction, for example, this predetermined value can be 6 σ.Referring to Fig. 7, show the shape schematic diagram of a kind of rate curve that the embodiment of the present invention provides, choosing its width is 6 σ.
Utilize following formula to calculate described slip number of times:
iSlideTotalStep=(iDragLastPointY-iDragFirstPointY)*KDistance_TimeRatio/(iDragUpTime-iDragFirstTime);
In above-mentioned formula, iSlideTotalStep represents the number of times that slides,
The pixel coordinate value of touch point in Y coordinate axis when iDragFirstPointY represents finger or lettering pen touch screen,
The pixel coordinate value of dispersal point in Y coordinate axis when iDragLastPointY represents finger or lettering pen disengaging screen,
IDragFirstTime represents finger or the lettering pen time point while starting touch screen,
Time point when iDragUpTime represents finger or lettering pen disengaging screen,
KDistance_TimeRatio represents to expand multiple, and value is predetermined constant, as 30000.
Above-mentioned rest time, the concrete numerical value of section can arrange as required, for example, was set to 0.05s.In the time that scheduled unit time starts, screen slides according to corresponding initial velocity, in the time that scheduled unit time finishes, screen stops sliding, start section rest time, screen keeps static in rest time in section, after rest time, section finished, start next scheduled unit time, screen again corresponding beginning slides.
Initial velocity
Further, in actual scene, user operates possibility more complicated, referring to Fig. 8.User's finger (or lettering pen) slides according to the order of p0, p1, p2, p3 and p4 on screen.Asking for by following processing execution initial velocity in this case:
1., if user starts to pull screen from P0, lift finger movement to p2 place and finish.Sliding trace is straight line, and initial velocity is exactly (p2-p0)/t, and t represents this sliding time.
2. if user still starts to pull screen from P0, but just finish to p3.Be that sliding trace is not straight line.At this moment, if also use (P3-P0)/t to ask for initial velocity, be, unreasonable.
For the problems referred to above, this programme adopts sight alignment principle, if on sliding trace, last three pixels point-blank, can respond to users action so, can adopt the inertia sliding type of this programme to process this slip.If on sliding trace, last three pixels not point-blank, do not respond to users action, and no longer adopt the inertia sliding type of this programme to process this slip.The false code of this part can be as follows:
Being provided with the array[3 of an integer] length is 3, is used for preserving user's last three pixels that slide.False code is as follows: if (array[0] > array[1] & array[1] > array[2] || array[0] < array[1] & array[1] < array[2]).
Response condition
Consider the needs in practical operation, experience in order to improve user, in some cases, user is not responded, do not adopt the inertia sliding type that the present embodiment provides to deal with to the front slide of working as of screen.
For example, response condition one can, for stopping sliding after screen when user's finger or lettering pen, if finger or lettering pen reside on screen, determine that residence time is less than the first predetermined threshold, respond, otherwise, do not respond;
Response condition two can, for stopping sliding after screen when user's finger or lettering pen, determine that this sliding time is greater than the second predetermined threshold, responds, otherwise, do not respond.
To response condition one, if user stops after screen has been slided to a segment distance, now finger does not frame out, if stop sliding to the finger oversize inertia that just do not do during this period of time that frames out from finger so, and this marginal time (the first predetermined threshold) can test or be drawn by empirical value.For example, the first predetermined threshold can be got 20000 microseconds.
To response condition two, by user slide that the action of screen is divided into normal slip, accelerates slip, quick sliding and sliding the soonest, this four kinds of situations encompasses users regular job substantially.The sliding time of these four kinds of situations is tested and added up, referring to table 2, in test, simplify the situation of sliding once of having tested.
Normal slip: browse text on mobile phone time, user only wants to read finger sliding part once, does not think that inertia slides, and can be considered " normally sliding ".The time average sliding once so approximately 0.311183 second.
Accelerate to slide: search a contact person in address list time, can be considered " accelerating to slide " so, the time average sliding once approximately 0.139781 second.
Quick sliding: can be considered " quick sliding " time average sliding once approximately 0.118117 second when fast browsing webpage.
Slide the soonest: from screen, bottom certain list, slide into top and can be considered " sliding the soonest ", the time average sliding once approximately 0.97077 second.
Table 2
Fig. 9 is the curve synoptic diagram corresponding to table 2, and in figure, horizontal ordinate is slip number of times, and ordinate is time shaft, unit microsecond., slide corresponding to accelerating with the curve of rectangle marked point corresponding to normal slip with the curve of diamond indicia point, with the curve of triangular marker point corresponding to quick sliding, with the curve of circular gauge point corresponding to slip the soonest.
From out 4 column datas and Fig. 9 of grid column above, can draw a conclusion:
Normal curve of sliding is apparently higher than other 3 curves, and we make decision here: the sliding time of 200000 microseconds is to call the critical point that slip engine responds, and just calls slip engine after being less than or equal to 200000 microseconds, and user is responded; Be greater than 200000 microseconds and never call slip engine, do not respond.
Sliding effect checking
In several terminals, scheme is tested, result is referring to below shown in table 3 and Figure 10.In different tests, σ gets different numerical value, and the width (width) of selected rate curve is also different, and the multiple in table is the multiple expanding.The data of each section of sliding distance in inertia slip in table 3, are shown.
Note: multiple: because a parasang of physical screen slip is pixel, such as 100 pixels, the time is 0.1 second, and the sliding speed of screen was exactly 1000 pixel/seconds so, for this actual physical quantity is mapped in mathematical model, need to amplify mathematical model.The multiple is here worth enlargement factor exactly.At this, multiple is not definite value, it according to initial velocity size change, be false code below:
multiple=NormalDistributeMuliteBase+NormalDistributeMuliteStep*(iSlideTotalStep-KLowestRatio);
Here NormalDistributeMuliteBase amplifies radix, can get 250; ISlideTotalStep is the number of times that altogether slides, and KLowestRatio is the number of times of minimum slip, and value can be that 10, NormalDistributeMuliteStep is multiple once, gets 30.
Table 3
Horizontal ordinate in Figure 10 represents the number of times that slides, and ordinate is pixel unit.
With the curve of point-like gauge point corresponding to test 1, with the curve of strigula gauge point corresponding to test 2, with the curve of triangular marker point corresponding to test 3, with the curve of rectangle marked point corresponding to testing 4.
Can find out, by the choosing of the isoparametric value of σ, can obtain more satisfactory result, be applicable to the mode of motion that inertia slides, particularly test 1 curve and test 4 curves.To test 1 curve as example (parameter σ=1), inertia slide initial velocity from curve peak, transverse axis unit 8 starts.Slide like this from 199,188,159,121,82.Because through expanding multiple operation, can think that so 199,188 these values such as grade are pixel values of screen.
From above-mentioned, the technical scheme that the embodiment of the present invention provides is by analysing in depth the feature of sliding motion, the rate curve that adopts normal distribution curve simulated screen to slide, calculate corresponding initial velocity, thereby when user's finger or lettering pen stop sliding after screen, screen continues to slide in a kind of mode of inertia motion, and can in section, keep static so that user knows reading information in rest time, increase the quantity of information that sliding process can show, simplify user's operation, improve the efficiency that information shows, strengthen the dirigibility of display mode, sliding effect is more smooth, improve user's experience.
The embodiment of the present invention five also provides a kind of device that touches information displayed on screen, and referring to Figure 11, described device comprises:
Return metrics calculation unit 111, for the rate curve that adopts parabolic curve to slide as simulated screen, when pulling the EO of screen, successively calculate in every scheduled unit time screen to top or moved recurrence distance is returned in bottom according to described rate curve from top or bottom;
Information display unit 112, for by every scheduled unit time by screen to top or the bottom corresponding distance that returns of sliding, the information on screen is shown;
Wherein, described recurrence metrics calculation unit 111 utilizes following formula to represent described rate curve:
y=k(x-b) 2
In above-mentioned formula, y represents speed, x represents the time, and k and b are parameter, and the value of k is to be greater than zero predetermined value, and, according to the leg-of-mutton area of maximum inscribe of described parabolic curve, the pixel distance of screen distance top or bottom calculates the value of described parameter b, in the time that the b value calculating comprises fraction part, the b value calculating is rounded up, and the value of the total number of recurrence distance calculating is b value.
In apparatus of the present invention embodiment, the specific works mode of each functional module and unit can be referring to the related content in the inventive method embodiment.
From above-mentioned, the technical scheme that the embodiment of the present invention provides is by analysing in depth the feature of sliding motion, the rate curve that adopts parabolic curve simulated screen to slide, calculate corresponding each distance that returns, make screen after being offset be returned to the starting point of slip in a kind of mode of elastic movement, thereby enrich the Presentation Function of terminal interface, made sliding effect more smooth, improved user's experience.
The embodiment of the present invention six also provides a kind of device that touches information displayed on screen, and referring to Figure 12, described device comprises:
Initial velocity computing unit 121, for the rate curve that adopts normal distribution curve to slide as simulated screen, when user's finger or lettering pen stop sliding after screen, according to described rate curve successively calculate every scheduled unit time when initial screen in current glide direction, continue mobile initial velocity;
Information display unit 122, be used for by making screen move with described initial velocity in current glide direction in every scheduled unit time, and after every scheduled unit time finishes, make screen in section, keep static in rest time, the information on screen is shown;
Wherein, described initial velocity computing unit is used for utilizing following formula to represent described rate curve:
f ( x ) = 1 2 &pi; &sigma; e - x 2 2 &sigma; 2
Wherein, f (x) expression speed, x represents the time, and σ is parameter, and σ gets predetermined value.
In apparatus of the present invention embodiment, the specific works mode of each functional module and unit can be referring to the related content in the inventive method embodiment.
From above-mentioned, the technical scheme that the embodiment of the present invention provides is by analysing in depth the feature of sliding motion, the rate curve that adopts normal distribution curve simulated screen to slide, calculate corresponding initial velocity, thereby when user's finger or lettering pen stop sliding after screen, screen continues to slide in a kind of mode of inertia motion, and can in section, keep static so that user knows reading information in rest time, increase the quantity of information that sliding process can show, simplify user's operation, improve the efficiency that information shows, strengthen the dirigibility of display mode, sliding effect is more smooth, improve user's experience.
Those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can software product form embody, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in some part of each embodiment of the present invention or embodiment.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.

Claims (8)

1. a method that touches information displayed on screen, is characterized in that, described method comprises:
The rate curve that adopts parabolic curve to slide as simulated screen;
When pulling the EO of screen, successively calculate in every scheduled unit time screen to top or moved recurrence distance is returned in bottom according to described rate curve from top or bottom;
By in every scheduled unit time by screen to top or the bottom corresponding distance that returns of sliding, the information on screen is shown; And,
Through b scheduled unit time, by mobile b described recurrence distance, return to top or the bottom of described screen, complete the demonstration of information;
Wherein, calculate the value of described parameter b according to the pixel distance of the leg-of-mutton area of maximum inscribe of described parabolic curve and screen distance top or bottom, in the time that the b value calculating comprises fraction part, the b value calculating is rounded up, the numerical value of the total number of recurrence distance calculating is b value, and utilizes following formula to represent described rate curve:
y=k(x-b) 2
Wherein, y represents speed, and x represents the time, and k and b are parameter, and the value of k is to be greater than zero predetermined value;
Wherein, by following formula, successively calculate in every scheduled unit time screen to top or moved recurrence distance is returned in bottom according to described rate curve:
&Integral; a a + 1 f ( x ) dx = ( b - a ) / n * ( y 1 + y 2 + . . . + yn )
Wherein, the value of a is 0 to (b-1), and n is predetermined value, and yn represents that, by parabolic curve and straight line x=a, area that x=a+1 surrounds is divided into after n rectangle, the area of n rectangle.
2. method according to claim 1, is characterized in that, by following formula, determines the value of described parameter b according to the pixel distance of the leg-of-mutton area of maximum inscribe of described parabolic curve and screen distance top or bottom:
S1=(S2-4/3*S3)/2
S1=|Y′-Y|
|Y′-Y|=kb 3/3
Wherein, the pixel distance of screen distance top or bottom is corresponding to the area S1 of parabolic curve and X coordinate axis and Y coordinate axis institute region;
Straight line X=2b, Y=kb 2with the area of two rectangular areas that coordinate axis is enclosed of XY be S2;
The leg-of-mutton area of maximum inscribe of described parabolic curve is S3;
Location of pixels after Y ' expression screen pulls, Y represents the location of pixels that screen is original.
3. a method that touches information displayed on screen, is characterized in that, described method comprises:
The rate curve that adopts normal distribution curve to slide as simulated screen;
When user's finger or lettering pen stop sliding after screen, according to described rate curve successively calculate every scheduled unit time when initial screen in current glide direction, continue mobile initial velocity;
By making screen move with described initial velocity in current glide direction in every scheduled unit time, and after every scheduled unit time finishes, make screen in section, keep static in rest time, the information on screen is shown;
Wherein, determine described scheduled unit time according to the width numerical value of slip number of times and selected rate curve, described scheduled unit time is the ratio of described width numerical value and slip number of times, and described width numerical value is from peak point to the selected predetermined value of positive dirction in normal distribution curve X-axis.
4. method according to claim 3, is characterized in that,
Utilize following formula to represent described rate curve:
f ( x ) = 1 2 &pi; &sigma; e - x 2 2 &sigma; 2
Wherein, f (x) expression speed, x represents the time, and σ is parameter, and σ gets predetermined value.
5. method according to claim 4, is characterized in that,
Utilize following formula to calculate described slip number of times:
iSlideTotalStep=(iDragLastPointY-iDragFirstPointY)*KDistance_TimeRatio/(iDragUpTime-iDragFirstTime);
Utilize following formula to calculate the initial velocity of screen in the time that scheduled unit time is initial first:
V0=(iDragLastPointY-iDragFirstPointY)*K0/(iDragUpTime-iDragFirstTime)
In above-mentioned formula, iSlideTotalStep represents the number of times that slides,
The pixel coordinate value of touch point in Y coordinate axis when iDragFirstPointY represents finger or lettering pen touch screen,
The pixel coordinate value of dispersal point in Y coordinate axis when iDragLastPointY represents finger or lettering pen disengaging screen,
IDragFirstTime represents finger or the lettering pen time point while starting touch screen,
Time point when iDragUpTime represents finger or lettering pen disengaging screen,
KDistance_TimeRatio represents to expand multiple, and value is predetermined constant,
K0 represents to expand multiple, and value is the predetermined constant different from KDistance_TimeRatio.
6. method according to claim 5, is characterized in that,
Described method also comprises: on user's finger or the track of lettering pen slip screen, if three last pixels are not located along the same line, this slip is not responded;
And,
Before successively calculating every scheduled unit time according to described rate curve screen continue mobile initial velocity in current glide direction when initial, described method also comprises: when user's finger or lettering pen stop sliding after screen, determine that this sliding time is greater than the second predetermined threshold; When user's finger or lettering pen stop sliding after screen, if finger or lettering pen reside on screen, determine that residence time is less than the first predetermined threshold.
7. a device that touches information displayed on screen, is characterized in that, described device comprises:
Return metrics calculation unit, for the rate curve that adopts parabolic curve to slide as simulated screen, when pulling the EO of screen, successively calculate in every scheduled unit time screen to top or moved recurrence distance is returned in bottom according to described rate curve from top or bottom;
Information display unit, for by every scheduled unit time by screen to top or the bottom corresponding distance that returns of sliding, information on screen is shown, and, through b scheduled unit time, by mobile b described recurrence distance, return to top or the bottom of described screen, complete the demonstration of information;
Wherein, described recurrence metrics calculation unit, be used for according to the leg-of-mutton area of maximum inscribe of described parabolic curve, the pixel distance of screen distance top or bottom calculates the value of described parameter b, in the time that the b value calculating comprises fraction part, the b value calculating is rounded up, and the value of the total number of recurrence distance calculating is b value, and utilizes following formula to represent described rate curve:
y=k(x-b) 2
In above-mentioned formula, y represents speed, and x represents the time, and k and b are parameter, and the value of k is to be greater than zero predetermined value; And,
Described recurrence metrics calculation unit, for by following formula, successively calculate in every scheduled unit time screen to top or moved recurrence distance is returned in bottom according to described rate curve:
&Integral; a a + 1 f ( x ) dx = ( b - a ) / n * ( y 1 + y 2 + . . . + yn )
Wherein, the value of a is 0 to (b-1), and n is predetermined value, and yn represents that, by parabolic curve and straight line x=a, area that x=a+1 surrounds is divided into after n rectangle, the area of n rectangle.
8. a device that touches information displayed on screen, is characterized in that, described device comprises:
Initial velocity computing unit, for the rate curve that adopts normal distribution curve to slide as simulated screen, when user's finger or lettering pen stop sliding after screen, according to described rate curve successively calculate every scheduled unit time when initial screen in current glide direction, continue mobile initial velocity;
Information display unit, be used for by making screen move with described initial velocity in current glide direction in every scheduled unit time, and after every scheduled unit time finishes, make screen in section, keep static in rest time, the information on screen is shown;
Wherein, described initial velocity computing unit is used for utilizing following formula to represent described rate curve:
f ( x ) = 1 2 &pi; &sigma; e - x 2 2 &sigma; 2
Wherein, f (x) expression speed, x represents the time, and σ is parameter, and σ gets predetermined value;
And, described information display unit, for determining described scheduled unit time according to the width numerical value of slip number of times and selected rate curve, described scheduled unit time is the ratio of described width numerical value and slip number of times, and described width numerical value is from peak point to the selected predetermined value of positive dirction in normal distribution curve X-axis.
CN201110172712.8A 2011-06-24 2011-06-24 Method and device for displaying information on touch screen Active CN102331877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110172712.8A CN102331877B (en) 2011-06-24 2011-06-24 Method and device for displaying information on touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110172712.8A CN102331877B (en) 2011-06-24 2011-06-24 Method and device for displaying information on touch screen

Publications (2)

Publication Number Publication Date
CN102331877A CN102331877A (en) 2012-01-25
CN102331877B true CN102331877B (en) 2014-08-06

Family

ID=45483674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110172712.8A Active CN102331877B (en) 2011-06-24 2011-06-24 Method and device for displaying information on touch screen

Country Status (1)

Country Link
CN (1) CN102331877B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681770B (en) * 2012-02-24 2017-11-21 康佳集团股份有限公司 A kind of method of contact action list box
CN103870022A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Information processing method and electronic device
CN103076917B (en) * 2012-12-28 2015-07-29 华为终端有限公司 A kind of method of adjustment of display interface fluency and terminal
JP5835255B2 (en) * 2013-03-19 2015-12-24 カシオ計算機株式会社 Graph display device and graph display program
CN104423849B (en) * 2013-08-19 2018-10-12 联想(北京)有限公司 A kind of information processing method, device and electronic equipment
RU2652433C2 (en) * 2013-12-26 2018-04-26 Юйлун Компьютер Телекоммьюникейшн Сайнтифик (Шэньчжэнь) Ко., Лтд. Terminal operating method and terminal
CN107463567B (en) * 2016-06-02 2021-04-09 阿里巴巴(中国)有限公司 Data cache loading method and device and portable terminal equipment
CN106325713B (en) * 2016-08-17 2019-12-03 厦门印天电子科技有限公司 A kind of inertia moving method of whiteboarding software sliding object
CN109793470A (en) * 2017-11-16 2019-05-24 青岛海尔洗碗机有限公司 A kind of dish washer control method and dish-washing machine
CN109407881B (en) * 2018-09-13 2022-03-25 广东美的制冷设备有限公司 Touch method and device based on curved surface touch screen and household appliance
CN110018771B (en) * 2018-11-20 2022-04-22 创新先进技术有限公司 Information display method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308440A (en) * 2008-06-25 2008-11-19 宇龙计算机通信科技(深圳)有限公司 Interaction control method and system based on touch screen
CN101599001A (en) * 2009-07-13 2009-12-09 青岛海信移动通信技术股份有限公司 Update method for touch-screen display interface and multimedia electronic equipment
CN101819498A (en) * 2009-02-27 2010-09-01 瞬联讯通科技(北京)有限公司 Screen display-controlling method facing to slide body of touch screen

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308440A (en) * 2008-06-25 2008-11-19 宇龙计算机通信科技(深圳)有限公司 Interaction control method and system based on touch screen
CN101819498A (en) * 2009-02-27 2010-09-01 瞬联讯通科技(北京)有限公司 Screen display-controlling method facing to slide body of touch screen
CN101599001A (en) * 2009-07-13 2009-12-09 青岛海信移动通信技术股份有限公司 Update method for touch-screen display interface and multimedia electronic equipment

Also Published As

Publication number Publication date
CN102331877A (en) 2012-01-25

Similar Documents

Publication Publication Date Title
CN102331877B (en) Method and device for displaying information on touch screen
US10430068B2 (en) Method for displaying interface content and user equipment
CN110531875B (en) Writing stroke generation method, terminal equipment and storage medium
US10203871B2 (en) Method for touch input and device therefore
CN102200880B (en) graph display apparatus and graph display method
CN103097996A (en) Motion control touch screen method and apparatus
CN102541537B (en) Method and device for realizing menu container controls with surrounding effect
CN102981707A (en) Self-adaptive area cursor
CN103415833A (en) Surfacing off-screen visible objects
CN102902407B (en) A kind of touch-screen output display touches the method and apparatus of person&#39;s handwriting
CN101923435A (en) Method for simulating real page turning effect for electronic book
CN101763234B (en) Method and device for simulating various screen resolutions
CN104063167B (en) Curve map display device and curve map display methods
US9760253B2 (en) System and method for scrollable incremental paging display
CN105302464B (en) System and method for scribing flow type document
CN105955599B (en) A kind of implementation method for simulating document reading method on an electronic device
CN103885685A (en) Method and device for processing pages
JP2012146278A (en) Simulation method and system for three-dimensional operation interface
CN104020934A (en) Paging control implementation method and device
CN103116446B (en) A kind of list interactive method for touch portable device
US8749558B2 (en) Method for displaying displacement of object on display of electronic device
CN101876865A (en) Method for judging gesture of touch device
CN106951166A (en) Person&#39;s handwriting method for drafting and device
CN104346046A (en) Three-dimensional simulation page turning method and system
CN103645855A (en) Touch reading method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building A block 5 layer

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.