Electronic device and method for controlling zooming of displayed object
First Claim
1. A method for controlling zooming of a displayed object, comprising:
- receiving a slide operation from a user on the displayed object of a touch screen;
calculating a starting point line (L1) of the slide operation, the L1 extending from a reference point to a starting point of the slide operation, the reference point having coordinates (X0, Y0), and the starting point having coordinates (X, Y);
calculating an end point line (L2) of the slide operation, the L2 extending from the reference point to an ending point of the slide operation, and the ending point having coordinates (Xi, Yi);
calculating a reference angle (q) according to an equation q=tan−
1(|Y−
Y0|/|X−
X0);
calculating a current angle (p) according to an equation p=tan−
1(|Yi−
Y0|/|Xi−
X0));
calculating a deflection angle (α
) according to an equation α
=p−
q;
zooming in the displayed object when the α
is less than zero; and
zooming out the displayed object when the α
is greater than or equal to zero.
3 Assignments
0 Petitions
Accused Products
Abstract
An electronic device and a method for controlling zooming of a displayed object includes receiving a single-point slide operation performed by a user on a displayed object of a touch screen, generating a slide signal, parsing the slide signal to obtain a slide track and a feature value of the single-point slide operation, determining whether the feature value of at least one point in the single-point slide operation is greater than a preset value, and controlling zooming of the displayed object according to the slide track when the feature value is greater than the preset value. A slide track and a feature value of a single-point slide operation of a user are identified, and zooming of a displayed object of the touch screen is controlled when the feature value is greater than a preset value.
23 Citations
14 Claims
-
1. A method for controlling zooming of a displayed object, comprising:
-
receiving a slide operation from a user on the displayed object of a touch screen; calculating a starting point line (L1) of the slide operation, the L1 extending from a reference point to a starting point of the slide operation, the reference point having coordinates (X0, Y0), and the starting point having coordinates (X, Y); calculating an end point line (L2) of the slide operation, the L2 extending from the reference point to an ending point of the slide operation, and the ending point having coordinates (Xi, Yi); calculating a reference angle (q) according to an equation q=tan−
1(|Y−
Y0|/|X−
X0);calculating a current angle (p) according to an equation p=tan−
1(|Yi−
Y0|/|Xi−
X0));calculating a deflection angle (α
) according to an equation α
=p−
q;zooming in the displayed object when the α
is less than zero; andzooming out the displayed object when the α
is greater than or equal to zero. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. An electronic device, comprising:
-
a touch screen configured to receive a slide operation from a user on a displayed object of the touch screen; and a processor coupled to the touch screen and configured to; calculate a starting point line (L1) of the slide operation, the L1 extending from a reference point to a starting point of the slide operation, the reference point having coordinates (X0, Y0), and the starting point having coordinates (X, Y); calculate an end point line (L2) of the slide operation, the L2 extending from the reference point to an ending point of the slide operation, and the ending point having coordinates (Xi, Yi); calculate a reference angle (q) according to an equation q=tan−
1(|Y−
Y0|/|X−
X0);calculate a current angle (p) according to an equation p=tan−
1(|Yi−
Y0|/|Xi−
X0));calculate a deflection angle (α
) according to an equation α
=p−
q;controlling zooming in of the displayed object when the α
is less than zero; andcontrolling zooming out of the displayed object when the α
is greater than or equal to zero. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
Specification