A kind of changing method based on hand-written input and page movement and convergent-divergent and system
Technical field
The present invention relates to and be a kind ofly used in changing method on the touch-screen of electronic equipment and system, particularly a kind of simple to operation, error rate is low, save time, efficiency is higher based on the changing method of hand-written input and page movement and convergent-divergent and system.
Background technology
At present based on the equipment of touch-screen, user will realize the switching between hand-written, mobile and the convergent-divergent page, and user realizes input to the page, movement and zoom operations by the switching of the specific button of goal systems usually.Such repetitive operation makes user waste a large amount of time, and user can be caused to change target pages data to the maloperation of the page, affects user's use sense and is subject to.
Summary of the invention
A kind of changing method based on hand-written input and page movement and convergent-divergent of the present invention and system, technical matters to be solved is, also easily causes the problem of maloperation for the input of existing touch-screen and the changing method of dragging zoom function while expending the unnecessary time.
In order to solve the problems of the technologies described above, the present invention adopts following technical scheme:
According to an aspect of the present invention, disclose a kind of changing method based on hand-written input and page movement and convergent-divergent, comprise the following steps:
First gesture detecting step, for when detecting the first gesture of the drawing area being positioned at touch-screen, judges whether described first gesture is single-point with the touch point of screen contact under drafting state, if single-point then enters hand-written state;
Second gesture detecting step, for when detecting the second gesture of the drawing area being positioned at touch-screen, judges whether described second gesture is multiple spot with the touch point of screen contact under drafting state, if multiple spot then enters dragging zoom state;
Touch-control is counted determining step, for judging translation according to the movement locus of multiple points that touch-screen touches or direction difference, amplify, reduce, and then realizes switching between translation, mitigation and amplification according to the direction of motion of described multiple point.
Preferably, described first gesture detecting step also comprises the steps: to judge whether described single-point moves, and is, shows moving rail, otherwise display touch point.
Preferably, described touch-control count judge module translation, amplify, reduce between switching be specially: between described multiple point in the same way motion time switch to translation, reduce for switching to during move toward one another between described multiple point, for switching to amplification when moving dorsad between described multiple point.
According to a further aspect in the invention, also disclose a kind of switched system based on hand-written input and page movement and convergent-divergent, comprising:
First gesture detection module, for when detecting the first gesture of the drawing area being positioned at touch-screen, judges whether described first gesture is single-point with the touch point of screen contact under drafting state, if single-point then enters hand-written state;
Second gesture detection module, for when detecting the second gesture of the drawing area being positioned at touch-screen, judges whether described second gesture is multiple spot with the touch point of screen contact under drafting state, if multiple spot then enters dragging zoom state;
Touch-control is counted judge module, for judging translation according to the movement locus of multiple points that touch-screen touches or direction difference, amplify, reduce, and then realizes switching between translation, mitigation and amplification according to the direction of motion of described multiple point.
Preferably, described first gesture detection module also comprises the steps: to judge whether described single-point moves, and is, shows moving rail, otherwise display touch point.
Preferably, described touch-control count judge module translation, amplify, reduce between switching be specially: between described multiple point in the same way motion time switch to translation, reduce for switching to during move toward one another between described multiple point, for switching to amplification when moving dorsad between described multiple point.
Owing to have employed technique scheme, the present invention has following beneficial effect:
The present invention by being divided into single-point touch and multi-point touch under full frame drafting state, user can easily by single-point touch or multi-point touch (i.e. the counting of touch-control, single finger or multiple finger) mode realize handwriting input, translation and zoom function, and do not need to carry out loaded down with trivial details blocked operation.Avoid the superelevation misoperation rate of frequent switching between three and eliminate switching time, avoiding and cause because of the misoperation of user original thing to be lost in handoff procedure.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, being briefly described to the accompanying drawing of embodiment below, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also being obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the changing method based on hand-written input and page movement and convergent-divergent according to invention preferred embodiment.
Fig. 2 is according to the preferred embodiment of the invention based on the module diagram of the switched system of hand-written input and page movement and convergent-divergent.
Embodiment
In order to make the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly described.
As shown in Figure 1, the changing method based on hand-written input and page movement and convergent-divergent that this embodiment provides, specifically comprise the following steps: first, in step S101, flow process starts.Subsequently, in step S101, start to perform first gesture detecting step, detect on touch-screen whether receive the first gesture being positioned at drawing area, otherwise proceed to detect.Concrete, whether detect currently has a touch point on the touchscreen, detect this first gesture and click the coordinate of (down) whether in drawing area, by the coordinate (x that first gesture is clicked, y), with drawing area Rect(L, T, R, B) judge, wherein left side (left) position of the whole drawing area of L, T is top (top) position of whole drawing area, R is right side (right) position of whole drawing area, and B is bottom (below) position of whole drawing area.If L<x<R and T<y<B, then assert in target area, otherwise do not exist.Subsequently, in step s 102, by the touch point contacted with touch-screen, detecting screen touch-control and count, is that single-point then proceeds to step S104, otherwise go to step S103. such as after entering software, when first gesture of user falls the moment of (dowm), be that a single point (namely=1) then enters the movement locus check point no movement of S104 pattern according to touch point with the contact of screen, if then proceed to S105, the track of the current movement of screen display user.Otherwise proceed to S106, the point of the only stop of display ink marks.When first gesture of user falls the moment of (dowm), when being multiple point (namely >=2) with the contact of screen, so move the direction of (move) action according to the operation of user's gesture and screen contact point, then the translation realized, zoom function is then different.Subsequently, in step s 103, translation is realized, the switching between convergent-divergent according to the movement locus of multiple points that touch-screen receives or direction difference.If user forms straight line at the movement locus of the point of >=2.Judge direction of motion, by this >=2 equidirectional continuous print linear slide realize S107 in the translation up and down of multi-point touch state.Namely be A(x1 with the multiple spot coordinate of screen contact by the far and near distance of the straight-line trajectory of multiple some conversion mitigation and amplification function, y1), B (x2, y2), ... N(xN, yN) here with 2 distances and multiple spot coordinate for A(x1, y1), B (x2, y2) whether meet B>A and x2>x1 simultaneously, y2>y1, like this along with the motion dorsad of 2 distances, proceeds to the amplification that step S109 realizes full page.When these two touch points leave the page time, the page remains on the state of last contact point.When two touch points come closer i.e. A(x1, y1), B (x2, y2) whether meets B>A simultaneously and x2>x1, y2>y1, A point coordinate successively decreases, and B point coordinate increases progressively.Proceed to step S108 and realize reducing of full page.In some embodiments of the invention, different according to from screen contact point of user, if contact is moving back and forth continuously of a point, proceed to S104, enter hand-written drafting state, when contact point >=2 point of user and screen time, system then can depart from according to the mutually exclusive of user's finger sliding the switching realizing enlarging function, realizes the switching of reduction capability when user's finger sliding attracts each other close time.In some embodiments of the present invention, user at use input, translation, zoom function is, does not need to switch, and only needs the direction of the point of change and screen contact and finger sliding just passable, greatly simplify the operation of user, be easily understood, convenient, flexible.Finally, this flow process ends at step S110.And again can perform flow process from step S101.
Pass through the present invention, user can not need ceaselessly to switch frequently by clicking corresponding button in button or hiding menu bar in whole full frame drawing process again, only need change and the point of screen contact and the direction of finger sliding just conveniently to hand-written, translation, can to switch arbitrarily between scaling.Avoid the plenty of time frequently wait switched between three wherein and switching time being occupied to user, if and the careless misoperation of midway user original thing can be caused to lose, have serious consequences to user and also easily cause maloperation while expending the unnecessary time.
Referring to Fig. 2, is the module diagram according to the input of preferred embodiment of the present invention and the switched system of dragging zoom function.As shown in Figure 2, the input that this embodiment provides at least comprises with the switched system 200 dragging zoom function: first gesture detection module 202, second gesture detection module 204 and multi-point touch detection module 206.First gesture detection module 202 is for detecting whether touch-screen detection is current has a touch point on the touchscreen, detect this first gesture and click the coordinate of (down) whether in drawing area, by the coordinate (x that first gesture is clicked, y), with drawing area Rect(L, T, R, B) judge, wherein, L is left side (left) position of whole drawing area, and T is top (top) position of whole drawing area, R is right side (right) position of whole drawing area, and B is bottom (below) position of whole drawing area.If L<x<R and T<y<B, then assert in target area, otherwise do not exist.Second gesture detection module 204 is for according to the second gesture operation pages that touch-screen receives.Second gesture detection module 204 can according to the type of action determination translation of the second gesture that touch-screen receives or Scalable.The concrete conversion of the far and near distance for the straight-line trajectory to the multiple some mitigation and amplification function of multi-point touch detection module 206 namely and two point coordinate of screen contact be A(x1, y1), B (x2, y2), namely whether meet B>A and x2>x1, otherwise y2>y1 is like this along with the lasting increase of the spacing of finger amplifies the content of the drafting page then for reducing simultaneously.
In some embodiments of the invention, different according to from screen contact point of user, if contact is moving back and forth continuously of a point, proceed to S102, enter hand-written drafting state, when the contact point of user and screen is greater than 2 somes time, system then can depart from according to the mutually exclusive of user's finger sliding the switching realizing enlarging function, realizes the switching of reduction capability when user's finger sliding attracts each other close time.In some embodiments of the present invention, user at use input, translation, zoom function is, does not need to switch, and only needs the direction of the point of change and screen contact and finger sliding just passable, greatly simplify the operation of user, be easily understood, convenient, flexible.
Should be noted that, the principle that input provided by the invention adopts with the changing method and the system that drag zoom function is identical with flow process, therefore to input with drag zoom function switched system each embodiment elaborate the switched system being also applicable to input with dragging zoom function.
What finally illustrate is, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not departing from aim and the scope of technical solution of the present invention, it all should be encompassed in the middle of right of the present invention.