CN106598435A - Page locating method and apparatus - Google Patents

Page locating method and apparatus Download PDF

Info

Publication number
CN106598435A
CN106598435A CN201611175422.8A CN201611175422A CN106598435A CN 106598435 A CN106598435 A CN 106598435A CN 201611175422 A CN201611175422 A CN 201611175422A CN 106598435 A CN106598435 A CN 106598435A
Authority
CN
China
Prior art keywords
page
slide
page number
sliding distance
terminal
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.)
Pending
Application number
CN201611175422.8A
Other languages
Chinese (zh)
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201611175422.8A priority Critical patent/CN106598435A/en
Publication of CN106598435A publication Critical patent/CN106598435A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The invention discloses a page locating method. The page locating method comprises the steps of detecting a terminal page-based sliding operation, and obtaining start point coordinates and stop point coordinates of the sliding operation in a preset terminal touch region coordinate system; determining a straight line according to the start point coordinates and the stop point coordinates; judging whether the slope of the straight line is in a preset slope range or not; if yes, obtaining a total page number corresponding to contents displayed by a terminal page; and locating a target page of the sliding operation according to the total page number, a preset maximum sliding distance corresponding to the total page number, the start point coordinates and the stop point coordinates. The invention furthermore discloses a page locating apparatus. According to the method and the apparatus, the page can be quickly located.

Description

Page positioning method and device
Technical field
The present invention relates to technical field of mobile terminals, more particularly to page positioning method and device.
Background technology
In prior art, when user is by electronic equipment reading documents such as smart mobile phone, flat boards, or shown by clicking on Ad-hoc location on screen carries out page turning, or is slided page by touch display screen, or by dilatory display screen Slider bar carries out page turning.
However, when document file page number is more, according to click or screen sliding mode, user generally requires repeatedly to be clicked on Or screen sliding can just find the page wanted, operate relatively complicated;According to the mode that slider bar is drawn, because slider bar needs to account for With certain screen display space, slider bar shows too big, can waste display space, and slider bar shows too little, then can cause The point that user draws in being difficult when with finger manipulation a little is drawn, and especially for the little user of electronic display screen, is made Use very inconvenient.
The content of the invention
Present invention is primarily targeted at proposing a kind of page positioning method and device, it is intended to realize the quick fixed of the page Position.
For achieving the above object, the present invention provides a kind of page positioning method, and methods described comprises the steps:
Slide of the detecting based on terminal page, the acquisition slide is in the coordinate system of default terminal Touch Zone Starting point coordinate and terminate point coordinates;
Straight line is determined according to the starting point coordinate and the termination point coordinates;
Judge whether the slope of the straight line is interval in default slope;
If so, the corresponding total page number of content that the terminal page shows then is obtained;
According to the total page number, default maximum sliding distance corresponding with the total page number, the starting point coordinate with And the target pages of slide described in the terminating point coordinate setting.
Alternatively, it is described according to the total page number, default maximum sliding distance corresponding with the total page number, described Initial point coordinate and include the step of the target pages of slide described in the terminating point coordinate setting:
Calculate the distance between the starting point and the terminating point, using result of calculation as the slide slip Distance;
The slip is determined according to the total page number, the sliding distance of the slide and the maximum sliding distance The page number that should slide of operation;
Page glide direction is determined according to the starting point coordinate and the termination point coordinates;
According to the target pages of should slide page number and the page glide direction positioning slide.
Alternatively, it is described according to the total page number, the sliding distance of the slide and the maximum sliding distance Determine the slide should slide page number the step of include:
Calculate the sliding distance of the slide and the ratio of the maximum sliding distance;
The total page number is multiplied by into the ratio, the page number that should slide of the slide is obtained.
Alternatively, it is described to wrap the step of determine page glide direction according to the starting point coordinate and the termination point coordinates Include:
The direction of operating of the slide is determined according to the starting point coordinate and the termination point coordinates;
Obtain the page turning pattern that the terminal page is presently in;
The page glide direction is determined according to the direction of operating and the page turning pattern.
Alternatively, slide of the detecting based on terminal page, obtains the slide and touches in default terminal Before the step of starting point coordinate in control area's coordinate system and termination point coordinates, also include:
Arranging user carries out effective sliding distance of slide based on terminal page, using effective sliding distance as Maximum sliding distance corresponding with the total page number.
Additionally, for achieving the above object, the present invention also provides a kind of page positioner, and described device includes:
Detecting module, for slide of the detecting based on terminal page, obtains the slide in default terminal Starting point coordinate and termination point coordinates in the coordinate system of Touch Zone;
Determining module, for determining straight line according to the starting point coordinate and the termination point coordinates;Judge module, Whether the slope for judging the straight line is interval in default slope;
Acquisition module, if the slope for the straight line is interval in default slope, obtains the terminal page and shows The corresponding total page number of content for showing;
Locating module, for according to the total page number, default maximum sliding distance corresponding with the total page number, described The target pages of starting point coordinate and slide described in the terminating point coordinate setting.
Alternatively, the locating module includes:
Computing unit, for calculating the distance between the starting point and the terminating point, using result of calculation as described The sliding distance of slide;
First determining unit, for sliding according to the total page number, the sliding distance of the slide and the maximum Dynamic distance determines the page number that should slide of the slide;
Second determining unit, for determining page glide direction according to the starting point coordinate and the termination point coordinates;
Positioning unit, for positioning the slide according to page number and the page glide direction of should sliding Target pages.
Alternatively, first determining unit is additionally operable to:
Calculate the sliding distance of the slide and the ratio of the maximum sliding distance;
The total page number is multiplied by into the ratio, the page number that should slide of the slide is obtained.
Alternatively, second determining unit is additionally operable to:
The direction of operating of the slide is determined according to the starting point coordinate and the termination point coordinates;
Obtain the page turning pattern that the terminal page is presently in;
The page glide direction is determined according to the direction of operating and the page turning pattern.
Alternatively, described device also includes:
Setup module, for arranging user effective sliding distance of slide is carried out based on terminal page, is had described Effect sliding distance is used as maximum sliding distance corresponding with the total page number.
Slide of the present invention detecting based on terminal page, obtains the slide and sits in default terminal Touch Zone Starting point coordinate and termination point coordinates in mark system;Determine one directly according to the starting point coordinate and the termination point coordinates Line;Judge whether the slope of the straight line is interval in default slope;If so, the content that the terminal page shows then is obtained Corresponding total page number;Sat according to the total page number, default maximum sliding distance corresponding with the total page number, the starting point Be marked with and slide described in the terminating point coordinate setting target pages.Relative to prior art, when terminal page number compared with Many and user need to position to apart from the current page page farther out when, user need not repeatedly be clicked on or screen sliding operation, and Only screen sliding operation need to be carried out in the range of default slip angle, it becomes possible to position to target pages rapidly, while aforesaid way Avoiding carries out the inconvenience of drag operation using slider bar such that it is able to realize the quick positioning of the page.
Description of the drawings
Fig. 1 is the schematic flow sheet of page positioning method first embodiment of the present invention;
Fig. 2 is the application scenarios schematic diagram of first embodiment of the invention;
Fig. 3 is the refinement step schematic diagram of step S50 in page positioning method first embodiment of the present invention;
Fig. 4 is the schematic flow sheet of page positioning method second embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of page positioner first embodiment of the present invention;
Fig. 6 is the refinement high-level schematic functional block diagram of locating module in Fig. 5;
Fig. 7 is the high-level schematic functional block diagram of page positioner second embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
The present invention provides a kind of page positioning method.
With reference to Fig. 1, Fig. 1 is the schematic flow sheet of page positioning method first embodiment of the present invention.Methods described include as Lower step:
Step S10, slide of the detecting based on terminal page obtains the slide in default terminal Touch Zone Starting point coordinate and termination point coordinates in coordinate system.
In the present embodiment, terminal is mobile terminal, including the touch screen electronic equipment such as smart mobile phone, panel computer, these Electronic equipment all supports the page turn over operation such as page slip.The page in the present embodiment slides and refers mainly to the page and slide up and down (such as read Read electronic document) and the page horizontally slip (such as switching photo, check the horizontal thumbnail of multi-page).
In this step, terminal Touch Zone is terminal touch screen, when being embodied as, can initially set up terminal Touch Zone Coordinate system, allow the terminal Touch Zone be located at first quartile so that the coordinate data of all touch points on the Touch Zone be 0 or Positive number, it is of course also possible to otherwise set up the coordinate system of terminal Touch Zone, such as, the center with terminal Touch Zone is as original Point sets up coordinate system, can flexibly be arranged when being embodied as.
Slide of the mobile terminal detecting real-time based on terminal page, when the finger of user is slided in terminal page When dynamic, terminal obtain slide starting point coordinate and terminate point coordinates, certainly, mobile terminal can also according to it is default when Between two different screen sliding touch points corresponding to interval acquiring user's slide, and obtain the two touch points and touch in terminal Coordinate value in control area's coordinate system.
Step S20, according to the starting point coordinate and the termination point coordinates straight line is determined.
After getting starting point coordinate and terminating point coordinates, it becomes possible to determine one directly according to this 2 points coordinate value Line.
Step S30, judges whether the slope of the straight line is interval in default slope.
In the step, to make mobile terminal distinguish quick page turn over operation of the invention and existing common screen sliding operation Come, a slope interval can be preset, the default slope interval has corresponded to the effective coverage of quick page turn over operation, with reference to Fig. 2, Fig. 2 is the application scenarios schematic diagram of first embodiment of the invention, and coordinate system is set up by origin of terminal display screen center in figure, false Surely it is 0.5~2 to preset slope interval, then two straight lines corresponding to slope 0.5 and 2 determine having for quick page turn over operation Effect region, user only carries out slide in the effective coverage, and terminal can just judge that user needs to carry out quick page turning, if User carries out slide in non-active area, and terminal can carry out corresponding page cunning according to the sliding speed of user's finger It is dynamic.
Whether the straight slope of the above-mentioned determination of terminal judges is interval in default slope, and the default slope interval can root It is configured according to the operating habit of user, such as, it is -2~-0.5 and 0.5~2 to take slope interval, if user's slide is oblique Rate judges that the direction of operating of slide, as lower-left or upper right, if slope is between -2 to -0.5, is sentenced between 0.5 to 2, then The direction of operating for determining slide is upper left or bottom right.Thus, user's finger enters line slip behaviour in the effective coverage shown in Fig. 2 When making, the direction of operating of its finger must be the one kind in upper left, lower-left, upper right, bottom right, conversely, terminal judges user's finger Direction of operating be horizontal or vertical direction.If certain moment user reads an electronic document, it carries out on a display screen screen sliding Corresponding straight slope is operated to be 1, interval interior in setting slope, the screen sliding of now terminal judgement user is operated to have and quickly turned over Page is intended to, that is, perform page positioning step.
Step S40, if the slope of the straight line is interval in default slope, obtain that the terminal page shows is interior Hold corresponding total page number.
Terminal obtains the corresponding total page number of content that current page shows, such as, user currently reads and reads through electronics Document, then terminal obtain the total page number of the electronic document.
Step S50, according to the total page number, default maximum sliding distance corresponding with the total page number, the starting The target pages of point coordinates and slide described in the terminating point coordinate setting.
After the corresponding total page number of content that current page shows is got, terminal is further according to total page number, default and institute State the corresponding maximum sliding distance of total page number, the page object of the starting point and ending point coordinate setting slide of slide Face.Specifically, terminal can determine the glide direction of user's finger according to starting point coordinate and termination point coordinates, and then judge user Slide is intended to, such as Page forward and backward page turning;Then, total page number and current page of the terminal according to current page The corresponding maximum sliding distance of total page number and when the distance of front slide determines the page number that should stir, in currently displaying page On the basis of the number of face, plus or minus the page number that should be stirred, it is possible to the quickly positioning target page.Now, mobile terminal can Shown with the content of direct access target pages.
Wherein, the total page number of current page display content and maximum sliding distance are in corresponding relation, such as, when user opens During electronic document, mobile terminal automatically can be associated the total page number of the electronic document and the maximum sliding distance for arranging, when During user's slip maximum sliding distance, the page jumps directly to the last page of the electronic document.
In the present embodiment, slide of the detecting based on terminal page, obtains the slide in default terminal Starting point coordinate and termination point coordinates in the coordinate system of Touch Zone;Determined according to the starting point coordinate and the termination point coordinates Straight line;Judge whether the slope of the straight line is interval in default slope;If so, then obtain the terminal page to show The corresponding total page number of content;According to the total page number, default maximum sliding distance corresponding with the total page number, described The target pages of initial point coordinate and slide described in the terminating point coordinate setting.Relative to prior art, when terminal page Face number is more and user need to position to apart from the current page page farther out when, user need not repeatedly be clicked on or screen sliding behaviour Make, and only need to carry out screen sliding operation in the range of default slip angle, it becomes possible to position rapidly to target pages, while above-mentioned side Formula it also avoid carrying out the inconvenience of drag operation using slider bar such that it is able to realize the quick positioning of the page.
Further, with reference to Fig. 3, Fig. 3 is the refinement step of step S50 in page positioning method first embodiment of the present invention Schematic diagram.Based on the embodiment shown in above-mentioned Fig. 1, step S50 can include:
Step S51, calculates the distance between the starting point and the terminating point, using result of calculation as the behaviour that slides The sliding distance of work;
Step S52, determines according to the total page number, the sliding distance of the slide and the maximum sliding distance The page number that should slide of the slide;
Step S53, according to the starting point coordinate and the termination point coordinates page glide direction is determined;
Step S54, according to the target of should slide page number and the page glide direction positioning slide The page.
In the present embodiment, terminal is got after the starting point and ending point coordinate of slide, can be according to this 2 points Coordinate and distance between two points formula calculate slide sliding distance;Then, terminal is further according to the total of current page content Number of pages, the sliding distance of calculated slide and default maximum sliding distance calculate the slide correspondence of user The page number that should slide.
Specifically, step S52 can include:
Step S521, calculates the sliding distance of the slide and the ratio of the maximum sliding distance;
Step S522, by the total page number ratio is multiplied by, and obtains the page number that should slide of the slide.
Illustrated with the current reading documents of user, terminal is calculated the sliding distance of the current slide of user and is 200, the default maximum sliding distance of terminal is 400, and both ratios are 0.5, and current document total page number is page 500, then calculate The page number that should slide of user's slide is 500 × 0.5=250 page.
In addition, terminal can not also calculate the page number that should slide according to aforementioned proportion relation, such as, and can be current for user It is interval that the sliding distance of slide arranges multiple distances:0~100,100~200,200~300,300~400, its is corresponding The terminal page number that should slide is set gradually as 125,250,375,500, and in default multiple distances are interval, terminal will be corresponding It is default to slide page number as the page number that should slide of current slide, wherein, apart from interval and its corresponding should slide Page number can be arranged flexibly.
After the page number that should slide for determining user's slide, terminal is sat further according to starting point coordinate and terminating point Mark determines page glide direction.Specifically, step S53 can include:
Step S531, according to the starting point coordinate and the termination point coordinates operation side of the slide is determined To;
Step S532, obtains the page turning pattern that the terminal page is presently in;
Step S533, according to the direction of operating and the page turning pattern glide direction is determined.
When carrying out slide in the effective coverage shown in Fig. 2 due to user's finger, the direction of operating of its finger must For the one kind in upper left, lower-left, upper right, bottom right, if the starting point coordinate of slide is (X0, Y0), terminating point coordinates is (X1, Y1), then terminal according to starting point coordinate and terminate point coordinates determine that the direction of operating process of slide is as follows:
A) X1 is worked as>X0, and Y1>Y0, then direction of operating is upper right.
B) X1 is worked as>X0, and Y1<Y0, then direction of operating is bottom right.
C) X1 is worked as<X0, and Y1>Y0, then direction of operating is upper left.
D) X1 is worked as<X0, and Y1<Y0, then direction of operating is lower-left.
Afterwards, terminal obtains again the page turning pattern that terminal page is presently in.Usually, the page turning pattern pair of terminal page The page glide direction for answering system to allow, such as, if page turning pattern is " sliding page ", the page is merely able to slide up or down Dynamic, if page turning pattern " emulation page turning ", the page is merely able to slide to the left or to the right.Thus, terminal can be according to slide The page turning pattern that direction of operating and the page are presently in determines the final glide direction of the page.
Such as, if the page glide direction that current system is allowed is to horizontally slip, when the direction of operating of user is upper left Or during lower-left, can determine that there is user the operation slided to the left to be intended to, thus page glide direction is determined to slide to the left, now Page turning forward or backward can be carried out according to the corresponding relation between the page glide direction and page turning direction for pre-setting;Work as user Direction of operating be upper right or during bottom right, can determine that there is user the operation slided to the right to be intended to, thus determine page slip side To slide to the right, now also can according to the corresponding relation between the page glide direction and page turning direction for pre-setting carry out to Front or page turning backward.
Similarly, if the page glide direction that current system is allowed is to slide up and down, when the direction of operating of user is a left side During upper or upper right, can determine that the operation that user has upward sliding is intended to, thus determine that page glide direction is upward sliding, this When can carry out page turning forward or backward according to the corresponding relation between the page glide direction and page turning direction for pre-setting;When with When the direction of operating at family is lower-left or bottom right, can determine that the operation that user has slide downward is intended to, thus determine that the page slides Direction is slide downward, now also can be carried out according to the corresponding relation between the page glide direction and page turning direction for pre-setting Page turning forward or backward.
So far, terminal determines should slide page number and page glide direction.Then, terminal is according to the page number that should slide With page glide direction, on the basis of current display page number, plus or minus the page number that should slide, so that it may quickly position mesh The mark page, such as, current page is 10, and the page number that should slide is 100, and glide direction is slide downward, then target pages are 110, be to improve page turning efficiency, now terminal can the content of direct access page 110 shown.It should be noted that terminal is also Need to judge whether the page can slide to the direction for determining, such as current page can not be performed and turned over backward in last page, terminal Page, now terminal can export information prompting customer documentation and reach last page.
The sliding distance of the present embodiment user's slide is with default maximum sliding distance, should slide page number and total page Number meets the page turn over operation custom of general user in correspondence proportionate relationship, and the present embodiment is simple to operate, can realize quickly turning over Page.
Further, with reference to Fig. 4, Fig. 4 is the schematic flow sheet of page positioning method second embodiment of the present invention.Based on upper The embodiment stated, before step S10, can also include:
Step S60, arranging user carries out effective sliding distance of slide based on terminal page, by effective slip Distance is used as maximum sliding distance corresponding with the total page number.
In the present embodiment, effective sliding distance can be arranged based on terminal display screen size, it is also possible to show based on terminal The resolution ratio of screen arranges effective sliding distance, and screen resolution is bigger, then effective sliding distance is bigger.Such as The display screen of 480x640 resolution ratio, effective sliding distance could be arranged to 400,400 for the points in screen dot matrix.
To ensure that document during a slide, can be turned to endpage by user from homepage, terminal will can be arranged Effective sliding distance as maximum sliding distance corresponding with page total page number.If the sliding distance of user's slide exceedes Effective sliding distance, then for the part that sliding distance exceedes effective sliding distance, terminal will not perform any operation.
The present invention also provides a kind of page positioner.
With reference to Fig. 5, Fig. 5 is the high-level schematic functional block diagram of page positioner first embodiment of the present invention.Described device bag Include:
Detecting module 10, for slide of the detecting based on terminal page, obtains the slide at default end Starting point coordinate and termination point coordinates in the Touch Zone coordinate system of end;
In the present embodiment, terminal is mobile terminal, including the touch screen electronic equipment such as smart mobile phone, panel computer, these Electronic equipment all supports the page turn over operation such as page slip.The page in the present embodiment slides and refers mainly to the page and slide up and down (such as read Read electronic document) and the page horizontally slip (such as switching photo, check the horizontal thumbnail of multi-page).
In this step, terminal Touch Zone is terminal touch screen, when being embodied as, can initially set up terminal Touch Zone Coordinate system, allow the terminal Touch Zone be located at first quartile so that the coordinate data of all touch points on the Touch Zone be 0 or Positive number, it is of course also possible to otherwise set up the coordinate system of terminal Touch Zone, such as, the center with terminal Touch Zone is as original Point sets up coordinate system, can flexibly be arranged when being embodied as.
Slide of the detecting real-time of detecting module 10 based on terminal page, when the finger of user is carried out in terminal page During slip, obtain slide starting point coordinate and terminate point coordinates, certainly, detecting module 10 can also according to it is default when Between two different screen sliding touch points corresponding to interval acquiring user's slide, and obtain the two touch points and touch in terminal Coordinate value in control area's coordinate system.
Determining module 20, for determining straight line according to the starting point coordinate and the termination point coordinates;
After getting starting point coordinate and terminating point coordinates, determining module 20 just can be according to this 2 points of coordinate value Determine straight line.
Whether judge module 30, the slope for judging the straight line is interval in default slope;
In the step, to make mobile terminal distinguish quick page turn over operation of the invention and existing common screen sliding operation Come, a slope interval can be preset, the default slope interval has corresponded to the effective coverage of quick page turn over operation, with reference to Fig. 2, Fig. 2 is the application scenarios schematic diagram of first embodiment of the invention, and coordinate system is set up by origin of terminal display screen center in figure, false Surely it is 0.5~2 to preset slope interval, then two straight lines corresponding to slope 0.5 and 2 determine having for quick page turn over operation Effect region, user carries out slide only in effective coverage, and judge module 30 can just judge that user needs quickly to be turned over Page, if user carries out slide in non-active area, terminal can be carried out accordingly according to the sliding speed of user's finger The page slides.
Judge module 30 judges whether the straight slope of above-mentioned determination is interval in default slope, the default slope area Between can be configured according to the operating habit of user, such as, it is interval for -2~-0.5 and 0.5~2 to take slope, the behaviour if user slides The slope of work judges the direction of operating of slide as lower-left or upper right between 0.5 to 2, then, if slope -2 to -0.5 it Between, then judge the direction of operating of slide as upper left or bottom right.Thus, user's finger is entered in the effective coverage shown in Fig. 2 When line slip is operated, the direction of operating of its finger must be the one kind in upper left, lower-left, upper right, bottom right, conversely, terminal judges The direction of operating of user's finger is horizontal or vertical direction.If certain moment user reads an electronic document, it is on a display screen It is 1 to carry out screen sliding and operate corresponding straight slope, interval interior in setting slope, and now terminal judges the screen sliding operation tool of user There is quick page turning to be intended to, that is, perform page positioning step.
Acquisition module 40, if the slope for the straight line is interval in default slope, obtains the terminal page The corresponding total page number of content of display;
Acquisition module 40 obtains the corresponding total page number of content that current page shows, such as, user is currently reading one All over electronic document, then the total page number of the electronic document is obtained.
Locating module 50, for according to the total page number, default maximum sliding distance corresponding with the total page number, institute State the target pages of starting point coordinate and slide described in the terminating point coordinate setting.
After acquisition module 40 gets the corresponding total page number of content that current page shows, locating module 50 is further according to total Number of pages, default maximum sliding distance corresponding with the total page number, the starting point and ending point coordinate setting of slide are slided The target pages of dynamic operation.Specifically, locating module 50 can determine user's finger according to starting point coordinate and termination point coordinates Glide direction, and then judge that user's slide is intended to, such as Page forward and backward page turning;Then, the basis of locating module 50 The total page number of current page maximum sliding distance corresponding with current page total page number and when front slide distance determine should The page number for stirring, on the basis of currently displaying page number, plus or minus the page number that should be stirred, it is possible to it is quick fixed Position target pages.Now, mobile terminal can be shown with the content of direct access target pages.
Wherein, the total page number of current page display content and maximum sliding distance are in corresponding relation, such as, when user opens During electronic document, mobile terminal automatically can be associated the total page number of the electronic document and the maximum sliding distance for arranging, when During user's slip maximum sliding distance, the page jumps directly to the last page of the electronic document.
In the present embodiment, slide of the detecting of detecting module 10 based on terminal page, obtains the slide and exists Starting point coordinate and termination point coordinates in the coordinate system of default terminal Touch Zone;Determining module 20 is according to the starting point coordinate Determine straight line with the termination point coordinates;Whether judge module 30 judges the slope of the straight line in default slope area Between;If so, then acquisition module 40 obtains the corresponding total page number of content that the terminal page shows;Locating module 50 is according to described Total page number, default maximum sliding distance corresponding with the total page number, the starting point coordinate and the termination point coordinates Position the target pages of the slide.Relative to prior art, when terminal page number is more and user need to be positioned to distance During the current page page farther out, user need not repeatedly be clicked on or screen sliding operation, and only need to be in default slip angle model Screen sliding operation is carried out in enclosing, it becomes possible to position to target pages rapidly, while aforesaid way it also avoid being carried out using slider bar The inconvenience of drag operation such that it is able to realize the quick positioning of the page.
Further, with reference to Fig. 6, Fig. 6 is the refinement high-level schematic functional block diagram of locating module in Fig. 5.Based on above-mentioned Fig. 5 institutes The embodiment shown, the locating module 50 can include:
Computing unit 51, for calculating the distance between the starting point and the terminating point, using result of calculation as institute State the sliding distance of slide;
First determining unit 52, for according to the total page number, the sliding distance of the slide and the maximum Sliding distance determines the page number that should slide of the slide;
Second determining unit 53, for determining page slip side according to the starting point coordinate and the termination point coordinates To;
Positioning unit 54, for according to page number and the page glide direction positioning slide of should sliding Target pages.
In the present embodiment, terminal is got after the starting point and ending point coordinate of slide, and computing unit 51 can be with The sliding distance of slide is calculated according to this 2 points coordinate and distance between two points formula;Then, the first determining unit 52 is again Total page number, the sliding distance of calculated slide and default maximum sliding distance meter according to current page content Calculate the corresponding page number that should slide of slide of user.
Specifically, first determining unit 52 is additionally operable to:Calculate the sliding distance and the maximum of the slide The ratio of sliding distance;The total page number is multiplied by into the ratio, the page number that should slide of the slide is obtained.
Illustrated with the current reading documents of user, computing unit 51 be calculated the slip of the current slide of user away from From for 200, the default maximum sliding distance of terminal is 400, and both ratios are 0.5, and current document total page number is page 500, then First determining unit 52 determines that the page number that should slide of user's slide is 500 × 0.5=250 page.
In addition, the first determining unit 52 can not also be calculated according to aforementioned proportion relation should slide page number, such as, and can be with Sliding distance for the current slide of user arranges multiple distance intervals:0~100,100~200,200~300,300~ 400, its corresponding terminal page number that should slide is set gradually as 125,250,375,500, in default multiple distances are interval, Corresponding presetting should be slided page number as the page number that should slide of current slide by the first determining unit 52, wherein, away from Can flexibly be arranged from the interval and its corresponding page number that should slide.
After the page number that should slide that the first determining unit 52 determines user's slide, the second determining unit 53 is again Page glide direction is determined according to starting point coordinate and termination point coordinates.Specifically, second determining unit 53 is additionally operable to:Root Determine the direction of operating of the slide according to the starting point coordinate and the termination point coordinates;Obtain the terminal page to work as Front residing page turning pattern;The page glide direction is determined according to the direction of operating and the page turning pattern.
When carrying out slide in the effective coverage shown in Fig. 2 due to user's finger, the direction of operating of its finger must For the one kind in upper left, lower-left, upper right, bottom right, if the starting point coordinate of slide is (X0, Y0), terminating point coordinates is (X1, Y1), then terminal according to starting point coordinate and terminate point coordinates determine that the direction of operating process of slide is as follows:
A) X1 is worked as>X0, and Y1>Y0, then direction of operating is upper right.
B) X1 is worked as>X0, and Y1<Y0, then direction of operating is bottom right.
C) X1 is worked as<X0, and Y1>Y0, then direction of operating is upper left.
D) X1 is worked as<X0, and Y1<Y0, then direction of operating is lower-left.
Afterwards, the second determining unit 53 obtains again the page turning pattern that terminal page is presently in.Usually, terminal page Page turning pattern correspondence system allow page glide direction, such as, if page turning pattern be " sliding page ", the page be merely able to Upper or slide downward, if page turning pattern " emulation page turning ", the page is merely able to slide to the left or to the right.Thus, second determines list Unit 53 can determine the final glide direction of the page according to the page turning pattern that the direction of operating of slide and the page are presently in.
Such as, if the page glide direction that current system is allowed is to horizontally slip, when the direction of operating of user is upper left Or during lower-left, can determine that there is user the operation slided to the left to be intended to, thus the second determining unit 53 determines page glide direction To slide to the left, now can according to the corresponding relation between the page glide direction and page turning direction for pre-setting carry out forward or Page turning backward;When the direction of operating of user is upper right or bottom right, can determine that there is user the operation slided to the right to be intended to, thus Second determining unit 53 determines page glide direction to slide to the right, now also can according to the page glide direction for pre-setting with Corresponding relation between page turning direction carries out page turning forward or backward.
Similarly, if the page glide direction that current system is allowed is to slide up and down, when the direction of operating of user is a left side During upper or upper right, can determine that the operation that user has upward sliding is intended to, thus the second determining unit 53 determines page slip side To for upward sliding, now can carry out forward according to the corresponding relation between the page glide direction and page turning direction for pre-setting Or page turning backward;When the direction of operating of user is lower-left or bottom right, can determine that the operation that user has slide downward is intended to, because And the second determining unit 53 determines that page glide direction is slide downward, now also can be according to the page glide direction for pre-setting Page turning forward or backward is carried out with the corresponding relation between page turning direction.
So far, terminal determines should slide page number and page glide direction.Then, positioning unit 54 is according to should slide Page number and page glide direction, on the basis of current display page number, plus or minus the page number that should slide, so that it may it is quick Positioning target pages, such as, current page is 10, and the page number that should slide is 100, and glide direction is slide downward, then page object Face is 110, is to improve page turning efficiency, now terminal can the content of direct access page 110 shown.It should be noted that eventually End also need to judge the page whether can to the direction slip for determining, such as current page in last page, terminal can not perform to Page turning afterwards, now terminal can export information prompting customer documentation reached last page.
The sliding distance of the present embodiment user's slide is with default maximum sliding distance, should slide page number and total page Number meets the page turn over operation custom of general user in correspondence proportionate relationship, and the present embodiment is simple to operate, can realize quickly turning over Page.
Further, with reference to Fig. 7, Fig. 7 is the high-level schematic functional block diagram of page positioner second embodiment of the present invention.Base In the above embodiments, described device also includes:
Setup module 60, for arranging user effective sliding distance of slide is carried out based on terminal page, will be described Effectively sliding distance is used as maximum sliding distance corresponding with the total page number.
In the present embodiment, setup module 60 can arrange effective sliding distance based on terminal display screen size, it is also possible to base Effective sliding distance is set in the resolution ratio of terminal display screen, screen resolution is bigger, then effective sliding distance is bigger.Such as For the display screen of 480x640 resolution ratio, effective sliding distance could be arranged to 400,400 for the points in screen dot matrix.
To ensure that document during a slide, can be turned to endpage by user from homepage, setup module 60 can Using the effective sliding distance for arranging as maximum sliding distance corresponding with page total page number.If the slip of user's slide away from From more than effective sliding distance, then for the part that sliding distance exceedes effective sliding distance, terminal will not perform any behaviour Make.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of page positioning method, it is characterised in that methods described comprises the steps:
Slide of the detecting based on terminal page, obtains the slide rising in the coordinate system of default terminal Touch Zone Initial point coordinate and termination point coordinates;
Straight line is determined according to the starting point coordinate and the termination point coordinates;
Judge whether the slope of the straight line is interval in default slope;
If so, the corresponding total page number of content that the terminal page shows then is obtained;
According to the total page number, default maximum sliding distance corresponding with the total page number, the starting point coordinate and institute State the target pages of slide described in terminating point coordinate setting.
2. page positioning method as claimed in claim 1, it is characterised in that it is described according to the total page number, default and institute State the corresponding maximum sliding distance of total page number, the starting point coordinate and slide described in the terminating point coordinate setting The step of target pages, includes:
Calculate the distance between the starting point and the terminating point, using result of calculation as the slide slip away from From;
The slide is determined according to the total page number, the sliding distance of the slide and the maximum sliding distance The page number that should slide;
Page glide direction is determined according to the starting point coordinate and the termination point coordinates;
According to the target pages of should slide page number and the page glide direction positioning slide.
3. page positioning method as claimed in claim 2, it is characterised in that described to be grasped according to the total page number, the slip The sliding distance of work and the maximum sliding distance determine the slide should slide page number the step of include:
Calculate the sliding distance of the slide and the ratio of the maximum sliding distance;
The total page number is multiplied by into the ratio, the page number that should slide of the slide is obtained.
4. page positioning method as claimed in claim 2, it is characterised in that described according to the starting point coordinate and the end The step of stop coordinate determines page glide direction includes:
The direction of operating of the slide is determined according to the starting point coordinate and the termination point coordinates;
Obtain the page turning pattern that the terminal page is presently in;
The page glide direction is determined according to the direction of operating and the page turning pattern.
5. the page positioning method as described in any one of Claims 1-4, it is characterised in that the detecting is based on terminal page Slide, obtain starting point coordinate in the coordinate system of default terminal Touch Zone of the slide and terminate point coordinates The step of before, also include:
Arranging user carries out effective sliding distance of slide based on terminal page, using effective sliding distance as with institute State the corresponding maximum sliding distance of total page number.
6. a kind of page positioner, it is characterised in that described device includes:
Detecting module, for slide of the detecting based on terminal page, obtains the slide in default terminal touch-control Starting point coordinate and termination point coordinates in area's coordinate system;
Determining module, for determining straight line according to the starting point coordinate and the termination point coordinates;
Whether judge module, the slope for judging the straight line is interval in default slope;
Acquisition module, if the slope for the straight line is interval in default slope, obtains what the terminal page showed The corresponding total page number of content;
Locating module, for according to the total page number, default maximum sliding distance corresponding with the total page number, the starting The target pages of point coordinates and slide described in the terminating point coordinate setting.
7. page positioner as claimed in claim 6, it is characterised in that the locating module includes:
Computing unit, for calculating the distance between the starting point and the terminating point, using result of calculation as the slip The sliding distance of operation;
First determining unit, for according to the total page number, the sliding distance of the slide and it is described it is maximum slide away from From the page number that should slide for determining the slide;
Second determining unit, for determining page glide direction according to the starting point coordinate and the termination point coordinates;
Positioning unit, for according to the target of should slide page number and the page glide direction positioning slide The page.
8. page positioner as claimed in claim 7, it is characterised in that first determining unit is additionally operable to:
Calculate the sliding distance of the slide and the ratio of the maximum sliding distance;
The total page number is multiplied by into the ratio, the page number that should slide of the slide is obtained.
9. page positioner as claimed in claim 7, it is characterised in that second determining unit is additionally operable to:
The direction of operating of the slide is determined according to the starting point coordinate and the termination point coordinates;
Obtain the page turning pattern that the terminal page is presently in;
The page glide direction is determined according to the direction of operating and the page turning pattern.
10. the page positioner as described in any one of claim 6 to 9, it is characterised in that described device also includes:
Setup module, for arranging user effective sliding distance of slide is carried out based on terminal page, by effective cunning Dynamic distance is used as maximum sliding distance corresponding with the total page number.
CN201611175422.8A 2016-12-16 2016-12-16 Page locating method and apparatus Pending CN106598435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611175422.8A CN106598435A (en) 2016-12-16 2016-12-16 Page locating method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611175422.8A CN106598435A (en) 2016-12-16 2016-12-16 Page locating method and apparatus

