1. Technical Field
The present disclosure relates to an electronic device and a page processing method thereof.
2. Description of Related Art
Many electronic devices, e.g., mobile phones, digital photo frames, and electronic readers (e-reader), are capable of storing and displaying electronic documents (e.g., digital images, digital texts, etc). The readability of these electronic devices deviates greatly from that of real paper print. For example, when people flip a page of an electronic document on these electronic devices, the new page materializes without the satisfying visual effect of turning a page; as a result, it is difficult for people to get the feeling of reading real paper. Furthermore, buttons on the menu bar displayed on the screen of the electronic device is selected to switch different display modes such as full screen mode, and half screen mode etc., and to control the size of the displayed page such as 100%, 150% and 50% etc, which is not enough to satisfy all tastes and personalities.
Therefore, what is needed is an electronic device and a page processing method thereof to alleviate the limitations described above.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of an electronic device and a page processing method thereof. Moreover, in the drawings, like reference numerals designate corresponding sections throughout the several views.
Referring to
In this embodiment, a user selects a display mode of the electronic device 100 via various operations on different regions of the displayed page on the touch screen 20. The electronic device 100 includes at least two display modes, that is, the zooming mode in which the displayed page is zoomable and the browsing mode in which the displayed page is unzoomable. For example, the user may doubleclick the center region of the displayed page or apply a zoom operation on the center region of the displayed page to command the electronic device 100 to enter the zooming mode. When the electronic device 100 is in the zooming mode, the user can manipulate the touch screen 20 for zooming and panning the displayed page. If the size of the displayed page is operated by the user to be 100%, the processor 30 controls the electronic device 100 to automatically enter the browsing mode. When the electronic device 100 is in the browsing mode, the user can manipulate the center region of the displayed page on touch screen 20 for panning the displayed page, and manipulate the peripheral regions of the displayed page for flipping the displayed page to simulate the flipping effect of turning a real page in a real book.
The touch screen 20 is configured for displaying a page of content and detecting a touch operation on the displayed page and generating a signal associated therewith. The signal includes the coordinate of the touched point of the touch screen 20.
The processor 30 includes a zoning module 301, an identification module 302, a mode switching module 303, a page processing module 304 and a display control module 305.
The zoning module 301 is configured to divide a displayed page on the touch screen 20 into a number of regions. The number of regions includes a center region and a number of peripheral regions surrounding the center region. Referring to
The identifying module 302 is configured for determining the region in which a touch event occurs. In the embodiment, the identifying module 302 determines the coordinate of the touch signal corresponding to the touch event as belonging to a particular collection or range of coordinates, and determines the particular region which has been touched accordingly. In the embodiment, every region comprises a collection of coordinates within the touch screen 20.
The identifying module 302 is also configured for identifying the type of touch operation and the current display mode, generating signals accordingly, and determining whether the touch operation is a mode switching operation according to the touched region and the current display mode of the electronic device 100.
The mode switching mode 303 is configured for controlling the electronic device 100 to switch the display mode if the touch operation is a mode switching operation when identified as such by the identifying module 302. In the embodiment, if the identifying module 302 identifies that the current display mode is the zooming mode, and the type of the touch results in the size of the displayed page being 100%, the mode switching module 303 controls the electronic device 100 to switch from the zooming mode into the browsing mode. If the identifying module 302 identifies that the current display mode is the browsing mode, and the type of the touch is a doubleclicking operation or a zooming operation on the center region 5 of the displayed page, the mode switching module 303 controls the electronic device 100 to switch from the browsing mode into the zooming mode.
In this embodiment, the doubleclicking operation on the center region 5 includes two touch operations on the center region 5 of the displayed page. The time interval between the two touch operations must be not more than a predetermined time period. The zooming operation on the center region 5 of the displayed page can be two fingers of the user sliding away from each other on the center region 5 of the touch screen 20, that is, a zooming in operation. The zooming operation on the center region 5 of the displayed page can either be two fingers of the user sliding towards each other in a pinching motion on the center region 5 of the touch screen 20, that is, a zooming out operation.
Referring to
In the embodiment, the default display mode of the electronic device 100 is the browsing mode. In the browsing mode, if the touch operation is applied on one of the peripheral regions, that is, the regions 1-4 or the regions 6-9, the identifying module 302 determines that the touch operation is a page flipping operation, and the page processing module 304 determines the target page according to the particular region which has been touched. The display control module 305 controls the touch screen 20 to display the current or existing page being gradually turned over and the text thereon being obscured or lost from clear sight, and at the same time the text of the target page (the new or replacement page) being gradually revealed in place of the current page, just as if a physical page in a real book was being smoothly turned over. Hereinafter, the expression “effective pages” refers to the display of two pages at once in the manner described.
In the embodiment, if the identifying module determines that the touch operation is applied on one of the regions 1, 2, 4 or 7 of the displayed page, the page processing module 304 determines that the touch operation requires turning back or flipping to a previous page. When the identifying module determines the touch operation is applied on one of the regions 3, 6, 8 or 9 of the displayed page, the page processing module 304 determines that the touch operation requires turning or flipping to a later page. One or more visual effect parts is always visible, that is, curling to the middle from the bottom left or the bottom right corner of the page, as is shown in
If the identifying module 302 determines that the touch traces across more than one region, for example a touch operation which starts from one of the regions 1-4, 6-9 and goes across an approximate predetermined line, such as diagonal L1 or diagonal L2 of the displayed page showing in
When in the browsing mode, if the user slides his finger on the region 5 of the displayed page, the page processing module 304 moves the page according to the sliding direction and the sliding distance of the touch operation. The display control module 305 displays a determined updated page, such as a pan left page, a pan right page, a pan up page, or a pan down page of the displayed page corresponding to the slide operation.
Referring to
The display control module 305 is configured for displaying the combined pages of the effective pages or the updated page on the touch screen 20 according to the signal of the user.
Referring to
In another embodiment, the touch screen 20 displays a combined page in response to the touch operation on the displayed page when the human finger contacts the touch screen 20. When the traced touch of a touch operation starts from one of the regions 1 and 7 and goes across a predetermined line, such as diagonal L1 and or diagonal L2, the touch screen 20 will display the previous page. In this embodiment, if the user applies a page flipping operation on one of the regions 1, 2, 4, 7, the electronic device 100 flips the page backwards, and if the user applies a page flipping operation on one of the regions 3, 6, 8, 9, the electronic device 100 flips page forward. To avoid repetition, these details are omitted.
Referring to
When the electronic device 100 is in the zooming mode, the user applies zooming operations on the touch screen 20 to zoom the displayed page. Referring to
Referring to
In step S81, the zoning module 301 displays a page of content on the touch screen 20, the displayed page consisting of a number of regions. The regions include a center region and a number of peripheral regions surrounding the center region.
In step S82, the touch screen 20 detects a touch operation of the user on the displayed page, and generates a signal associated therewith.
In step S83, the identifying module 302 determines the touched region where the touch operation occurs.
In step S84, the identifying module 302 determines whether the touch operation is a mode switching operation according to the signal, if yes, the process goes to step S85, otherwise, the process goes to step S86. In the embodiment, the identifying module 302 determines that the touch operation is a mode switching operation under the following circumstances: 1) a doubleclicking operation performed in the center region of the displayed page in the browsing mode; 2) a zooming operation performed in the center region of the displayed page in the browsing mode; and 2) adjusting the size of the displayed page to 100% in the zooming mode.
In step S85, the mode switching module 303 controls the electronic device 100 to switch between the browsing mode and the zooming mode according to the signals from the user. In the embodiment, the first mode switching operation stated in step S83 is an operation for switching from the browsing mode to the zooming mode, and the second mode switching operation stated in step S83 is an operation for switching from the zooming mode to the browsing mode.
In step S86, if the identifying module 302 determines that the touch operation is not a mode switching operation, the identifying module 302 then determines whether the touch operation is a page flipping operation, if yes, the process goes to step S87, otherwise, the process goes to step S92. In the embodiment, when the identifying module 302 determines the current display mode of the electronic device 100 is the browsing mode, and a finger touches one of the peripheral regions 1-4, or 6-9, the identifying module 302 determines that the touch operation is a page flipping operation.
In step S87, the page processing module 304 determines the target page according to the touched region, generates an effective page according to the position of the touch operation on the displayed page, and combines the current page, the effective page and the target page.
In step S88, the display control module 305 controls the touch screen 20 to display the combined pages as effective pages.
In step S89, the identifying module 302 determines whether the traced touch of the touch operation has passed across a predetermined line, if yes, the process goes to step S90, otherwise, the process goes to step S91.
In step S90, the display control module 305 controls the touch screen 20 to display the target page determined by the page processing module 304.
In step S91, the identifying module 302 determines whether the finger has been lifted from the touch screen 20, if yes, the process goes to step S92, otherwise, the process goes back to step S87.
In step S92, the display control module 305 controls the touch screen 20 to display the combined pages in place of the current page.
In step S93, the page processing module 304 determines the direction in which a page is to be dragged according to the signals from the finger of the user, and generates an updated page. The updated page is the zoomed or panned page of the current page.
In step S94, the display control module 305 controls the touch screen 20 to display the updated page.
With such a configuration, the user can switch between the browsing mode and the zooming mode by doubleclicking the center region 5 of the displayed page on the touch screen 20 or adjusting the size of the displayed page to 100% in the zooming mode of the electronic device 100. A vivid and realistic page flipping effect is presented to the user of the electronic device 100 when the user touches the peripheral regions of the displayed page, which provides more attractive and comfortable viewing to the user.
Although the present disclosure has been specifically described on the basis of the embodiments thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201110333538.0 | Oct 2011 | CN | national |