The entire disclosure of Japanese Patent Application No. 2015-149348, filed Jul. 29, 2015 is incorporated by reference herein.
1. Technical Field
The present invention relates to an electronic device and a control program therefor, and particularly, to a user interface.
2. Related Art
Recently, known is an electronic device in which a list of a plurality of items is displayed on a menu screen (for example, FIG. 7 in JP-A-2014-2756).
In the electronic device of the related art, when an item is selected in a state in which a plurality of items are displayed as a list, a plurality of detailed items corresponding to the selected item are further displayed as a list, for example, in a lower part of a screen below the selected item. However, a user is not allowed to adjust a degree of displaying of the detailed items which are displayed as a list, and for example, all the detailed items corresponding to a certain item are displayed as a list. Accordingly, there is a problem in that information which the user wants to check other than the detailed items on the screen is, for example, hidden under the displayed list of the detailed items and usability is not good.
An advantage of some aspects of the invention is that usability relating to an electronic device is improved.
According to an aspect of the invention, an electronic device includes a display controller that causes a display section to display an image, and a detecting section that detects movement of an instruction tool. In response to the instruction tool pointing at a first object and pointing at a different position A in a state in which the display section displays first object, the display controller causes a second object relating to the first object to be displayed in an object region which is a region having the position A as an end of the region.
When adopting the configuration described above, the user who operates an instruction tool can designate a range (position, size, shape, and the like) of the object region for displaying the second object. Therefore, the user can designate the object region by avoiding the location of other objects which the user desires to recognize along with the second object (the other objects are prevented from being hidden by the second object). In addition, since the user can designate a size of the object region, the user can adjust a degree of displaying of the second object at one time in the object region. Therefore, according to the invention, usability relating to display of information on the electronic device can be improved. The second object may be displayed in any form as long as the second object is displayed in the object region. For example, the second object may be displayed in the entire region of the object region, or the second object may be displayed in a part of the object region. Moreover, the instruction tool may point at a position different from an actual position in some cases, and the position pointed at by the instruction tool may be different from the position A.
Here, the first object is a display element which is displayed on a screen of the display section and is a subject receiving an operation by the instruction tool. The second object may be a display element as the subject receiving an operation by the instruction tool, or may be a display element which is not the subject. The second object displayed in the object region may be a single object or multiple objects.
In addition, the object region may be any region as long as the position A is determined as a part of boundaries of the region. For example, in a case in which the object region has a rectangular shape, the object region may be determined as a region in which the position A is set as an apex, or the object region may be determined as a region in which the position A is set as a part of the sides. A shape of the object region is not limited to a rectangular shape, and may be other various shapes such as a circle or an ellipse. The position A is applicable as long as the point A is different from a starting point defining the first object, and the position A may exist in the region defined as the first object, or the position A may exist outside the region.
In addition, various known pointing devices may be used as the instruction tool. In a case of touch panels, the pointing device may be fingers, touch pens, or the like. A mode in which the instruction tool points at the first object and subsequently points at the position A may be implemented by, for example, a pinch-in operation or a pinch-out operation using two fingers. In addition, for example, a dragging operation by one finger or a pointing device such as a mouse pointing at one position may be assumed. Further, various modes in which other input devices are combined, for example, can be adopted.
In the electronic device, the first object may indicate a content group, and the second object may indicate contents included in the content group. Here, a content group means the group in which one or more contents relating to each other are brought together into one group.
In the electronic device, the object region may be a region extending from a region indicating the first object before the second object is displayed to the position A.
In such a configuration, the user can designate the object region with at least one instruction tool. That is, the user can designate the object region by pointing at the first object with at least one instruction tool and thereafter pointing at another position A different from a position at which the first object is initially pointed.
In the electronic device, the object region may be a region extending from the position A pointed by a first instruction tool to a position B pointed by a second instruction tool.
In the configuration, the user can designate the object region as a region from the position A to the position B which are individually pointed at using two instruction tools. Therefore, the object region can be set regardless of a region displaying the first object before displaying the second object.
The position A and the position B may be located in a region indicating the first object, or one or both of the position A and the position B may be located outside the region indicating the first object. The object region may be a region from the position B pointed by the first instruction tool to the position A pointed by the second instruction tool.
In the electronic device, the display controller may cause a first scroll bar corresponding to the first object to be displayed outside the object region, and causes a second scroll bar corresponding to the second object to be displayed in the object region.
With the first scroll bar, the user can recognize positional relationships between the objects currently being displayed and all the objects that may be displayed in a list in the same rank as the first objects. The user can scroll the first objects with reference to the positional relationship indicated by the first scroll bar. In addition, with the second scroll bar, the user can recognize positional relationships between the second objects currently being displayed and all the objects that may be displayed in a list as the second objects. The user can scroll the second objects in the object region with reference to the positional relationship indicated by the second scroll bar.
In the electronic device, the display controller may cause a first scroll bar corresponding to the first object to be displayed outside an object region in rectangular shape along a first side of the object region, and may cause a second scroll bar corresponding to the second object to be displayed outside the object region along a second side opposite the first side of the object region.
In a case in which the second scroll bar is displayed outside the object region, when the second scroll bar is displayed at the first side where the first scroll bar is displayed and if the first scroll bar and the second scroll bar are overlapped with each other, for example, the two scroll bars may not be clearly identified. Therefore, when the respective first scroll bar and second scroll bar are provided apart from each other along two opposite sides of the object region as the configuration according to the aspect, each of the scroll bars can be easily identified.
In the electronic device, the display controller may cause displaying of the second scroll bar to be terminated, in a case in which a movement of the instruction tool is not detected for a period of time that is equal to or greater than a threshold after the second object is displayed in the object region.
When the displaying of the second scroll bar is terminated after the period of time that is equal to or greater than a threshold elapses, the user can recognize the display contents in a region which is hidden when the second scroll bar is displayed. In a case in which the period of time that is equal to or greater than a threshold elapses after an operation with respect to the second scroll bar is terminated, the displaying of the second scroll bar may be terminated.
In the electronic device, the display controller may cause a first scroll bar corresponding to the first object to be displayed outside the object region, and may cause another object which indicates that the second object currently not displayed exists to be displayed in at least an end portion in a scroll direction of the second object in the object region.
When the other object is provided, the user can recognize that the second object which is not currently displayed exists. In addition, the user can display the second object which is not currently displayed, by scrolling the second object with reference to the other object.
In the electronic device, the display controller may cause the first object to be displayed, even when the second object is displayed in the object region, and the display controller may cause displaying of the second object to be terminated by canceling the object region in response to the instruction tool again pointing at the first object.
In this case, the object region can be closed by pointing at the first object using the instruction tool in a state in which the second object is displayed.
In the electronic device, the display controller may cause the first object to be displayed, even when the second object is displayed in the object region, and may cause the object region to move to a region, in which a different position C is set as an end in response to the instruction tool pointing at the position C after pointing at the first object again during the second object being displayed in the object region.
In this case, the user can easily designate the object region again.
In the electronic device, in a state in which a plurality of second objects are displayed in the object region, the display controller may terminate displaying of the plurality of the second objects by canceling the object region in response to detecting a first operation of a user, and the display controller may cause the first object, in a case in which the second objects are not displayed but at least one of the second objects has been selected, to be displayed at a position different from a position in a case in which any one of the second objects has not been selected.
In this case, based on a display position of the first object corresponding to the second object after canceling the object region and not displaying the second object, the user can recognize easily whether the second object has been selected. The first operation may be any of various operations which include at least an instruction for not displaying the second object by canceling (closing) the object region. The first operation may be an operation instructing the selection of the second object and the cancellation of the object region and not displaying the second object at one time. In a case in which the first operation does not include the instruction for selecting the second object, a selecting operation and a selecting cancellation operation with respect to the second object are executed after the instruction operation for displaying the second object in the object region is performed and before the first operation is performed.
Another aspect of the invention is a control program of the electronic device for realizing the above described functions. Functions of the sections according the aspect are realized by a hardware resource in which functions thereof are specified by its configuration, a hardware resource in which functions thereof are specified by programs, or a combination thereof. In addition, the functions of sections are not limited to those realized with the hardware resource in which the functions are physically implemented independently from each other.
The invention will be described with reference to the accompanying drawings, wherein like numbers reference like elements.
Hereinafter, embodiments of the invention will be described with reference to the attached drawings. Elements common to the embodiments are given the same symbols, and overlapped description thereof will not be repeated.
The controller 10 may include a CPU, a RAM, a ROM, a non-volatile memory, and the like, and various programs stored in the ROM or the non-volatile memory can be executed by the CPU. A control program included in the various programs is used for realizing a function of detecting a motion of the instruction tool by obtaining from the touch panel 16 information (coordinates of contact position, or the like) indicating an operation on the touch panel 16, and a function of causing an image to be displayed on a screen of the touch panel 16. In the embodiment, the controller 10 corresponds to a “detecting section” and a “display controller”. The touch panel 16 corresponds to the “detecting section” and a “display section”.
The communication I/F section 14 includes a wireless communication interface for coupling to the Internet. In addition, the communication I/F section 14 includes an interface for performing voice-communication by connecting to a telephone network. The camera 15 includes lenses, area image sensors, and image processing circuits, and captures an image of an object to generate digital image data.
Next, an operation which is performed by a user when the smartphone 1 receives various settings, and display control performed by the controller 10 in response to the operation will be described.
A first scroll bar b1 extending parallel to the y-axis is a scroll bar corresponding to items of the first layer. In a case in which the controller 10 detects that a slider (knob) b11 of the first scroll bar b1 is dragged in a direction parallel to the y-axis, the controller 10 scrolls a list of the items of the first layer in accordance with a moving amount of the slider b11, and allows the items of the first layer, which are not displayed before dragging, to be displayed. In addition, a ratio of a length of the slider b11 to a length of the entirety of the first scroll bar b1 in a direction parallel to the y-axis and a position of the slider b11 in the entirety of the first scroll bar b1 indicate a positional relationship of the items of the first layer, which are currently displayed, with the entirety of the items of the first layer, and the user can drag the slider b11 by taking into consideration of the positional relationship. In a case in which the controller 10 detects that the slider b11 is not dragged but a direct drag operation (operation at least including movement in the y direction) is performed on an object itself indicating the item of the first layer, the controller 10 may scroll the items of the first layer.
Items of a second layer are related to each of the plurality of items of the first layer. Each of the items of the first layer corresponds to a group (content group) that is the group constituted by one or more related items (contents) of the second layer. When an object indicating an item of the first layer is selected, an object indicating an item of the second layer is displayed. In a state in which the list of the items of the first layer is displayed as illustrated in
The controller 10 determines the number of objects indicating the items of the second layer (the number of items to be displayed) in accordance with the length of the object region z1 in the direction parallel to the y axis. In an example of
As described above, according to the embodiment, a range (position, size, or the like) of an object region for displaying items of the second layer can be set by the user. Accordingly, even if the screen of the touch panel 16 of the smartphone 1 is not sufficiently wide, information can be displayed flexibly in accordance with a need of the user. Therefore, according to the embodiment, usability relating to displaying information in the electronic device can be improved.
In addition, in the object region z1, the controller 10 allows a second scroll bar b2 corresponding to items of the second layer to be displayed as illustrated in
The user can recognize the entirety of the items of the second layer by scrolling the items of the second layer in the object region z1 as needed. In addition, the user can perform an operation on any of the items of the second layer as needed. Also, after the controller 10 causes the object of the second layer to be displayed in the object region z1 as illustrated in
In addition, in a state in which the items of the second layer are displayed as illustrated in
In addition, as illustrated in
Moreover, as illustrated in
In addition to the examples described above, various modes can be assumed as the pinch-out operation with respect to the object displaying the item of the first layer and an object region setting method according to the operation. A first example will be described with reference to
Next, a second example is described with reference to
Next, a third example will be described with reference to
The examples, in which the items of the second layer are displayed in the object region by the pinch-out operation using two fingers, have been described. However, the object region may be set in response to a drag operation using one finger. This example will be described with reference to
In a case in which the entirety of the destinations included in the “family” is not allowed to be displayed in the object region z7 simultaneously, the controller 10 displays in the second embodiment an arrow mark instead of a scroll bar in at least one end portion of the object region z7 in a direction where the objects indicating the destinations are arranged (direction parallel to y axis). An arrow mark a1 indicating the +y direction illustrated in
As described above, when the arrow mark is displayed instead of the scroll bar, the user can recognize that the destination, which is not displayed currently, exists in the object region z7. The user can display the destination, which is not displayed currently, by scrolling the destinations in the object region z7 with reference to the arrow mark.
In addition, when the controller 10 detects that the user taps a region indicating any destination included in the “family” to select the destination (
Regarding the object c8, the object region z7 is closed in a state in which the “father” included in the group of the “family” has been selected. Therefore, in the embodiment, in order to indicate that the destination selected in the group of the “family” exists, a display position of the object c8 is changed as compared to a case in which a destination selected in the group of the “family” does not exist. Specifically, the controller 10 causes the object c8 to be displaced in the x-axis negative direction (hereinafter also referred to as −x direction) and displayed as illustrated in
A movement amount (Δd) of the object c8 in the −x direction may be changed in accordance with the number of selected destinations. For example, as the number of destinations selected increases, the movement amount Δd may be increased. As a result, a degree of the number of the already selected destinations can be intuitionally recognized.
In this embodiment, when two fingers touch a candidate image to be disposed and drag the image while performing a pinch-in or pinch-out operation, the image to be disposed can be moved and disposed while being reduced or enlarged in size. A specific example will be described in detail. Apexes i and j of an image 104 displayed in the region 100 are points of both ends of a right side s3 of the image 104. When the controller detects that the fingers f1 and f2 respectively touch the apexes i and j and drag the apexes into a region 111 of the working region 110 while performing the pinch-out operation using the fingers f1 and f2, the controller 10 calculates the distance between a point j1 pointed by the finger f2 after being moved and a point i1 pointed by the finger f1 after being moved. The controller 10 calculates a ratio between the calculated distance and the length of the right side s3 of the image 104. The controller 10 enlarges the image 104 based on the calculated ratio and displays a generated image 1041 so that both ends of the right side s31 of the generated image 1041 overlap with the points j1 and i1.
In this embodiment, the image 104 corresponds to the first object, and the image 1041 corresponds to the second object. In addition, the region displaying the image 1041 corresponds to an object region z8. The point j1 and the point i1 respectively correspond to the position A and the position B. The finger f1 and the finger f2 respectively correspond to a first instruction tool and a second instruction tool. As described above, according to this embodiment, the user can designate as desired the position where the image 104 is disposed and the size of the image 104 by one pinch-out operation using the two fingers f1 and f2. In addition, the user can also designate whether the image 104 is rotated or not, along with the designation of the position and the size thereof. As a matter of course, the user can perform a reduction of the image, disposing of the image at any position, and rotation thereof by dragging while performing the pinch-in operation.
Moreover, of course, in a case in which the finger f1 or the finger f2 is moved to the outside of a region (for example, the working region 110 in this embodiment) in which an image or the like is able to be displayed, the fingers f1 and f2 are considered as pointing at the inside of the region, and an object region to be actually set is set to be smaller than a region defined by the positions of the fingers f1 and f2 after moved. That is, the finger may point at a position different from a position at which the finger actually points. Instead of the both end points i and j on the right side s3 of the image 104, for example, diagonal points of the image 104 may be points to be operated, or any points in the image 104 may be the points to be operated. For example, in a case in which diagonal points are the points to be operated, it may be possible to change an aspect ratio in addition to enlarging/reducing the size of the image, disposing the image at a desired location, and rotating the image.
A technical range of the invention is not limited to the above described examples, and of course, is variously modified within a range not deviated from a gist of the invention.
The electronic device is not limited to a smartphone, and may be a personal computer which causes a separately provided display to display an image or the like, a multifunction machine which performs printing and FAX communication, a device such as a projector which performs display by projecting a subject on a screen, or the like. The electronic device may be a computer which does not include a touch panel, and instruction tools in this case may be a mouse, direction keys and determination keys, fingers or a touch pen to be used for a touch pad (track pad), for example. In addition, the instruction tool may be a tool such as a mouse pointing at one position, or tools such as two or three fingers pointing at two or more positions. For example, when four fingers are used, an object region may be set by pointing at four corners of the object region using the four fingers.
In the embodiments described above, examples in which an object region is set outside of the first object, are described, however, the object region may be set in the first object as illustrated in
Number | Date | Country | Kind |
---|---|---|---|
2015-149348 | Jul 2015 | JP | national |