This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2015-194760, filed on Sep. 30, 2015, the entire contents of which are incorporated herein by reference.
The embodiment discussed herein is related to a display control device and a display control method.
In a known drag-and-drop technique, when a user performs a drag-and-drop operation on a window on a display screen, the window is moved to and dropped at a position according to the user operation, and is displayed at the drop position (see, for example, Japanese Laid-open Patent Publication Nos. 2001-325054 and 2006-185025). After moving the window, the user manually makes fine adjustments on the window, such as placing the window at a desired position or resizing the window into a desired size.
Meanwhile, there is a method which allows a user not to manually make such fine adjustments, by limiting the moving range and size of a window (see, for example, Japanese Laid-open Patent Publication No. 2012-27891). In one method for example, when a certain window is moved over a different window in a multi-window environment, the certain window is reduced in size and displayed at a predetermined position on the overlapping different window.
According to an aspect of the invention, a display control method includes receiving a drag operation performed on a window displayed on a display screen; displaying a plurality of arrangement icons on the display screen at preset areas on the display screen, the arrangement icons corresponding to at least one of a plurality of divided display areas, the divided display areas being at least one set of non-overlapping portions of the display screen, the at least one set of non-overlapping portions of the display screen covering the entire display screen; and when a drop position of the drag operation is within one of the preset areas on the display screen, displaying the window at a size and location corresponding to the at least one of the plurality of divided display areas represented by an arrangement icon displayed at the one of the preset areas.
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
The above techniques, however, may not display the moved window at a position desired by the user; consequently, the window may not be placed at the position intended by the user.
Thus, in one aspect, the embodiment discussed herein aims to place a window on a particular divided area on a display screen more easily than placing the window by moving the window directly over that particular area.
An embodiment is described below with reference to the accompanying drawings. Note that components, herein and in the drawings, having substantially the same function are denoted by the same reference numeral and described only once.
[Hardware Configuration of the Display Control Device]
First, an example of the hardware configuration of a display control device 1 according to the present embodiment is described with reference to
The display control device 1 has a central processing unit (CPU) 2, a memory 3, a hard disk drive (HOD) 4, an input device 5, a display device 6, a touch screen 7, a communications interface 8, and an external interface 9. All these parts are connected by buses B.
The memory 3 may be random access memory (RAM) or read-only memory (ROM). RAM is a volatile semiconductor memory capable of retaining programs and data temporarily. ROM is a non-volatile semiconductor memory capable of retaining data even after having been turned off. The RAM or ROM stores programs and data for network settings and the like.
The HDD 4 is a non-volatile recording device and may store programs and data. The programs and data stored in the HDD 4 include control programs for overall control of the display control device 1 and application programs. The control programs include a display control program executed by the CPU 2 or a hardware processor in the present embodiment.
The CPU 2 or the hardware processor performs overall control of the display control device 1 or implements a display control function installed in the display control device 1, by reading the control programs and data from the HDD 4, saving the control programs and data in the memory 3, and executing predetermined processing based on the control programs and data.
The input device 5 includes, for example, a keyboard or a mouse, and inputs a drag-and-drop operation according to user operation. The display device 6 includes a display and is capable of displaying multiple windows on a display screen at once. The touch screen 7 is layered on the display screen of the display device 6 and detects a touch operation by the user. The touch screen 7 detects when an operation object, such as a finger of the user, touches the touch screen 7. Thus, the display device 6 functions also as an input device. The display device 6 may be without the touch screen 7.
The communications interface 8 is an interface used to connect the display control device 1 to a network. The communications interface 8 allows the display control device 1 to perform data communications with another device.
The external interface 9 is an interface used to connect the display control device 1 to an external device. The external device is, for example, a recording medium 9a. The external interface 9 allows the display control device 1 to read data from the recording medium 9a and/or write data to the recording medium 9a. Examples of the recording medium 9a include a compact disk (CD), a digital versatile disk (DVD), a Secure Digital (SD) memory card, and a Universal Serial Bus (USB) memory.
[Function and Configuration of the Display Control Device]
Next, an example of the function and configuration of the display control device 1 according to the present embodiment is described with reference to
The initialization unit 11 initializes a fitting coordinate table 20. The operation reception unit 12 receives a user operation performed on a window displayed on the display screen. The operation reception unit 12 receives a drag operation on a window and then starts monitoring the position (coordinates) of the window which changes as the window moves. The operation reception unit 12 also receives a drop operation on the monitored window, separately from the drag operation. The operation reception unit 12 detects the coordinates of the window at the time of being dropped, and if the detected coordinates are particular coordinates (e.g., on an arrangement icon to be described later), moves the window to a predetermined display area corresponding to that arrangement icon. Known methods are used to detect the drag-and-drop operations on the window and to control the position and size of the window. Thus, detailed descriptions for such methods are omitted herein.
The recording unit 13 records the fitting coordinate table 20, a data management table 30, a display control program 40, and other control programs and various pieces of data. Recorded in the fitting coordinate table 20 beforehand are the correspondences between locations on the display screen and display areas obtained by dividing the display screen.
The fitting coordinate table 20 includes the following data items: arrangement icon 21, position information on arrangement icon 22, and coordinates of fitting area 23. The arrangement icon 21 indicates the name of an arrangement icon and the appearance (mark) of the arrangement icon displayed on the display screen. The position information on arrangement icon 22 indicates the position on the display screen to display the corresponding icon.
The coordinates of fitting area 23 indicates the coordinates specifying a display area for the corresponding arrangement icon 21, the display area being obtained by dividing the display screen. The window display areas specified by the coordinates of fitting area 23 are set so as not to overlap with one another.
For example, with the display screen being quartered into upper left, upper right, lower left, and lower right display areas, the coordinates of fitting area 23 specify the upper left quarter display area for the arrangement icon 21 “C1”, and specify the upper right quarter display area for the arrangement icon 21 “C2”. The coordinates of fitting area 23 specify the lower left quarter display area for the arrangement icon 21 “C3”, and specify the lower right quarter display area for the arrangement icon 21 “C4”. For the arrangement icons 21 “C5 to C8”, the coordinates of fitting area 23 specify either the left, right, upper, or lower half area of the display screen which is halved into left and right display areas or upper and lower display areas.
The marks of the arrangement icons 21 and the position information on arrangement icon 22 do not have to be recorded in the fitting coordinate table 20.
Referring back to
The determination unit 15 determines whether an operation received by the operation reception unit 12 is a drag to any of the preset locations on the display screen. When the operation received by the operation reception unit 12 is a drag to any of the preset locations on the display screen, the specification unit 16 refers to the fitting coordinate table 20 and specifies a fitting area (window display area) corresponding to the location specified by the drag operation.
The display control unit 17 displays the moved window on the display device 6 according to the specified display area. When there is a different window at the position where a certain window is dropped, the display control unit 17 displays these windows on the display device 6 after switching their positions. Specifically, the display control unit 17 displays the certain window at the dropped position and displays the other window at the position from which the certain window has been moved.
With this configuration, the CPU 2 of the display control device 1 according to the present embodiment executes display control processing, to be described later, using the display control program 40 stored in the memory 3 or the like. The display control program 40 according to the present embodiment may be a resident program which is resident in the memory 3 while the OS of the display control device 1 is running. When the user performs a drag-and-drop operation while the display control device 1 is executing a certain application, an interrupt occurs. In response to the interrupt by the drag-and-drop operation, the CPU 2 executes the display control processing in accordance with the procedures indicated by the display control program 40.
The information recorded in the fitting coordinate table 20 illustrated in
[Display Control Processing]
Next, an example of the display control processing according to the present embodiment is described with reference to
Next, the initialization unit 11 initializes the fitting coordinate table 20 (Step S14). The initialization unit 11 divides the display screen based on the acquired screen size information and sets, for each arrangement icon 21, the coordinates of fitting area 23 defining one of the divided display areas.
Next, the operation reception unit 12 registers a drag operation thread, and starts monitoring a drag operation by the user (Step S16). The determination unit 15 determines whether an interrupt by a drag operation has occurred (Step S18). When the user performs a drag operation, an interrupt occurs for the drag operation thread for executing fitting processing according to the drag operation event. When the determination unit 15 determines that an interrupt has occurred, the fitting processing is performed (Step S20,
[Fitting Processing]
Once the fitting processing in
Next, the information acquisition unit 14 acquires the position of a pointer moved by the drag operation (Step S24). In the present embodiment, the position of the pointer is the position of a cursor. However, the embodiment is not limited to this. The position of the pointer may be a position on the touch screen 7 touched or approached by a finger of the user.
Next, the display control unit 17 reads information from the fitting coordinate table 20 and displays arrangement icons based on the position of the pointer (Step S26). For example, in
The embodiment is not limited to this method of displaying arrangement icons, however. For example, without taking the moving direction of the pointer P into consideration, all the arrangement icons C1 to C9 may be displayed at their predetermined positions on the screen, according to the position information on arrangement icon 22 in the fitting coordinate table 20 illustrated in
The display color or outline of each of the arrangement icons C1 to C9 may darken as the pointer P approaches the arrangement icon and pales as the pointer P moves away from the arrangement icon, or vice versa. The arrangement icons C1 to C9 may disappear once the pointer P is moved over any of the arrangement icons C1 to C9. The arrangement icons C1 to C9 may reappear once the pointer P is moved away from any of the arrangement icons C1 to C9.
The coordinates of fitting area 23 in the fitting coordinate table 20 do not have to correspond one-to-one to the arrangement icons 21 for C1 to C8. In the present embodiment, for example, when the pointer P is moved over the arrangement icon C2 displayed on the upper right corner of the screen in
Referring back to
The guide image F according to the present embodiment illustrates how the window looks like when fitted in one of the display areas (fitting areas) obtained by dividing the screen. This allows the user to preview how the window W, being dragged by the user, will look like when displayed at the display position of the guide image F after being resized to fit the fitting area. The guide image F may disappear when the pointer P moves away from the arrangement icon, or does not have to be displayed on the screen at all.
Referring back to
Meanwhile, after the guide image F is displayed in Step S30, the determination unit 15 determines whether the window W has been dropped within a predetermined period of time since the guide image F has been displayed (Step S36). When it is determined that the window W has not been dropped within the predetermined period of time, the fitting processing proceeds back to Step S24 in which the information acquisition unit 14 acquires the current position of the pointer P, and repeats the steps after Step S24. When it is determined in Step S36 that the window W has been dropped within the predetermined period of time, the determination unit 15 determines whether the window W has been dropped over a different window (Step S38).
In the present embodiment, when a window W2 is dropped over the particular arrangement icon C9 on the different window W1 as illustrated in
Referring back to
Finally, a description is given of processing performed in Steps S42 and S44 in
Then, the determination unit 15 determines whether the pointer P is located on the arrangement icon (Step S28). In this case, the pointer P is located on the arrangement icon 21 “C9”. Thus, the display control unit 17 displays the guide image F in Step S30. In the present embodiment, however, the guide image F is not displayed because the coordinates of fitting area 23 is not set for the arrangement icon 21 “C9” of the fitting coordinate table 20. Thus, the processing proceeds to Step S36 without displaying the guide image F corresponding to the arrangement icon 21 “C9”. When it is determined in Step S36 that the dragged window W has been dropped on a different window within the predetermined period of time, the display control unit 17 switches the display positions of the dropped window W and the different window (Step S42). Next, the display control unit 17 displays the dropped window W on the switched fitting area (Step S44). The processing then ends.
In
As described above, the display control method according to the present embodiment allows the user to display a window at an intended position on the display screen more easily than placing the window directly at the intended position. In particular, without limiting operational freedom in moving a window to any position on the display screen, the display control method according to the present embodiment allows a window to be automatically displayed at an intended position in an intended size more easily than when the user places the window by manually making fine adjustments thereon.
The fitting areas, which respectively correspond to the multiple locations on the display screen, are display areas that do not overlap one another. The dropped window W is displayed after being resized to fit a particular fitting area. This enables nonoverlapping arrangement of multiple windows on the screen more easily than arranging them by manually changing the position and size of each window W.
The recording unit 13 may register the favorite layout information 34 in the data management table 30. As illustrated in
Although the display control device 1 is integral with the display device 6 in the present embodiment, the embodiment is not limited to this. For example, a display control device 10 according to the present embodiment may be configured separately from the display device 6, as illustrated in
For example, the display control device 10 is connected to the display device 6 by plugging a High-Definition Multimedia Interface (HDMI (registered trademark)) connector of the display control device 10 into an HDMI port of the display device 6. Examples of the display device 6 include a television, a display, and a projector. An input device such as a mouse 50 may be connected to a USB port of the display control device 10. The mouse 50 is used to allow the window W displayed on the display device 6 to move.
The display control device, the display control method, and the display control program have been described above through the embodiment. However, the display control device, the display control method, and the display control program according to the present disclosure are not limited to the ones described in the embodiment, and may be modified and improved variously without departing from the present disclosure. If there are more than one embodiment and modification, they may be combined as long as contradiction does not occur.
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation 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 embodiment of the present invention has 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 |
---|---|---|---|
2015-194760 | Sep 2015 | JP | national |