1. Technical Field
The present disclosure relates to a display device and a display method thereof.
2. Description of Related Art
Generally, a display device, such as a digital photo frame, or others, displays a current time in a character type or analog clock manner. Little variety, however, is available to customize the display, and very often, the normal display function of the device is interfered with by the customization.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the display device. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
In an exemplary embodiment, the display device 1 includes a central processing unit (CPU) 10, a clock unit 11, an input unit 12, a storage unit 13, and a display unit 14.
The clock unit 11 is configured to provide current real time. The input unit 12 is configured to generate signals in response to user inputs. In the exemplary embodiment, the input unit 12 generates a display mode selection signal in response to manual selection of a display mode.
The storage unit 13 is configured to store display contents (such as pictures, text, and others), predetermined attribute information for the analog clock displayed on the display unit 14, and display modes for displaying the analog clock on the display unit 14. The attribute information for the analog clock includes, but is not limited to, shape, size, color of hour, minute and second hands, clock marking and others. In the exemplary embodiment, the display modes include, but are not limited to, a first display mode and a second display mode. In the first display mode, the analog clock is displayed as a translucent layer and overlying the regular display contents. In the second display mode, the analog clock is displayed around the periphery of the regular display contents.
The CPU 10 includes an analog clock implementation module 100, a time display module 104, a content acquisition module 105, and a display control module 107.
The analog clock implementation module 100 is configured to generate an analog clock on a periphery of the display unit 14. The shape of the periphery is square or round. The generated analog clock displays minute, hour, and other appropriate markings. The time display module 104 is configured to acquire current time from the clock unit 11 and display the elements correspondingly on the analog clock according to the current time. The content acquisition module 105 is configured to acquire the display contents from the storage unit 13. The display control module 107 is configured to display the analog clock together with the acquired display contents in one of the display modes.
The analog clock implementation module 100 includes a periphery implementation module 101, a zero hour mark implementation module 102, and a clock marking implementation module 103.
The periphery implementation module 101 is configured to generate a virtual periphery on the display unit 14, wherein the center of the virtual periphery conforms to the that of the display unit 14. The periphery is virtual and could not displayed on the display unit 14. The zero hour mark implementation module 102 is configured to generate a position of a zero hour mark (i.e., the 12 o'clock mark) on the virtual periphery, and the attribute information of the zero hour mark. In this exemplary embodiment, the zero hour mark implementation module 102 takes an intersection point of an upper side of the virtual periphery and a symmetrical vertical axis of the virtual periphery as the position of the zero mark. The clock marking implementation module 103 is configured to determine positions and attribute information of clock markings other than the zero hour mark on the virtual periphery.
During determination of the positions of the other clock markings, the clock marking implementation module 103 uses the center of the display unit 14 as a center of the analog clock dial, uses a virtual line with one end at the center point of the analog clock and through the zero hour mark, and rotates the line around the center point in a series of predetermined angles, each determining the position of a clock marking. Repeating the process, the clock marking implementation module 103 determines the positions of all other clock markings. In detail, at every 30° around dial, the clock marking implementation module 103 sets a position for an hour marking, and at every 6°, a minute marking.
In step 20, the periphery implementation module 101 determines the virtual periphery of the analog clock. Typically, the periphery implementation module 101 determines the center of the display unit 14 as the center of the virtual periphery.
In step 21, the zero hour mark implementation module 102 determines the position of the zero hour mark on the virtual periphery.
In step 22, the clock marking implementation module 103 determines positions of clock markings other than the zero hour mark on the virtual periphery.
In step 23, the clock marking implementation module 103 acquires predetermined attribute information for the analog clock and a display mode from the storage unit 13.
In step 24, the time display module 104 acquires current time from the clock unit 11 and displays the hour, minute, and second hands in a corresponding position on the analog clock according to the current time.
In step 25, the content acquisition module 105 acquires display contents from the storage unit 13.
In step 26, the display control module 107 displays the analog clock together with the acquired display contents in one of the display modes.
In step 31, the clock marking implementation module 103 acquires the first display mode from the storage unit 13 in response to a first display mode selection signal from the input unit 12.
In step 32, the content acquisition module 105 acquires the display contents from the storage unit 13.
In step 33, the display control module 107 displays the analog clock in a translucent manner on the display unit 14.
In step 41, the clock marking implementation module 103 acquires the second display mode from the storage unit 13 in response to a second display mode selection signal from the input unit 12.
In step 42, the content acquisition module 105 acquires the display contents from the storage unit 13.
In step 43, the display adjustment module 106 adjusts the size of the display contents to conform to the margin area of the analog clock.
In step 44, the display control module 107 displays the display contents in the margin area of the analog clock.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the invention or sacrificing all of its material advantages, the examples hereinbefore described merely being preferred or exemplary embodiments of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
200910300745.9 | Mar 2009 | CN | national |