Summary of the invention
The object of the embodiment of the present invention is to provide a kind of method for page jump and system, helps user easily to realize page jump comparatively at need to carry out page jump user by click keys.
For achieving the above object, the embodiment of the invention discloses a kind of method for page jump, being applied to mobile terminal, described method comprises:
Obtain the present mode of operation of described mobile terminal;
Judge whether described present mode of operation is page reading model, if so, then obtains the rotation parameter of described mobile terminal, and wherein, described rotation parameter comprises the anglec of rotation and sense of rotation;
Judge whether the described anglec of rotation is not less than default angle threshold, if so, perform page jumping operation and according to the display direction of the page after described rotation parameter adjustment redirect, wherein, described default angle threshold is not less than 45 °.
Preferably, described execution page jumping operation, comprising:
Current page is jumped to the first page with the default page number;
Or jump to second page from current page, the difference of the page number of described second page and the page number of described current page is predetermined threshold value.
Preferably, described execution page jumping operation, comprising:
According to described sense of rotation determination page jump direction;
Control current page to the page jump being in determined page jump direction.
Preferably, described control current page, to the page jump being in determined page jump direction, comprising:
Control current page and jump to second page being in determined page jump direction, the difference of the page number of described second page and the page number of described current page is predetermined threshold value.
Preferably, the described display direction according to the page after described rotation parameter adjustment redirect, comprising:
Determine the angular interval at described anglec of rotation place, wherein, described angular interval comprises: [45 °, 135 °), [135 °, 225 °), [225 °, 315 °), [315 °, 360 °], [0 °, 45 °);
The sense of rotation of the display direction of the page to described mobile terminal rotated, the anglec of rotation of the display direction of the described page is: be arranged in determined angular interval, and is the number of degrees of the integral multiple of 90 °.
A kind of page jump system, be applied to mobile terminal, described system comprises: pattern obtains unit, mode determination, gain of parameter unit, angle judging unit, page jump unit and direction adjustment unit,
Described pattern obtains unit, for obtaining the present mode of operation of described mobile terminal;
Described mode determination, for judging whether described present mode of operation is page reading model, if so, then triggers described gain of parameter unit;
Described gain of parameter unit, for obtaining the rotation parameter of described mobile terminal, wherein, described rotation parameter comprises the anglec of rotation and sense of rotation;
Described angle judging unit, for judging whether the described anglec of rotation is not less than default angle threshold, if so, trigger described page jump unit and described direction adjustment unit, wherein, described default angle threshold is not less than 45 °;
Described page jump unit, for performing page jumping operation;
Described direction adjustment unit, for the display direction according to the page after described rotation parameter adjustment redirect.
Preferably, described page jump unit, comprising: the first redirect subelement or the second redirect subelement,
Described first redirect subelement, for jumping to the first page with the default page number by current page;
Described second redirect subelement, for jumping to second page from current page, the difference of the page number of described second page and the page number of described current page is predetermined threshold value.
Preferably, described page jump unit, comprising: subelement and the 3rd redirect subelement are determined in direction,
Subelement is determined in described direction, for according to described sense of rotation determination page jump direction;
Described 3rd redirect subelement, for controlling current page to the page jump being in determined page jump direction.
Preferably, described 3rd redirect subelement, jump to specifically for controlling current page second page being in determined page jump direction, the difference of the page number of described second page and the page number of described current page is predetermined threshold value.
Preferably, described direction adjustment unit, comprising: subelement and direction gyrator unit are determined in interval,
Subelement is determined in described interval, for determining the angular interval at described anglec of rotation place, wherein, described angular interval comprises: [45 °, 135 °), [135 °, 225 °), [225 °, 315 °), [315 °, 360 °], [0 °, 45 °);
Described direction gyrator unit, for the sense of rotation of the display direction of the page to described mobile terminal being rotated, the anglec of rotation of the display direction of the described page is: be arranged in determined angular interval, and is the number of degrees of the integral multiple of 90 °.
A kind of method for page jump that the embodiment of the present invention provides and system, can when mobile terminal be in page reading model, obtain the rotation parameter of mobile terminal, when the anglec of rotation is not less than default angle threshold, perform page jumping operation and according to the display direction of the page after rotation parameter adjustment redirect.Therefore, the present invention can carry out page jump comparatively at need user by click keys, helps user easily to realize page jump.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, a kind of method for page jump that the embodiment of the present invention provides, be applied to mobile terminal, the method can comprise:
S100, obtain the present mode of operation of described mobile terminal;
Wherein, mobile terminal can be mobile phone, panel computer, media player, E-book reader etc.
S200, judge whether described present mode of operation is page reading model, if so, then performs S300;
When running through multiple pages of user orienteds in mobile terminal and providing the program of information, can determine that present mode of operation is page reading model.Concrete, said procedure can be: e-book reading software, e-magazine, office software, browser etc.When S200 determines present mode of operation not for page reading model, can continue to perform S200 or terminate to perform.
S300, obtain the rotation parameter of described mobile terminal, wherein, described rotation parameter comprises the anglec of rotation and sense of rotation;
Concrete, gyroscope can be used to respond to the rotation parameter of mobile terminal.Wherein, described sense of rotation can comprise: turn clockwise and be rotated counterclockwise.
S400, judge whether the described anglec of rotation is not less than default angle threshold, if so, perform S500, wherein, described default angle threshold is not less than 45 °;
Be understandable that, user unconsciously may cause the slight rotation of mobile terminal in the process using mobile terminal, in order to prevent maloperation, the present invention is not less than the angle threshold of 45 ° by arranging, and mobile terminal can be avoided to carry out action when slight rotation.When S400 determines that the anglec of rotation is less than default angle threshold, can continue to perform S400 or terminate to perform.
S500, perform page jumping operation and according to the display direction of the page after described rotation parameter adjustment redirect.
Concrete, perform page jumping operation in S500, can comprise:
Current page is jumped to the first page with the default page number;
Or jump to second page from current page, the difference of the page number of described second page and the page number of described current page is predetermined threshold value.
Wherein, first page can be certain page that homepage, endpage or user set.Predetermined threshold value can be 1, and in this case, after each execution skip operation, the page will jump to lower one page; Predetermined threshold value can be-1, and in this case, after each execution skip operation, the page will jump to page up.Certainly, predetermined threshold value can also be other non-vanishing integers, and the present invention does not limit.
In actual applications, can also according to the sense of rotation determination page jump direction of mobile terminal: perform page jumping operation in S500, can comprise:
According to described sense of rotation determination page jump direction;
Control current page to the page jump being in determined page jump direction.
Such as: when sense of rotation is for turning clockwise, page jump direction is redirect forward, to jump to the larger page of the page number; When sense of rotation is for being rotated counterclockwise, page jump direction is redirect backward, to jump to the less page of the page number.
Wherein, above-mentioned control current page, to the page jump being in determined page jump direction, can comprise:
Control current page and jump to second page being in determined page jump direction, the difference of the page number of described second page and the page number of described current page is predetermined threshold value.
In other embodiments of the present invention, according to the display direction of the page after described rotation parameter adjustment redirect in S500, can comprise:
Determine the angular interval at described anglec of rotation place, wherein, described angular interval comprises: [45 °, 135 °), [135 °, 225 °), [225 °, 315 °), [315 °, 360 °], [0 °, 45 °);
The sense of rotation of the display direction of the page to described mobile terminal rotated, the anglec of rotation of the display direction of the described page is: be arranged in determined angular interval, and is the number of degrees of the integral multiple of 90 °.
Be understandable that, after rotation of mobile terminal, in mobile terminal, original display direction of the page is no longer applicable to user's viewing, now just needs the rotation carrying out page display direction.Such as: user is by rotation of mobile terminal 180 °, then the display direction of the page also should rotate 180 °, otherwise user will see the page that upside down display.Because the display screen of mobile terminal is generally rectangle, the page is also generally rectangle, when therefore carrying out the rotation of page display direction, should be also a rotational units with 90 °, also namely: the page display direction anglec of rotation is the integral multiple of 90 °.But in actual applications, the angle that user controls rotation of mobile terminal might not be the integral multiple of 90 °, therefore can by the angle determining to rotate needed for the page between rotation of mobile terminal angle location.In general, when certain integral multiple of 90 ° of angular distance that user rotates is nearer, then can determine that the angle of this integral multiple of 90 ° is the required angle rotated of the page.
Concrete, when mobile terminal continuous rotation is more than one week time (namely 360 °), can according to the initial position determination anglec of rotation before postrotational final position and rotation, now the anglec of rotation is less than 360 °, will fall into above-mentioned angular interval.
A kind of method for page jump that the embodiment of the present invention provides, can when mobile terminal be in page reading model, obtain the rotation parameter of mobile terminal, when the anglec of rotation is not less than default angle threshold, perform page jumping operation and according to the display direction of the page after rotation parameter adjustment redirect.Therefore, the present invention can carry out page jump comparatively at need user by click keys, helps user easily to realize page jump.
Corresponding with said method embodiment, present invention also offers a kind of page jump system.
As shown in Figure 2, a kind of page jump system provided by the invention, be applied to mobile terminal, this system can comprise: pattern obtains unit 100, mode determination 200, gain of parameter unit 300, angle judging unit 400, page jump unit 500 and direction adjustment unit 600
Pattern obtains unit 100, for obtaining the present mode of operation of described mobile terminal;
Wherein, mobile terminal can be mobile phone, panel computer, media player, E-book reader etc.
Mode determination 200, for judging whether described present mode of operation is page reading model, if so, then trigger parameter obtains unit 300;
When running through multiple pages of user orienteds in mobile terminal and providing the program of information, mode determination 200 can determine that present mode of operation is page reading model.Concrete, said procedure can be: e-book reading software, e-magazine, office software, browser etc.
Gain of parameter unit 300, for obtaining the rotation parameter of described mobile terminal, wherein, described rotation parameter comprises the anglec of rotation and sense of rotation;
Concrete, gain of parameter unit 300 can obtain the rotation parameter of the mobile terminal of gyroscope induction.Wherein, described sense of rotation can comprise: turn clockwise and be rotated counterclockwise.
Angle judging unit 400, for judging whether the described anglec of rotation is not less than default angle threshold, if so, triggering page jump-transfer unit 500 and direction adjustment unit 600, wherein, described default angle threshold is not less than 45 °;
Be understandable that, user unconsciously may cause the slight rotation of mobile terminal in the process using mobile terminal, in order to prevent maloperation, the present invention is not less than the angle threshold of 45 ° by arranging, and mobile terminal can be avoided to carry out action when slight rotation.
Page jump unit 500, for performing page jumping operation;
Direction adjustment unit 600, for the display direction according to the page after described rotation parameter adjustment redirect.
Wherein, page jump unit 500, can comprise: the first redirect subelement or the second redirect subelement,
Described first redirect subelement, for jumping to the first page with the default page number by current page;
Described second redirect subelement, for jumping to second page from current page, the difference of the page number of described second page and the page number of described current page is predetermined threshold value.
Wherein, first page can be certain page that homepage, endpage or user set.Predetermined threshold value can be 1, and in this case, after each execution skip operation, the page will jump to lower one page; Predetermined threshold value can be-1, and in this case, after each execution skip operation, the page will jump to page up.Certainly, predetermined threshold value can also be other non-vanishing integers, and the present invention does not limit.
In other embodiments of the present invention, described page jump unit 500, can comprise: subelement and the 3rd redirect subelement are determined in direction,
Subelement is determined in described direction, for according to described sense of rotation determination page jump direction;
Described 3rd redirect subelement, for controlling current page to the page jump being in determined page jump direction.
Such as: when sense of rotation is for turning clockwise, page jump direction is redirect forward, to jump to the larger page of the page number; When sense of rotation is for being rotated counterclockwise, page jump direction is redirect backward, to jump to the less page of the page number.
Wherein, described 3rd redirect subelement, can jump to specifically for controlling current page second page being in determined page jump direction, the difference of the page number of described second page and the page number of described current page is predetermined threshold value.
Wherein, described direction adjustment unit 600, can comprise: subelement and direction gyrator unit are determined in interval,
Subelement is determined in described interval, for determining the angular interval at described anglec of rotation place, wherein, described angular interval comprises: [45 °, 135 °), [135 °, 225 °), [225 °, 315 °), [315 °, 360 °], [0 °, 45 °);
Described direction gyrator unit, for the sense of rotation of the display direction of the page to described mobile terminal being rotated, the anglec of rotation of the display direction of the described page is: be arranged in determined angular interval, and is the number of degrees of the integral multiple of 90 °.
Be understandable that, after rotation of mobile terminal, in mobile terminal, original display direction of the page is no longer applicable to user's viewing, now just needs the rotation carrying out page display direction.Such as: user is by rotation of mobile terminal 180 °, then the display direction of the page also should rotate 180 °, otherwise user will see the page that upside down display.Because the display screen of mobile terminal is generally rectangle, the page is also generally rectangle, when therefore carrying out the rotation of page display direction, should be also a rotational units with 90 °, also namely: the page display direction anglec of rotation is the integral multiple of 90 °.But in actual applications, the angle that user controls rotation of mobile terminal might not be the integral multiple of 90 °, therefore can by the angle determining to rotate needed for the page between rotation of mobile terminal angle location.In general, when certain integral multiple of 90 ° of angular distance that user rotates is nearer, then can determine that the angle of this integral multiple of 90 ° is the required angle rotated of the page.
Concrete, when mobile terminal continuous rotation is more than one week time (namely 360 °), can according to the initial position determination anglec of rotation before postrotational final position and rotation, now the anglec of rotation is less than 360 °, will fall into above-mentioned angular interval.
A kind of page jump system that the embodiment of the present invention provides, can when mobile terminal be in page reading model, obtain the rotation parameter of mobile terminal, when the anglec of rotation is not less than default angle threshold, perform page jumping operation and according to the display direction of the page after rotation parameter adjustment redirect.Therefore, the present invention can carry out page jump comparatively at need user by click keys, helps user easily to realize page jump.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this instructions all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.