Summary of the invention
The objective of the invention is to exist in the prior art, the long problem of two button spacings that is provided with in the menu bar left and right sides at top, handheld terminal operating system figure interface provides a kind of method that generates handheld terminal operating system figure interface, comprising:
Obtain menu bar Background From Layer coordinate parameters and be positioned at first button and the coordinate parameters of second button on the menu bar; The absolute value of the difference of the X coordinate parameters on vertical direction first border of the X coordinate parameters of first button and Background From Layer wherein; Absolute value less than the difference of the X coordinate parameters on vertical direction second border of the X coordinate parameters of first button and Background From Layer; The absolute value of the difference of the X coordinate parameters on vertical direction first border of the X coordinate parameters of second button and Background From Layer is less than the absolute value of the difference of the X coordinate parameters on vertical direction second border of the X coordinate parameters of second button and Background From Layer;
Generate the menu bar of graphic interface and be positioned at two buttons on the menu bar according to the coordinate parameters of the Background From Layer of menu bar and first button and the coordinate parameters of second button that are arranged on the menu bar.
Further; The absolute value of the difference of the X coordinate parameters of the X coordinate parameters of first button and the left margin of Background From Layer; Absolute value less than the difference of the X coordinate parameters of the right margin of the X coordinate parameters of first button and Background From Layer; The absolute value of the difference of the X coordinate parameters of the X coordinate parameters of second button and the left margin of Background From Layer is less than the absolute value of the difference of the X coordinate parameters of the right margin of the X coordinate parameters of second button and Background From Layer.
Further; The absolute value of the difference of the X coordinate parameters of the X coordinate parameters of first button and the right margin of Background From Layer; Absolute value less than the difference of the X coordinate parameters of the left margin of the X coordinate parameters of first button and Background From Layer; The absolute value of the difference of the X coordinate parameters of the X coordinate parameters of second button and the right margin of Background From Layer is less than the absolute value of the difference of the X coordinate parameters of the left margin of the X coordinate parameters of second button and Background From Layer.
Further, receive the response events that switching push button produces;
Response events according to the button generation; Select from representing a plurality of coordinate parameters set that first button is arranged in diverse location; And obtain and generate the first required button coordinate parameters of graphic interface; From representing that a plurality of coordinate parameters set that second button is arranged in diverse location selects, and obtain and generate the second required button coordinate parameters of graphic interface.
Further, be provided with at the non-screen area of handheld terminal and produce the sensor that switches indication, also comprise:
The switching indication that receiving sensor produces;
Switching according to sensor produces is indicated; Select from representing a plurality of coordinate parameters set that first button is arranged in diverse location; And obtain and generate the first required button coordinate parameters of graphic interface; From representing that a plurality of coordinate parameters set that second button is arranged in diverse location selects, and obtain and generate the second required button coordinate parameters of graphic interface.
The embodiment of the invention also provides a kind of terminal that generates handheld terminal operating system figure interface, comprising:
Acquisition module; Be used to obtain menu bar Background From Layer coordinate parameters and be positioned at first button and the coordinate parameters of second button on the menu bar; The absolute value of the difference of the X coordinate parameters on vertical direction first border of the X coordinate parameters of first button and Background From Layer wherein; Absolute value less than the difference of the X coordinate parameters on vertical direction second border of the X coordinate parameters of first button and Background From Layer; The absolute value of the difference of the X coordinate parameters on vertical direction first border of the X coordinate parameters of second button and Background From Layer is less than the absolute value of the difference of the X coordinate parameters on vertical direction second border of the X coordinate parameters of second button and Background From Layer;
Generation module is used for generating the menu bar of graphic interface and being positioned at two buttons on the menu bar according to the coordinate parameters of the Background From Layer of menu bar and first button and the coordinate parameters of second button that are positioned on the menu bar.
Further; Acquisition module; Specifically be used to obtain menu bar Background From Layer coordinate parameters and be positioned at first button and the coordinate parameters of second button on the menu bar; The absolute value of the difference of the X coordinate parameters of the left margin of the X coordinate parameters of first button and Background From Layer wherein; Less than the absolute value of the difference of the X coordinate parameters of the right margin of the X coordinate parameters of first button and Background From Layer, the absolute value of the difference of the X coordinate parameters of the X coordinate parameters of second button and the left margin of Background From Layer is less than the absolute value of the difference of the X coordinate parameters of the right margin of the X coordinate parameters of second button and Background From Layer.
Further; Acquisition module; Specifically be used to obtain menu bar Background From Layer coordinate parameters and be positioned at first button and the coordinate parameters of second button on the menu bar; The absolute value of the difference of the X coordinate parameters of the right margin of the X coordinate parameters of first button and Background From Layer wherein; Less than the absolute value of the difference of the X coordinate parameters of the left margin of the X coordinate parameters of first button and Background From Layer, the absolute value of the difference of the X coordinate parameters of the X coordinate parameters of second button and the right margin of Background From Layer is less than the absolute value of the difference of the X coordinate parameters of the left margin of the X coordinate parameters of second button and Background From Layer.
Further, also comprise:
Receiver module is used to receive the response events that switching push button produces;
Acquisition module; Specifically be used for response events according to the button generation; Select from representing a plurality of coordinate parameters set that first button is arranged in diverse location; And obtain and generate the first required button coordinate parameters of graphic interface, select from representing a plurality of coordinate parameters set that second button is arranged in diverse location, and obtain and generate the second required button coordinate parameters of graphic interface.
Further, non-screen area is provided with sensor at said terminal, and sensor is used for producing switching and indicates;
Acquisition module; The switching that specifically is used for producing according to sensor is indicated; Select from representing a plurality of coordinate parameters set that first button is arranged in diverse location; And obtain and generate the first required button coordinate parameters of graphic interface, select from representing a plurality of coordinate parameters set that second button is arranged in diverse location, and obtain and generate the second required button coordinate parameters of graphic interface.
Because a side about making two buttons near menu bar according to the setting of X coordinate parameters, thereby shortened the spacing of two buttons.
Embodiment
The present invention will be described below in conjunction with embodiment and accompanying drawing; Exist in order to solve in the prior art; The long problem of two button spacings that is provided with in the menu bar left and right sides at top, handheld terminal operating system figure interface; First embodiment of the invention is a kind of method that generates handheld terminal operating system figure interface; This method can be applied to the i Phone and the ipad handheld terminal of each model, for example iphone, iphone3G, iphone3GS, iphone4, ipod touch, ipodtouch4, and this as shown in Figure 2 comprising:
Step 101, obtain menu bar Background From Layer coordinate parameters and be positioned at " note " button and the coordinate parameters of the Edit button on the menu bar.
In this step, menu bar is that rectangle is unit with the pixel, the coordinate parameters of four drift angles of its Background From Layer; Be respectively the upper left corner (0,0), the lower left corner (0,60), the upper right corner (320; 0), the lower right corner (320,60), when the coordinate parameters of the Background From Layer that obtains menu bar, only need obtain upper left corner coordinate (0; 0) get final product, " note " button on the menu bar and the coordinate parameters of the Edit button also are that the coordinate of " note " button that obtains is (250 with the coordinate on the summit, the left side of each button coordinate as button; 10), the coordinate parameters of the Edit button is (300,15); The absolute value of the difference of the X coordinate parameters of the right margin of " note " button and Background From Layer is 70, less than the absolute value 250 of the difference of the X coordinate parameters of the left margin of " note " button and Background From Layer.The absolute value of the difference of the X coordinate parameters of the X coordinate parameters of the Edit button and the right margin of Background From Layer is 20, less than the absolute value 300 of the difference of the X coordinate parameters of the left margin of the Edit button and Background From Layer.Like this, the spacing of the coordinate of " note " button and the Edit button is nearer.
The coordinate of " note " button that obtains certainly can also be to be (10; 10); The coordinate parameters of the Edit button is can (60; 15), the absolute value of the difference of the X coordinate parameters of the left margin of " note " button and Background From Layer is 10, less than the absolute value 310 of the difference of the X coordinate parameters of the right margin of " note " button and Background From Layer.The absolute value of the difference of the X coordinate parameters of the X coordinate parameters of the Edit button and the left margin of Background From Layer is 60, less than the absolute value 260 of the difference of the X coordinate parameters of the right margin of the Edit button and Background From Layer.The spacing of the coordinate of " note " button and the Edit button is nearer equally.
Can find out by top embodiment; The absolute value of the difference of the X coordinate parameters on the X coordinate parameters of two buttons and the left side of Background From Layer (or right) border is all less than the absolute value of the difference of the X coordinate parameters on the border, the right side (left side) of the X coordinate parameters of two buttons and Background From Layer.
Step 102, according to the coordinate parameters of the Background From Layer of menu bar and the coordinate parameters of " note " button and the Edit button, generate the menu bar in the graphic interface and be positioned at two buttons on the menu bar.
In order to reach the purpose that the user can independently select " note " button and the Edit button position in the MAC operating system figure interface, MAC operating system figure can also be provided with a switching push button on the interface, after the user clicks switching push button; Switching push button produces a response events; Behind the response events that receives the switching push button generation,, from the coordinate parameters set of expression " note " button, select according to the response events that button produces; This coordinate parameters set comprises that expression " note " button is positioned at the coordinate parameters (10 in left side; 10) and expression " note " button be positioned at the coordinate parameters (250,10) on right side, and obtain and generate required " note " button coordinate parameters (10 of graphic interface; 10) or (250,10).The response events that produces according to button simultaneously; From the coordinate parameters set of expression " editor's letter " button, select, this coordinate parameters set comprises that expression the Edit button is positioned at the coordinate parameters (60,15) in left side and the coordinate parameters (300 that expression the Edit button is positioned at the right side; 15); And obtain and generate required the Edit button coordinate parameters (60,15) or (300,15) of graphic interface.
Equally in order to reach the purpose that the user can independently select " note " button and the Edit button position in the MAC operating system figure interface; The upper left corner of the reverse side of iphone mobile phone can be provided with a sensor, and this sensor can be temperature sensor or pressure transducer, in the process that forms MAC operating system figure interface; Finger touches temperature sensor; Perhaps point behind the pressure transducer generation pressure, sensor can produce right-handed mode and switch indication, according to the right hand switching indication of the sensor generation that receives; From the coordinate parameters set of " note " button, select expression " note " button to be positioned at the coordinate parameters (250 on right side; 10), from the coordinate parameters set of the Edit button, select expression the Edit button to be positioned at the coordinate parameters (300,15) on right side.The purpose that a sensor is set in the upper left corner at the iphone mobile phone back side is; When the right hand is handed the iphone mobile phone; Touch the sensor in the upper left corner, the iphone mobile phone back side easily, this moment, two buttons were positioned at the right side of screen, and it is more convenient to adopt hand thumb to click.Similarly the upper right corner of the reverse side of iphone mobile phone can also be provided with a sensor; If form in the process at MAC operating system figure interface; Finger touches temperature sensor, perhaps points behind the pressure transducer generation pressure, and sensor can produce left-handed mode and switch indication; The subsequent step and the right hand are similar, repeat no more here.Demand according to actual design; The position that can also keep left at the lower frame of iphone mobile phone is provided with a sensor again; Whether, to detect be right hand handheld mobile phone, similarly a sensor can also be set again in the position that the lower frame of iphone mobile phone is kept right with the sensor in the upper left corner of the reverse side of iphone mobile phone if cooperating; Whether cooperate with the sensor in the upper right corner of the reverse side of iphone mobile phone, be the left hand handheld mobile phone to detect.The embodiment of the invention does not limit the particular location of sensor setting, but should be arranged at the non-screen area of iphone mobile phone in principle.
After adopting above-mentioned method; The embodiment of the invention provides right handed handheld terminal operating system figure interface synoptic diagram as shown in Figure 3; " note " button 1 and the Edit button 2 of being provided with on the menu bar 3 at the top of iphone mobile phone screen viewing area 10 are positioned at the left side of menu bar 3.The embodiment of the invention provides left hand type handheld terminal operating system figure interface synoptic diagram as shown in Figure 4; " note " button 1 and the Edit button 2 on the menu bar 3 at the top of iphone mobile phone screen viewing area 10; Be positioned at the right side of menu bar 3; Spacing is shorter between " note " button 1 and the Edit button 2 like this, and it is time saving and energy saving to move nearer distance when the user operates.
The embodiment of the invention also provides a kind of terminal that generates handheld terminal operating system figure interface, and is as shown in Figure 5, comprising:
Acquisition module 201; Be used to obtain menu bar Background From Layer coordinate parameters and be positioned at first button and the coordinate parameters of second button on the menu bar; The absolute value of the difference of the X coordinate parameters on vertical direction first border of the X coordinate parameters of first button and Background From Layer wherein; Absolute value less than the difference of the X coordinate parameters on vertical direction second border of the X coordinate parameters of first button and Background From Layer; The absolute value of the difference of the X coordinate parameters on vertical direction first border of the X coordinate parameters of second button and Background From Layer is less than the absolute value of the difference of the X coordinate parameters on vertical direction second border of the X coordinate parameters of second button and Background From Layer;
Generation module 202 is used for generating the menu bar of graphic interface and being positioned at two buttons on the menu bar according to the coordinate parameters of the Background From Layer of menu bar and first button and the coordinate parameters of second button that are positioned on the menu bar.
Further; Acquisition module 201; Specifically be used to obtain menu bar Background From Layer coordinate parameters and be positioned at first button and the coordinate parameters of second button on the menu bar; The absolute value of the difference of the X coordinate parameters of the left margin of the X coordinate parameters of first button and Background From Layer wherein; Less than the absolute value of the difference of the X coordinate parameters of the right margin of the X coordinate parameters of first button and Background From Layer, the absolute value of the difference of the X coordinate parameters of the X coordinate parameters of second button and the left margin of Background From Layer is less than the absolute value of the difference of the X coordinate parameters of the right margin of the X coordinate parameters of second button and Background From Layer.
Further; Acquisition module 201; Specifically be used to obtain menu bar Background From Layer coordinate parameters and be positioned at first button and the coordinate parameters of second button on the menu bar; The absolute value of the difference of the X coordinate parameters of the right margin of the X coordinate parameters of first button and Background From Layer wherein; Less than the absolute value of the difference of the X coordinate parameters of the left margin of the X coordinate parameters of first button and Background From Layer, the absolute value of the difference of the X coordinate parameters of the X coordinate parameters of second button and the right margin of Background From Layer is less than the absolute value of the difference of the X coordinate parameters of the left margin of the X coordinate parameters of second button and Background From Layer.
Further, also comprise:
Receiver module 203 is used to receive the response events that switching push button produces;
Acquisition module 201; Specifically be used for response events according to the button generation; Select from representing a plurality of coordinate parameters set that first button is arranged in diverse location; And obtain and generate the first required button coordinate parameters of graphic interface, select from representing a plurality of coordinate parameters set that second button is arranged in diverse location, and obtain and generate the second required button coordinate parameters of graphic interface.
Further, be provided with sensor 204 at the non-screen area of handheld terminal, sensor 204 is used for producing switching and indicates;
Acquisition module 201; The switching that specifically is used for producing according to sensor is indicated; Select from representing a plurality of coordinate parameters set that first button is arranged in diverse location; And obtain and generate the first required button coordinate parameters of graphic interface, select from representing a plurality of coordinate parameters set that second button is arranged in diverse location, and obtain and generate the second required button coordinate parameters of graphic interface.
What should explain at last is: above embodiment is only in order to technical scheme of the present invention to be described but not limit it; Although the present invention has been carried out detailed explanation with reference to preferred embodiment; Those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, also can not make amended technical scheme break away from the spirit and the scope of technical scheme of the present invention and these are revised or be equal to replacement.