Abstract:
An electronic device includes a display device and a processor. The display device includes a touch panel. The processor (i) generates a graph image to be displayed on the display device, (ii) when the generated graph image is displayed on the display device, acquires an object specified by a user, the object being contained in the graph image, and (iii) when the user performs a touch operation on the displayed graph image, changes a display style of the graph image according to a type of the acquired object and displays the graph image in the changed display style.

Description:
CROSS-REFERENCE TO RELATED APPLICATION 
       [0001]    This application is based upon and claims the benefit of priority under 35 USC 119 of Japanese Patent Application No. 2013-122775 filed on Jun. 11, 2013, the entire disclosure of which, including the description, claims, drawings and abstract, is incorporated herein by reference in its entirety. 
       BACKGROUND OF THE INVENTION 
       [0002]    1. Field of the Invention 
         [0003]    The present invention relates to an electronic device, a graph display method and a storage medium to display graphs of function expressions. 
         [0004]    2. Description of the Related Art 
         [0005]    Nowadays, in an information device such as a mobile terminal or a mobile phone, a user interface which is a display screen provided with a touch panel is common, and the content in the display screen can be freely moved according to a point on the touch panel touched by a user and movement of the touch. 
         [0006]    Also, a small electronic calculator (scientific calculator) having a function to calculate function expressions is highly functional and can display graphs or figures, and its display screen is provided with a touch panel. 
         [0007]    As arts to scroll the display content which are applicable to this kind of display device provided with a touch panel, the followings have been conceived. 
         [0008]    According to Japanese Patent Application Laid-Open Publication No. 2004-094596, there has been conceived a graphic display device which sets a direction of a scroll bar as set by a user, displays the scroll bar in the set direction and scrolls the display content in the set direction on the basis of a movement direction and a movement amount of a touch operation on the scroll bar. 
         [0009]    Further, according to Japanese Patent Application Laid-Open Publication No. 2004-126759, there has been conceived a display device which displays a graph of a function expression, and when a trace pointer which moves on the graph is out of a display screen by a touch operation on a coordinate axis, scrolls the graph and the coordinate axis. 
         [0010]    As known from these conventional display control devices each provided with a touch panel, there have been conceived some arts to scroll the content in a display screen according to a touch operation and display the content. However, a display control art which further increases usability is desired to be realized. 
       BRIEF SUMMARY OF THE INVENTION 
       [0011]    The present invention has been conceived in view of the problems, and objects thereof include providing an electronic device, a graph display method and a storage medium to control a display state of a graph according to a user operation so as to make the graph easy to see, thereby increasing usability. 
         [0012]    According to an aspect of the present invention, there is provided an electronic device including: a display device including a touch panel; and a processor which: generates a graph image to be displayed on the display device; when the generated graph image is displayed on the display device, acquires an object specified by a user, the object being contained in the graph image; and when the user performs a touch operation on the displayed graph image, changes a display style of the graph image according to a type of the acquired object and displays the graph image in the changed display style. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0013]    The present invention is fully understood from the detailed description given hereinafter and the accompanying drawings, which are given byway of illustration only and thus are not intended to limit the present invention, wherein: 
           [0014]      FIG. 1  is a front view of a graph scientific calculator  10  according to an embodiment of an electronic device of the present invention to show the external appearance of the graph scientific calculator  10 ; 
           [0015]      FIG. 2  is a block diagram showing a circuit configuration of the graph scientific calculator  10 ; 
           [0016]      FIG. 3  is a flowchart of graph display processing of the graph scientific calculator  10 ; 
           [0017]      FIG. 4  is a flowchart of object-by-object processing in the graph display processing of the graph scientific calculator  10 ; 
           [0018]      FIGS. 5A and 5B  show display examples displayed by screen scrolling along a y axis in the graph display processing of the graph scientific calculator  10 ; 
           [0019]      FIGS. 6A and 6B  are illustrations to explain screen scrolling in the graph display processing of the graph scientific calculator  10 ; and 
           [0020]      FIG. 7  is an illustration to explain screen enlargement and screen reduction in the graph display processing of the graph scientific calculator  10 . 
       
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
       [0021]    In the following, an embodiment of the preset invention is described with reference to the drawings. 
         [0022]      FIG. 1  is a front view of a graph scientific calculator  10  according to an embodiment of an electronic device of the present invention to show the external appearance of the graph scientific calculator  10 . 
         [0023]    The electronic device may be realized as the graph scientific calculator  10  or a tablet terminal, a mobile phone, a mobile game machine or the like having a graph display function. 
         [0024]    The graph scientific calculator  10  has a function to display a graph Y of a function expression y=f(x) when the function expression y=f(x) is input. 
         [0025]    The graph scientific calculator  10  includes a key input unit  12  and a touch panel display unit  13 . The key input unit  12  occupies an area of about two third of the front face of the graph scientific calculator  10  from the bottom. The touch panel display unit  13  occupies an area of about one third of the front face of the graph scientific calculator  10  from the top. 
         [0026]    The key input unit  12  includes a numerical-value/symbol key set  12   a,  a function/operator key set  12   b,  a [Menu] key  12   c,  a [Graph] key  12   d,  a cursor key  12   e  and function keys F 1  to F 6 . 
         [0027]    The numerical-value/symbol key set  12   a  is a key set to input numerical values and symbols and is composed of keys for individual numbers, symbols and the like arranged. 
         [0028]    The function/operator key set  12   b  is composed of various function symbol keys and operator keys such as [+], [−], [×], [/] and [=] which are operated to input arithmetic expressions or function expressions. 
         [0029]    The [Menu] key  12   c  is operated to display a menu to select and set an action mode of various action modes, such as an arithmetic mode for arithmetic processing with an input calculation formula, a graph mode for graph drawing of an input function expression, a spreadsheet mode for spreadsheeting and a program mode for calculation according to an input arbitrary program. 
         [0030]    The [Graph] key  12   d  is operated to draw a graph based on input data. 
         [0031]    The cursor key (↑, θ, ←, →)  12   e  is operated, for example, to select displayed data, perform a sending operation or perform a cursor moving operation. 
         [0032]    The function keys F 1  to F 6  are operated to select a menu from various menus which are arranged and displayed along the bottom of the display screen ( 13   d ) of the display unit  13  according to the selected (and set) action mode. 
         [0033]    The touch panel display unit  13  is composed of a liquid crystal display screen  13   d  and a transparent touch panel  13   t  which is superposed on the liquid crystal display screen  13   d . The liquid crystal display screen  13   d  has a display area of, for example, a width (in the vertical direction) of 186 dots×a length (in the horizontal direction) of 378 dots and is capable of color display. 
         [0034]    The graph scientific calculator  10  has several functions activated in the graph mode, for example, a function to scroll a graph screen G in a direction along a coordinate axis of an x axis or a y axis according to a touch operation in a state in which the graph Y of the function expression y=f(x) is displayed in the graph screen G, a function to scroll the graph screen G in a direction along a drawn line of the graph Y according to a touch operation in the state, and a function to enlarge or reduce the graph screen G according to a touch operation in the state. 
         [0035]      FIG. 2  is a block diagram showing a circuit configuration of the graph scientific calculator  10 . 
         [0036]    The graph scientific calculator  10  includes a CPU  11  which is a microcomputer. 
         [0037]    The CPU  11  controls actions of components of the circuit to activate a calculator function or a function graph display function by executing a calculator control program  14   a  stored in advance in a storage device  14  such as a flash ROM, using a RAM  15  as a work memory. The calculator control program  14   a  maybe loaded from an external storage medium  17  such as a memory card into the storage device  14  via a storage medium reading unit  16  or downloaded from a Web server (program server) on a communication network (Internet) to the storage device  14  via a communication control unit  18 . 
         [0038]    To the CPU  11 , the key input unit  12  and the touch panel display unit  13 , which are shown in  FIG. 1 , and the storage device  14 , the RAM  15 , the storage medium reading unit  16 , the communication control unit  18  and the like are connected. 
         [0039]    The RAM  15  stores therein various data needed for the CPU  11  to act or perform processing. The RAM  15  is provided with a display data storage region  15   a,  a touch coordinate data storage region  15   b,  a range data storage region  15   c,  a mathematical expression data storage region  15   d,  a graph data storage region  15   e,  a touch object data storage region  15   f,  a swipe data storage region  15   g,  a scroll data storage region  15   h  and an enlargement/reduction data storage region  15   i.    
         [0040]    The display data storage region  15   a  stores therein data displayed in color on the display screen  13   d  of the touch panel display unit  13 . 
         [0041]    The touch coordinate data storage region  15   b  stores therein coordinate data of user touch points detected by the touch panel display unit  13 . 
         [0042]    The range data storage region  15   c  stores therein an X coordinate range (Xmin to Xmax) and a Y coordinate range (Ymin to Ymax) set for the graph screen G in the graph mode. 
         [0043]    The mathematical expression data storage region  15   d  stores therein data relevant to the function expression y=f(x) which is input through a user operation on the key input unit  12 . 
         [0044]    The graph data storage region  15   e  stores therein, on the basis of the function expression y=f(x) stored in the mathematical expression data storage region  15   d,  data of the graph Y displayed in the coordinate ranges of the graph screen G, the coordinate range being stored in the range data storage region  15   c.    
         [0045]    The touch object data storage region  15   f  stores therein an object selected through user touch from among objects displayed in the graph screen G. In this embodiment, the objects are the x axis, the y axis, the graph Y, the origin “0” and the like which constitute the graph screen G. 
         [0046]    The swipe data storage region  15   g  stores therein a swipe velocity calculated according to a user swipe (flick) operation on the touch panel display unit  13 . The swipe velocity includes direction data and speed data. The “swipe” is a user operation of touching a touch panel with his/her finger, a pen or the like, and then quickly moving his/her finger or the like in an arbitrary direction while keeping the contact (touch) with the touch panel. This operation is sometimes referred to as a “flick”. 
         [0047]    The scroll data storage region  15   h  stores therein a change amount (Δx, Δy) per unit time (0.1 sec., for example) of the graph screen G by scrolling (screen scrolling) calculated on the basis of the swipe velocity. 
         [0048]    The enlargement/reduction data storage region  15   i  stores therein a reduction percentage per unit time or an enlargement percentage per unit time of the graph screen G calculated on the basis of the swipe velocity. 
         [0049]    The graph scientific calculator  10  thus configured realizes various functions, which are described below, by the CPU  11  controlling the actions of the components of the circuit following various processing instructions described in the calculator control program  14   a  and therefore by software and hardware working together. 
         [0050]    Next, action of the graph scientific calculator  10  configured as described above is described. 
         [0051]      FIG. 3  is a flowchart of graph display processing performed by the graph scientific calculator  10 . 
         [0052]    When the graph mode is selected on a menu screen (not shown) which is displayed in response to a user operation on the [Menu] key  12   c,  the graph display processing shown in  FIG. 3  starts. 
         [0053]    When a user inputs an arbitrary function expression y=f(x) on a mathematical expression input screen (not shown) in the graph mode, the input function expression y=f(x) is stored in the mathematical expression data storage region  15   d  (Step S 1 ). 
         [0054]    When the X coordinate range (Xmin to Xmax) and the Y coordinate range (Ymin to Ymax) are set on a coordinate range setting screen (not shown) as display ranges of the graph screen G, the set coordinate ranges are stored in the range data storage region  15   c  (Step S 2 ). 
         [0055]    When the [Graph] key  12   d  is operated, the graph screen G having an XY coordinate system corresponding to the set coordinate ranges is displayed on the touch panel display unit  13  as shown, for example, in  FIG. 1 . Then, drawing data for the graph Y of the input function expression y=f (x) is generated and stored in the graph data storage region  15   e,  and the graph Y is displayed on the XY coordinate system of the graph screen G (Step S 3 ). 
         [0056]    When a user touch operation T 1  on the graph screen G is detected (Step S 4 ; YES), it is determined whether or not any object (the x axis, the y axis, the graph Y, the origin “0”, etc.) in the graph screen G is touched (Step S 5 ). 
         [0057]    When it is determined that an object in the graph screen G is touched (Step S 5 ; YES), the object determined to be touched is emphatically displayed by blinking, changing its color, or the like (Step S 6 ), and correlated with touch coordinates of the touch (touch operation T 1 ) and stored in the touch object data storage region  15   f  (Step S 7 ). 
         [0058]    When it is determined that no object is touched (Step S 5 ; NO) but the touch operation T 1  is a swipe operation T 2  (Step S 8 ; YES), it is determined, on the basis of whether or not any object is stored in the touch object data storage region  15   f,  whether or not the swipe operation T 2  is after a touch (touch operation T 1 ) on an object (Step S 9 ). 
         [0059]    When it is determined that the swipe operation T 2  is not after a touch on an object (Step S 9 ; NO), normal scrolling is performed, the normal scoring scrolling the graph screen G in a direction according to the direction of the swipe operation T 2  by a change amount of the graph screen G according to the speed of the swipe operation T 2  (Step S 10 ). This processing (Step S 10 ) is performed by repeating processing of (i) changing the coordinate ranges according to the direction and speed of the swipe operation T 2  and (ii) redrawing the graph Y. 
         [0060]    On the other hand, when it is determined that the swipe operation T 2  is after a touch on an object (Step S 9 ; YES), the object-by-object processing shown in  FIG. 4  starts (Step SA). 
         [0061]    The object-by-object processing is described with reference to the flowchart of  FIG. 4 . 
         [0062]    For example, as shown in  FIG. 5A , in a state in which a function expression “y=x 2 −1” is input and the graph Y thereof is displayed (Steps S 1  to S 3 ), a user touches (a touch operation T 1 ) the x axis and then performs a swipe operation (T 2 ) in a downward direction fd. 
         [0063]    When the user performs the touch operation T 1  on the x axis, the x axis is stored in the touch object data storage region  15   f  (Steps S 4  to S 7 ). Then, when the user performs the swipe operation T 2  on the graph screen G in the downward direction fd (Steps S 8  and S 9 ; YES), the object-by-object processing (Step SA, shown in  FIG. 4 ) starts. In the object-by-object processing, first, it is determined what type of object the stored object is (Step A 1 ). Here, the stored object is determined to be the “x axis” (Step A 1 ). 
         [0064]    Next, from touch coordinates corresponding to the locus of the swipe oration T 2  in the downward direction fd stored in the touch coordinate data storage region  15   b  and their recorded (stored) times, the swipe velocity of the downward component of the y axis is calculated and stored in the swipe data storage region  15   g  (Step A 2 ). 
         [0065]    Then, on the basis of the calculated swipe velocity, the change amount (Δx, Δy) per unit time by screen scrolling in the downward direction of the y axis is calculated and stored in the scroll data storage region  15   h  (Step A 3 ). Here, Δx is 0, and Δy is a positive value. 
         [0066]    Next, the coordinate ranges of the graph screen G are changed in the upward direction, which is along the y axis, by following the change amount (Δx (=0), Δy) by screen scrolling, and the graph Y is redrawn and displayed in response to the change of the coordinate ranges (Step A 4 ). By repeating this processing of Step A 4  until a predetermined movement amount is reached, as shown in  FIG. 5B , the graph screen G is scrolled (su) in the upward direction along the y axis and displayed (Steps A 4  and A 5 ). 
         [0067]    When it is determined that the movement amount by the scrolling su has reached the predetermined movement amount (Step A 5 ; YES), the scrolling su stops (Step A 6 ). 
         [0068]    Consequently, by a user touching the x axis in the graph screen G, thereby instructing fixation of the x axis direction, and then performing a swipe operation in the downward direction or the upward direction, even if the direction of the swipe operation is not exactly along the y axis direction, the graph screen G can be scrolled only in the y axis direction and displayed. Therefore, the scrolling which makes the graph screen G easy to see can be realized. 
         [0069]    On the other hand, when it is determined that the user touches the y axis and then performs the swipe operation T 2  in the right direction (Steps S 8  and S 9 ; YES), the object-by-object processing (Step SA, shown in  FIG. 4 ) starts, and the stored object is determined to be the “y axis” (Step A 1 ). 
         [0070]    Next, from touch coordinates corresponding to the locus of the swipe oration T 2  in the right direction, the touch coordinates being stored in the touch coordinate data storage region  15   b  in response to the swipe operation T 2 , and their recorded times, the swipe velocity of the rightward component of the x axis is calculated and stored in the swipe data storage region  15   g  (Step A 7 ). 
         [0071]    Then, on the basis of the swipe velocity stored in the swipe data storage region  15   g,  the change amount (Δx, Δy) per unit time by screen scrolling in the right direction of the x axis is calculated and stored in the scroll data storage region  15   h  (Step A 8 ). Here, Δy is  0 , and Δx is a negative value. 
         [0072]    Next, the coordinate ranges of the graph screen G are changed in the left direction, which is along the x axis, by following the change amount (Δx, Δy (=0)) by screen scrolling, and the graph Y is redrawn and displayed in response to the change of the coordinate ranges (Step A 9 ). By repeating this processing of Step A 9  until a predetermined movement amount is reached, the graph screen G is scrolled in the left direction along the x axis and displayed (Steps A 9  and A 10 ). 
         [0073]    When it is determined that the movement amount by the scrolling of the graph screen G along the x axis has reached the predetermined movement amount (Step A 10 ; YES), the scrolling stops (Step A 6 ). 
         [0074]    Consequently, by a user touching the y axis, thereby instructing fixation of the y axis direction, and then performing a swipe operation in the right direction or the left direction, even if the direction of the swipe operation is not exactly along the x axis direction, the graph screen G can be scrolled only in the x axis direction and displayed. 
         [0075]      FIGS. 6A and 6B  are illustrations to explain screen scrolling, using a graph image corresponding to a function expression.  FIGS. 6A and 6B  each show a graph Y image corresponding to a function expression “y=(1/2)x 2 −1” on the XY coordinate system in relation to changing coordinate ranges (graph screen G). 
         [0076]    When an X coordinate range of −6 to 6 and an Y coordinate range of −3 to 2 are set as the coordinate ranges, the graph Y of the function expression “y=(1/2)x 2 −1” is displayed as a graph screen G 1  as shown in  FIG. 6A . 
         [0077]    When a user performs a touch operation T 1  on the x axis and performs a swipe operation T 2  on the graph screen G 1  in a downward direction fd, the above-described scrolling (su) in the y axis direction is performed, whereby the coordinate ranges are successively changed in the upward direction along the y axis. The scrolling su continues until the coordinate ranges become an X coordinate range of −6 to 6 and a Y coordinate range of 3 to 8, namely, until a graph screen G 2  is reached, whereby the graph screen G 2  is displayed. 
         [0078]    Next, the case where a user touches the displayed graph Y and then performs a swipe operation is described with reference to  FIG. 6B . 
         [0079]    When a user performs a touch operation T 1  on the graph Y of the function expression “y=(1/2)x 2 −1” displayed in the graph screen G 1 , the graph Y is stored in the touch object data storage region  15   f  (Steps S 4  to S 7 ). Then, when it is determined that the user performs a swipe operation T 2  in a left-downward direction fd (Steps S 8  and S 9 ; YES), the object-by-object processing (Step SA, shown in  FIG. 4 ) starts, and the stored object is determined to be the “graph Y” (Step A 1 ). 
         [0080]    Then, first, coordinates of a specific point on the graph Y are identified, the specific point being touched by the user through the touch operation T 1  (Step A 12 ). Next, on the basis of the direction and speed of the swipe operation T 2 , it is determined how much X is moved in which direction, and the next point on the graph Y is calculated (Step A 13 ). In this case, because the swipe operation T 2  is performed in the left-downward direction, coordinates of the next point on the graph Y in the graph screen having the increased values of X by Δx to move in the right direction are calculated. 
         [0081]    Then, on the basis of the identified coordinates of the specific point on the graph Y and the calculated coordinates of the next point, the change amount (Δx, Δy) of the display screen along the graph Y is calculated and stored in the scroll data storage region  15   h  (Step A 14 ). 
         [0082]    Then, the coordinate ranges of the graph screen G 1  are changed by following the change amount (Δx, Δy), and the graph Y is redrawn (Step A 15 ). The scrolling along the graph Y is performed by repeating Step A 13  of calculating the next point on the graph Y while keeping Δx, Step A 14  of calculating the change amount of the graph screen, and Step A 15  of changing the coordinate ranges and redrawing the graph Y. 
         [0083]    When it is determined that the movement amount by the scrolling along the graph Y has reached a predetermined movement amount, the coordinate ranges become an X coordinate range of −1.5 to 10.5 and a Y coordinate range of 2 to 7, whereby the graph screen G 2  has been reached (Step A 16 ; YES), the scrolling stops (Step A 17 ). 
         [0084]    Consequently, by a user touching the graph Yin the graph screen G and then performing a swipe operation in the downward direction or the upward direction, the graph screen G can be scrolled along the touched graph Y and displayed. Next, the case where a user touches the origin of the XY coordinate system and then performs a swipe operation is described with reference to  FIG. 7 . 
         [0085]      FIG. 7  shows a screen reduction action re and a screen enlargement action ex. The screen reduction action re is performed when a user performs a touch operation T on the origin “0” of a graph screen Ge in which the graph Y of the function expression “y=(1/2)x 2 −1” is displayed and then performs a swipe operation Tr on the graph screen Ge in an origin direction fo to approach the origin “0”. The screen enlargement action ex is performed when a user performs a touch operation T on the origin “0” of a graph screen Gr in which the graph Y of the function expression “y=(1/2)x 2 −1” is displayed and then performs a swipe operation Te on the graph screen Gr in an origin-away direction fe to be away from the origin “0”. 
         [0086]    When an X coordinate range of −6.5 to 6.5 and a Y coordinate range of −3 to 3.5 are set as the coordinate ranges, the graph Y is displayed as the graph screen Ge. When it is determined that the user touches the origin “0” and then performs the swipe operation Tr in the origin direction (screen-inward direction) fo (Steps S 8  and S 9 ; YES), the object-by-object processing (Step SA, shown in  FIG. 4 ) starts, and the stored object is determined to be the “origin” (Step A 1 ). 
         [0087]    Then, from touch coordinates corresponding to the locus (fo) of the swipe operation Tr, the direction of the swipe operation Tr is determined to be the origin direction (Step A 18 ; YES). 
         [0088]    Next, the swipe velocity is calculated from the touch coordinates corresponding to the locus of the swipe operation Tr and their recorded times, and the reduction percentage of the graph screen Ge is calculated on the basis of the swipe velocity and stored in the enlargement/reduction data storage region  15   i  (Step A 19 ). 
         [0089]    Next, the coordinate ranges of the graph screen Ge are changed to values for screen reduction (in a direction to narrow an interval of coordinate gradations displayed in the display screen  13   d ) by following the reduction percentage stored in the enlargement/reduction data storage region  15   i,  and the graph Y is redrawn and displayed (Step A 20 ). By repeating this processing of Step A 20 , the coordinate ranges are successively changed as indicated by an arrow re, and the graph screen Ge is reduced until a predetermined reduction amount is reached, whereby the reduced graph screen (Gr) is displayed (Steps A 20  and A 21 ). 
         [0090]    When it is determined that the graph screen Ge is reduced to the graph screen Gr (an X coordinate range of −9 to 9 and a Y coordinate range of −5 to 5.5) (Step A 21 ; YES), the reduction stops (Step A 22 ). 
         [0091]    Consequently, by a user touching the origin “0” in the graph screen Ge and then performing a swipe operation in the origin direction, the graph screen Ge can be reduced by the reduction percentage based on the swipe velocity, and the reduced graph screen (Gr) is displayed. 
         [0092]    On the other hand, when it is determined that the user touches the origin “0” and then performs the swipe operation Te in the origin-away direction (screen-outward direction) fe (Steps S 8  and S 9 ; YES), the object-by-object processing (Step SA, shown in  FIG. 4 ) starts, and the stored object is determined to be the “origin” (Step A 1 ). 
         [0093]    When, from touch coordinates corresponding to the locus (fe) of the swipe oration Te, the direction of the swipe operation Te is determined not to be the origin direction (Step A 18 ; NO), the object-by-object processing moves to Step A 23 . 
         [0094]    Then, the swipe velocity is calculated from the touch coordinates corresponding to the locus of the swipe operation Te and their recorded times, and the enlargement percentage of the graph screen Gr is calculated on the basis of the swipe velocity and stored in the enlargement/reduction data storage region  15   i  (Step A 23 ). 
         [0095]    Next, the coordinate ranges of the graph screen Gr are changed to values for screen enlargement (in a direction to widen an interval of coordinate gradations in the display screen  13   d ) by following the enlargement percentage stored in the enlargement/reduction data storage region  15   i,  and the graph Y is redrawn and displayed (Step A 24 ). By repeating the processing of Step A 24 , the coordinate ranges are successively changed as indicated by an arrow ex, and the graph screen Gr is enlarged until a predetermined enlargement amount is reached, whereby the enlarged graph screen (Ge) is displayed (Steps A 24  and A 25 ). 
         [0096]    When it is determined that the graph screen Gr is enlarged to the graph screen Ge (an X coordinate range of −6.5 to 6.5 and a Y coordinate range of −3 to 3.5) (Step A 25 ; YES), the enlargement stops (Step A 26 ). 
         [0097]    Consequently, by a user touching the origin “0” in the graph screen Gr and then performing a swipe operation in the origin-away direction, the graph screen Gr can be enlarged by the enlargement percentage based on the swipe velocity, and the enlarged graph screen (Ge) is displayed. 
         [0098]    According to the embodiment of the present invention, there can be provided an electronic device which is capable of desired display change by a user specifying an object in a displayed graph image and then performing a touch operation. 
         [0099]    The action methods by the graph scientific calculator  10  described in the embodiment, such as the methods of the graph display processing shown by the flowchart of  FIG. 3  and the object-by-object processing shown by the flowchart of  FIG. 4 , can be distributed as a computer executable program by being stored in a storage medium (storage medium  17 ), such as a memory card (ROM card, RAM card, etc.), a magnetic disk (flexible disk, hard disk, etc.), an optical disk (CD-ROM, DVD, etc.) or a semiconductor memory. A computer (CPU  11 ) of an electronic calculator ( 10 ) having a graph display function can perform the same types of processing as those described above with the above-described methods, by reading the program stored in the storage medium. 
         [0100]    Data of the program to realize the above-described methods can be transmitted via a communication network (public line) in the form of a program code. A computer (CPU  11 ) of an electronic calculator ( 10 ) having a graph display function can perform the same types of processing as those described above with the above-described method, by receiving the program with a communication device (communication control unit  18 ) connected to the communication network. 
         [0101]    In the above, as an embodiment of the electronic device, described is the graph scientific calculator  10  as a device for exclusive use performs all the actions (steps) of the graph display processing. However, the electronic device may be configured as a server device of a cloud system. 
         [0102]    That is, in this case, a server device receives an arbitrary function expression y=f(x) input by a user with a terminal device such as a tablet terminal having a user interface, generates a graph screen G having the graph Y of the function expression, and outputs its display data to the terminal device so as to display the graph screen G (graph Y) thereon. When receiving positional information about a touch operation on an object (the x axis, the y axis, the graph Y or the origin) in the graph screen G and locus information about a swipe operation from the terminal device, the server device generates the scrolled, enlarged or reduced graph screen according to the type of the object on which the touch operation is performed and the direction and speed of the swipe operation as with the above embodiment, and outputs the generated graph screen to the terminal device so as to display the graph screen thereon. 
         [0103]    Consequently, even if a terminal device has no special function, by accessing the server device, the terminal device can display the graph Y of a function expression input by a user and can realize scrolling, enlargement and reduction each of which makes the graph screen G very easy to see by a user performing a touch operation on an object among objects of various types in the graph screen G and then performing a swipe operation. 
         [0104]    The present invention is not limited to the above embodiments, and in the implementation phase, the components of the present invention can be modified and embodied without departing from the scope of the present invention. Further, the components described in the embodiments may be appropriately and selectively combined. For example, some components of all the components of an embodiment may be removed or some components of the components of different embodiments may be combined appropriately.