CN105786349A - Method for controlling screen picture to rotate and electronic device - Google Patents
Method for controlling screen picture to rotate and electronic device Download PDFInfo
- Publication number
- CN105786349A CN105786349A CN201610109558.2A CN201610109558A CN105786349A CN 105786349 A CN105786349 A CN 105786349A CN 201610109558 A CN201610109558 A CN 201610109558A CN 105786349 A CN105786349 A CN 105786349A
- Authority
- CN
- China
- Prior art keywords
- electronic installation
- rotation
- screen
- predetermined angle
- preset duration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a method for controlling a screen picture to rotate.The method comprises the steps that the display picture of a screen of an electronic device is controlled to rotate in a preset angle in the assigned direction; whether a rotation correcting instruction is received in a preset time or not is judged; if yes, the display picture of the screen of the electronic device is controlled to rotate in a preset angle in the direction opposite to the assigned direction.Correspondingly, the embodiment of the invention further discloses the electronic device.By adopting the method and the electronic device, the display mode can be regulated in time when rotation of the display picture of the screen is wrong, and the terminal function is enhanced.
Description
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of method controlling rotation of screen picture and electronic installation.
Background technology
Along with the fast development of communication technology and mobile terminal technology, the mobile terminal such as panel computer, smart mobile phone obtains at full speed popularizing, and has become as one of modal instrument in people's daily life.In order to strengthen the motility that mobile terminal uses, mobile terminal is provided with transverse screen mode and perpendicular screen pattern, (it is generally the attitude of mobile terminal by default trigger condition, be in laterally disposed or placed longitudinally) control screen-picture switch freely between transverse screen mode and perpendicular screen pattern, facilitate user to watch picture.
The transverse screen mode of display pattern and perpendicular screen pattern are that the attitude according to mobile terminal is determined, when general mobile terminal is in vertical placement attitude, corresponding display pattern is perpendicular screen pattern;When mobile terminal is in laterally disposed attitude, corresponding display pattern is transverse screen mode.When user uses mobile terminal under the posture such as lie on the back or lie on one's side, it is possible that user laterally uses mobile terminal (namely mobile terminal is laterally relative to the eyes of user), and mobile terminal itself belongs to and vertically places attitude, at this moment, user needs to use transverse screen mode, and the display pattern of mobile terminal reality is perpendicular screen pattern, therefore, in some cases, the display picture of the screen of mobile terminal rotates can be wrong, and currently also do not disclose corresponding technology and user can be made to adjust in time when finding and rotating wrong, reduce the experience of user.
Summary of the invention
The embodiment of the present invention provides a kind of method controlling rotation of screen picture and electronic installation, it is possible to when the display picture of screen rotates wrong, adjusts display pattern in time, strengthens the function of terminal.
Embodiments provide a kind of method controlling rotation of screen picture, including:
The display picture of the screen controlling electronic installation rotates predetermined angle with assigned direction;
Judge that whether receiving rotation in preset duration corrects instruction;
If receiving rotation in preset duration to correct instruction, then the display picture of the screen controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction.
Optionally, before whether described judgement receives rotation correction instruction in preset duration, described method also includes:
By the whether horizontal positioned of electronic installation described in the electrolevel detecting real-time of described electronic installation;
If described electronic installation is horizontal positioned, then triggers and perform whether described judgement receives the step rotating correction instruction in preset duration.
Optionally, the display picture of the screen of described control electronic installation rotates before predetermined angle with assigned direction, and described method also includes:
The anglec of rotation of electronic installation described in detecting real-time and direction of rotation;
If the described anglec of rotation reaches the first predetermined angle threshold value, then the display picture triggering the screen performing described control electronic installation rotates the step of predetermined angle with assigned direction;
Wherein, described assigned direction is identical with the described direction of rotation detected.
Optionally, the display picture of the screen of the described electronic installation of described control rotates after described predetermined angle to the rightabout of described assigned direction, and described method also includes:
The screen rotation of described electronic installation is locked, until the anglec of rotation detecting described electronic installation reaches the locking that just removing screen rotates of the second predetermined angle threshold value;
Wherein, described second predetermined angle threshold value is more than described first predetermined angle threshold value.
Optionally, described judgement whether receive in preset duration rotation correct instruction include:
Whether detection receives adopting consecutive click chemical reaction operation in preset duration;
If receiving adopting consecutive click chemical reaction operation in preset duration, then judge that receiving rotation corrects instruction.
Correspondingly, the embodiment of the present invention additionally provides a kind of electronic installation, including:
Spin Control module, the display picture of the screen for controlling electronic installation rotates predetermined angle with assigned direction;
Command detection module, for judging that whether receiving rotation in preset duration corrects instruction;
Described Spin Control module is additionally operable to:
If receiving rotation in preset duration to correct instruction, then the display picture of the screen controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction.
Optionally, described electronic installation also includes:
Level detecting module, for by the whether horizontal positioned of electronic installation described in electrolevel detecting real-time, and when described electronic installation horizontal positioned being detected, then triggers described command detection module judges whether receive rotation correction instruction in preset duration.
Optionally, described electronic installation also includes:
Rotate detecting module, the anglec of rotation of electronic installation and direction of rotation described in detecting real-time, and when the described anglec of rotation reaches the first predetermined angle threshold value, then the display picture triggering the screen that described Spin Control module controls electronic installation rotates predetermined angle with assigned direction;
Wherein, described assigned direction is identical with the described direction of rotation detected.
Optionally, described electronic installation also includes:
Locking module, after display picture for controlling the screen of described electronic installation at described rotation detecting module rotates described predetermined angle to the rightabout of described assigned direction, the screen rotation of described electronic installation is locked, until the anglec of rotation that described rotation detecting module detects described electronic installation reaches the locking that just removing screen rotates of the second predetermined angle threshold value;
Wherein, described second predetermined angle threshold value is more than described first predetermined angle threshold value.
Optionally, described command detection module specifically for:
Whether detection receives adopting consecutive click chemical reaction operation in preset duration;
If receiving adopting consecutive click chemical reaction operation in preset duration, then judge that receiving rotation corrects instruction.
Implement the embodiment of the present invention, have the advantages that
After the display picture of the screen of control electronic installation rotates predetermined angle with assigned direction, judge that whether receiving rotation in preset duration corrects instruction, if receiving rotation in preset duration to correct instruction, account for screen picture rotates wrong, the display picture of the screen then controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction, when the display picture of screen rotates wrong, adjust display pattern in time, make display picture return to the state before rotation, enhance the function of terminal.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme in the embodiment of the present invention, the accompanying drawing used required in embodiment will be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of method controlling rotation of screen picture that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet that the another kind that the embodiment of the present invention provides controls the method for rotation of screen picture;
Fig. 3 is the structural representation of a kind of electronic installation that the embodiment of the present invention provides;
Fig. 4 is the structural representation that a kind of electronics that the embodiment of the present invention provides is arranged.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Refer to the schematic flow sheet that Fig. 1, Fig. 1 are a kind of methods controlling rotation of screen picture that the embodiment of the present invention provides.The method controlling rotation of screen picture that the embodiment of the present invention provides can be applicable to electronic installation, such as mancarried device, such as panel computer, personal digital assistant or smart mobile phone etc..Described method may include that as shown in Figure 1
Step S11, the display picture of the screen controlling electronic installation rotates predetermined angle with assigned direction.
Electronic installation can be provided with detector, and described detector includes gravity sensor, gyroscope and/or magnetometric sensor etc..Detector can attitude etc. in the movement of detection. electronics, position and space.In certain embodiments, detector can the anglec of rotation of detection. electronics and direction of rotation, if the anglec of rotation reaches the first predetermined threshold value, then the display picture of the screen controlling electronic installation rotates predetermined angle with assigned direction.
Wherein, it is intended that direction is identical with the direction of rotation of electronic installation, and predetermined angle is determined according to the anglec of rotation of electronic installation.Such as, electronic installation is vertically placed, and electronic installation is rotated clockwise to transverse screen again and places, and can detect that electronic installation has turned clockwise 90 degree by detector, then the display picture dextrorotation of the screen controlling electronic installation turn 90 degrees.In some cases, the anglec of rotation 180 degree, 270 degree etc..
Step S12, it is judged that whether receive rotation in preset duration and correct instruction.
Concrete, after the display picture of the screen of control electronic installation rotates predetermined angle with assigned direction, it is judged that whether receive rotation in preset duration and correct instruction;If receiving rotation in preset duration to correct instruction, illustrate that display pattern is wrong, it is necessary to adjust immediately, then perform step S13, otherwise, process ends.
Preset duration can be 2S, 3S or 4S etc..Described preset duration can be that electronic installation is arranged before dispatching from the factory, it is also possible to being that user is arranged voluntarily, the present invention does not limit.
Rotation correction instruction can be operated by adopting consecutive click chemical reaction, length obtains by modes such as operation, sliding trace operations.
In certain embodiments, rotate correction instruction to be obtained by adopting consecutive click chemical reaction operation.Adopting consecutive click chemical reaction operation can set that the number of times of adopting consecutive click chemical reaction, if the number of times of adopting consecutive click chemical reaction is identical with preset times, or, the number of times of adopting consecutive click chemical reaction exceedes preset times threshold value, then judge that receiving rotation corrects instruction.Adopting consecutive click chemical reaction is for 3 times, preset duration is for 3S, electronic installation can pass through the number of times that shaking sensor detection is clicked, if after the display picture of the screen of control electronic installation rotates predetermined angle with assigned direction, within the time of 3S, shaking sensor detects that the clicked number of times of connection is 3, then judge that receiving rotation corrects instruction.
Wherein, the position of adopting consecutive click chemical reaction can be specified in advance, and as screen specifies region, electronic installation bonnet to specify region or appointment region, electronic installation four side etc., the present invention does not limit.
In further embodiments, correction instruction is rotated by long by operation acquisition.Long by operating the duration that can set that length by operation, if long identical with preset duration by the duration operated, or, length exceedes preset duration by the duration of operation, then judge to receive rotation correction instruction.Duration is for 2s, preset duration is for 3S, wherein, duration is less than or equal to preset duration, if after the display picture of the screen of control electronic installation rotates predetermined angle with assigned direction, within the time of 3S, detect that length reaches 2S by the duration of operation, then judge that receiving rotation corrects instruction.
Whether further, electronic installation can be provided with electrolevel, and electronic installation can pass through the whether horizontal positioned of electronic installation described in this electrolevel detecting real-time, if horizontal positioned, just judge to receive in preset duration and rotate correction instruction.In implementing, electrolevel is for angle by measuring electronic installation place plane and horizontal plane in real time, thus detecting electronic installation whether horizontal positioned.In embodiments of the present invention, what electrolevel was measured is the angle of screen place plane and horizontal plane.When the angle of screen place plane with horizontal plane equals to or less than a specific angle angle value, during such as 5 degree, it is believed that screen is horizontal positioned.Electronic installation is when horizontal positioned, gravity sensor cannot the anglec of rotation of detection. electronics and direction of rotation, therefore, electronic installation is easier to occur that display pattern is wrong when horizontal positioned, and vertical placing time (i.e. the screen place plane of electronic installation and horizontal plane), display pattern occurs that wrong probability is less, after the display picture of the screen of control electronic installation rotates predetermined angle with assigned direction, can process ends, namely without judging that whether receiving rotation in preset duration corrects instruction, thus saving the power consumption of electronic installation.
Step S13, if receiving rotation in preset duration to correct instruction, then the display picture of the screen controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction.
Concrete, if receiving rotation in preset duration to correct instruction, illustrating, current display pattern is wrong, it is necessary to corrigendum, then the display picture of the screen controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction.Such as, after the display picture dextrorotation of the screen of electronic installation turn 90 degrees, in preset duration, receive rotation correct instruction, then control electronic installation 90-degree rotation counterclockwise.
Further, the display picture of the screen of electronic installation is after rotating described predetermined angle to the rightabout of described assigned direction, the screen rotation of described electronic installation can be locked, until the anglec of rotation detecting described electronic installation reaches the locking that just removing screen rotates of the second predetermined angle threshold value, wherein, the second predetermined angle threshold value is more than the first predetermined angle threshold value.Assume, first predetermined angle threshold value is 60 degree, second predetermined angle threshold value is 60~90 degree, that is, the display picture of the screen of electronic installation is after rotating described predetermined angle to the rightabout of described assigned direction, even if electronic installation rotates within the scope of 60 degree, electronic installation is without changing display pattern, it is to avoid the display picture of Rotation screen repeatedly.
In the embodiment shown in fig. 1, after the display picture of the screen of control electronic installation rotates predetermined angle with assigned direction, judge that whether receiving rotation in preset duration corrects instruction, if receiving rotation in preset duration to correct instruction, account for screen picture rotates wrong, the display picture of the screen then controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction, when the display picture of screen rotates wrong, adjust display pattern in time, display picture is made to return to the state before rotation, enhance the function of terminal, thus enhancing the experience of user.
Referring to Fig. 2, Fig. 2 is the schematic flow sheet that the another kind that the embodiment of the present invention provides controls the method for rotation of screen picture.The method controlling rotation of screen picture that the embodiment of the present invention provides can be applicable to an electronic installation, such as mancarried device, such as panel computer, personal digital assistant or smart mobile phone etc..Described method may include that as shown in Figure 2
Step S21, the anglec of rotation of detecting real-time electronic installation and direction of rotation.
Electronic installation can be provided with detector, and described detector includes gravity sensor, gyroscope and/or magnetometric sensor etc..Electronic installation can detect its anglec of rotation and direction of rotation by detector.
Step S22, if the described anglec of rotation reaches the first predetermined angle threshold value, then the display picture of the screen controlling electronic installation rotates predetermined angle with assigned direction.
Concrete, if the anglec of rotation reaches the first predetermined angle threshold value, then the display picture of the screen controlling electronic installation rotates predetermined angle with assigned direction.Wherein, it is intended that direction is identical with the direction of rotation of electronic installation, and predetermined angle is determined according to the anglec of rotation of electronic installation.Such as, electronic installation is vertically placed, and electronic installation is rotated clockwise to transverse screen again and places, and can detect that electronic installation has turned clockwise 90 degree by detector, then the display picture dextrorotation of the screen controlling electronic installation turn 90 degrees.In some cases, the anglec of rotation 180 degree, 270 degree etc..
Step S23, whether detection receives adopting consecutive click chemical reaction operation in preset duration.If electronic installation receives adopting consecutive click chemical reaction operation in preset duration, then perform step S24, otherwise, process ends.
Concrete, adopting consecutive click chemical reaction operation can set that the number of times of adopting consecutive click chemical reaction, if the number of times of adopting consecutive click chemical reaction is identical with preset times, or, the number of times of adopting consecutive click chemical reaction exceedes preset times threshold value, then judge that receiving rotation corrects instruction.Adopting consecutive click chemical reaction is for 3 times, preset duration is for 3S, electronic installation can pass through the number of times that shaking sensor detection is clicked, if after the display picture of the screen of control electronic installation rotates predetermined angle with assigned direction, within the time of 3S, shaking sensor detects that the clicked number of times of connection is 3, then judge that receiving rotation corrects instruction.
Wherein, the position of adopting consecutive click chemical reaction can be determined in advance, and as screen specifies region, electronic installation bonnet to specify region or electronic installation side to specify region etc., the present invention does not limit.
Whether further, electronic installation can be provided with electrolevel, and electronic installation can pass through the whether horizontal positioned of electronic installation described in this electrolevel detecting real-time, if horizontal positioned, just judge to receive in preset duration and rotate correction instruction.In implementing, electrolevel is for angle by measuring electronic installation place plane and horizontal plane in real time, thus detecting electronic installation whether horizontal positioned.In embodiments of the present invention, what electrolevel was measured is the angle of screen place plane and horizontal plane.When the angle of screen place plane with horizontal plane equals to or less than a specific angle angle value, during such as 5 degree, it is believed that screen is horizontal positioned.
Step S24, the display picture of the screen controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction.
Concrete, if receiving rotation in preset duration to correct instruction, illustrating, current display pattern is wrong, it is necessary to corrigendum, then the display picture of the screen controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction.Such as, after the display picture dextrorotation of the screen of electronic installation turn 90 degrees, in preset duration, receive rotation correct instruction, then control electronic installation 90-degree rotation counterclockwise.
Step S25, locks the screen rotation of described electronic installation, until the anglec of rotation detecting described electronic installation reaches the locking that just removing screen rotates of the second predetermined angle threshold value, wherein, the second predetermined angle threshold value is more than the first predetermined angle threshold value.
In the embodiment shown in Figure 2, after the display picture of the screen of control electronic installation rotates predetermined angle with assigned direction, whether detection receives adopting consecutive click chemical reaction operation in preset duration, if receiving adopting consecutive click chemical reaction operation in preset duration, account for screen picture rotates wrong, the display picture of the screen then controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction, when the display picture of screen rotates wrong, adjust display pattern in time, display picture is made to return to the state before rotation, enhance the function of terminal, thus enhancing the experience of user.
Refer to the structural representation that Fig. 3, Fig. 3 are the electronic installations that the embodiment of the present invention provides.The electronic installation that the embodiment of the present invention provides can apply on the mobile terminals such as panel computer, personal digital assistant or smart mobile phone.As it is shown on figure 3, described electronic installation 3 at least may include that Spin Control module 31 and command detection module 32, wherein:
Spin Control module 31, the display picture for controlling screen rotates predetermined angle with assigned direction.
Command detection module 32, for judging that whether receiving rotation in preset duration corrects instruction.
Preset duration can be 2S, 3S or 4S etc..Described preset duration can be that electronic installation is arranged before dispatching from the factory, it is also possible to being that user is arranged voluntarily, the present invention does not limit.
Rotation correction instruction can be operated by adopting consecutive click chemical reaction, length obtains by modes such as operation, sliding trace operations.
In certain embodiments, rotate correction instruction to be obtained by adopting consecutive click chemical reaction operation.Adopting consecutive click chemical reaction operation can set that the number of times of adopting consecutive click chemical reaction, if the number of times of adopting consecutive click chemical reaction is identical with preset times, or, the number of times of adopting consecutive click chemical reaction exceedes preset times threshold value, and command detection module 32 then judges that receiving rotation corrects instruction.Adopting consecutive click chemical reaction is for 3 times, preset duration is for 3S, electronic installation can pass through the number of times that shaking sensor detection is clicked, if after the display picture of the screen of control electronic installation rotates predetermined angle with assigned direction, within the time of 3S, shaking sensor detects that the clicked number of times of connection is 3, and command detection module 32 then judges that receiving rotation corrects instruction.
Wherein, the position of adopting consecutive click chemical reaction can be determined in advance, and as screen specifies region, electronic installation bonnet to specify region or appointment region, electronic installation four side etc., the present invention does not limit.
In further embodiments, correction instruction is rotated by long by operation acquisition.Long by operating the duration that can set that length by operation, if long identical with preset duration by the duration operated, or, length exceedes preset duration by the duration of operation, and command detection module 32 then judges that receiving rotation corrects instruction.Duration is for 2s, preset duration is for 3S, wherein, duration is less than or equal to preset duration, if after the display picture of the screen of control electronic installation rotates predetermined angle with assigned direction, within the time of 3S, detecting that length reaches 2S by the duration of operation, command detection module 32 then judges that receiving rotation corrects instruction.
Described Spin Control module 31 is additionally operable to:
If receiving rotation in preset duration to correct instruction, then the display picture of the screen controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction.
Optionally, described electronic installation 3 can also include level detecting module 33, for by the whether horizontal positioned of electronic installation described in electrolevel detecting real-time, and when described electronic installation horizontal positioned being detected, then trigger described command detection module 32 and judge that whether receiving rotation in preset duration corrects instruction.In implementing, electrolevel is for angle by measuring electronic installation place plane and horizontal plane in real time, thus detecting electronic installation whether horizontal positioned.In embodiments of the present invention, what electrolevel was measured is the angle of screen place plane and horizontal plane.When the angle of screen place plane with horizontal plane equals to or less than a specific angle angle value, during such as 5 degree, level detecting module 33 is it is believed that screen is horizontal positioned.
Optionally, described electronic installation 3 can also include rotating detecting module 34, the anglec of rotation of electronic installation and direction of rotation described in detecting real-time, and when the described anglec of rotation reaches the first predetermined angle threshold value, then the display picture triggering the screen that described Spin Control module 31 controls electronic installation rotates predetermined angle with assigned direction;Wherein, described assigned direction is identical with the described direction of rotation detected.
Electronic installation can be provided with detector, and described detector includes gravity sensor, gyroscope and/or magnetometric sensor etc..Rotate detecting module 34 and can pass through the attitude etc. in the movement of detector detection. electronics, position and space.In certain embodiments, rotate detecting module 34 and can pass through the anglec of rotation and the direction of rotation of detector detection. electronics, if the anglec of rotation reaches predetermined threshold value, then the display picture triggering the screen that Spin Control module 31 controls electronic installation rotates predetermined angle with assigned direction.
Wherein, it is intended that direction is identical with the direction of rotation of electronic installation, and predetermined angle is determined according to the anglec of rotation of electronic installation.Such as, electronic installation is vertically placed, and electronic installation is rotated clockwise to transverse screen again and places, and can detect that electronic installation has turned clockwise 90 degree by detector, then the display picture dextrorotation of the screen controlling electronic installation turn 90 degrees.
Further alternative, described electronic installation 3 can also include locking module 35, after display picture for controlling the screen of described electronic installation in described Spin Control module 31 rotates described predetermined angle to the rightabout of described assigned direction, the screen rotation of described electronic installation is locked, until the anglec of rotation that described rotation detecting module 34 detects described electronic installation reaches the locking that just removing screen rotates of the second predetermined angle threshold value.Wherein, the second predetermined angle threshold value is more than the first predetermined angle threshold value.
In the embodiment shown in fig. 3, Spin Control module is after the display picture of the screen of control electronic installation rotates predetermined angle with assigned direction, command detection module judges that whether receiving rotation in preset duration corrects instruction, if receiving rotation in preset duration to correct instruction, account for screen picture rotates wrong, Spin Control module then controls the display picture of the screen of described electronic installation and rotates described predetermined angle to the rightabout of described assigned direction, when the display picture of screen rotates wrong, adjust display pattern in time, display picture is made to return to the state before rotation, enhance the function of terminal, thus enhancing the experience of user.
Refer to Fig. 4, embodiments provide the structural representation of a kind of electronic equipment.This electronic equipment 4 comprises the electronic installation described in Fig. 3, and this electronic equipment 4 may be used for implementing the method controlling rotation of screen picture of offer in Fig. 1~Fig. 2 embodiment.Specifically:
This electronic equipment 4 can include housing 41, processor 42, memorizer 43, circuit board 44 and power circuit 45, and wherein, circuit board 44 is placed in the interior volume that housing 41 surrounds, processor 42 and memorizer 43 and is arranged on circuit board 44;Power circuit 45, powers for each circuit or the device for electronic equipment;Memorizer 43 is used for storing executable program code;Processor 42 runs the program corresponding with executable program code by reading the executable program code of storage in memorizer 43, for performing following steps:
The display picture of the screen controlling electronic installation rotates predetermined angle with assigned direction;
Judge that whether receiving rotation in preset duration corrects instruction;
If receiving rotation in preset duration to correct instruction, then the display picture of the screen controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction.
Wherein, processor 42 calls in memorizer 43 program code of storage by, before judging that whether receiving rotation in preset duration corrects instruction, also performing following operation:
By the whether horizontal positioned of electronic installation described in the electrolevel detecting real-time of described electronic installation;
If described electronic installation is horizontal positioned, then triggers and perform whether described judgement receives the step rotating correction instruction in preset duration.
Wherein, processor 42 calls the display picture of the screen of the program code control electronic installation of storage in memorizer 43, before assigned direction rotation predetermined angle, also to perform following operation:
The anglec of rotation of electronic installation described in detecting real-time and direction of rotation;
If the described anglec of rotation reaches the first predetermined angle threshold value, then the display picture triggering the screen performing described control electronic installation rotates the step of predetermined angle with assigned direction;
Wherein, described assigned direction is identical with the described direction of rotation detected.
Further, processor 42 calls in memorizer 43 program code of storage and controls the display picture of screen of described electronic installation to after the rightabout of described assigned direction rotates described predetermined angle, also performing following operation:
The screen rotation of described electronic installation is locked, until the anglec of rotation detecting described electronic installation reaches the locking that just removing screen rotates of the second predetermined angle threshold value;
Wherein, described second predetermined angle threshold value is more than described first predetermined angle threshold value.
Wherein, processor 42 calls in memorizer 43 program code of storage and judges that whether receiving rotation correction instruction in preset duration is specifically as follows:
Whether detection receives adopting consecutive click chemical reaction operation in preset duration;
If receiving adopting consecutive click chemical reaction operation in preset duration, then judge that receiving rotation corrects instruction.
In the embodiment shown in fig. 4, processor is after the display picture of the screen of control electronic installation rotates predetermined angle with assigned direction, judge that whether receiving rotation in preset duration corrects instruction, if receiving rotation in preset duration to correct instruction, account for screen picture rotates wrong, the display picture of the screen then controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction, when the display picture of screen rotates wrong, adjust display pattern in time, display picture is made to return to the state before rotation, enhance the function of terminal, thus enhancing the experience of user.
In the description of this specification, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means in conjunction with this embodiment or example describe are contained at least one embodiment or the example of the present invention.In this manual, the schematic representation of above-mentioned term is necessarily directed to identical embodiment or example.And, the specific features of description, structure, material or feature can combine in one or more embodiments in office or example in an appropriate manner.Additionally, when not conflicting, the feature of the different embodiments described in this specification or example and different embodiment or example can be carried out combining and combining by those skilled in the art.
Additionally, term " first ", " second " are only for descriptive purposes, and it is not intended that indicate or imply relative importance or the implicit quantity indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or implicitly include at least one this feature.In describing the invention, " multiple " are meant that at least two, for instance two, three etc., unless otherwise expressly limited specifically.
Describe in flow chart or in this any process described otherwise above or method and be construed as, represent and include the module of code of executable instruction of one or more step for realizing specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press order that is shown or that discuss, including according to involved function by basic mode simultaneously or in the opposite order, performing function, this should be understood by embodiments of the invention person of ordinary skill in the field.
Represent in flow charts or in this logic described otherwise above and/or step, such as, it is considered the sequencing list of executable instruction for realizing logic function, may be embodied in any computer-readable medium, use for instruction execution system, device or equipment (such as computer based system, including the system of processor or other can from instruction execution system, device or equipment instruction fetch the system performing instruction), or use in conjunction with these instruction execution systems, device or equipment.For the purpose of this specification, " computer-readable medium " can be any can comprise, store, communicate, propagate or transmission procedure is for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium includes following: have the electrical connection section (electronic installation) of one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read only memory (ROM), erasable edit read only memory (EPROM or flash memory), fiber device, and portable optic disk read only memory (CDROM).Additionally, computer-readable medium can even is that the paper that can print described program thereon or other suitable media, because can such as by paper or other media be carried out optical scanning, then carry out editing, interpreting or be processed to electronically obtain described program with other suitable methods if desired, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple steps or method can realize with the storage software or firmware in memory and by suitable instruction execution system execution.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic of logic gates for data signal realizes logic function, there is the special IC of suitable combination logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries can be by the hardware that program carrys out instruction relevant and complete, described program can be stored in a kind of computer-readable recording medium, this program upon execution, including the step one or a combination set of of embodiment of the method.Additionally, each functional unit in each embodiment of the present invention can be integrated in a processing module, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a module.Above-mentioned integrated module both can adopt the form of hardware to realize, it would however also be possible to employ the form of software function module realizes.If described integrated module is using the form realization of software function module and as independent production marketing or use, it is also possible to be stored in a computer read/write memory medium.
Storage medium mentioned above can be read only memory, disk or CD etc..Although above it has been shown and described that embodiments of the invention, it is understandable that, above-described embodiment is illustrative of, it is impossible to be interpreted as limitation of the present invention, and above-described embodiment can be changed, revises, replace and modification by those of ordinary skill in the art within the scope of the invention.
Above disclosed it is only present pre-ferred embodiments, certainly can not limit the interest field of the present invention, the equivalent variations therefore made according to the claims in the present invention with this, still belong to the scope that the present invention contains.
Claims (10)
1. the method controlling rotation of screen picture, it is characterised in that described method includes:
The display picture of the screen controlling electronic installation rotates predetermined angle with assigned direction;
Judge that whether receiving rotation in preset duration corrects instruction;
If receiving rotation in preset duration to correct instruction, then the display picture of the screen controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction.
2. the method for claim 1, it is characterised in that before whether described judgement receives rotation correction instruction in preset duration, described method also includes:
By the whether horizontal positioned of electronic installation described in the electrolevel detecting real-time of described electronic installation;
If described electronic installation is horizontal positioned, then triggers and perform whether described judgement receives the step rotating correction instruction in preset duration.
3. the method for claim 1, it is characterised in that the display picture of the screen of described control electronic installation rotates before predetermined angle with assigned direction, and described method also includes:
The anglec of rotation of electronic installation described in detecting real-time and direction of rotation;
If the described anglec of rotation reaches the first predetermined angle threshold value, then the display picture triggering the screen performing described control electronic installation rotates the step of predetermined angle with assigned direction;
Wherein, described assigned direction is identical with the described direction of rotation detected.
4. method as claimed in claim 3, it is characterised in that
The display picture of the screen of the described electronic installation of described control rotates after described predetermined angle to the rightabout of described assigned direction, and described method also includes:
The screen rotation of described electronic installation is locked, until the anglec of rotation detecting described electronic installation reaches the locking that just removing screen rotates of the second predetermined angle threshold value;
Wherein, described second predetermined angle threshold value is more than described first predetermined angle threshold value.
5. the method as according to any one of claim 1-4, it is characterised in that whether described judgement receives rotation correction instruction in preset duration includes:
Whether detection receives adopting consecutive click chemical reaction operation in preset duration;
If receiving adopting consecutive click chemical reaction operation in preset duration, then judge that receiving rotation corrects instruction.
6. an electronic installation, it is characterised in that described electronic installation includes:
Spin Control module, the display picture of the screen for controlling electronic installation rotates predetermined angle with assigned direction;
Command detection module, for judging that whether receiving rotation in preset duration corrects instruction;
Described Spin Control module is additionally operable to:
If receiving rotation in preset duration to correct instruction, then the display picture of the screen controlling described electronic installation rotates described predetermined angle to the rightabout of described assigned direction.
7. electronic installation as claimed in claim 6, it is characterised in that described electronic installation also includes:
Level detecting module, for by the whether horizontal positioned of electronic installation described in electrolevel detecting real-time, and when described electronic installation horizontal positioned being detected, then triggers described command detection module judges whether receive rotation correction instruction in preset duration.
8. electronic installation as claimed in claim 6, it is characterised in that described electronic installation also includes:
Rotate detecting module, the anglec of rotation of electronic installation and direction of rotation described in detecting real-time, and when the described anglec of rotation reaches the first predetermined angle threshold value, then the display picture triggering the screen that described Spin Control module controls electronic installation rotates predetermined angle with assigned direction;
Wherein, described assigned direction is identical with the described direction of rotation detected.
9. electronic installation as claimed in claim 8, it is characterised in that described electronic installation also includes:
Locking module, after display picture for controlling the screen of described electronic installation in described Spin Control module rotates described predetermined angle to the rightabout of described assigned direction, the screen rotation of described electronic installation is locked, until the anglec of rotation that described rotation detecting module detects described electronic installation reaches the locking that just removing screen rotates of the second predetermined angle threshold value;
Wherein, described second predetermined angle threshold value is more than described first predetermined angle threshold value.
10. the electronic installation as according to any one of claim 6-9, it is characterised in that
Described command detection module specifically for:
Whether detection receives adopting consecutive click chemical reaction operation in preset duration;
If receiving adopting consecutive click chemical reaction operation in preset duration, then judge that receiving rotation corrects instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610109558.2A CN105786349A (en) | 2016-02-26 | 2016-02-26 | Method for controlling screen picture to rotate and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610109558.2A CN105786349A (en) | 2016-02-26 | 2016-02-26 | Method for controlling screen picture to rotate and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105786349A true CN105786349A (en) | 2016-07-20 |
Family
ID=56402978
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610109558.2A Pending CN105786349A (en) | 2016-02-26 | 2016-02-26 | Method for controlling screen picture to rotate and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105786349A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110770685A (en) * | 2017-06-20 | 2020-02-07 | 三菱电机株式会社 | Touch input determination device, touch panel input device, touch input determination method, and touch input determination program |
CN111026297A (en) * | 2019-11-19 | 2020-04-17 | 深圳鑫想科技有限责任公司 | Screen image rotation method, control device, storage medium and computer equipment |
CN111142720A (en) * | 2018-11-06 | 2020-05-12 | 比亚迪股份有限公司 | Vehicle-mounted machine screen rotation display method and device |
CN113395554A (en) * | 2020-03-13 | 2021-09-14 | 海信视像科技股份有限公司 | Display device |
CN114296542A (en) * | 2021-04-30 | 2022-04-08 | 海信视像科技股份有限公司 | Display apparatus and control method thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090303204A1 (en) * | 2007-01-05 | 2009-12-10 | Invensense Inc. | Controlling and accessing content using motion processing on mobile devices |
CN102789322A (en) * | 2011-05-18 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Screen picture rotation method and system |
CN103455256A (en) * | 2013-08-21 | 2013-12-18 | 小米科技有限责任公司 | Method and terminal for rotating display picture of screen |
CN104317491A (en) * | 2014-09-30 | 2015-01-28 | 北京金山安全软件有限公司 | Display content control method and device and mobile terminal |
CN104346060A (en) * | 2013-08-07 | 2015-02-11 | 联想(北京)有限公司 | Method for information processing and electronic equipment |
-
2016
- 2016-02-26 CN CN201610109558.2A patent/CN105786349A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090303204A1 (en) * | 2007-01-05 | 2009-12-10 | Invensense Inc. | Controlling and accessing content using motion processing on mobile devices |
CN102789322A (en) * | 2011-05-18 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Screen picture rotation method and system |
CN104346060A (en) * | 2013-08-07 | 2015-02-11 | 联想(北京)有限公司 | Method for information processing and electronic equipment |
CN103455256A (en) * | 2013-08-21 | 2013-12-18 | 小米科技有限责任公司 | Method and terminal for rotating display picture of screen |
CN104317491A (en) * | 2014-09-30 | 2015-01-28 | 北京金山安全软件有限公司 | Display content control method and device and mobile terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110770685A (en) * | 2017-06-20 | 2020-02-07 | 三菱电机株式会社 | Touch input determination device, touch panel input device, touch input determination method, and touch input determination program |
CN111142720A (en) * | 2018-11-06 | 2020-05-12 | 比亚迪股份有限公司 | Vehicle-mounted machine screen rotation display method and device |
CN111026297A (en) * | 2019-11-19 | 2020-04-17 | 深圳鑫想科技有限责任公司 | Screen image rotation method, control device, storage medium and computer equipment |
CN113395554A (en) * | 2020-03-13 | 2021-09-14 | 海信视像科技股份有限公司 | Display device |
WO2021179361A1 (en) * | 2020-03-13 | 2021-09-16 | 海信视像科技股份有限公司 | Display apparatus |
CN114296542A (en) * | 2021-04-30 | 2022-04-08 | 海信视像科技股份有限公司 | Display apparatus and control method thereof |
CN114296542B (en) * | 2021-04-30 | 2024-05-17 | 海信视像科技股份有限公司 | Display apparatus and control method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105786349A (en) | Method for controlling screen picture to rotate and electronic device | |
US10862595B2 (en) | Method for processing radio frequency interference, and electronic device | |
US7431216B2 (en) | Methods for presenting parameter status information and related portable electronic devices and parameters | |
US9152286B2 (en) | Touch panel system and electronic apparatus | |
CN102681722B (en) | Coordinate detection system, information processor and method | |
CN109274309B (en) | Motor control method, motor control device, electronic device and storage medium | |
EP2538307B1 (en) | Electronic terminal, input correction method, and program | |
US8983444B2 (en) | Method for controlling portable device by using humidity sensor and portable device thereof | |
CN103686464B (en) | Apparatus control method, device and electronic equipment | |
CN103702029A (en) | Method and device for prompting focusing during shooting | |
US9904314B2 (en) | Device and method of controlling a display panel based on cover-related information | |
CN111060000B (en) | Rotation angle detection device and method and electronic equipment | |
CN108592947B (en) | Gyroscope calibration method and device, storage medium and terminal equipment | |
CN107707955A (en) | Cursor control method and smart machine on a kind of display | |
CN105718025A (en) | Method and device for controlling infrared proximity sensor | |
CN103765367A (en) | Information processing apparatus, information processing method, and program | |
CN108415646B (en) | Touch function setting method and device | |
CN105700666A (en) | Terminal device and electricity saving method and device thereof | |
US20050145774A1 (en) | Apparatus and method for operating and controlling display and backlight in portable terminals | |
CN109710091B (en) | Angle information processing method and device and touch sensing system | |
CN103885697A (en) | Page operating system and method | |
CN108833670B (en) | Backlight adjusting method and related device | |
CN112740143A (en) | Screen display content control method and device, electronic equipment and storage medium | |
CN111857485B (en) | Information display method and device | |
CN113010046B (en) | Method for adapting signal source in multi-window mode, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160720 |
|
RJ01 | Rejection of invention patent application after publication |