This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2012-274029, filed on Dec. 14, 2012, the entire contents of which are incorporated herein by reference.
The embodiments discussed herein are directed to a display controller and a display control method.
Conventionally, there have been a technique in which a user registers a position (i.e., coordinates) of a region (i.e., home position) to be displayed first when a portion of a Web (World Wide Web) page is displayed, and the registered home position is displayed when the Web page is specified and displayed. Through the use of this technique, the user can store in advance a region displayed at a high frequency to display the region preferentially.
Patent document 1: Japanese Laid-open Patent Publication No. 2008-262371
However, in the conventional technique, the region to be displayed preferentially is controlled by the position within the Web page, and hence, a layout change within the Web page may prevent the region desired by the user from being displayed.
According to an aspect of an embodiment, a display controller includes a memory and a processor coupled to the memory the processor executes display control process comprising: determining a reference object as a display reference in a specified Web page based on a frequency of past selection of each object that is included in the specified Web page and is linked to another Web page, mapping the specified Web page in a display memory, searching the specified Web page mapped in the display memory for the reference object, and setting a display window that includes the reference object, which has been searched for, in the display memory.
The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention, as claimed.
Preferred embodiments of the present invention will be explained with reference to accompanying drawings. Although the embodiments will be described with an example in which the display controller is applied to a wireless terminal, embodiments are not limited thereto. That is, the display controller and the display control method disclosed herein are not limited to these embodiments. In addition, in the embodiments herein, components with same functions are indicated by same reference characters and the descriptions thereof will be omitted.
Configuration of Wireless Terminal
The key input unit 11 outputs an operation signal to the processor 13 corresponding to an operation of a user.
The display unit 12 displays image data that is mapped in a display memory by the processor 13 and is included in a display window.
Upon receipt of a specifying signal from the key input unit 11, the processor 13 acquires, through wireless communication from a server, information of a specified Web page specified by the specifying signal. The information of the specified Web page is described in, for example, HTML (HyperText Markup Language).
In addition, the processor 13 determines a reference object in accordance with identification information of the specified Web page and a correspondence table stored in the storage unit 14. The reference object is an object that serves as a display reference within a specified Web page. An object refers to, for example, a text, an image, or an icon. As illustrated in
Here, an object, which corresponds to the specified Web page in the first correspondence table and which has the highest frequency of specification, is selected as the reference object.
In addition, the processor 13 maps the HTML information acquired from the server in the display memory (not illustrated). The processor 13, then, searches the specified Web page mapped in the display memory for the determined reference object. In this way, the position of the reference object in the specified Web page mapped in the display memory is determined. Note that when the information on the reference object is not included in the HTML information acquired from the server, the processor 13 deletes the information on the reference object from the correspondence table.
The processor 13, then, sets the display window in the display memory such that the position of the reference object, which has been searched for, is included. In this way, the information mapped in the display memory and included in the display window is displayed on the display unit 12. Note that when the information of the specified Web page is absent in the correspondence table, the specified Web page and information on an object included in the specified Web page are added to the correspondence table. In such a case, the display window is set at the top of the specified Web page.
In addition, when an object within the Web page displayed on the display unit 12 is selected through an operation of the key input unit 11 by the user, the processor 13 increments the frequency of selection for the selected object in the correspondence table.
Here, the processing by the processor 13 is performed in accordance with a program stored in the storage unit 14.
The storage unit 14 includes, for example, a RAM, such as an SDRAM (Synchronous Dynamic Random Access Memory), a ROM (Read Only Memory), and a flash memory.
The audio input/output unit 18 allows the speaker 17 to produce sound in accordance with audio data received from the processor 13. The audio input/output unit 18 also acquires an audio signal through the microphone 16 to output the signal to the processor 13.
Operation of Wireless Terminal
An operation of the wireless terminal 10 with the foregoing configuration will now be described.
In the wireless terminal 10, the processor 13 receives the specifying signal from the key input unit 11 to accept page specification (step S101). The processor 13 then acquires, from the server through the wireless communication using the wireless unit 15, the information of the specified Web page specified by the specifying signal.
The processor 13 performs processing to determine a reference object (step S102). In the processing to determine a reference object, firstly, a reference object is determined in accordance with the identification information of the specified Web page and the correspondence table stored in the storage unit 14.
The processor 13 judges whether or not information on the specified Web page is present in the correspondence table (step S201).
When it is judged that the information is present (YES at step S201), the processor 13 determines, as the reference object, an object that has the highest frequency of selection among objects of the specified
Web page from the correspondence table (step S202).
The processor 13 judges whether or not information on the determined reference object is present in the HTML information (step S203).
When it is judged that the information is absent (No at step S203), the processor 13 deletes the information on the determined reference object from the correspondence table (step S204).
The processor 13 judges whether or not an object of the specified Web page remains in the correspondence table (step S205). When an object remains (Yes at step S205), the processing reverts back to step S202.
Note that when it is judged that the information is absent in step S201, when it is judged that the information is present in step S203, or when it is judged that an object does not remain in step S205, the processing to determine a reference object is finished.
With reference to
The processor 13 searches the specified Web page mapped in the display memory for the reference object determined in step S102 (step S104). Note that when a reference object has not been determined in step S102, the processor 13 performs processing to set the display window in step S105, instead of the processing to search for the reference object in step S104.
The processor 13 sets the display window in the display memory such that the position of the reference object, which has been searched for in step S104, is included (step S105). Note that when a reference object has not been determined in step S102, the processor 13 sets the display window at the top of the specified Web page mapped in the display memory (step S105).
In this way, the information mapped in the display memory and included in the display window is displayed on the display unit 12.
When an object within the Web page displayed on the display unit 12 is selected through an operation of the key input unit 11 by the user, the processor 13 then increments the frequency of selection for the selected object in the correspondence table.
As described above, according to the present embodiment, the processor 13 in the wireless terminal 10 determines, in accordance with a correspondence relationship, a reference object that serves as a display reference within a specified Web page. This correspondence relationship refers to a correspondence relationship between objects, which are included in the specified Web page and are each linked to other Web pages, and the frequency of past selection of each object. The processor 13 then maps the specified Web page in the display memory, searches the specified Web page mapped in the display memory for the reference object, and sets a display window including the reference object, which has been searched for, in the display memory.
In this way, the reference object is determined in accordance with the frequency of past selection of each object, so that an object with a high frequency of display can be determined. In addition, the specified Web page is mapped in the display memory, and the specified Web page mapped in the display memory is searched for a reference object, which allows reliable determination of the position of the reference object even when a layout change has been made within a Web page. As a result, a region displayed at a high frequency in a Web page can be displayed reliably.
In a second embodiment, the first correspondence table further indicates the correspondence to an enlargement ratio used when a specified Web page has been displayed at the previous time. Note that the basic configuration of a wireless terminal according to the second embodiment is similar to that of the first embodiment, and thus the present embodiment will be described with reference to
A storage unit 14 of a wireless terminal 10 according to the second embodiment stores a first correspondence table.
When mapping the specified Web page in a display memory, a processor 13 maps the specified Web page according to the enlargement ratio that corresponds to the specified Web page in the first correspondence table.
As described above, according to the present embodiment, the correspondence table of the storage unit 14 in the wireless terminal 10 indicates the correspondence between objects, which are included in a specified Web page and are each linked to other Web pages, the frequency of past selection of each object, and the enlargement ratio used when the specified Web page has been displayed at the previous time. The processor 13 then maps the specified Web page in the display memory in accordance with the enlargement ratio. The processor 13 then searches the specified Web page mapped in the display memory for a reference object and sets a display window including the reference object, which has been searched for, in the display memory.
In this way, the reference object can be displayed reliably according to an enlargement ratio that suits a preference of the user.
Note that, although the enlargement ratio is controlled for each specified Web page in the example described above, the control is not limited thereto. The enlargement ratio may be controlled for each object. That is, the correspondence table may indicate the correspondence between objects, which are included in a specified Web page and are each linked to other Web pages, the frequency of past selection of each object, and the enlargement ratio used when each object has been selected at the previous time.
In a third embodiment, during the processing to set a display window, automatic scrolling processing is performed. Note that the basic configuration of a wireless terminal according to the third embodiment is similar to that of the first embodiment, and thus the present embodiment will be described with reference to
In the processing to set the display window, a processor 13 of a wireless terminal 10 according to the third embodiment sets the display window at the top of a specified Web page mapped in a display memory, and then slides the display window to the position of a reference object, which has been searched for. That is, the processor 13 performs automatic scrolling processing during the processing to set the display window.
The processor 13 of the wireless terminal 10 according to the third embodiment first sets the display window at the top of the specified Web page mapped in the display memory (see
The processor 13 then slides the display window set at the top of the specified Web page to the position of the reference object, which has been searched for. That is, in a case where patent news is the reference object, a display window including the patent news is set as illustrated in
As described above, during the processing to set the display window, the processor 13 in the wireless terminal 10 according to the present embodiment sets the display window at the top of the specified Web page, and then slides the display window to a position including a reference object, which has been searched for.
In this way, a process of moving from the top of the specified Web page to the position including the reference object can be displayed, which allows the user to recognize the positional relationship between the top of the specified Web page and the reference object.
A fourth embodiment relates to a specific example of the processing to map HTML information, the processing to search for a reference object, the processing to set the display window, and the processing to update the correspondence table of the wireless terminal 10 according to the first to third embodiments. Note that the basic configuration of a wireless terminal according to the fourth embodiment is similar to that of the first embodiment, and thus the present embodiment will be described with reference to
Processing to map HTML information, processing to search for a reference object, and processing to set a display window
Upon receipt of a specifying signal from a key input unit 11, a processor 13 of a wireless terminal 10 according to the fourth embodiment acquires, through the wireless communication from the server, information of a specified Web page specified by the specifying signal. The information of the specified Web page is described in HTML (HyperText Markup Language). That is, the processor 13 acquires an HTML file from the server.
The processor 13 generates a second correspondence table corresponding to the received HTML file (step S301). The second correspondence table is a table that indicates the correspondence between the object identification information and coordinates within a display memory.
The processor 13 maps the received HTML file in the display memory (step S302).
The processor 13 uses the HTML file mapped in the display memory as illustrated in
The processor 13 then registers the determined attribute and the “rectangular region coordinates” of each object in the second correspondence table to indicate the correspondence to the identification information and a subdirectory already registered for each object (step S303).
The processor 13 determines the identification information of a reference object in accordance with the identification information of the HTML file, which in other words is the identification information of the specified Web page, and a third correspondence table (step S304). The third correspondence table and the first correspondence table are similar to each other, but the third table indicates the correspondence between the HTML file, which is in other words a candidate for the specified Web page, and the frequency of past selection corresponding to the identification information of each object included in the candidate, as illustrated in
The processor 13 determines the rectangular region coordinates corresponding to the reference object in accordance with the identification information of the determined reference object and the second correspondence table (step S305). That is, the rectangular region coordinates (10,505)-(300,515), which correspond to “gnews.news.com/patent” in the second correspondence table of
The processor 13 sets the display window in the display memory such that the determined rectangular region coordinates are included (step S306). For example, when the rectangular region coordinates include coordinates of a top left vertex and a bottom right vertex thereof, the processor 13 sets the display window by aligning a reference point of the display window with coordinates which are present outside of the rectangular region and have a predetermined positional relationship with the top left vertex of the rectangular region. Here, the reference point of the display window is, for example, a top left vertex of the display window having a rectangular shape.
The processor 13 allows display of an image within the display window that has been set (step S307). For example, the processor 13 copies the image in the display window that has been set from the display memory and allows a display unit 12 to display the copied image.
The user changes the enlargement ratio of the image displayed on the display unit 12 in this way, or selects an object included in the image to change what is being displayed to a page corresponding to the object. When such an operation is performed, processing to update the third correspondence table as described hereinafter will be started.
Processing to Update the Third Correspondence Table
The processor 13 sets an enlargement ratio used when the user has selected the object in the third correspondence table (step S401).
The processor 13 judges whether a URL directory corresponding to the selected object (hereinafter also referred to as “selected URL directory”) is present in the third correspondence table (step S402).
When the selected URL directory is present in the third correspondence table (Yes at step S402), the processor 13 increments the frequency of selection which corresponds to the selected URL directory in the third correspondence table (step S403).
When the selected URL directory is absent in the third correspondence table (No at step S402), the processor 13 judges whether the selected URL directory is a first level directory (step S404).
When the selected URL directory is not a first level directory (No at step S404), the processor 13 regards the first level directory of the selected URL directory as the selected URL directory (step S405).
The processor 13 judges whether the selected URL directory changed in step S405 is present in the third correspondence table (step S406).
When the selected URL directory changed in step S405 is present in the third correspondence table (Yes at step S406), the processor 13 increments the frequency of selection which corresponds to the selected URL directory in the third correspondence table (step S403).
When the selected URL directory changed in step S405 is absent in the third correspondence table (No at step S406), the processor 13 adds the selected URL directory to the third correspondence table as the object identification information (step S407).
The processor 13 sets the frequency of selection corresponding to the added selected URL directory to one (step S408).
Note that, when the selected URL directory is the first level directory (Yes at step S404), the processor 13 performs the processing of steps S407 and S408.
As described above, the processing to map the HTML information, the processing to search for the reference object, the processing to set the display window, and the processing to update the correspondence table are performed.
Although the first to fourth embodiments have been described with an example in which the information of the specified Web page is acquired through the wireless communication, embodiments are not limited thereto and the information may be acquired through cable communication.
Although the first to fourth embodiments have been described with an example in which a display controller is applied to a wireless terminal, embodiments are not limited thereto and the display controller described in the first to fourth embodiments may be applied to various electronic devices.
According to an aspect of the disclosure, a region displayed at a high frequency within a Web page can be displayed reliably.
All examples and conditional language recited herein are intended for pedagogical purposes of aiding the reader in understanding the invention and the concepts contributed by the inventor to further the art, and are not to be construed as limitations to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2012-274029 | Dec 2012 | JP | national |