1. Technical Field
The present disclosure relates to electronic devices and, particularly, to an electronic device capable of showing page tore-off effect, and a method employed by the device.
2. Description of the Related Art
Electronic book readers and many media players capable of opening e-book files, are capable of storing and displaying electronic documents (e.g., digital images, digital texts, etc). The readability of these electronic devices may deviate greatly from real paper print. Software capable of generating a page tore-off effect similar to tear a printed paper is known. However, when using an electronic reading device installed the software, if users want to store a tore-off page in a new electronic document, or delete a tore-off page from the currently opened electronic document, they have to open an editing interface to store or delete the tore-off page, which may interrupt the reading progress of the user.
The components in the drawing are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
Referring to
Each of the parameters is pre-numbered in a full page-tearing off process and each is associated with one step of the process of completely tearing off a page. Corresponding to the parameters, a series of combined pages as shown in
The processing unit 10 includes a touch determining module 101, an obtaining module 102, a page controlling module 103, and a display control module 104.
Referring to
The page controlling module 103 determines the second part 202 of the currently displayed page (e.g., 7) and a second part of the following page (e.g., 8) determined by the second group of coordinates of the obtained parameters. The page controlling module 103 covers the determined second part 202 of the currently displayed page using the determined second part of the following page thereby the first part 201 of the currently displayed page and the second part of the following page cooperatively forming a combined page shown in
The display control module 104 displays the first combined page after the first combined page is combined by the page controlling module 103. The first part 201 of the combined page is the dog-ear, the second part 202 is the portion of the following page (e.g., 8), and a remaining part 203 of the combined page is a portion of the current page (e.g., 7), then, the first combined page displays page 7 apparently torn off at a corner of the page.
After combining and displaying the first combined page, the obtaining module 102, the page controlling module 103, and the display control module 104 repeat the obtaining, producing, covering, and displaying processes described above, and the display unit 20 accordingly displays a second combined page as shown in
Referring again to
Referring to
In step S500, the page controlling module 102 displays the content of an electronic document on the display unit 20 for reading.
In step S501, the touch detecting unit 40 generates touch signals in response to the touch by a user on the display unit 20.
In step S502, the touch determining module 101 determines whether the movement of the touch crosses the predetermined area on the touch display screen according to the touch signals generated by the touch detecting unit 40. If it does, the procedure goes to step S503; otherwise, the procedure returns to step S501.
In step S503, the obtaining module 102 obtains parameters one by one from the table stored in a sequence based up the touch movement. For example, if the parameter previously obtained was a second parameter, the obtaining module 102 then obtains a third parameter.
In step S504, the page controlling module 103 produces the tore-off-page figure on the first part 201 of the currently displayed page according to the first group of coordinates of one of the obtained parameters. In detail, the page controlling module 103 produces a blank area on the first part 201 determined by the first group coordinates.
In step S505, the page controlling module 103 covers the second part 202 of the currently displayed page determined by the second group of coordinates of one of the obtained parameters using a second part of the following page also determined by the second group of coordinates thereby the first part of the currently displayed page and the second part of the following page cooperatively forming the combined page.
In step S506, the display control module 104 controls the display unit 20 to display the combined page.
In step S507, the obtaining module 102 determines whether or not there is still another parameter remaining to be processed after the display unit 20 has displayed the combined page thereon. If another parameter remains to be processed, the procedure returns to step S503. Otherwise, the procedure goes to step S508.
In step S508, the display control module 104 displays the user interface on the display unit 20 to display three options including to store the tore-off-page, to delete the tore-off-page, and to exit the user interface.
In step S509, the touch determining module 101 determines the user's selection according to the touch signals generated by the touch detecting unit 40.
In step S510, the executing module 103 obtains the content of the tore-off page from the electronic document stored in the storage unit 30, and stores or deletes the content, or exits the user interface according to the user's selection.
When the user's selection is determined to store the content of the tore-off page, the executing module 103 stores the content in a new electronic document. When the user's selection is determined to delete the content of the tore-off page, the executing module 103 deletes the content. When the user's selection is determined to exit the user interface, the executing module 103 exits the user interface.
It is understood that the present disclosure may be embodied in other forms without departing from the spirit thereof. Thus, the present examples and embodiments are to be considered in all respects as illustrative and not restrictive, and the disclosure is not to be limited to the details given herein.
Number | Date | Country | Kind |
---|---|---|---|
201110275171.1 | Sep 2011 | CN | national |