Publications (1)

Publication Number Publication Date
CN106598435A true CN106598435A (en) 2017-04-26

Family

ID=58599323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611175422.8A Pending CN106598435A (en) 2016-12-16 2016-12-16 Page locating method and apparatus

Country Status (1)

Country Link
CN (1) CN106598435A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101175A (en) * 2018-06-27 2018-12-28 珠海格力电器股份有限公司 A kind of exchange method and its interactive device of electronic product desktop
CN110058646A (en) * 2019-03-15 2019-07-26 努比亚技术有限公司 A kind of desktop display method, wearable device and storage medium
CN114721758A (en) * 2022-03-29 2022-07-08 北京百度网讯科技有限公司 Page positioning method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679433A (en) * 2015-03-10 2015-06-03 中国联合网络通信集团有限公司 Method for realizing electronic book reading and electronic book reading device
CN104915131A (en) * 2014-03-11 2015-09-16 珠海金山办公软件有限公司 Method and apparatus for turning pages of electronic document
US20160140252A1 (en) * 2014-11-19 2016-05-19 Kobo Incorporated System and method for page flip interface
CN105843547A (en) * 2016-05-24 2016-08-10 腾讯科技(深圳)有限公司 Page sliding method and device
CN105930089A (en) * 2016-05-31 2016-09-07 维沃移动通信有限公司 Method for switching display interfaces of mobile terminal and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915131A (en) * 2014-03-11 2015-09-16 珠海金山办公软件有限公司 Method and apparatus for turning pages of electronic document
US20160140252A1 (en) * 2014-11-19 2016-05-19 Kobo Incorporated System and method for page flip interface
CN104679433A (en) * 2015-03-10 2015-06-03 中国联合网络通信集团有限公司 Method for realizing electronic book reading and electronic book reading device
CN105843547A (en) * 2016-05-24 2016-08-10 腾讯科技(深圳)有限公司 Page sliding method and device
CN105930089A (en) * 2016-05-31 2016-09-07 维沃移动通信有限公司 Method for switching display interfaces of mobile terminal and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101175A (en) * 2018-06-27 2018-12-28 珠海格力电器股份有限公司 A kind of exchange method and its interactive device of electronic product desktop
CN110058646A (en) * 2019-03-15 2019-07-26 努比亚技术有限公司 A kind of desktop display method, wearable device and storage medium
CN114721758A (en) * 2022-03-29 2022-07-08 北京百度网讯科技有限公司 Page positioning method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US7268772B2 (en) Information processing apparatus operating in touch panel mode and pointing device mode
US10282067B2 (en) Method and apparatus of controlling an interface based on touch operations
CN102681786B (en) Method and device for text selection
CN101458586B (en) Method for operating objects on touch control screen by multi-fingers
CN103631489B (en) Touch screen character display method and device
CN106527955B (en) Method and device for controlling page sliding
US20180121076A1 (en) Drawing processing method, drawing program, and drawing device
CN103809843B (en) A kind of method and apparatus adjusting brightness of display screen in a browser
CN106528160B (en) A kind of application program image target adding method and terminal
JP2013020512A (en) Printing instruction device and printing instruction program
CN103744582A (en) Terminal control device and terminal control method
CN106598435A (en) Page locating method and apparatus
CN107957812A (en) Touch device and touch device discrimination method
CN104317494A (en) Method and system for moving cursor
US8954873B2 (en) Information processing apparatus, information processing method and computer readable medium
CN106201293B (en) Text selection method and device and text processing method and device
US9671948B2 (en) Image-display control system, image-display control method, and non-transitory computer-readable storage medium storing image-display control program
CN104731495A (en) Page content selecting method and system
US9535580B2 (en) Display apparatus and computer-readable non-transitory recording medium with display control program stored thereon
CN105468241A (en) Electronic book browsing method and apparatus
CN105446518A (en) Handheld terminal and function key setting method
CN103645829A (en) Character deletion method and portable terminal utilizing same
CN106648366A (en) Input method of wearable equipment and wearable equipment
CN104346086A (en) Information processing method and electronic equipment
CN103309489B (en) A kind of touch-control input device changing translational speed and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170426