1. Field of the Invention
The present invention relates to a technique for displaying an object included in a file, for example, image data, text data, or graphic data, on a display.
2. Description of the Related Art
Personal computers can typically display an object included in a file, for example, image data, text data, or graphic data, on their displays in accordance with a file browser installed therein in advance. When a user inputs an enlargement instruction using a pointing device or a keyboard of a personal computer, the enlarged display of a file is performed on a display.
At that time, when there is space between objects included in a file, only the blank part is sometimes displayed as shown in
The present invention provides a file content display device, a file content display method, and a computer program and storage medium therefore that enable a user to understand which part of an entire file a display range corresponds to, without performing a complicated operation, when an enlarged display of the file is provided on the display of a computer.
According to an exemplary embodiment of the present invention, there is provided a file content display device that includes a displaying unit configured to display in a display area the contents of a file that includes an object, an accepting unit configured to accept an enlargement instruction for performing an enlarged display of the file, a deciding unit configured to decide a display range of the file to be displayed in the display area in accordance with the accepted enlargement instruction, a detecting unit configured to detect whether the object is to be at least partially included in the display range of the file, and a changing unit configured to change the decided display range when the detecting unit detects that the object is not to be at least partially included in the display range of the file.
According to another exemplary embodiment of the present invention, there is provided a file content display method that includes displaying in a display area the contents of a file that includes an object, accepting an enlargement instruction for performing an enlarged display of the file, deciding a display range of the file to be displayed in the display area in accordance with the accepted enlargement instruction, detecting whether the object is to be at least partially included in the display range of the file, and changing the decided display range when it is detected that the object is not to be at least partially included in the display range of the file.
According to another exemplary embodiment of the present invention, there is provided a computer program for causing a computer to perform the file content display method and a storage medium storing the computer-executable process steps.
Other features of the present invention will be apparent from the following description of exemplary embodiments with reference to the attached drawings.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments of the invention and, together with the description, serve to explain the principles of the invention.
Exemplary embodiments of the present invention will be described in detail by way of example with reference to the accompanying drawings. However, constituent elements described in the embodiments are merely illustrative, and the scope of the present invention is not limited thereto.
The configuration of a computer device in this embodiment will be described with reference to the block diagram shown in
A central processing unit (CPU) 101 controls an entire computer device 100. A read only memory (ROM) 102 stores information that is not required to be rewritten and must not be rewritten. A random access memory (RAM) 103 temporarily stores a program and data, both of which are supplied from an external memory 104. The external memory 104 serves as, for example, a hard disk fixed to the computer device 100, a floppy disk (FD), a compact disc (CD), or a digital versatile disc (DVD) that is removably attached to the computer device 100, or a card-type medium such as an IC card or a memory card. The external memory 104 stores an operating system (OS), a preview display program, and an object layout file configured with image data, text data, and graphic data. An operation input interface 105 serves as an interface for an operation input devices 109 such as a pointing device and a keyboard, both of which are operated by a user. A display interface 106 serves as an interface for a display 110 on which data retained by the computer device 100 or data having been provided is displayed. A network interface 107 serves as an interface for connecting to a network line 111 such as the Internet. An image input interface 108 serves as an interface for an image input device 112 such as a digital still camera, a digital video, or a scanner. A system bus 113 connects units 101 through 108 so that they can communicate with each other.
In this embodiment, the preview display program is stored in the external memory 104. When a user operates the operation input device 109 and provides an instruction for starting the preview display program, the CPU 101 receives the instruction via the operation input interface 105. The CPU 101 reads out the preview display program from the external memory 104 and extracts it on the RAM 103, whereby various screens are displayed on the display 110 in accordance with output data generated from the preview display program. In addition, various processing operations are performed by executing the preview display program in accordance with the command that the CPU 101 has received from one of the operation input devices 109 via the operation input interface 105.
Next, a processing procedure for displaying a preview based on an object layout file on the display 110 by starting and executing the preview display program in the computer device 100 will be described with reference to the flowchart shown in
In step S200, the preview display program is started.
In step S201, an initial screen is displayed on the display 110.
An example of the initial screen is shown in
Returning to
An exemplary schematic configuration of an object layout file is shown in
In this embodiment, image data configuring an object has a configuration compliant with the DCF standard. Image data 403 stores thumbnail image data 405 in an APPI area 404 and high-resolution image data 407 in a DCF basic main image area 406. In the APPI area 404, “Exif” information may be also stored. When an object is previewed, a low-resolution image based on the thumbnail image data 405 may be displayed, or a high-resolution image based on the high-resolution image data 407 may be displayed.
In this embodiment, text data 408 configuring an object stores a character string to be previewed in a character string area 409, the type of font in a font area 410, the font size of the character string to be previewed in a size area 411, the font color of the character string to be previewed in a color area 412, and the font style of the character string to be previewed in a style area 413. When an object is previewed, a character string is displayed in accordance with the above-described information.
Returning to
In step S204, the object layout file 400 is extracted and is then drawn on the basis of the coordinates of the preview display frame 301 acquired in step S203. Consequently, the entire preview of the object layout file 400 is displayed in the preview display frame 301. In this embodiment, a scaling factor is set to Z=1 when the entire preview is displayed in the preview display frame 301. Furthermore, in this embodiment, since the case in which a preview is enlarged will be described, a scaling factor can be presumed to be Z≧1.
An exemplary screen on which the entire preview of the object layout file 400 is displayed in the preview display frame 301 is shown in
Returning to
Next, in step S206, after a scaling factor and coordinates indicating a datum position are acquired, an enlarged display range in the object layout file 400 is calculated. Here, when it is presumed that the scaling factor is represented as z, and that the coordinates indicating a datum position are represented as (px, py), the upper left coordinates (ex1, ey1) of the enlarged display range are calculated as follows.
The lower right coordinates (ex2, ey2) are calculated as follows.
When the enlarged display range having been calculated as described above becomes larger than the range of the preview display frame 301, namely, the range between (0, 0) and (210, 297), the enlarged display range is recalculated as follows.
For example, when the X coordinate of the upper left coordinates is ex1<0, the X coordinate of the lower right coordinates, ex2, is calculated as follows.
The X coordinate of the upper left coordinates is set to ex1=0.
When the X coordinate of the lower right coordinates is ex2>210, the X coordinate of the upper left coordinates, ex1, is calculated as follows.
The X coordinate of the lower right coordinates is set to ex2=210.
The Y coordinates of the upper left and lower right coordinates are also individually recalculated by the same method used for calculating the X coordinates.
In this embodiment, the case in which the datum position corresponds to the center position of the enlarged display range has been described. However, the datum position may not be limited to the above-described case, and may correspond to another position, for example, one of the corners of the enlarged display range.
In step S207, it is determined whether any one object is to be at least partially included in the enlarged display range having been calculated in step S206. The position of an object 502 included in the object layout file 400 is managed using the upper left coordinates (aX1, aY1) and the lower right coordinates (aX2, aY2) of the bounding rectangle thereof. Similarly, the positions of objects 503, 504, and 505 are respectively managed using the upper left coordinates (bX1, bY1), (cX1, cY1), and (dX1, dY1) and the lower right coordinates (bX2, bY2), (cX2, CY2), and (dX2, dY2) of the bounding rectangles thereof. Each coordinate is shown in
By comparing the coordinates of each object with the coordinates of the enlarged display range having been calculated in S206, it is determined whether any one object is to be included in the enlarged display range. That is, for example, when the result of the comparison between the coordinates of the object 502 and the coordinates of the enlarged display range fulfills the condition of aX1<ex2, aX2>ex1, aY1<ey2, and aY2>ey1, it is determined that the object 502 is to be included in the enlarged display range. Other objects undergo the same process as this case.
When any objects are not included in the object layout file, the following processing, which is performed when it is determined that any one object is to be at least partially included in the enlarged display range, is performed.
When it has been determined that any one object is to be at least partially included in the enlarged display range in step S207, in step S208, the object layout file 400 is extracted and is then enlarged at the scaling factor having been specified by a user. Subsequently, the enlarged display range, which has been calculated in step S206, included in the acquired object layout file 400, is drawn on the basis of the coordinates of the preview display frame 301, which has been acquired in step S203. Consequently, the enlarged preview of the object layout file 400 is displayed in the preview display frame 301.
An exemplary screen on which an enlarged preview is displayed in the preview display frame 301 is shown in
Returning to
As described previously, according to this embodiment, when a user views an enlarged preview, the case in which no objects are included in the display range of the enlarged preview can be prevented. Accordingly, the user can easily understand which part of the entire preview the display range of the enlarged preview corresponds to by referring to a displayed object.
Moreover, according to this embodiment, before an enlarged preview not including any objects is displayed, a user can change the instruction of enlargement so that any one object can be included in the display range of an enlarged preview, thereby saving time and trouble.
Next, the case in which a scaling factor is automatically set in accordance with a preview display program so that any one object can be included in an enlarged preview will be described. Only those portions of the present embodiment different from the above described embodiment will be described in detail below.
First, a processing procedure for displaying a preview based on an object layout file on the display 110 by starting and executing a preview display program will be described with reference to the flowchart shown in
Like the first embodiment, processing of steps S201 through S205 in
Next, in step S901, the maximum scaling factor having been given in advance is set as a scaling factor. For example, in this embodiment, it is presumed that the maximum scaling factor is set to 10.
In step S902, it is determined whether one of the scroll bars 701 has been moved.
When it has been determined that one of the scroll bars 701 was not moved, the processing of steps S206 and S207 in
When it has been detected that any one object is not to be at least partially included in the enlarged display range in step S207, the set value of a scaling factor is decremented by one in step S903. Using the result of the decrement, the value of the scaling factor is updated. Subsequently, the processing of step S206 is performed again.
When it has been detected that any one object is to be at least partially included in the enlarged display range in step S207, the object layout file 400 is extracted and is then enlarged at the scaling factor having been set. Subsequently, the enlarged display range having been acquired in step S206 is drawn on the basis of the coordinates of the preview display frame 301, which have been acquired in step S203. Consequently, an enlarged preview of the object layout file 400 is displayed in the preview display frame 301 in step S208 shown in
Here, an exemplary screen on which the enlarged preview is displayed in the preview display frame 301 is shown in
Returning to
A user may set whether the above-described processing in which a scaling factor is automatically changed is performed. In this case, the computer device 100 stores in the external memory 104 a flag indicating whether the automatic change of a scaling factor can be performed which has been set by the user using the preview display program. If the flag indicates that the automatic change of a scaling factor is allowed, the computer device 100 performs the above-described processing procedure shown in
Thus, according to this embodiment, once a user designates a datum position for enlargement processing of a preview, the user can view a preview having been enlarged at the scaling factor that has been automatically set so that any one object can be included in an enlarged display range.
Furthermore, according to this embodiment, even if a user changes the datum position for enlargement processing of a preview in progress, the user can view a preview having been enlarged at the scaling factor that has been automatically set so that any one object can be included in an enlarged display range.
Still furthermore, according to this embodiment, when a user views an enlarged preview of a file on a display of a personal computer, the case in which any objects are not included in a display range of the enlarged and displayed preview can be prevented. Accordingly, such an effect that the user can easily understand which part of the entire preview the display range of the enlarged and displayed preview corresponds to by referring to a displayed object can be obtained.
Although the previous embodiments relate to an object layout file, for example supplied by a web server or computer, the present invention is also applicable to image files captured for example by a digital camera. Specifically, a digital camera (still or video) can be configured to include a data display device as described above. In other words, the object layout file can comprise, for example, raw data from a CCD imaging device, or a compressed JPEG, GIF, or MPEG file representing a photograph or video.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all modifications, equivalent structures and functions.
This application claims the benefit of Japanese Application No. 2005-205611 filed Jul. 14, 2005, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2005-205611 | Jul 2005 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5562353 | Handa et al. | Oct 1996 | A |
5721565 | Nguyen | Feb 1998 | A |
5729255 | Aoki | Mar 1998 | A |
5786846 | Hiroaki | Jul 1998 | A |
6288702 | Tachibana et al. | Sep 2001 | B1 |
6297836 | Kurashina | Oct 2001 | B1 |
6400852 | Miller et al. | Jun 2002 | B1 |
6496206 | Mernyk et al. | Dec 2002 | B1 |
6567102 | Kung | May 2003 | B2 |
6587216 | Yamada | Jul 2003 | B1 |
7315386 | Shiimori et al. | Jan 2008 | B1 |
7334190 | Wierowski | Feb 2008 | B2 |
7636097 | Holloway | Dec 2009 | B1 |
20010022624 | Tanaka et al. | Sep 2001 | A1 |
20010035875 | Suzuki et al. | Nov 2001 | A1 |
20020018136 | Kaji et al. | Feb 2002 | A1 |
20020032696 | Takiguchi et al. | Mar 2002 | A1 |
20020140737 | Sharp | Oct 2002 | A1 |
20030076363 | Murphy | Apr 2003 | A1 |
20030103145 | Ejima et al. | Jun 2003 | A1 |
20030179915 | Goto | Sep 2003 | A1 |
20030193026 | Takagi | Oct 2003 | A1 |
20040056883 | Wierowski | Mar 2004 | A1 |
20040088656 | Washio | May 2004 | A1 |
20040186820 | Izume et al. | Sep 2004 | A1 |
20050053260 | Worthington et al. | Mar 2005 | A1 |
20050071771 | Nagasawa et al. | Mar 2005 | A1 |
20050081161 | MacInnes et al. | Apr 2005 | A1 |
20050174362 | Lee et al. | Aug 2005 | A1 |
20050175362 | Wilson | Aug 2005 | A1 |
20050216862 | Shinohara et al. | Sep 2005 | A1 |
20060112333 | Iwanaga | May 2006 | A1 |
20070016855 | Masukawa et al. | Jan 2007 | A1 |
20070030293 | Shimizu | Feb 2007 | A1 |
20080115089 | Lee et al. | May 2008 | A1 |
20090066730 | Mikawa | Mar 2009 | A1 |
20100020225 | Hosoi et al. | Jan 2010 | A1 |
Number | Date | Country | |
---|---|---|---|
20070016855 A1 | Jan 2007 | US |