This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2012-019129, filed on Jan. 31, 2012, the entire contents of which are incorporated herein by reference.
The embodiments discussed herein are related to a display control program, a display control device, and a display control method.
In recent years, mobile terminals are increasingly diversified and the screens provided in the mobile terminals also have the sizes of a wide variety. For example, between a smart phone and a tablet terminal, both utilizing the Internet, there is a considerable difference in size of the screen devices, i.e., the displays. The optimal screen placement in a “display window” displayed by a web browser application becomes different in accordance with the size of the display.
With that, there is a technique of altering a configuration and placement of a screen that is displayed in a display window and configures one page (hereinafter, may be referred to as a “page screen”) in accordance with a display environment, such as a display size. In this technique, by introducing a screen drawing description (for example, CSS: cascading style sheets) that mainly defines the style as well as a screen configuration description (for example, HTML: hypertext markup language), the configuration and placement in one page screen can be altered.
W3C “CSS Media Queries”, 2010 Jul. 27 is an example of related art.
As a display of a mobile terminal becomes larger, it is desired that more information is displayed on the display at the same time.
However, in a screen display method in the past, since the configuration and placement in one page screen is altered, the amount of information displayed in the display window does not increase even when the display gets larger.
According to an aspect of the embodiments, a display control program causing a processor to execute display control process includes: specifying relationship between a first page screen and a second page screen; allocating the first page screen and the second page screen respectively to a first unit region and a second unit region in one display window in a case that the specified relationship is dependent relationship; and displaying the one display window having the first page screen and the second page screen placed in the first unit region and the second unit region.
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.
Detailed descriptions are given below to embodiments of a display control program, a display control device, and a display control method disclosed herein based on the drawings. These embodiments do not limit the display control program, the display control device, and the display control method disclosed herein. In the embodiments, an identical reference character is given to configurations having an identical function to omit repetitive descriptions.
The description reading unit 11 obtains screen data. The screen data is described by an application description. The application description includes a screen drawing description and a screen display description. The screen drawing description defines, for example, a type, a number, and the like of a view component, such as buttons and tables, included in a page screen. The screen display description defines a form of display, such as a shape, a size, and a color, of a view component included in a page screen.
The description reading unit 11 obtains a page screen group including, for example, a plurality of first type successive page screens and second type page screens dependent on the first type page screens. That is, the first type page screens are in parallel relationship to each other, and the first type page screens and the second type page screens are in dependent relationship. There is a case that a first page screen dependent on a certain page screen and a second page screen in parallel relationship thereto are included in a page screen group. In this case, focusing on the first page screen and the second page screen, they are in parallel relationship and thus both are first type page screens.
Then, the description reading unit 11 puts the screen data obtained in the form of application description into a form of screen configuration description (for example, HTML) to output it to the page screen construction unit 12.
The page screen construction unit 12 outputs a “reading target page screen”, which is page screen data corresponding to a reading instruction signal or a next page screen reading command signal among the screen data obtained from the description reading unit 11, to the relationship specification unit 13. Here, the reading instruction signal is a signal to load a page screen corresponding to a “reference element” specified by a user while watching a display into the page screen construction unit 12. The “reference element” is a view component having a transfer instruction for a page screen to a link destination page screen embedded therein.
The relationship specification unit 13 specifies relationship between the reading target page screen and the linked page screen, i.e., parallel relationship or dependent relationship based on the reading target page screen received from the page screen construction unit 12 and a “relationship standard table” stored in a memory (not illustrated).
Specifically, a page screen includes the “reference element”, which is a view component having a transfer instruction for the page screen to a link destination page screen embedded therein.
Then, the relationship specification unit 13 outputs “inter-screen relationship information”, which is information related to the specified relationship, and the reading target page screen received from the page screen construction unit 12 to the placement processing unit 14. The relationship specification unit 13 holds an inter-screen relationship table. The inter-screen relationship table is updated every time the inter-screen relationship is specified by the relationship specification unit 13.
The placement processing unit 14 receives a number N of “unit regions” included in a display window. Here, N is supposed to be a natural number of 2 or greater. An identification number of, for example, 1 through N is assigned to each of N items of the unit regions. A plurality of page screens is not displayed in one unit region. That is, such unit region is a basic unit to display a page screen.
The placement processing unit 14 controls the placement of the reading target page screen to a unit region based on the number N of unit regions, the inter-screen relationship information, and a status of an allocated page screen to a unit region. The placement processing unit 14 allocates, in particular, a first page screen and a second page screen among a plurality of page screens to a first unit region and a second unit region in one display window, respectively.
Specifically, in a case that a last reading target page screen is already allocated to a unit region n of other than the Nth unit region and also a current reading target page screen is in dependent relationship with the last reading target page screen, the placement processing unit 14 allocates the current reading target page screen to a unit region n+1. Here, n is a natural number of not less than 1 and not more than N−1. The current reading target page screen means a page screen as a target to be allocated to a unit region, i.e., an allocation target page screen. That is, in a case that there is an unallocated unit region and also the allocation target page screen is in dependent relationship with the last reading target page screen, the placement processing unit 14 allocates an allocation target page screen to a unit region next to a unit region allocated to the last reading target page screen.
Further, in a case that the last reading target page screen is already allocated to a unit region n′ and also the current reading target page screen is in parallel relationship with a following reading target page screen, the placement processing unit 14 also allocates the current reading target page screen to a unit region n′+2 as well as the unit region n′+1. Here, n′ is a natural number of not less than 1 and not more than N−2, i.e., the unit region n′ is a unit region of other than the Nth and the (N−1)th unit regions. That is, in a case that there are two or more unallocated unit regions and also the allocation target page screen is in parallel relationship with the following reading target page screen, the placement processing unit 14 enlarges a size of the allocation target page screen. That is, the placement processing unit 14 executes “size enlargement process”.
In addition, in a case that the last reading target page screen is already allocated to the Nth unit region and also the current reading target page screen is in dependent relationship with the last reading target page screen, the placement processing unit 14 shifts allocation destination unit regions for the already allocated reading target page screen one by one. Then, the placement processing unit 14 allocates the current reading target page screen to the Nth unit region. That is, in a case that there is no unallocated unit region and also the allocation target page screen is in dependent relationship with the last reading target page screen, the placement processing unit 14 executes “shift process”.
In addition, in a case that the current reading target page screen is in parallel relationship with a reading target page screen already allocated to a unit region, the placement processing unit 14 allocates the current reading target page screen, instead, to the allocation destination unit region for the already allocated reading target page screen. That is, the placement processing unit 14 executes “replacement process”. In this case, allocation of a unit region to the already allocated reading target page screen that is in parallel relationship with the current reading target page screen and also has dependent relationship with the already allocated reading target page screen is also reset.
In addition, the placement processing unit 14 outputs a command signal to read a reading target page screen next to the allocation target page screen, i.e., a next page screen reading command signal to the page screen construction unit 12. In such a manner, the page screen construction unit 12 outputs the reading target page screen next to the allocation target page screen to the relationship specification unit 13.
In this way, data of the plurality of page screens allocated to the plurality of unit regions, i.e., in-display frame screen data is outputted to the screen display unit 15 by the placement processing unit 14.
The screen display unit 15 outputs the in-display frame screen data received from the placement processing unit 14 to a display (not illustrated), thereby displaying a plurality of page screens in one display window. Although not described in detail here, the screen display unit 15 may alter the configuration and placement of each page screen in accordance with a display environment, such as a display size, same as the past.
A description is given to behaviors of the display control device 10 having the above configuration.
The description reading unit 11 obtains screen data described by an application description (step S21). Specifically, the description reading unit 11 obtains a page screen group including a plurality of page screens. In the page screen group, a page screen pair having the above described dependent relationship or a page screen pair having the above described parallel relationship is included.
The page screen construction unit 12 outputs a reading target page screen, among the screen data obtained from the description reading unit 11, to the relationship specification unit 13 (step S22).
The relationship specification unit 13 executes relationship specification process, represented in
The placement processing unit 14 carries out placement process (step S24). That is, the placement processing unit 14 executes the placement process represented in
The placement processing unit 14 determines whether or not a next page screen has to be read (step S25). Specifically, the placement processing unit 14 allocates the current reading target page screen to one unit region in step S24, followed by determining whether or not there is a unit region not allocated to any. Then, in a case of determining that there is a unit region not allocated to any (yes in step S25), the placement processing unit 14 outputs a next page screen reading command signal to the page screen construction unit 12 because the next page screen has to be read.
In contrast, in a case of determining that the next page screen does not have to be read (no in step S25), the screen display unit 15 outputs the in-display frame screen data received from the placement processing unit 14 to the display, thereby displaying a plurality of page screens in one display frame (step S26).
<Relationship Specification Process>
The relationship specification unit 13 specifies all reference elements included in the reading target page screen received from the page screen construction unit 12 (step S31).
The relationship specification unit 13 specifies a positioning type of an optional reference element among the plurality of reference elements specified in step S31 (step S32). Here, a positioning type includes, for example, a type included in a list, a type included as an independent button image, and the like.
The relationship specification unit 13 specifies inter-screen relationship based on the specified positioning type and the relationship standard table (step S33).
Going back to
The relationship specification unit 13 determines whether or not all reference elements specified in step S31 are specified in the inter-screen relationship (step S35). In such a manner, the process in steps S32 through S34 is repeatedly carried out until finishing with all reference elements.
<Placement Process>
The placement processing unit 14 determines inter-screen relationship of the last reading target page screen and the current reading target page screen (step S41).
In a case of determining as the dependent relationship in step S41, the placement processing unit 14 determines whether or not there is an unallocated unit region (step S42).
In a case of determining that there is no unallocated unit region in step S42 (no in step S42), the placement processing unit 14 executes the shift process (step S43). That is, in a case that there is no unallocated unit region and also the current reading target page screen is in dependent relationship with the last reading target page screen, the placement processing unit 14 shifts the allocation destination unit regions for the already allocated reading target page screen one by one (step S43). Then, the placement processing unit 14 allocates the current reading target page screen to a unit region next to the allocation destination unit region for the last reading target page screen, here, a rearmost unit region (step S44).
In a case of determining that there is an unallocated unit region in step S42 (yes in step S42), the placement processing unit 14 allocates the current reading target page screen to a unit region next to the allocation destination unit region for the last reading target page screen (step S44). That is, in a case that a situation illustrated in
In contrast, in a case of determining as the parallel relationship in step S41, the placement processing unit 14 executes the replacement process (step S45). That is, in a case that the current reading target page screen is in parallel relationship with a reading target page screen already allocated to a unit region, the placement processing unit 14 allocates the current reading target page screen, instead, to the allocation destination unit region for the already allocated reading target page screen (refer to
The placement processing unit 14 determines whether or not the relationship between the current reading target page screen and the following reading target page screen is dependent relationship (step S46). The following reading target page screen is, for example, a page screen linked with a top reference element among the reference elements included in the current reading target page screen.
Then, in a case of determining as the dependent relationship in step S46 (yes in step S46), the placement processing unit 14 sets a number of unit regions allocated to the current reading target page screen as 1 (step S47, refer to
In a case of determining as not in dependent relationship in step S46, i.e., a case of determining as the parallel relationship (no in step S46), the placement processing unit 14 executes the size enlargement process when there is any unallocated unit region (step S48). That is, the placement processing unit 14 allocates a unit region next to the unit region that is allocated to the current reading target page screen also to the current reading target page screen in step S44 or S45. Not only the next unit region, all unallocated unit regions may also be allocated to the current reading target page screen (refer to
Next, screen placement process is described using specific examples.
(1) Firstly, a description is given to a case that relationship of the page screens is the relationship illustrated in
As represented in
Then, as the page screen B is read in a situation where the page screen A is allocated to a unit region 1, the page screen B is in dependent relationship with the page screen A, which is the last reading target page screen, so that the page screen B is allocated to a unit region 2 next to the unit region 1 (refer to situation C1 in
As the page screen C is read in situation C1, the page screen C is in parallel relationship with the page screen B, which is the last reading target page screen, so that the page screen C is allocated to the unit region 2 allocated to the page screen B (refer to situation C2 in
As the page screen D is read in situation C2, the page screen D is in dependent relationship with the page screen C, which is the last reading target page screen, and also there is no unallocated unit region, so that the shift process is executed and the page screen D is allocated to the unit region 2 (refer to situation C3 in
(2) Next, a description is given to a case where relationship of the page screens is the relationship illustrated in
As represented in
Then, as the page screen B is read in a situation where the page screen A is allocated to a unit region 1, the page screen B is in dependent relationship with the page screen A, which is the last reading target page screen, so that the page screen B is allocated to a unit region 2 next to the unit region 1. Further, the page screen C next to the page screen B is in parallel relationship with the page screen B, so that the size enlargement process is executed to the page screen B (refer to situation C4 in
As the page screen C is read in situation C4, the page screen C is in parallel relationship with the page screen B, which is the last reading target page screen, so that the page screen C is allocated to the unit region 2 to which the page screen B is allocated. Then, the page screen D, which is a reading target page screen next to the page screen C, is in dependent relationship with the page screen C, so that the size enlargement process is not carried out to the page screen C. In this situation, as the page screen D is read, the unit region 3 is allocated to the page screen D (refer to situation C5 in
As the page screen E is read in situation C5, the page screen E is in dependent relationship with the page screen D, which is the last reading target page screen, and also there is no unallocated unit region, so that the shift process is executed and the page screen E is allocated to the unit region 3 (refer to situation C6 in
As just described, according to the present embodiment, in the display control device 10, the placement processing unit 14 allocates a first page screen and a second page screen among a plurality of page screens respectively to a first unit region and a second unit region in one display window. Then, the screen display unit 15 displays the one display window, having the first page screen and the second page screen placed in the first unit region and the second unit region, on a display.
This enables to display a plurality of page screens in one display window, and thus allows an increase in an amount of information displayed in the display window.
The relationship specification unit 13 specifies the relationship between the first page screen and the second page screen, and the placement processing unit 14 allocates the first page screen and the second page screen to the first unit region and the second unit region at a same timing in a case that the first page screen and the second page screen are in dependent relationship.
This enables to display screens across a plurality of levels in one display window, and thus allows improvement in convenience for a user.
Specifically, the relationship specification unit 13 specifies a reference element, which is a image component having a transfer instruction to the link destination page screen embedded therein, and specifies the inter-screen relationship based on the relationship standard table in which a plurality of positioning type candidates of the reference element are associated with inter-screen relationship in accordance with the respective positioning type candidates, and the specified reference elements.
When a first page screen is the reading target page screen of the last time, a second page screen is the reading target page screen of this time, and a third page screen is the reading target page screen for the next time, the placement processing unit 14 allocates a third unit region in addition to the second unit region to the second page screen, which is in parallel relationship with the third page screen. That is, the placement processing unit 14 executes the size enlargement process.
This enables to effectively utilize the third unit region without putting it into a situation not allocated to any page screen.
In a case that the third page screen next to the second page screen is in dependent relationship with the second page screen, the placement processing unit 14 relocates the second page screen to the first unit region and allocates the third page screen to the second unit region. That is, the placement processing unit 14 executes the shift process.
This enables to display in priority to page screens in close levels when reading the third page screen, and thus allows further improvement in convenience for a user.
In the first embodiment, it is premised that a number of unit regions in a display window is fixed. In contrast, in a second embodiment, the number of unit regions in a display window can be switched.
The placement switching unit 51 obtains terminal information from a terminal connected to the display control device 50. The terminal information includes a display size of the terminal.
The placement switching unit 51 decides, in an initial state, a number of unit regions in a window in accordance with the display size. For example, the placement switching unit 51 holds a region number deciding table in which a plurality of display size candidates are associated with respective numbers of unit regions in accordance with the respective display size candidates. Then, the placement switching unit 51 specifies the number of unit regions associated with an inputted display size in the region number deciding table. The number of unit regions thus decided is outputted to the placement processing unit 52.
In addition, the placement switching unit 51 alters a number of unit regions in accordance with a configuration altering instruction. The configuration altering instruction can include, for example, (1) instruction by menus, keys, buttons, and the like, (2) instruction by a pinch-in, a pinch-out, and the like, (3) instruction by an operation to rotate a screen, and (4) instruction based on a detected distance between the display and the user. In a case of (4), the distance between the display and the user may be obtained by image recognition with a camera or may also be obtained using a proximity sensor.
The placement processing unit 52 basically has functions similar to the placement processing unit 14 in the first embodiment.
In addition, the placement processing unit 52 receives a number N′ of unit regions after alteration. Here, N′ is supposed to be a natural number of 2 or greater. Then, the placement processing unit 52 controls placement of the allocated page screen or the reading target page screen to a unit region based on a number N of unit regions before alteration, the number N′ of unit regions after alteration, the inter-screen relationship information, and the status of an allocated page screen to a unit region.
Specifically, the placement processing unit 52 determines whether the number of unit regions increases or decreases depending on the magnitude relationship of the number N of unit regions before alteration and the number N′ of unit regions after alteration.
Then, in a case that the number of unit regions is decreased, i.e., N′<N, the placement processing unit 52 allocates N′ types of page screens allocated to starting from the unit region N in order among the N items of already allocated page screens again to the unit regions after alteration.
In addition, in a case that the number of unit regions is increased, the placement processing unit 52 handles the N items of already allocated page screens without change. Here, since it turns out that there is an unallocated unit region in a case of increasing the number of unit regions, the placement processing unit 52 carries out process to load a next page screen. Then, in a case that a page screen allocated to a unit region N, i.e., the page screen read lastly and the next reading target page screen are in parallel relationship, the placement processing unit 52 carries out the size enlargement process to the page screen allocated to the unit region N.
In step S61, when receiving a configuration altering instruction, the placement switching unit 51 alters a number of unit regions.
In step S62, the placement processing unit 52 carries out the placement process. Specifically, in a case that the number of unit regions is decreased, i.e., N′<N, the placement processing unit 52 allocates N′ types of page screens allocated to starting from the unit region N in order among the N items of already allocated page screens again to the unit regions after alteration. In addition, in a case that the number of unit regions is increased, the placement processing unit 52 handles the N items of already allocated page screens without change.
In step S63, the placement processing unit 52 determines whether or not a next page screen has to be read. Specifically, in a case that the number of unit regions is increased, the placement processing unit 52 determines that the next page screen has to be read and outputs a next page screen reading command signal to the page screen construction unit 12. In a case that the number of unit regions is decreased, the placement processing unit 52 determines that the next page screen does not have to be read.
Next, the screen placement process accompanied by alteration of a number of unit regions is described using a specific example.
Firstly, a description is given to a case that the number of unit regions decreases from 3 to 2.
In a case that the number of unit regions is altered from 3 to 2 in situation C4, two types of page screens allocated from the unit region 3, i.e., the page screen B and the page screen A are allocated again to the unit regions 2 and 1 (refer to situation C1).
In a case that the number of unit regions is altered from 3 to 2 in situation C5, two types of page screens allocated from the unit region 3, i.e., the page screen D and the page screen C are allocated again to the unit regions 2 and 1 (refer to situation C3). In contrast, in a case that the number of unit regions is altered after displaying pages from situation C6 to situation C5, two types of page screens allocated from the unit region 1, i.e., the page screen A and the page screen C are allocated to the unit regions 1 and 2 (refer to situation C2).
In a case that the number of unit regions is altered from 3 to 2 in situation C6, two types of page screens allocated from the unit region 3, i.e., the page screen E and the page screen D are allocated again to the unit regions 2 and 1 (refer to situation C7).
Next, a description is given to a case that the number of unit regions increases from 2 to 3.
In a case that the number of unit regions is altered from 2 to 3 in situation C1, already allocated two page screens, i.e., the page screen A and the page screen B are handled without change. That is, the page screen A and the page screen B are allocated again to the unit regions 1 and 2. Then, since relationship between the page screen B and the next page screen C are in parallel relationship, the page screen B is subjected to the size enlargement process (refer to situation C4).
As just described, according to the present embodiment, in the display control device 50, the placement switching unit 51 alters a number of unit regions in accordance with a configuration altering instruction.
This enables to display page screens depending on a number of unit regions in accordance with a configuration altering instruction by a user, and thus allows further improvement in convenience for a user.
[1] The process of the placement processing unit and the relationship specification unit in the first embodiment and the second embodiment and of the placement switching unit in the second embodiment can be achieved as an application execution environment, for example, functions of a web browser and can also be achieved as an application, for example, functions of a library.
[2] In addition, each component of each part illustrated in the first embodiment and the second embodiment does not have to be physically configured as illustrated. That is, the specific forms of distribution and integration of each part are not limited to those illustrated, and they can also be configured by, in whole or in part, functional or physical distribution and integration in an optional unit in accordance with various loads, the status of use, and the like.
Further, various processing functions carried out in each device may also be executed on, in whole or in part optionally, a CPU (central processing unit) (or a microcomputer, such as an MPU (micro processing unit) and an MCU (micro controller unit)). In addition, naturally, the various processing functions may also be executed on, in whole or in part optionally, a program to be executed for analysis with a CPU (or a microcomputer, such as an MPU and an MCU) or hardware by a wired logic.
The various types of process described in the first embodiment and the second embodiment can be achieved by executing a program prepared in advance on a computer. With that, one example of a computer that executes a program having functions equivalent to above embodiments is described below.
A computer 100 that executes a display control program illustrated in
Then, in the HDD 110, a display control program is stored in advance that exhibits the functions equivalent to the embodiments described above. In the HDD 110, an application is also stored. The display control program may also be recorded in, not the HDD 110, but the ROM 130 or a recording medium that is computer-readable with a drive, not illustrated. The recording medium may be, for example, a portable recording medium, such as a CD-ROM, a DVD disk, and a USB memory, a semiconductor memory, such as a flash memory, and the like. The display control program is, as illustrated in
Then, the CPU 140 reads these programs 110A, 110B, and 110C out of the HDD 110. Then, as illustrated in
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 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-019129 | Jan 2012 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5712995 | Cohn | Jan 1998 | A |
20070074129 | Baumann | Mar 2007 | A1 |
20080307364 | Chaudhri | Dec 2008 | A1 |
20090031247 | Walter et al. | Jan 2009 | A1 |
20100110072 | Nakayama | May 2010 | A1 |
20120096394 | Balko | Apr 2012 | A1 |
20120188248 | Eames et al. | Jul 2012 | A1 |
Number | Date | Country |
---|---|---|
5-204584 | Aug 1993 | JP |
7-73002 | Mar 1995 | JP |
9-134305 | May 1997 | JP |
2006-236205 | Sep 2006 | JP |
2011150505 | Aug 2011 | JP |
Entry |
---|
W3C “Media Queries”, W3C Candidate Recommendation Jul. 27, 2010, Copyright © 2010 W3C®. http://www.w3.org/TR/2010/CR-css3-mediaqueries-20100727/ , 17 pages. |
Japanese Office Action dated Sep. 8, 2015 in corresponding Japanese Patent Application No. 2012-019129, 3 pages. |
Number | Date | Country | |
---|---|---|---|
20130194300 A1 | Aug 2013 | US |