Summary of the invention
What the present invention solved is in prior art, in electronic equipment, to control display interface carry out translation and rotate and need to repeatedly carry out the technical matters of blocked operation.
In order to address the above problem, the embodiment of the present invention provides a kind of control display interface in electronic equipment method, comprising:
While the first operational order of inputting by the first input media being detected, control display interface and carry out translation;
While the second operational order of inputting by secondary input device being detected, control display interface and be rotated.
Optionally, described control display interface is rotated and is specially: control described display interface and carry out central rotation or axle rotation.
Optionally, described the first operational order and the second operational order are identical instruction.
Optionally, described the first operational order and the second operational order are the instruction of single contact slide.
Optionally, described the first input media lays respectively at described secondary input device the two sides that described electronic equipment is relative.
Optionally, described the first input media is the first contactor control device, and described secondary input device is the second contactor control device.
Optionally, described the first contactor control device is touch-screen or touch pad, and described the second contactor control device is touch-screen or touch pad.
Optionally, described in while the second operational order of inputting by secondary input device being detected, control display interface and be rotated specifically and comprise the following steps:
Detect on the second contactor control device and have contact;
Enter display interface rotary mode, from described the second contactor control device, obtain contact data;
The contact position detecting on described the second contactor control device changes, and obtains and changes Hou contact data, calculates contact position and changes Hou visual angle parameter;
According to described contact position, change Hou visual angle parameter, adjust display interface rotation status parameter and show;
When described the second contactor control device Shang contact being detected and disappearing, display interface stops the rotation.
Optionally, described in detect and have contact on the second contactor control device after, before entering display interface rotary mode, also comprise:
Determine that described contact continued presence surpasses Preset Time section.
Optionally, described in detect and have contact on the second contactor control device after, before entering display interface rotary mode, also comprise:
Determine on described the second contactor control device and whether have and Jin Youyige contact, if so, enter display interface rotary mode.
Optionally, described in contact position on described the second contactor control device detected and change, obtain and change Hou contact data, calculate contact position and change Hou visual angle parameter specifically:
Contact position value before the contact obtaining from the second contactor control device changes in two-dimensional direct angle coordinate system is T
0(x
t0, y
t0), in spherical coordinate system, change Qian visual angle parameter and be
Contact position value after variation is T
1(x
t1, y
t1), variation Hou visual angle parameter is
according to following formula, calculate contact position and change Hou visual angle parameter
θ
1=θ
0+(y
t1-y
t0)·ratio
y
Wherein, ratio
yand ratio
xproportionate relationship for the default anglec of rotation and contact displacement.
Optionally, according to described contact position, change Hou visual angle parameter, adjust in real time display interface rotation status parameter and show in real time.
In order to address the above problem, the embodiment of the present invention also provides the device of controlling display interface in a kind of electronic equipment, comprising:
The first control module, during for detection of the first operational order to by the first input media input, controls display interface and carries out translation;
The second control module, during for detection of the second operational order to inputting by secondary input device, controls display interface and is rotated.
Optionally, described the second control module carries out central rotation or axle rotation specifically for controlling described display interface.
Optionally, described the first input media lays respectively at described secondary input device the two sides that electronic equipment is relative.
Optionally, described the first input media is the first contactor control device, and described secondary input device is the second contactor control device.
Optionally, described the first contactor control device is touch-screen or touch pad, and described the second contactor control device is touch-screen or touch pad.
Optionally, described the second control module comprises:
Contact detection sub-unit, for detection of having contact on the second contactor control device, and disappears for detection of described the second contactor control device Shang contact;
Contact data acquisition subelement, for after detecting in described contact detection sub-unit and having contact on the second contactor control device, obtains contact data from described the second contactor control device;
Slip detection sub-unit, for after the data acquisition subelement executable operations of described contact, the contact position detecting on described the second contactor control device changes, and obtains and changes Hou contact data;
Computation subunit, for after described slip detection sub-unit executable operations, calculates contact position and changes Hou visual angle parameter;
Adjust subelement, for after described computation subunit executable operations, according to described contact position, change Hou visual angle parameter adjustment display interface rotation status parameter;
Show subelement, for after described adjustment subelement executable operations, the result after the parameter adjustment of display interface rotation status is presented on display screen.
Optionally, described the second control module also comprises:
Subelement is eliminated in maloperation, for after detecting in contact detection sub-unit and having contact on the second contactor control device, determines that the described contact continued presence time surpasses Preset Time section.
Optionally, described the second control module also comprises:
Whether single contact is confirmed subelement, for after detecting in contact detection sub-unit and having contact on the second contactor control device, determine on described the second contactor control device and have and Jin Youyige contact, if so, sends confirmation signal to contact data acquisition subelement.
In order to address the above problem, the embodiment of the present invention also provides a kind of electronic equipment, comprises the device of above-mentioned control display interface.
Compared with prior art, technical scheme of the present invention has the following advantages:
Display interface translation and display interface Rotary District are separated, both realize by different input medias respectively, saved loaded down with trivial details blocked operation between the two, easy and simple to handle, and reduced maloperation, and owing to having saved for switching icon in instruction switching key or the instruction of display interface translation and display interface rotation switching between the two, thereby avoided the waste in screen display space, improved the utilization factor of screen display resource.
Further, by other input media input instructions beyond display screen, control display interface and be rotated, make finger in user's operating process can not block screen.
Embodiment
In the embodiment of the present invention, detection is controlled display interface by the operational order of different input media inputs and is carried out translation or rotation, thereby above-mentioned two kinds of operational orders are distinguished, save loaded down with trivial details blocked operation between the two, avoided instruction switching key or instruction to switch the waste of icon to screen display space simultaneously.
For those skilled in the art being understood better and realizing the present invention, referring to accompanying drawing, by specific embodiment, be elaborated.
Embodiment mono-
With reference to controlling the method flow diagram of display interface in the electronic equipment shown in Fig. 2, below by concrete steps, be elaborated:
S201, while the first operational order of inputting by the first input media being detected, controls display interface and carries out translation.
In concrete enforcement, the applied electronic equipment of the present invention can be handheld mobile device, can certainly be other electronic equipment.
In the situation that being applied to handheld mobile device, can be specifically mobile terminal of mobile telephone, palm PC, handheld device etc.
S202, while the second operational order of inputting by secondary input device being detected, controls display interface and is rotated.
In concrete enforcement, described the first input media and described secondary input device can be contactor control devices, can be also the input medias of other type.
In the situation that described the first input media and/or described secondary input device are contactor control device, specifically can touch-screen or touch pad, for example one is touch-screen, another is touch pad.It will be appreciated by persons skilled in the art that described the first contactor control device and the second contactor control device can be also the contactor control devices of other type.
In concrete enforcement, described control display interface is rotated, and concrete rotation mode can be central rotation or axle rotation.
Wherein, the in the situation that of central rotation, rotation center can be the central point of display interface, can certainly be other position on display interface.
In the situation that axle rotates, turning axle can be vertical with the moving direction of the second operation in the plane of display interface, and through the axle of the initial position of the central point of display interface or the second operation of inputting by secondary input device.
In concrete enforcement, described the first operational order and the second operational order can be both identical instructions, can be also different instructions.And no matter whether the first operational order and the second operational order are identical instructions, because the rotation of display interface translation and display interface has adopted respectively different input medias to realize, therefore all above-mentioned both can be distinguished, and without instruction switching key or icon.
At the first input media and secondary input device, adopted contactor control device, and the first operational order and the second operational order are while being identical instruction, can be the instruction of single contact slide conventionally, can certainly be other instructions.
Embodiment bis-
With reference to controlling the method flow diagram of display interface in the electronic equipment shown in Fig. 3, in the present embodiment, according to the user who detects, by the single contact slide instruction of the second contactor control device input, control display interface and in 3d space, carry out axle rotation.By concrete steps, describe in detail and how to control display interface and be rotated below.
S301, detects on the second contactor control device and has contact.
S302, determines that described contact continued presence surpasses Preset Time section.
In concrete enforcement, because dust drops or colliding with or other similar reason during taking and placing, make to have of short duration contact on the second contactor control device, can be mistaken as is user's operational order, causes maloperation.For addressing this problem, after determining described contact continued presence regular hour section, just think user's operational order, be less than the contact of the of short duration existence of above-mentioned time period, think maloperation, and do not respond.The length of above-mentioned time period can be preset conventionally, for example, can be 50ms or 100ms, can certainly be other rational time period length.
Be understandable that, the step of above-mentioned elimination maloperation is not necessary, even if remove this step, can not affect the present invention program's enforcement yet, thereby in another embodiment, can skip this step, directly carries out follow-up step.
Whether S303, determine on described the second contactor control device and have and Jin Youyige contact.
The effect of this step is: exist behind contact detecting on the second contactor control device, determine whether single contact, if single contact enters display interface rotary mode, if multiconductor is carried out other and operated accordingly.
Be understandable that, on the second contactor control device, during the instruction of undefined multi-point touch, can skip this step, directly carry out follow-up step, now, the multi-point touch operation instruction for detecting, can have multiple processing mode, for example:
Multi-point touch on the second contactor control device also can be thought to single-point touch.Can be specifically, with the contact position detecting at first, be as the criterion and obtain contact data, and other contact detecting after ignoring;
Also the multi-point touch on the second contactor control device can be thought to maloperation, and not respond.
It should be added that, above-mentioned two optional step S202 and S203, both can adopt simultaneously or select an employing, also can all not adopt, and precedence relationship between the two can be exchanged.
S304, enters display interface rotary mode, from described the second contactor control device, obtains contact data.
In the situation that control display interface carries out axle rotation in 3d space, the moving direction of the single contact slide that turning axle is inputted with user in the plane of display interface is vertical, and through observation point, wherein, described observation point is the initial contact of described single contact slide or the central point of display interface.
Observation point position adopts the point (x, y) in two-dimensional direct angle coordinate system to express conventionally, x wherein, and y represents respectively the some coordinate in x axle, two orthogonal coordinate axis of y axle;
Visual angle parameter adopts the vector in spherical coordinate system conventionally
express.
Please refer to Fig. 4, in the present embodiment, the coordinate of spherical coordinate system be take true origin as reference point, by distance, the elevation angle, 3, position angle parameter, is determined.Wherein, the vector length that is vector apart from r, elevation angle theta is the angle that y axle positive dirction turns over clockwise to vector, position angle
for the z axle positive dirction angle that the projection in x, z axial plane turns over clockwise to vector.
It should be noted that: above-mentioned r, θ,
definition and the modal expression way of spherical coordinate system difference slightly, this is more convenient in order to make to calculate.
Contact position value before the contact obtaining from the second contactor control device changes in two-dimensional direct angle coordinate system is T0(x
t0, y
t0), in spherical coordinate system, change Qian visual angle parameter and be
In the process being rotated at control display interface, because visual angle parameter is only relevant with direction vector, and irrelevant with vector length.Therefore, can vector length be set to any one rational length, for convenient, calculate, conventionally can adopt unit vector.
S305, the contact position detecting on described the second contactor control device changes, and obtains and changes Hou contact data, calculates contact position and changes Hou visual angle parameter.
Contact position value after the variation obtaining from the second contactor control device is T
1(x
tx,y
t1), establish and change Hou visual angle parameter and be
according to following formula, calculate:
θ
1=θ
0+(y
t1-y
t0)·ratio
y
Wherein, ratio
yand ratio
xproportionate relationship for the default anglec of rotation and contact displacement.
According to above-mentioned formula, determine that contact position changes Hou visual angle parameter
It should be noted that, above-mentioned formula adopts the vector in spherical coordinate system to explain, and is to change the relation between front-and rear-view angular dimensions and positional value in order to describe more easily contact position.It should be noted that spherical coordinate system and three-dimensional cartesian coordinate system can change mutually, contact position changes Hou visual angle parameter, can adopt equally the parameters relationship under three-dimensional cartesian coordinate system to calculate, and be not limited only to above-mentioned formula.
S306, changes Hou visual angle parameter according to described contact position, adjusts display interface rotation status parameter and shows.
In the situation that the first contactor control device has adopted touch-screen, the result of adjusting after display interface rotation status parameter can be presented on touch-screen, certainly, also may be displayed on other display screen.
In a preferred embodiment, the slide according to user on the second contactor control device, system is adjusted visual angle parameter in real time, and is presented on display screen in real time.Understandable, real-time adjustment herein and in real time demonstration, can be set to equally postpone regular hour Duan Houzai and adjust and show.
S307, when described the second contactor control device Shang contact being detected and disappearing, display interface stops the rotation.
In concrete enforcement, in this step, can add equally the elimination maloperation function that is similar to step S302, specifically: determine that described contact disappears after regular hour section continuously, just think that the instruction input of user on the second contactor control device is complete; Be less than the of short duration disappearance in contact of above-mentioned time period, think maloperation, again detecting behind contact, continue to change Hou visual angle parameter according to the change calculations of contact position value
adjust display interface rotation status parameter.The length of above-mentioned time period can adopt default mode equally.
Embodiment tri-
With reference to controlling the device of display interface in the electronic equipment shown in Fig. 5, comprising: the first control module 503, the second control module 504;
The first control module 503, during for detection of the first operational order to by the first input media input, controls display interface and carries out translation;
The second control module 504, during for detection of the second operational order to inputting by secondary input device, controls display interface and is rotated.
Display interface translation and display interface Rotary District are separated, both realize by different input medias respectively, saved loaded down with trivial details blocked operation between the two, easy and simple to handle, and reduced maloperation, and owing to having saved for switching icon in instruction switching key or the instruction of display interface translation and display interface rotation switching between the two, thereby avoided the waste in screen display space, improved the utilization factor of screen display resource.
Described the first input media lays respectively at described secondary input device the two sides that electronic equipment is relative.
Described the first input media is the first contactor control device 501, and described secondary input device is the second contactor control device 502.
Described the first contactor control device 501 is touch-screen or touch pad, and described the second contactor control device 502 is touch-screen or touch pad.
Further, by other input media input instructions beyond display screen, control display interface and be rotated, make finger in user's operating process can not block screen.
In a preferred embodiment, described the second control module 504 carries out central rotation or axle rotation specifically for controlling described display interface.
In a preferred embodiment, described the second control module 504 comprises: detection sub-unit 505, contact, contact data acquisition subelement 506, slip detection sub-unit 507, computation subunit 508, adjustment subelement 509, demonstration subelement 510;
Contact detection sub-unit 505, for detection of having contact on the second contactor control device 502, and disappears for detection of described the second contactor control device 502Shang contact;
Contact data acquisition subelement 506, for after detecting in described contact detection sub-unit 505 and having contact on the second contactor control device 502, obtains contact data from described the second contactor control device 502;
Slip detection sub-unit 507, for after data acquisition subelement 506 executable operations of described contact, the contact position detecting on described the second contactor control device 502 changes, and obtains and changes Hou contact data;
Computation subunit 508, after carrying out 507 operations in described slip detection sub-unit, calculates contact position and changes Hou visual angle parameter;
Adjust subelement 509, for after described computation subunit 508 executable operations, according to described contact position, change Hou visual angle parameter adjustment display interface rotation status parameter;
Show subelement 510, for after described adjustment subelement 509 executable operations, the result after the parameter adjustment of display interface rotation status is presented on display screen.
In a preferred embodiment, described the second control module 504 can also comprise: subelement 511 is eliminated in maloperation;
Subelement 511 is eliminated in maloperation, for after detecting in contact detection sub-unit 505 and having contact on the second contactor control device 502, determines that the described contact continued presence time surpasses Preset Time section.In specific embodiment, described Preset Time section can be 50ms or 100ms.
Adopting maloperation to eliminate subelement 511 and can avoid, because dust drops or colliding with or other similar reason during taking and placing, making to have of short duration contact on the second contactor control device 502, is user's operational order and be mistaken as, and causes maloperation.
In a preferred embodiment, described the second control module 504 can also comprise: single contact is confirmed subelement 512;
Single contact is confirmed subelement 512, for after detecting in contact detection sub-unit 505 and having contact on the second contactor control device 502, determine on described the second contactor control device 502 and whether have and Jin Youyige contact, if so, send confirmation signal to contact data acquisition subelement 506.
Adopt single contact to confirm that subelement 512 can exist behind contact detecting on the second contactor control device 502, determines whether single contact, if single contact enters display interface rotary mode, if multiconductor is carried out other and operated accordingly.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the hardware that instruction is relevant to complete by program, this program can be stored in a computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
Although the present invention discloses as above, the present invention is not defined in this.Any those skilled in the art, without departing from the spirit and scope of the present invention, all can make various changes or modifications, so protection scope of the present invention should be as the criterion with claim limited range.