Patent ID: 9547391
Date: 2017-01-17
CPC Classifications: G06F

Claim:
1. A method in an electronic device, the method comprising: displaying a guide line for measuring reference pressure level; receiving a touch input along the guide line by using a touch pen; detecting pressure of the touch input; determining the reference pressure level based on the detected pressure of the touch input; detecting pressure of a touch gesture in response to detecting the touch gesture by the touch pen; setting a line mode based on the pressure of the touch gesture; drawing a line according to a path of the touch gesture in the line mode; determining whether the pressure of the touch gesture is changed; determining whether the changed pressure of the touch gesture satisfies the reference pressure level, when the pressure of the touch gesture is changed; changing the line mode, when the changed pressure of the touch gesture satisfies the reference pressure level; and maintaining the line mode, when the changed pressure of the touch gesture does not satisfy the reference pressure level.