The present disclosure relates to electronic devices, and particularly to an electronic device having a touch screen and a method thereof for zooming into the content.
Electronic devices equipped with a touch screen are widespread. However, changing the size of any displayed content on the touch screen requires several operations and is inconvenient.
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The processor 20 includes a detection module 21, an identification module 22, and a zoom module 23.
The detection module 21 detects the touch track of a touch operation applied on the touch screen 10 and determines whether the touch track encloses an enclosure of a graphic. In at least one embodiment, the enclosed graphic includes a center point, and the border of the graphic being a distance from the center point. The enclosed graphic can be rectangular, a circle, triangular, or other shape.
The identification module 22 identifies a current display mode of the touch screen 10 and the content bounded by the enclosed graphic. In at least one embodiment, the display mode of the touch screen 100 includes a one-page mode and a multi-page mode. In the one page mode, the touch screen 10 only displays a single page over the whole display region 11 of the touch screen 10. In the multi-page mode, the touch screen 10 displays more than one page at one time over the whole display region 11 of the touch screen 10.
When the touch track encloses an enclosed graphic, the zoom module 23 zooms in the content bounded by the enclosure according to the current display mode of the touch screen 10.
In an alternative embodiment, when the touch screen 10 is in the one-page mode, the zoom module 23 calculates a magnification of the content within the enclosed graphic according to the size of the enclosed graphic and the size of the display region 11 of the touch screen and zooms in the bounded content according to the calculated magnification.
In block 401, the detection module 21 detects the touch track of a touch operation applied on the touch screen 10 and determines whether the touch track encloses an enclosure of a graphic; if the touch trace encloses a graphic, the process goes to block 402; if the touch track does not enclose a graphic, the process ends.
In at least one embodiment, the detection module 21 determines whether the graphic associating with the touch track comprises a center point and the border of the graphic is a distance away from the center point.
In block 402, the identification module 22 identifies a current display mode of the touch screen 10 and the content bounded by the enclosed graphic.
In at least one embodiment, the display mode of the touch screen 10 includes a one-page mode and a multi-page mode.
In block 403, the zoom module 23 zooms in the content bounded by the enclosure according to the current display mode of the touch screen 10.
In at least one embodiment, when the touch screen 10 is in the multi-page mode, the zoom module 23 zooms in a complete page that the enclosure is on; when the touch screen 10 is under the one-page mode, the zoom module 23 zooms in the content bounded by the enclosure.
In an alternative embodiment, when the touch screen 100 is in the one-page mode, the zoom module 23 calculates a magnification of the bounded content for display according to the size of the enclosed graphic and the size of the display region 11 of the touch screen 10 and zooms in the bounded content according to the calculated magnification.
The electronic device 100 enlarges the displayed content or part of it when the touch trace on the touch screen 10 encloses a graphic, thus requiring only one operation by the user to zoom in the required content.
Although the present disclosure has been described with reference to certain embodiments, persons having ordinary skill in the art may make various modifications and changes without departing from the scope of the disclosure. Therefore, the scope of the appended claims should not be limited to the description of the preferred embodiments described above.
Number | Date | Country | Kind |
---|---|---|---|
201310139763X | Apr 2013 | CN | national |