CN104090719B - Mobile terminal is according to the method and system of acceleration knots modification translating displayed content - Google Patents

Mobile terminal is according to the method and system of acceleration knots modification translating displayed content Download PDF

Info

Publication number
CN104090719B
CN104090719B CN201410285440.6A CN201410285440A CN104090719B CN 104090719 B CN104090719 B CN 104090719B CN 201410285440 A CN201410285440 A CN 201410285440A CN 104090719 B CN104090719 B CN 104090719B
Authority
CN
China
Prior art keywords
acceleration
axis
pixels
knots modification
translation
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.)
Active
Application number
CN201410285440.6A
Other languages
Chinese (zh)
Other versions
CN104090719A (en
Inventor
杨维琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN201410285440.6A priority Critical patent/CN104090719B/en
Publication of CN104090719A publication Critical patent/CN104090719A/en
Application granted granted Critical
Publication of CN104090719B publication Critical patent/CN104090719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of method and system the invention discloses mobile terminal according to acceleration knots modification translating displayed content, pre-set translation number of pixels corresponding to acceleration rate threshold and unit acceleration knots modification, then mobile terminal current acceleration is obtained, and then obtain acceleration knots modification, acceleration knots modification translation number of pixels corresponding with unit acceleration knots modification is done into product calculation and obtains translation number of pixels, according to the display content of translation number of pixels translational movement terminal display screen, without user key-press operation and touch operation, make display content is moved out traditional touch operation and button operation mode, only need whipping mobile phone that translating displayed content can be achieved, and, if browse displays size of contents is more than screen size, then obtaining display content can more facilitate.

Description

Mobile terminal is according to the method and system of acceleration knots modification translating displayed content
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of mobile terminal to put down according to acceleration knots modification Move the method and system of display content.
Background technology
The move mode of mobile terminal display screen display content is roughly divided into two kinds, one is realized by touch operation, The partial content of display content can be blocked when passing through touch operation, influence visual effect, and in touch operation translation display Appearance can not be accurately controlled amount of movement;Another realized by the button operation of external equipment, be by keypad it is upper, Under, left and right navigation key realize that displacement is fixed during navigation, if being needed during long-range navigation by much lower buttons, a side Face can reduce push button longevity, on the other hand be that the operating time, time-consuming.
Therefore, the prior art is defective, has much room for improvement.
The content of the invention
In view of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide a kind of mobile terminal to change according to acceleration The method and system of translating displayed content are measured, a kind of new paragon of translating displayed content is provided for mobile terminal, is pressed without user Key operation and touch operation, only need whipping mobile phone that translating displayed content can be achieved, make the movement of the display content of mobile terminal It is more convenient.
For the above-mentioned purpose, the present invention adopts the following technical scheme that:
A kind of mobile terminal comprises the following steps according to the method for acceleration knots modification translating displayed content:
A, an acceleration rate threshold, and translation number of pixels corresponding to unit acceleration knots modification are pre-set;
B, mobile terminal current acceleration is obtained in real time;
C, judge whether the absolute value of current acceleration is more than acceleration rate threshold, if so, then performing step D;
D, the acceleration knots modification of X axis and/or the acceleration knots modification of Y-axis are obtained, the X axis is parallel to movement To the right, the Y-axis is upward parallel to mobile terminal screen for terminal screen;
E, the acceleration knots modification of X axis translation number of pixels corresponding with unit acceleration knots modification is done into product calculation The translation number of pixels of X axis is obtained, and/or will be translated corresponding to the acceleration knots modification unit acceleration knots modification of Y-axis Number of pixels does the translation number of pixels that product calculation obtains Y-axis;
F, according to the translation number of pixels of X axis and/or the translation number of pixels translating displayed content of Y-axis.
Described mobile terminal according to the method for acceleration knots modification translating displayed content, wherein, the step D is specifically wrapped Include:
If the component of acceleration of the X axis of current acceleration is identical with X axis, and is more than acceleration rate threshold, then obtain in real time X axis acceleration maximum during acceleration change is big, if acceleration switchs to diminish greatly by becoming, acceleration change is obtained in real time X axis acceleration minimum value during small, if acceleration switchs to become big or acceleration is equal to acceleration rate threshold by diminishing, Stop obtaining, and X axis acceleration knots modification is calculated according to X axis acceleration maximum and X axis acceleration minimum value;
If the component of acceleration of the X axis of current acceleration and X axis on the contrary, and less than negative acceleration rate threshold, in real time The X axis acceleration minimum value during acceleration diminishes is obtained, if acceleration switchs to become big by diminishing, obtains accelerate in real time X axis acceleration maximum during degree change is big, if acceleration switchs to diminish greatly by change or acceleration is equal to acceleration threshold Value, then stop obtaining, and X axis acceleration is calculated according to X axis acceleration maximum and X axis acceleration minimum value and changed Amount;
If the component of acceleration of the Y-axis of current acceleration is identical with Y-axis, and is more than acceleration rate threshold, then obtain in real time Y-axis acceleration maximum during acceleration change is big, if acceleration switchs to diminish greatly by becoming, acceleration change is obtained in real time Y-axis acceleration minimum value during small, if acceleration switchs to become big or acceleration is equal to acceleration rate threshold by diminishing, Stop obtaining, and Y-axis acceleration knots modification is calculated according to Y-axis acceleration maximum and Y-axis acceleration minimum value;
If the component of acceleration of the Y-axis of current acceleration and Y-axis on the contrary, and less than negative acceleration rate threshold, in real time The Y-axis acceleration minimum value during acceleration diminishes is obtained, if acceleration switchs to become big by diminishing, obtains accelerate in real time Y-axis acceleration maximum during degree change is big, if acceleration switchs to diminish greatly by change or acceleration is equal to acceleration threshold Value, then stop obtaining, and Y-axis acceleration is calculated according to Y-axis acceleration maximum and Y-axis acceleration minimum value and changed Amount.
Described mobile terminal according to the method for acceleration knots modification translating displayed content, wherein, wrapped before the step F Include:
By the translation number of pixels of the translation number of pixels of X axis and/or Y-axis and a maximal translation picture pre-set Plain number compares, if the translation number of pixels of the translation number of pixels of X axis and/or Y-axis is more than maximal translation number of pixels, The translation number of pixels of X axis and/or the translation number of pixels of Y-axis is then made to be equal to maximal translation number of pixels.
Described mobile terminal according to the method for acceleration knots modification translating displayed content, wherein, it is described to pre-set Maximal translation number of pixels includes X-axis maximal translation number of pixels and Y-axis maximal translation number of pixels, wherein, the X-axis is maximum The number of pixels that translation number of pixels is accommodated by mobile terminal display screen width value, the Y-axis maximal translation number of pixels are Mobile terminal shows the number of pixels that height value is accommodated;
Translation number of pixels is divided into corresponding to X axis unit acceleration knots modification corresponding to the unit acceleration knots modification Translate translation number of pixels, X axis unit acceleration knots modification pair corresponding to number of pixels and Y-axis unit acceleration knots modification The translation number of pixels answered is equal to translation number of pixels corresponding to Y-axis unit acceleration knots modification.
Described mobile terminal according to the method for acceleration knots modification translating displayed content, wherein, the step F is specifically wrapped Include:
If the current acceleration is identical with X axis, translates and show along X axis according to the translation number of pixels of X axis Content;
If the current acceleration with X axis on the contrary, if put down according to the translation number of pixels of X axis along X axis opposite direction Move display content;
If the current acceleration is identical with Y-axis, translates and show along X axis according to the translation number of pixels of Y-axis Content;
If the current acceleration with Y-axis on the contrary, if put down according to the translation number of pixels of Y-axis along X axis opposite direction Move display content.
A kind of system present invention also offers mobile terminal according to acceleration knots modification translating displayed content, including:
Memory module, for pre-setting an acceleration rate threshold, and translation pixel corresponding to unit acceleration knots modification Number;
Judge module, for judging whether the absolute value of current acceleration is more than acceleration rate threshold;
Acceleration acquisition module, for obtaining mobile terminal current acceleration in real time;
Knots modification acquisition module, for obtaining the acceleration knots modification of X axis and/or the acceleration knots modification of Y-axis, institute X axis is stated parallel to mobile terminal screen to the right, the Y-axis is upward parallel to mobile terminal screen;
Computing module, for the acceleration knots modification of X axis translation pixel corresponding with unit acceleration knots modification is individual Number does the translation number of pixels that product calculation obtains X axis, and/or the acceleration knots modification unit acceleration of Y-axis is changed Translation number of pixels does the translation number of pixels that product calculation obtains Y-axis corresponding to amount;
Translation module, translate and show for the translation number of pixels of the translation number of pixels according to X axis and/or Y-axis Content.
Described mobile terminal according to the system of acceleration knots modification translating displayed content, wherein, the knots modification obtains Module,
If the component of acceleration for the X axis of current acceleration is identical with X axis, and is more than acceleration rate threshold, then in real time The X axis acceleration maximum during acceleration becomes big is obtained, if acceleration switchs to diminish greatly by becoming, obtains accelerate in real time Degree diminish during X axis acceleration minimum value, if acceleration switchs to become big or acceleration is equal to acceleration threshold by diminishing Value, then stop obtaining, and X axis acceleration is calculated according to X axis acceleration maximum and X axis acceleration minimum value and changed Amount;
If for the X axis of current acceleration the component of acceleration and X axis on the contrary, and less than negative acceleration rate threshold, The X axis acceleration minimum value during acceleration diminishes is obtained in real time, if acceleration switchs to become big by diminishing, is obtained in real time X axis acceleration maximum during acceleration change is big, if acceleration switchs to diminish greatly by change or acceleration is equal to acceleration Threshold value is spent, then stops obtaining, and X axis acceleration is calculated according to X axis acceleration maximum and X axis acceleration minimum value and changed Variable;
If the component of acceleration for the Y-axis of current acceleration is identical with Y-axis, and is more than acceleration rate threshold, then in real time The Y-axis acceleration maximum during acceleration becomes big is obtained, if acceleration switchs to diminish greatly by becoming, obtains accelerate in real time Degree diminish during Y-axis acceleration minimum value, if acceleration switchs to become big or acceleration is equal to acceleration threshold by diminishing Value, then stop obtaining, and Y-axis acceleration is calculated according to Y-axis acceleration maximum and Y-axis acceleration minimum value and changed Amount;
If for the Y-axis of current acceleration the component of acceleration and Y-axis on the contrary, and less than negative acceleration rate threshold, The Y-axis acceleration minimum value during acceleration diminishes is obtained in real time, if acceleration switchs to become big by diminishing, is obtained in real time Y-axis acceleration maximum during acceleration change is big, if acceleration switchs to diminish greatly by change or acceleration is equal to acceleration Threshold value is spent, then stops obtaining, and Y-axis acceleration is calculated according to Y-axis acceleration maximum and Y-axis acceleration minimum value and changed Variable.
Described mobile terminal according to the system of acceleration knots modification translating displayed content, wherein, in addition to:
Comparison module, for the translation number of pixels of the translation number of pixels of X axis and/or Y-axis to be set in advance with one The maximal translation number of pixels put compares, if the translation number of pixels of the translation number of pixels of X axis and/or Y-axis is more than most Big translation number of pixels, then make the translation number of pixels of X axis and/or the translation number of pixels of Y-axis be equal to maximal translation picture Plain number.
Described mobile terminal according to the system of acceleration knots modification translating displayed content, wherein, it is described to pre-set Maximal translation number of pixels includes X-axis maximal translation number of pixels and Y-axis maximal translation number of pixels, wherein, the X-axis is maximum The number of pixels that translation number of pixels is accommodated by mobile terminal display screen width value, the Y-axis maximal translation number of pixels are Mobile terminal shows the number of pixels that height value is accommodated;
Translation number of pixels is divided into corresponding to X axis unit acceleration knots modification corresponding to the unit acceleration knots modification Translate translation number of pixels, X axis unit acceleration knots modification pair corresponding to number of pixels and Y-axis unit acceleration knots modification The translation number of pixels answered is equal to translation number of pixels corresponding to Y-axis unit acceleration knots modification.
Described mobile terminal according to the system of acceleration knots modification translating displayed content, wherein, the translation module
If identical with X axis for the current acceleration, translated according to the translation number of pixels of X axis along X axis Display content;
For if the current acceleration and X axis on the contrary, if according to the translation number of pixels of X axis along X axis negative side To translating displayed content;
If identical with Y-axis for the current acceleration, translated according to the translation number of pixels of Y-axis along X axis Display content;
For if the current acceleration and Y-axis on the contrary, if according to the translation number of pixels of Y-axis along X axis negative side To translating displayed content.
A kind of mobile terminal provided by the present invention leads to according to the method and system of acceleration knots modification translating displayed content The display content for obtaining acceleration knots modification translational movement terminal display screen is crossed, mobile terminal New function is added, without user Button operation and touch operation, only need whipping mobile phone that translating displayed content can be achieved, make the shifting of the display content of mobile terminal It is dynamic more convenient.
Brief description of the drawings
Fig. 1 is method flow diagram of the mobile terminal of the present invention according to acceleration knots modification translating displayed content.
Fig. 2 is system construction drawing of the mobile terminal of the present invention according to acceleration knots modification translating displayed content.
Fig. 3 is the X/Y coordinate system schematic diagrames defined in the mobile terminal described in one embodiment of the invention.
Fig. 4 is the flow chart of the acquisition X axis acceleration knots modification described in one embodiment of the invention.
Fig. 5 is the front and rear comparison diagram of the mobile terminal translating displayed content described in one embodiment of the invention.
Fig. 6 is the display content mobile route schematic diagram described in one embodiment of the invention.
Embodiment
The present invention provides a kind of method and system of mobile terminal according to acceleration knots modification translating displayed content, to make this The purpose of invention, technical scheme and effect are clearer, clear and definite, referring to the drawings and give an actual example to of the invention further detailed Explanation.It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
Fig. 1 is referred to, Fig. 1 is method of the mobile terminal of the present invention according to acceleration knots modification translating displayed content Flow chart.As shown in figure 1, mobile terminal of the present invention according to the method for acceleration knots modification translating displayed content include with Lower step:
101st, an acceleration rate threshold, and translation number of pixels corresponding to unit acceleration knots modification are pre-set;Acceleration Threshold value is fixed an acceleration magnitude, such as 2g, 3g, 2m/s2, 3m/s2, as start translating displayed content function standard, according to The situation of user's whipping mobile terminal, preferably, the acceleration rate threshold is 2g, g is acceleration of gravity.Unit acceleration changes Translation number of pixels refers to the translation number of pixels of mobile terminal translating displayed content during an acceleration corresponding to amount, in other words Say, exactly translate ratio of the number of pixels with corresponding acceleration knots modification, it can be seen that, corresponding to unit acceleration knots modification Translation number of pixels can also in a disguised form be arranged to translate number of pixels and acceleration knots modification corresponding with translation number of pixels, It is 500 such as to set maximal translation number of pixels in mobile terminal, and acceleration knots modification corresponding with 500 is 20 m/s2, then unit 25/m/s of translation number of pixels corresponding to acceleration knots modification2.Translation pixel corresponding to the unit acceleration knots modification Number, which is divided into corresponding to translation number of pixels corresponding to X axis unit acceleration knots modification and Y-axis unit acceleration knots modification, puts down Number of pixels is moved, translation number of pixels is equal to Y-axis unit acceleration knots modification pair corresponding to X axis unit acceleration knots modification The translation number of pixels answered.
102nd, mobile terminal current acceleration is obtained in real time;Acceleration transducer is provided with mobile terminal, can be felt in real time Should before mobile terminal acceleration, the technology is prior art, is repeated no more.
103rd, judge whether the absolute value of current acceleration is more than acceleration rate threshold, if so, then performing step 104;If it is not, Then continue to judge whether the absolute value of current acceleration is more than acceleration rate threshold.
104th, the acceleration knots modification of X axis and/or the acceleration knots modification of Y-axis are obtained, the X axis is parallel to shifting To the right, the Y-axis is upward parallel to mobile terminal screen for dynamic terminal screen.
The acceleration knots modification for obtaining X axis specifically includes:If the component of acceleration and X axis of the X axis of current acceleration It is identical, and be more than acceleration rate threshold, then the X axis acceleration maximum during acceleration becomes big is obtained in real time, if acceleration Switch to diminish greatly by becoming, then the X axis acceleration minimum value during acceleration diminishes is obtained in real time, if acceleration is turned by diminishing To become big or acceleration is equal to acceleration rate threshold, then stop obtaining, and according to X axis acceleration maximum and X axis acceleration Spend minimum value and calculate X axis acceleration knots modification;If the component of acceleration of the X axis of current acceleration is with X axis on the contrary, and being less than Negative acceleration rate threshold, then the X axis acceleration minimum value during acceleration diminishes is obtained in real time, if acceleration is turned by diminishing It is big to become, then obtain the X axis acceleration maximum during acceleration becomes big in real time, if acceleration by become it is big switch to diminish or Person's acceleration is equal to acceleration rate threshold, then stops obtaining, and according to X axis acceleration maximum and X axis acceleration minimum value Calculate X axis acceleration knots modification.The acquisition process of X axis acceleration knots modification, refers to Fig. 4.Fig. 4 is that the present invention one is implemented The flow chart of acquisition X axis acceleration knots modification described in example.As shown in figure 4, X axis acceleration knots modification is obtained including following Step:
Step S101, the acceleration magnitude x in X-axis is obtained;Obtain component of acceleration x of the total acceleration in X-axis.
Step S102, x and Xth size are compared, when x then performs step S103 more than Xth, when x then performs less than-Xth Step S108, step S101 is performed during other situations;Xth is the acceleration rate threshold pre-set.
Step S103, x values are assigned to x1, obtain the acceleration magnitude x in X-axis;
Step S104, judge whether x is more than or equal to x1, if it is perform step S103, otherwise perform step S105;
Step S105, x values are assigned to x2, obtain the acceleration magnitude x in X-axis;
Step S106, judge x whether meet x be less than or equal to x2 and | x2 | more than Xth, if it is perform step S105, otherwise perform step S107;
Step S107, number XP=XPM* that pixel is translated in X-axis is calculated | x1-x2 |/XM, direction are X-axis positive direction, its In, XP is translation number of pixels, and XPM is maximal translation number of pixels, and XM is peak acceleration knots modification corresponding with XPM;
Step S108, x values are assigned to x1, obtain the acceleration magnitude x in X-axis;
Step S109, judge whether x is less than or equal to x1, if it is perform step S108, otherwise perform step S110;
Step S110, x values are assigned to x2, obtain the acceleration magnitude x in X-axis;
Step S111, judge x whether meet x be more than or equal to x2 and | x2 | more than Xth, if it is perform step S110, otherwise perform step S112;
Step S112, number XP=XPM* that pixel is translated in X-axis is calculated | x1-x2 |/XM, direction are X-axis negative direction, its In, XP is translation number of pixels, and XPM is maximal translation number of pixels, and XM is peak acceleration knots modification corresponding with XPM.
Wherein, in the step S107, step S112, XPM is maximal translation number of pixels, and XM is setting | x1-x2 | Maximum, if in step S107, step S112 | x1-x2 | more than XM, XP=XPM.
The acceleration knots modification for obtaining Y-axis specifically includes:If the component of acceleration and Y-axis of the Y-axis of current acceleration It is identical, and be more than acceleration rate threshold, then the Y-axis acceleration maximum during acceleration becomes big is obtained in real time, if acceleration Switch to diminish greatly by becoming, then the Y-axis acceleration minimum value during acceleration diminishes is obtained in real time, if acceleration is turned by diminishing To become big or acceleration is equal to acceleration rate threshold, then stop obtaining, and according to Y-axis acceleration maximum and Y-axis acceleration Spend minimum value and calculate Y-axis acceleration knots modification;If the component of acceleration of the Y-axis of current acceleration is with Y-axis on the contrary, and being less than Negative acceleration rate threshold, then the Y-axis acceleration minimum value during acceleration diminishes is obtained in real time, if acceleration is turned by diminishing It is big to become, then obtain the Y-axis acceleration maximum during acceleration becomes big in real time, if acceleration by become it is big switch to diminish or Person's acceleration is equal to acceleration rate threshold, then stops obtaining, and according to Y-axis acceleration maximum and Y-axis acceleration minimum value Calculate Y-axis acceleration knots modification.Y-axis acceleration knots modification is obtained as the process for obtaining X axis acceleration knots modification, It will not be repeated here.
Definition has X/Y coordinate systems in mobile terminal, specifically refers to Fig. 3, Fig. 3 is the movement described in one embodiment of the invention The X/Y coordinate system schematic diagrames defined in terminal.As shown in figure 3, mobile terminal 301 is provided with acceleration transducer 302, based on shifting The front view of dynamic terminal, is defined as follows to X/Y coordinate systems:The X axis parallel to mobile terminal screen to the right, the Y-axis It is upward parallel to mobile terminal screen.
105th, the acceleration knots modification of X axis translation number of pixels corresponding with unit acceleration knots modification is done into product fortune The translation number of pixels for obtaining X axis is calculated, and/or will be put down corresponding to the acceleration knots modification unit acceleration knots modification of Y-axis Move number of pixels and do the translation number of pixels that product calculation obtains Y-axis.If the acceleration knots modification of X axis is Z, unit accelerates It is P to spend translation number of pixels corresponding to knots modification, then translation number of pixels=Z*P of X axis;The acceleration of Y-axis changes gauge Calculate identical with the acceleration knots modification of X axis.Need explanation a bit, if be provided that some movement number of pixels with it is corresponding Acceleration knots modification, it is F as some moves number of pixels, corresponding acceleration knots modification is T, and the acceleration knots modification of acquisition is L, then translate number of pixels=F*L/T.
106th, according to the translation number of pixels of X axis and/or the translation number of pixels translating displayed content of Y-axis.Display The movement of content is prior art, be will not be repeated here.If the it should be noted that only X axis translation pixel obtained Number, then only moved in X-axis;If the only Y-axis translation number of pixels obtained, is only moved in Y-axis;If obtain simultaneously X axis translation number of pixels and Y-axis translation number of pixels have been taken, then can first move in X-axis, then be moved again in Y-axis, Certainly, in turn also can, number of pixels and X axis can also be translated according to Y-axis translate number of pixels ratio and move, such as Shown in Fig. 6.Fig. 6 is the display content mobile route schematic diagram described in one embodiment of the invention, as shown in fig. 6,601 be Y-axis Number of pixels is translated, 603 be that X axis translates number of pixels, in X/Y coordinate systems, if coordinate points J X-coordinate translates for X axis Number of pixels, Y-coordinate be Y-axis translate number of pixels, then certainly existed in X/Y coordinate systems for J points, by J coordinate points With origin of coordinates line, a line segment 603 is necessarily formed, the motion track that can be each put using line segment 603 as display content is i.e. Display content can be made to translate number of pixels according to Y-axis to move with X axis translation number of pixels ratio.
Mobile terminal as described above is according to the method for acceleration knots modification translating displayed content, by obtaining acceleration, Acceleration knots modification is further obtained, according to acceleration knots modification translating displayed content, makes user can be by whipping mobile terminal The translation of display content is realized, make display content is moved out traditional touch operation and button operation mode, if also, clear Display content size of looking at is more than screen size, then obtaining display content can more facilitate.
To make the application of greater clarity, Fig. 5 is referred to.Fig. 5 is that the mobile terminal described in one embodiment of the invention is put down The front and rear comparison diagram of display content is moved, as shown in figure 5,502 be mobile terminal display screen, 501 be the boundary before display content movement Face, described display content include the content of display screen display content and display screen without display, and 503 be after display content moves Interface, 505 be distance corresponding to translation number of pixels of the display content in X axis, and 504 be display content in the flat of Y-axis Move distance corresponding to number of pixels.
Described mobile terminal is according to the method for acceleration knots modification translating displayed content, it is preferred that the step 106 it Before include:By the translation number of pixels of the translation number of pixels of X axis and/or Y-axis and a maximal translation picture pre-set Plain number compares, if the translation number of pixels of the translation number of pixels of X axis and/or Y-axis is more than maximal translation number of pixels, The translation number of pixels of X axis and/or the translation number of pixels of Y-axis is then made to be equal to maximal translation number of pixels.Mobile terminal Display screen display content is limited, if by the excessive of display content movement, the adjacent display content of display screen twice may not In the presence of common factor, such user can not just obtain the content between display screen display content twice.To ensure that user can be all interior Hold, there is provided maximal translation number of pixels, as detailed above.
Described mobile terminal is according to the method for acceleration knots modification translating displayed content, it is preferred that described to pre-set Maximal translation number of pixels include X-axis maximal translation number of pixels and Y-axis maximal translation number of pixels, wherein, the X-axis is most The number of pixels that big translation number of pixels is accommodated by mobile terminal display screen width value, the Y-axis maximal translation number of pixels The number of pixels accommodated by mobile terminal display height value;It is not both that the X-axis maximal translation number of pixels is shifting with above-mentioned The number of pixels that dynamic terminal display screen width value is accommodated, the Y-axis maximal translation number of pixels are mobile terminal display height The number of pixels that value is accommodated.In other words, distance corresponding to the mobile number of pixels of maximum in the X-axis is equal to mobile terminal Display screen width value, distance corresponding to the mobile number of pixels of maximum in Y-axis are equal to mobile terminal display screen height value.
Described mobile terminal is according to the method for acceleration knots modification translating displayed content, it is preferred that the step 106 has Body includes:If the current acceleration is identical with X axis, according to the translation number of pixels of X axis along X axis translation display Hold;If the current acceleration and X axis on the contrary, if translate and show along X axis opposite direction according to the translation number of pixels of X axis Content;If the current acceleration is identical with Y-axis, according to the translation number of pixels of Y-axis along X axis translation display Hold;If the current acceleration and Y-axis on the contrary, if translate and show along X axis opposite direction according to the translation number of pixels of Y-axis Content.For example existing touch operation of mode of display content movement is identical, does not change user's custom.
Fig. 2 is referred to, Fig. 2 is system of the mobile terminal of the present invention according to acceleration knots modification translating displayed content Structure chart.As shown in Fig. 2 mobile terminal of the present invention includes according to the system of acceleration knots modification translating displayed content:
Memory module 201, for pre-setting an acceleration rate threshold, and translation pixel corresponding to unit acceleration knots modification Number, as detailed above;
Judge module 202, for judging whether the absolute value of current acceleration is more than acceleration rate threshold, specific as above institute State;
Acceleration acquisition module 203, for obtaining mobile terminal current acceleration in real time, as detailed above;
Knots modification acquisition module 204, change for obtaining the acceleration knots modification of X axis and/or the acceleration of Y-axis Amount, parallel to mobile terminal screen to the right, the Y-axis is upward parallel to mobile terminal screen for the X axis, specifically as above institute State;
Computing module 205, for translating pixel by the acceleration knots modification of X axis is corresponding with unit acceleration knots modification Number does product calculation and obtains the translation number of pixels of X axis, and/or the acceleration knots modification unit acceleration of Y-axis is changed Translation number of pixels does the translation number of pixels that product calculation obtains Y-axis corresponding to variable;, as detailed above
Translation module 206, it is aobvious for the translation of the translation number of pixels of the translation number of pixels according to X axis and/or Y-axis Show content, as detailed above.
Described mobile terminal is according to the system of acceleration knots modification translating displayed content, it is preferred that the knots modification obtains Modulus block, as detailed above,
If the component of acceleration for the X axis of current acceleration is identical with X axis, and is more than acceleration rate threshold, then in real time The X axis acceleration maximum during acceleration becomes big is obtained, if acceleration switchs to diminish greatly by becoming, obtains accelerate in real time Degree diminish during X axis acceleration minimum value, if acceleration switchs to become big or acceleration is equal to acceleration threshold by diminishing Value, then stop obtaining, and X axis acceleration is calculated according to X axis acceleration maximum and X axis acceleration minimum value and changed Amount, as detailed above;
If for the X axis of current acceleration the component of acceleration and X axis on the contrary, and less than negative acceleration rate threshold, The X axis acceleration minimum value during acceleration diminishes is obtained in real time, if acceleration switchs to become big by diminishing, is obtained in real time X axis acceleration maximum during acceleration change is big, if acceleration switchs to diminish greatly by change or acceleration is equal to acceleration Threshold value is spent, then stops obtaining, and X axis acceleration is calculated according to X axis acceleration maximum and X axis acceleration minimum value and changed Variable, as detailed above;
If the component of acceleration for the Y-axis of current acceleration is identical with Y-axis, and is more than acceleration rate threshold, then in real time The Y-axis acceleration maximum during acceleration becomes big is obtained, if acceleration switchs to diminish greatly by becoming, obtains accelerate in real time Degree diminish during Y-axis acceleration minimum value, if acceleration switchs to become big or acceleration is equal to acceleration threshold by diminishing Value, then stop obtaining, and Y-axis acceleration is calculated according to Y-axis acceleration maximum and Y-axis acceleration minimum value and changed Amount, as detailed above;
If for the Y-axis of current acceleration the component of acceleration and Y-axis on the contrary, and less than negative acceleration rate threshold, The Y-axis acceleration minimum value during acceleration diminishes is obtained in real time, if acceleration switchs to become big by diminishing, is obtained in real time Y-axis acceleration maximum during acceleration change is big, if acceleration switchs to diminish greatly by change or acceleration is equal to acceleration Threshold value is spent, then stops obtaining, and Y-axis acceleration is calculated according to Y-axis acceleration maximum and Y-axis acceleration minimum value and changed Variable, as detailed above.
Described mobile terminal is according to the system of acceleration knots modification translating displayed content, it is preferred that also includes:Compare mould Block, for by the translation number of pixels of the translation number of pixels of X axis and/or Y-axis and a maximal translation picture pre-set Plain number compares, if the translation number of pixels of the translation number of pixels of X axis and/or Y-axis is more than maximal translation number of pixels, The translation number of pixels of X axis and/or the translation number of pixels of Y-axis is then made to be equal to maximal translation number of pixels, specifically as above It is described.
Described mobile terminal is according to the system of acceleration knots modification translating displayed content, it is preferred that described to pre-set Maximal translation number of pixels include X-axis maximal translation number of pixels and Y-axis maximal translation number of pixels, wherein, the X-axis is most The number of pixels that big translation number of pixels is accommodated by mobile terminal display screen width value, the Y-axis maximal translation number of pixels The number of pixels accommodated by mobile terminal display height value, as detailed above;
Translation number of pixels is divided into corresponding to X axis unit acceleration knots modification corresponding to the unit acceleration knots modification Translate translation number of pixels, X axis unit acceleration knots modification pair corresponding to number of pixels and Y-axis unit acceleration knots modification The translation number of pixels answered is equal to translation number of pixels corresponding to Y-axis unit acceleration knots modification, as detailed above.
Described mobile terminal is according to the system of acceleration knots modification translating displayed content, it is preferred that the translation module If identical with X axis for the current acceleration, according to the translation number of pixels of X axis along X axis translating displayed content; For if the current acceleration and X axis on the contrary, if translate along X axis opposite direction according to the translation number of pixels of X axis it is aobvious Show content;If identical with Y-axis for the current acceleration, translate and show along X axis according to the translation number of pixels of Y-axis Show content;For if the current acceleration and Y-axis on the contrary, if according to the translation number of pixels of Y-axis along X axis opposite direction Translating displayed content, as detailed above.
In summary, a kind of mobile terminal provided by the present invention is according to the method for acceleration knots modification translating displayed content And system, by obtaining the display content of acceleration knots modification translational movement terminal display screen, mobile terminal New function is added, Without user key-press operation and touch operation, only need whipping mobile phone that translating displayed content can be achieved, make the display of mobile terminal The movement of content is more convenient.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention Protect scope.

Claims (4)

1. a kind of mobile terminal is according to the method for acceleration knots modification translating displayed content, it is characterised in that comprises the following steps:
A, an acceleration rate threshold, and translation number of pixels corresponding to unit acceleration knots modification are pre-set;
B, mobile terminal current acceleration is obtained in real time;
C, judge whether the absolute value of current acceleration is more than acceleration rate threshold, if so, then performing step D;
D, the acceleration knots modification of X axis and/or the acceleration knots modification of Y-axis are obtained, the X axis is parallel to mobile terminal To the right, the Y-axis is upward parallel to mobile terminal screen for screen;
E, the acceleration knots modification of X axis translation number of pixels corresponding with unit acceleration knots modification is done into product calculation acquisition The translation number of pixels of X axis, and/or pixel will be translated corresponding to the acceleration knots modification unit acceleration knots modification of Y-axis Number does the translation number of pixels that product calculation obtains Y-axis;
F, according to the translation number of pixels of X axis and/or the translation number of pixels translating displayed content of Y-axis;
Translation number of pixels corresponding to the unit acceleration knots modification, refer to that translate number of pixels changes with corresponding acceleration The ratio of variable;
Include before the step F:
By the translation number of pixels of the translation number of pixels of X axis and/or Y-axis and a maximal translation pixel pre-set Number compares, if the translation number of pixels of the translation number of pixels of X axis and/or Y-axis is more than maximal translation number of pixels, makes The translation number of pixels of X axis and/or the translation number of pixels of Y-axis are equal to maximal translation number of pixels;
The step D is specifically included:
If the component of acceleration of the X axis of current acceleration is identical with X axis, and is more than acceleration rate threshold, then obtains and accelerate in real time X axis acceleration maximum during degree change is big, if acceleration switchs to diminish greatly by becoming, acceleration is obtained in real time and was diminished X axis acceleration minimum value in journey, if acceleration switchs to become big or acceleration is equal to acceleration rate threshold by diminishing, stop Obtain, and X axis acceleration knots modification is calculated according to X axis acceleration maximum and X axis acceleration minimum value;
If the component of acceleration of the X axis of current acceleration is with X axis on the contrary, and less than negative acceleration rate threshold, in real time acquisition Acceleration diminish during X axis acceleration minimum value, if acceleration switchs to become big by diminishing, obtain acceleration in real time and become X axis acceleration maximum during big, if acceleration switchs to diminish greatly by change or acceleration is equal to acceleration rate threshold, Stop obtaining, and X axis acceleration knots modification is calculated according to X axis acceleration maximum and X axis acceleration minimum value;
If the component of acceleration of the Y-axis of current acceleration is identical with Y-axis, and is more than acceleration rate threshold, then obtains and accelerate in real time Y-axis acceleration maximum during degree change is big, if acceleration switchs to diminish greatly by becoming, acceleration is obtained in real time and was diminished Y-axis acceleration minimum value in journey, if acceleration switchs to become big or acceleration is equal to acceleration rate threshold by diminishing, stop Obtain, and Y-axis acceleration knots modification is calculated according to Y-axis acceleration maximum and Y-axis acceleration minimum value;
If the component of acceleration of the Y-axis of current acceleration is with Y-axis on the contrary, and less than negative acceleration rate threshold, in real time acquisition Acceleration diminish during Y-axis acceleration minimum value, if acceleration switchs to become big by diminishing, obtain acceleration in real time and become Y-axis acceleration maximum during big, if acceleration switchs to diminish greatly by change or acceleration is equal to acceleration rate threshold, Stop obtaining, and Y-axis acceleration knots modification is calculated according to Y-axis acceleration maximum and Y-axis acceleration minimum value;
The step F is specifically included:
If the current acceleration is identical with X axis, according to the translation number of pixels of X axis along X axis translating displayed content;
If the current acceleration and X axis on the contrary, if translated according to the translation number of pixels of X axis along X axis opposite direction it is aobvious Show content;
If the current acceleration is identical with Y-axis, according to the translation number of pixels of Y-axis along X axis translating displayed content;
If the current acceleration and Y-axis on the contrary, if translated according to the translation number of pixels of Y-axis along X axis opposite direction it is aobvious Show content.
2. mobile terminal according to claim 1 exists according to the method for acceleration knots modification translating displayed content, its feature In the maximal translation number of pixels pre-set includes X-axis maximal translation number of pixels and Y-axis maximal translation pixel Number, wherein, the number of pixels that the X-axis maximal translation number of pixels is accommodated by mobile terminal display screen width value, the Y-axis The number of pixels that maximal translation number of pixels is accommodated by mobile terminal display height value;
Translation number of pixels is divided into corresponding to X axis unit acceleration knots modification and translated corresponding to the unit acceleration knots modification Translation number of pixels corresponding to number of pixels and Y-axis unit acceleration knots modification, corresponding to X axis unit acceleration knots modification Translate number of pixels and be equal to translation number of pixels corresponding to Y-axis unit acceleration knots modification.
3. a kind of mobile terminal is according to the system of acceleration knots modification translating displayed content, it is characterised in that including:
Memory module, for pre-setting an acceleration rate threshold, and translation number of pixels corresponding to unit acceleration knots modification;
Judge module, for judging whether the absolute value of current acceleration is more than acceleration rate threshold;
Acceleration acquisition module, for obtaining mobile terminal current acceleration in real time;
Knots modification acquisition module, for obtaining the acceleration knots modification of X axis and/or the acceleration knots modification of Y-axis, the X It is axially parallel to mobile terminal screen to the right, the Y-axis is upward parallel to mobile terminal screen;
Computing module, for the acceleration knots modification of X axis translation number of pixels corresponding with unit acceleration knots modification to be done Product calculation obtains the translation number of pixels of X axis, and/or the acceleration knots modification unit acceleration knots modification pair by Y-axis The translation number of pixels answered does the translation number of pixels that product calculation obtains Y-axis;
Translation module, the translation number of pixels translating displayed content for the translation number of pixels according to X axis and/or Y-axis;
Translation number of pixels corresponding to the unit acceleration knots modification, refer to that translate number of pixels changes with corresponding acceleration The ratio of variable;
Comparison module, for pre-set the translation number of pixels of the translation number of pixels of X axis and/or Y-axis with one Maximal translation number of pixels compares, if the translation number of pixels of the translation number of pixels of X axis and/or Y-axis is more than maximum put down Number of pixels is moved, then makes the translation number of pixels of X axis and/or the translation number of pixels of Y-axis be equal to maximal translation pixel Number;
The knots modification acquisition module,
If the component of acceleration for the X axis of current acceleration is identical with X axis, and is more than acceleration rate threshold, then obtain in real time X axis acceleration maximum during acceleration change is big, if acceleration switchs to diminish greatly by becoming, acceleration change is obtained in real time X axis acceleration minimum value during small, if acceleration switchs to become big or acceleration is equal to acceleration rate threshold by diminishing, Stop obtaining, and X axis acceleration knots modification is calculated according to X axis acceleration maximum and X axis acceleration minimum value;
If for the X axis of current acceleration the component of acceleration and X axis on the contrary, and less than negative acceleration rate threshold, in real time The X axis acceleration minimum value during acceleration diminishes is obtained, if acceleration switchs to become big by diminishing, obtains accelerate in real time X axis acceleration maximum during degree change is big, if acceleration switchs to diminish greatly by change or acceleration is equal to acceleration threshold Value, then stop obtaining, and X axis acceleration is calculated according to X axis acceleration maximum and X axis acceleration minimum value and changed Amount;
If the component of acceleration for the Y-axis of current acceleration is identical with Y-axis, and is more than acceleration rate threshold, then obtain in real time Y-axis acceleration maximum during acceleration change is big, if acceleration switchs to diminish greatly by becoming, acceleration change is obtained in real time Y-axis acceleration minimum value during small, if acceleration switchs to become big or acceleration is equal to acceleration rate threshold by diminishing, Stop obtaining, and Y-axis acceleration knots modification is calculated according to Y-axis acceleration maximum and Y-axis acceleration minimum value;
If for the Y-axis of current acceleration the component of acceleration and Y-axis on the contrary, and less than negative acceleration rate threshold, in real time The Y-axis acceleration minimum value during acceleration diminishes is obtained, if acceleration switchs to become big by diminishing, obtains accelerate in real time Y-axis acceleration maximum during degree change is big, if acceleration switchs to diminish greatly by change or acceleration is equal to acceleration threshold Value, then stop obtaining, and Y-axis acceleration is calculated according to Y-axis acceleration maximum and Y-axis acceleration minimum value and changed Amount;
The translation module
If identical with X axis for the current acceleration, translate and show along X axis according to the translation number of pixels of X axis Content;
For if the current acceleration with X axis on the contrary, if put down along X axis opposite direction according to the translation number of pixels of X axis Move display content;
If identical with Y-axis for the current acceleration, translate and show along X axis according to the translation number of pixels of Y-axis Content;
For if the current acceleration with Y-axis on the contrary, if put down along X axis opposite direction according to the translation number of pixels of Y-axis Move display content.
4. mobile terminal according to claim 3 exists according to the system of acceleration knots modification translating displayed content, its feature In the maximal translation number of pixels pre-set includes X-axis maximal translation number of pixels and Y-axis maximal translation pixel Number, wherein, the number of pixels that the X-axis maximal translation number of pixels is accommodated by mobile terminal display screen width value, the Y-axis The number of pixels that maximal translation number of pixels is accommodated by mobile terminal display height value;
Translation number of pixels is divided into corresponding to X axis unit acceleration knots modification and translated corresponding to the unit acceleration knots modification Translation number of pixels corresponding to number of pixels and Y-axis unit acceleration knots modification, corresponding to X axis unit acceleration knots modification Translate number of pixels and be equal to translation number of pixels corresponding to Y-axis unit acceleration knots modification.
CN201410285440.6A 2014-06-24 2014-06-24 Mobile terminal is according to the method and system of acceleration knots modification translating displayed content Active CN104090719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410285440.6A CN104090719B (en) 2014-06-24 2014-06-24 Mobile terminal is according to the method and system of acceleration knots modification translating displayed content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410285440.6A CN104090719B (en) 2014-06-24 2014-06-24 Mobile terminal is according to the method and system of acceleration knots modification translating displayed content

Publications (2)

Publication Number Publication Date
CN104090719A CN104090719A (en) 2014-10-08
CN104090719B true CN104090719B (en) 2017-12-12

Family

ID=51638439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410285440.6A Active CN104090719B (en) 2014-06-24 2014-06-24 Mobile terminal is according to the method and system of acceleration knots modification translating displayed content

Country Status (1)

Country Link
CN (1) CN104090719B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636040B (en) * 2015-02-05 2017-12-12 惠州Tcl移动通信有限公司 A kind of image display processing method and device
US10235035B2 (en) * 2015-08-10 2019-03-19 Apple Inc. Devices, methods, and graphical user interfaces for content navigation and manipulation
CN105549762B (en) * 2015-08-27 2019-06-11 宇龙计算机通信科技(深圳)有限公司 A kind of suspension key moving method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004657A (en) * 2006-01-19 2007-07-25 宏达国际电子股份有限公司 Intuition type screen controller
TW200934212A (en) * 2008-01-16 2009-08-01 Asustek Comp Inc Mobile digital device with intuitive browsing and operating method thereof
CN101996021A (en) * 2009-08-12 2011-03-30 幻音科技(深圳)有限公司 Handheld electronic equipment and method for controlling display contents thereby
CN102141846A (en) * 2011-03-09 2011-08-03 中兴通讯股份有限公司 Method for intuitively browsing contents and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004657A (en) * 2006-01-19 2007-07-25 宏达国际电子股份有限公司 Intuition type screen controller
TW200934212A (en) * 2008-01-16 2009-08-01 Asustek Comp Inc Mobile digital device with intuitive browsing and operating method thereof
CN101996021A (en) * 2009-08-12 2011-03-30 幻音科技(深圳)有限公司 Handheld electronic equipment and method for controlling display contents thereby
CN102141846A (en) * 2011-03-09 2011-08-03 中兴通讯股份有限公司 Method for intuitively browsing contents and mobile terminal

Also Published As

Publication number Publication date
CN104090719A (en) 2014-10-08

Similar Documents

Publication Publication Date Title
US9288373B2 (en) System and method for human computer interaction
CN104199550B (en) Virtual keyboard operation device, system and method
CN104142798A (en) Application start method and intelligent terminal equipment provided with touch screen
JP2012238124A (en) Electronic apparatus, control method and control program
EP2141582A3 (en) Character input method of mobile terminal
CN104360816A (en) Screen capture method and system
CN103324419B (en) Determine viewing area and the method for display pattern switching, electronic equipment
CN105635848A (en) Bullet-screen display method and terminal
CN104090719B (en) Mobile terminal is according to the method and system of acceleration knots modification translating displayed content
US20160242001A1 (en) Method and mobile terminal for displaying prompt information
CN107204044B (en) Picture display method based on virtual reality and related equipment
CN104020944A (en) Data input method based on sliding block
KR20110104620A (en) Apparatus and method for inputing character in portable terminal
CN103677266A (en) Electronic equipment and display control method and system thereof
US9177531B2 (en) Image processing device and non-transitory computer-readable storage medium storing image processing program
CN107066176A (en) A kind of control method and device of the singlehanded pattern of terminal
CN106489128A (en) The method of split screen display available and electronic installation
EP2662751A1 (en) Method and device for an electronic terminal to realize desktop switching, and electronic terminal
US20120176327A1 (en) Touch interface system and method
CN102024055B (en) Automatic alignment method and device during mobile terminal web browsing
KR20140141305A (en) A mobile phone to separate screen and controlling method thereof
CN104571904A (en) Information processing method and electronic equipment
CN106325490A (en) Method for controlling electronic device and associated electronic device
CN103902196B (en) Screen display system and method and electronic display equipment
CN106909272B (en) Display control method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant