The content of the invention
The purpose of the embodiment of the present invention is the display content localization method for providing a kind of touch-screen, it is intended to solved existing
Touch-screen is that single-point rolling operation arranges the sliding speed upper limit so that user needs in some cases the slip long period just can determine
Position is to required display content, the problem that execution efficiency is low and user experience is not good.
The embodiment of the present invention is achieved in that a kind of display content localization method of touch-screen, methods described include with
Lower step:
On the touch panel of Real-time Collection current touch screen, the coordinate of touch point;
If the number of the coordinate for collecting changes, the contingency table for prestoring is searched, obtained and the seat for collecting
The corresponding maximum speed value of target number, the contingency table is to characterize the corresponding pass between the number of coordinate and maximum speed value
System;
The coordinate that the maximum speed value and Real-time Collection according to finding is arrived, positions the corresponding of the touch-screen
Display content.
The another object of the embodiment of the present invention is the display content alignment system for providing a kind of touch-screen, the system bag
Include:
Collecting unit, for the touch panel of Real-time Collection current touch screen, the coordinate of touch point;
Searching unit, for when the number of the coordinate that the collecting unit is collected changes, searching the pass for prestoring
Connection table, obtains maximum speed value corresponding with the number of the coordinate for collecting, and the contingency table is to characterize the individual of coordinate
Corresponding relation between number and maximum speed value;
Positioning performance element, for the maximum speed value that found according to the searching unit and the collection
The coordinate that unit Real-time Collection is arrived, positions the corresponding display content of the touch-screen.
The display content localization method and system of the touch-screen that the embodiment of the present invention is proposed is combined with multipoint-touch-technology,
The higher limit of different sliding speeds is given according to the difference of touch point number.So, if the present displayed content of touch-screen
It is very long, and user wishes quickly to navigate to the content of required display, user just can be dragged by way of change touch point number
The display contents such as list, document, webpage, to realize quick positioning, so as to improve execution efficiency, enhance user experience.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and
It is not used in the restriction present invention.
For the problem that existing single-point rolling operation is present, the present invention proposes a kind of display content positioning side of touch-screen
Method and system, the method and system are to combine multipoint-touch-technology, and according to the different of touch point number different slips are given
The higher limit of speed.
Fig. 1 shows the flow process of the display content localization method of the touch-screen that first embodiment of the invention is provided.
Specifically, the display content localization method of the touch-screen that first embodiment of the invention is provided includes:
Step S1;On the touch panel of Real-time Collection current touch screen, the coordinate of touch point.
Step S2:If the number of the coordinate for collecting changes, the contingency table for prestoring is searched, obtain and collect
The corresponding maximum speed value of number of coordinate.
In first embodiment of the invention, contingency table is to characterize the number of coordinate(That is the number of touch point)With maximal rate
Corresponding relation between value.For example, if the number of touch point is 1, maximum speed value can be V0, if the number of touch point is
2, then maximum speed value can be V0+V1, if the number of touch point is 3, maximum speed value can be V0+V1+V2, with such
Push away, if the number of touch point is n, maximum speed value can be V0+ Σ V(n-1).
Due to the specification of touch-screen it is different, and finger limited amount when being triggered using finger, therefore in practice, can pass through
Contingency table arranges the higher limit of the number of touch point.For example, for mini-plants such as smart mobile phones, the number of touch point can be set
Higher limit be 3, i other words, when touch point number be more than or equal to 3 when, corresponding maximum speed value is equal in contingency table
For V0+V1+V2;For the relatively large equipment such as panel computer, the higher limit that can arrange the number of touch point is 5, i other words, when
When the number of touch point is more than or equal to 3, corresponding maximum speed value is V0+V1+V2+V3+V4 in contingency table.
Step S3:The coordinate that maximum speed value and Real-time Collection according to finding is arrived, the corresponding of positioning touch screen shows
Show content.And if the number of the coordinate for collecting does not change, directly adopting according to current maximum speed value and in real time
The coordinate for collecting, the corresponding display content of positioning touch screen.
Further, as shown in Fig. 2 step S3 may include following steps:
S31:According to the coordinate that Real-time Collection is arrived, sliding speed of the current touch point along touch-screen display direction, example are calculated
If touch point is along touch-screen above-below direction or the sliding speed of left and right directions.
Further, as shown in figure 3, step S31 may include following steps again:
S311:Calculate the coordinate that arrives of Real-time Collection and corresponding between touch point, along the cunning of touch-screen display direction
Dynamic distance.This adjacent to touch point can be the coordinate that arrives with Real-time Collection it is neighbouring before arbitrary touch point.
S312:Read between the acquisition time of the coordinate that Real-time Collection is arrived and the acquisition time of corresponding neighbouring touch point
Timing time.
In first embodiment of the invention, timing is carried out to the acquisition time between touch point using timer, then in step
In rapid S312, directly timing time is read from timer.
S313:By sliding distance divided by timing time, sliding speed of the current touch point along touch-screen display direction is obtained.
If the number of the coordinate for collecting is two or more, i.e., it is currently multiple spot triggering, meeting due in practice
There is the inconsistent situation of each touch point sliding speed, now in order to avoid error in operation, could dictate that what is finally given currently touches
Touch the sliding speed a little along touch-screen display direction and take sliding speed maximum or minimum of a value in multiple touch points.
S32:Judge whether sliding speed reaches maximum speed value, be then execution step S34, otherwise execution step S33.
S33:According to the coordinate that Real-time Collection is arrived, with the corresponding display content of sliding speed positioning touch screen.
S34:According to the coordinate that Real-time Collection is arrived, with the corresponding display content of maximum speed value positioning touch screen.
Fig. 4 shows the structure of the display content alignment system of the touch-screen that second embodiment of the invention is provided, in order to just
In explanation, the part related to second embodiment of the invention is illustrate only.
Specifically, the display content alignment system of the touch-screen that second embodiment of the invention is provided includes:Collecting unit
1, for the touch panel of Real-time Collection current touch screen, the coordinate of touch point;Searching unit 2, for adopting when collecting unit 1
When the number of the coordinate for collecting changes, search the contingency table that prestores, obtain it is corresponding with the number of the coordinate for collecting most
Big velocity amplitude;Positioning performance element 3, the maximum speed value and collecting unit 1 for being found according to searching unit 2 is real-time
The coordinate for collecting, the corresponding display content of positioning touch screen.Wherein with regard to contingency table description as in the first embodiment,
This is not repeated.Preferably, touch-screen is capacitive touch screen.
In second embodiment of the invention, the number of the coordinate that performance element 3 can also be used to be collected when collecting unit 1 is positioned
When not changing, the coordinate for directly being arrived according to the current Real-time Collection of maximum speed value and collecting unit 1, positioning is touched
The corresponding display content of screen.
Further, as shown in figure 5, positioning performance element 3 may include:Computing module 31, for real according to collecting unit 1
When the coordinate that collects, calculate sliding speed of the current touch point along touch-screen display direction, for example touch point is along touch-screen
Lower direction or the sliding speed of left and right directions;Judge module 32, for judging whether sliding speed reaches maximum speed value;First
Locating module 33, for when judge module 32 judges that sliding speed is not up to maximum speed value, according to the seat that Real-time Collection is arrived
Mark, the corresponding display content of the sliding speed positioning touch screen obtained with computing module 31;Second locating module 34, sentences for working as
When disconnected module 32 judges that sliding speed reaches maximum speed value, according to the coordinate that the Real-time Collection of collecting unit 1 is arrived, with maximal rate
The corresponding display content of value positioning touch screen.
Further, as shown in fig. 6, computing module 31 may include:First calculating sub module 311, for calculating collection
Between the coordinate that the Real-time Collection of unit 1 is arrived and corresponding neighbouring touch point, along the sliding distance of touch-screen display direction;Read son
Module 312, for reading between the acquisition time of the coordinate that Real-time Collection is arrived and the acquisition time of corresponding neighbouring touch point
Timing time;Second calculating sub module 313, for the sliding distance that obtains the first calculating sub module 311 divided by reading submodule
The timing time that block 312 reads, obtains sliding speed of the current touch point along touch-screen display direction.
The display content localization method of touch-screen proposed by the present invention and system are combined with multipoint-touch-technology, according to tactile
Touch the difference of a number and give the higher limit of different sliding speeds.For example, the higher limit of sliding speed can be with touch point
The increase of number and increase, so, if the present displayed content of touch-screen is very long, and user wishes quickly to navigate to required display
Content, user just can increasing touch point by way of drag the display contents such as list, document, webpage, it is quick fixed to realize
Position, so as to improve execution efficiency, enhances user experience.
One of ordinary skill in the art will appreciate that realizing that all or part of step in above-described embodiment method can be
The hardware that correlation is controlled by program is completed, described program can in a computer read/write memory medium is stored in,
Described storage medium, such as ROM/RAM, disk, CD.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention
Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.