TWI724096B - Processing method, device and smart terminal for interface operation - Google Patents
Processing method, device and smart terminal for interface operation Download PDFInfo
- Publication number
- TWI724096B TWI724096B TW106102483A TW106102483A TWI724096B TW I724096 B TWI724096 B TW I724096B TW 106102483 A TW106102483 A TW 106102483A TW 106102483 A TW106102483 A TW 106102483A TW I724096 B TWI724096 B TW I724096B
- Authority
- TW
- Taiwan
- Prior art keywords
- distance
- sliding
- display interface
- display
- potential energy
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 230000004044 response Effects 0.000 claims abstract description 160
- 238000000034 method Methods 0.000 claims abstract description 62
- 238000005381 potential energy Methods 0.000 claims description 111
- 238000012545 processing Methods 0.000 claims description 24
- 239000003086 colorant Substances 0.000 claims description 10
- 230000002452 interceptive effect Effects 0.000 abstract description 6
- 230000003993 interaction Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 20
- 230000008569 process Effects 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000002238 attenuated effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
本發明實施例提供了一種介面操作的處理方法、裝置和智慧終端,以解決現有觸控操作不便捷的問題。所述的方法包括:在顯示介面內接收滑動輸入;依據所述滑動輸入繪製響應圖像;將所述響應圖像添加到所述顯示介面中進行顯示。能夠直接基於依據滑動輸入繪製響應圖像,無需使用者其他操作且在不干擾介面固有的滾動互動的前提下,提示使用者當前的滑動狀態。 The embodiments of the present invention provide a processing method, device, and smart terminal for interface operations to solve the problem of inconvenient touch operations in the prior art. The method includes: receiving a sliding input in a display interface; drawing a response image according to the sliding input; adding the response image to the display interface for display. The response image can be drawn directly based on the sliding input, without requiring other operations by the user and without interfering with the inherent scrolling interaction of the interface, prompting the user of the current sliding state.
Description
本發明關於終端技術領域,特別是關於一種介面操作的處理方法、一種介面操作的處理裝置,以及一種智慧終端。 The present invention relates to the field of terminal technology, in particular to a processing method for interface operations, a processing device for interface operations, and a smart terminal.
使用者使用PC或行動終端等電腦設備時,通常會採用顯示介面展示內容給使用者,使用者也可以在該顯示介面中對內容進行查找、查看、操作等。 When a user uses a computer device such as a PC or a mobile terminal, a display interface is usually used to display the content to the user, and the user can also search, view, and operate the content on the display interface.
在顯示介面中對內容進行展示時存在各種各樣的方式,例如藉由圖示、詳細資訊等方式展示,由於在展示內容超過該顯示介面時,藉由進度表標示展示的內容等。 There are various ways to display content in the display interface, for example, display by means of icons, detailed information, etc., because when the displayed content exceeds the display interface, the displayed content is indicated by a progress meter.
隨著行動終端技術的發展,越來越多的使用者使用行動終端執行各種業務,使用者操作也由原本的滑鼠、按鍵操作,逐漸變更為手指等觸控操作。而原有介面展示方式可能不適用於觸控操作,例如圖示比較密集時可能誤觸控到其他圖示,又如滑動查找時手指滑動的速度和距離也不像滑鼠滾輪一樣可控,因此觸控操作並不便捷。 With the development of mobile terminal technology, more and more users use mobile terminals to perform various services, and user operations have gradually changed from mouse and button operations to finger touch operations. The original interface display method may not be suitable for touch operation. For example, when the icons are dense, other icons may be touched by mistake, and the speed and distance of the finger sliding during sliding search are not as controllable as the mouse wheel. Therefore, touch operation is not convenient.
因此,目前需要本領域技術人員迫切解決的一個技術 問題就是:提出一種介面操作的處理方法、裝置和智慧終端,以解決現有觸控操作不便捷的問題。 Therefore, a technical problem that needs to be urgently solved by those skilled in the art is to propose an interface operation processing method, device and smart terminal to solve the problem of inconvenience of the existing touch operation.
本發明實施例所要解決的技術問題是提供一種介面操作的處理方法,以解決現有觸控操作不便捷的問題。 The technical problem to be solved by the embodiments of the present invention is to provide an interface operation processing method to solve the problem of inconvenience of the existing touch operation.
相應的,本發明實施例還提供了一種介面操作的處理裝置和行動終端,用以保證上述方法的實現及應用。 Correspondingly, the embodiment of the present invention also provides an interface operation processing device and mobile terminal to ensure the implementation and application of the above method.
為了解決上述問題,本發明揭露了一種介面操作的處理方法,包括:在顯示介面內接收滑動輸入;依據所述滑動輸入繪製響應圖像;將所述響應圖像添加到所述顯示介面中進行顯示。 In order to solve the above problems, the present invention discloses a processing method for interface operations, including: receiving a sliding input in a display interface; drawing a response image according to the sliding input; adding the response image to the display interface to perform display.
可選的,依據所述滑動輸入繪製響應圖像,包括:當依據滑動輸入判斷當前滾動到所述顯示介面的邊界時,繪製所述響應圖像。 Optionally, drawing the response image according to the sliding input includes: drawing the response image when it is determined that the current scroll is to the boundary of the display interface according to the sliding input.
可選的,所述響應圖像由一條或多條曲線與所述顯示介面的邊界構成。 Optionally, the response image is formed by a boundary between one or more curves and the display interface.
可選的,所述曲線的波峰與所述滑動輸入的觸控點對應。 Optionally, the peak of the curve corresponds to the touch point of the sliding input.
可選的,所述曲線與所述顯示介面的邊界的兩個交點間線段的長度小於所述邊界的長度。 Optionally, the length of a line segment between two intersection points of the curve and the boundary of the display interface is less than the length of the boundary.
可選的,在顯示介面內接收滑動輸入,包括:在顯示介面內接收滑動操作,依據所述滑動操作產生滑動輸入。 Optionally, receiving a sliding input in the display interface includes: receiving a sliding operation in the display interface, and generating the sliding input according to the sliding operation.
可選的,依據所述滑動操作產生滑動輸入,包括:依 據所述滑動操作在所述顯示介面中滾動顯示介面內容;當滾動到所述顯示介面的邊界時,依據所述滑動操作確定慣性勢能,將所述慣性勢能作為滑動輸入。 Optionally, generating a sliding input according to the sliding operation includes: scrolling and displaying interface content in the display interface according to the sliding operation; when scrolling to the boundary of the display interface, determining the inertial potential energy according to the sliding operation , And use the inertial potential energy as the sliding input.
可選的,依據所述滑動操作確定慣性勢能,包括:獲取當前顯示訊框,依據所述當前顯示訊框中確定所述滑動操作的方向和當前座標資訊;依據所述滑動操作的方向確定慣性勢能的方向;依據所述滑動操作對應當前座標資訊確定所述慣性勢能的距離。 Optionally, determining the inertial potential energy according to the sliding operation includes: obtaining a current display frame, determining the direction of the sliding operation and current coordinate information according to the current display frame; determining the inertia according to the direction of the sliding operation The direction of the potential energy; the distance of the inertial potential energy is determined according to the current coordinate information corresponding to the sliding operation.
可選的,依據所述滑動操作對應當前座標資訊確定所述慣性勢能的距離,包括:獲取所述滑動輸入的起始座標資訊,其中,所述起始座標資訊包括:顯示介面開始接收滑動輸入對應位置的座標資訊;計算所述當前座標資訊和所述起始座標資訊之間的距離,將所述距離作為慣性勢能的距離。 Optionally, determining the distance of the inertial potential energy according to the current coordinate information corresponding to the sliding operation includes: acquiring initial coordinate information of the sliding input, wherein the initial coordinate information includes: the display interface starts to receive the sliding input The coordinate information of the corresponding position; calculate the distance between the current coordinate information and the initial coordinate information, and use the distance as the distance of inertial potential energy.
可選的,當所述滑動方向為水平方向時,基於橫座標計算所述距離;當所述滑動方向為垂直方向時,基於縱座標計算所述距離。 Optionally, when the sliding direction is the horizontal direction, the distance is calculated based on the abscissa; when the sliding direction is the vertical direction, the distance is calculated based on the ordinate.
可選的,還包括:當未滾動到所述顯示介面的邊界時,依據所述滑動操作確定滑動速度,依據所述滑動速度調整顯示介面內容的滾動速度。 Optionally, the method further includes: when the boundary of the display interface is not scrolled, determining a sliding speed according to the sliding operation, and adjusting the scrolling speed of the content of the display interface according to the sliding speed.
可選的,所述滑動輸入包括慣性勢能;依據所述滑動輸入繪製響應圖像,包括:依據所述慣性勢能確定基準點;依據所述基準點繪製曲線,採用所述曲線產生響應圖像。 Optionally, the sliding input includes inertial potential energy; drawing a response image according to the sliding input includes: determining a reference point according to the inertial potential energy; drawing a curve according to the reference point, and using the curve to generate a response image.
可選的,依據所述慣性勢能確定基準點,包括:獲取與所述顯示介面相關的顯示距離;依據所述顯示距離和慣性勢能確定至少三個基準點的座標資訊。 Optionally, determining the reference point according to the inertial potential energy includes: obtaining a display distance related to the display interface; and determining coordinate information of at least three reference points according to the display distance and the inertial potential energy.
可選的,獲取與所述顯示介面相關的顯示距離,包括:獲取預置的第一距離,以及依據所述顯示介面確定第二距離和第三距離,所述第一距離、第二距離和第三距離構成所述顯示距離。 Optionally, acquiring the display distance related to the display interface includes: acquiring a preset first distance, and determining a second distance and a third distance according to the display interface, the first distance, the second distance, and the The third distance constitutes the display distance.
可選的,依據所述基準點繪製曲線,採用所述曲線產生響應圖像,包括:依據所述至少三個基準點的座標資訊繪製賽貝爾曲線;將所述賽貝爾曲線和所述顯示介面的邊界構成響應圖像。 Optionally, drawing a curve based on the reference point and using the curve to generate a response image includes: drawing a Sebel curve based on the coordinate information of the at least three reference points; combining the Sebel curve with the display interface The borders of which constitute the response image.
可選的,依據所述基準點繪製曲線,採用所述曲線產生響應圖像,包括:採用至少兩組基準點的座標資訊分別繪製賽貝爾曲線,其中,每組基準點包括三個基準點;將至少兩條賽貝爾曲線和所述顯示介面的邊界構成響應圖像。 Optionally, drawing a curve based on the reference points and using the curve to generate a response image includes: drawing a Sebel curve using coordinate information of at least two sets of reference points, wherein each set of reference points includes three reference points; At least two Sebel curves and the boundary of the display interface form a response image.
可選的,還包括:在所述響應圖像中添加至少一種顏色或至少一種圖案。 Optionally, the method further includes: adding at least one color or at least one pattern to the response image.
可選的,還包括:按照以下任一種填充方式填充所述響應圖像;所述填充方式包括:由淺到深填充,由深到淺填充,冷、暖色填充。 Optionally, the method further includes: filling the response image according to any one of the following filling modes; the filling mode includes: filling from light to dark, filling from dark to light, and filling with cold and warm colors.
可選的,還包括:設置所述響應圖像的透明度。 Optionally, it further includes: setting the transparency of the response image.
可選的,還包括:當撤銷所述滑動操作時,所述慣性勢能隨顯示訊框衰減;依據衰減的慣性勢能繪製響應圖像 並顯示,直到慣性勢能衰減為0,停止繪製所述響應圖像。 Optionally, the method further includes: when the sliding operation is cancelled, the inertial potential energy decays along with the display frame; drawing and displaying a response image according to the decayed inertial potential energy, and stopping drawing the response graph until the inertial potential energy decays to 0 Like.
本發明實施例還揭露了一種介面操作的處理裝置,包括:輸入接收模組,用於在顯示介面內接收滑動輸入;繪製模組,用於依據所述滑動輸入繪製響應圖像;顯示模組,用於將所述響應圖像添加到所述顯示介面中進行顯示。 The embodiment of the present invention also discloses an interface operation processing device, which includes: an input receiving module for receiving sliding input in a display interface; a drawing module for drawing a response image according to the sliding input; and a display module , For adding the response image to the display interface for display.
可選的,所述繪製模組,用於當依據滑動輸入判斷當前滾動到所述顯示介面的邊界時,繪製所述響應圖像。 Optionally, the drawing module is configured to draw the response image when it is determined that the current scrolling to the boundary of the display interface is based on the sliding input.
可選的,所述響應圖像由一條或多條曲線與所述顯示介面的邊界構成。 Optionally, the response image is formed by a boundary between one or more curves and the display interface.
可選的,所述曲線的波峰與所述滑動輸入的觸控點對應。 Optionally, the peak of the curve corresponds to the touch point of the sliding input.
可選的,所述曲線與所述顯示介面的邊界的兩個交點間線段的長度小於所述邊界的長度。 Optionally, the length of a line segment between two intersection points of the curve and the boundary of the display interface is less than the length of the boundary.
可選的,所述輸入接收模組,用於在顯示介面內接收滑動操作,依據所述滑動操作產生滑動輸入。 Optionally, the input receiving module is configured to receive a sliding operation in the display interface, and generate a sliding input according to the sliding operation.
可選的,所述輸入接收模組,包括:滾動顯示子模組,用於依據所述滑動操作在所述顯示介面中滾動顯示介面內容;慣性勢能確定子模組,用於當滾動到所述顯示介面的邊界時,依據所述滑動操作確定慣性勢能,將所述慣性勢能作為滑動輸入。 Optionally, the input receiving module includes: a scrolling display sub-module for scrolling and displaying interface content in the display interface according to the sliding operation; and an inertial potential energy determining sub-module for scrolling to the display interface. When the boundary of the display interface is described, the inertial potential energy is determined according to the sliding operation, and the inertial potential energy is used as the sliding input.
可選的,所述慣性勢能確定子模組,包括:獲取單元,用於獲取當前顯示訊框,依據所述當前顯示訊框中確 定所述滑動操作的方向和當前座標資訊;方向確定單元,用於依據所述滑動操作的方向確定慣性勢能的方向;距離確定單元,用於依據所述滑動操作對應當前座標資訊確定所述慣性勢能的距離。 Optionally, the inertial potential energy determining sub-module includes: an acquiring unit for acquiring a current display frame, and determining the direction of the sliding operation and current coordinate information according to the current display frame; a direction determining unit, It is used for determining the direction of the inertial potential energy according to the direction of the sliding operation; the distance determining unit is used for determining the distance of the inertial potential energy according to the current coordinate information corresponding to the sliding operation.
可選的,所述距離確定單元,用於獲取所述滑動輸入的起始座標資訊,其中,所述起始座標資訊包括:顯示介面開始接收滑動輸入對應位置的座標資訊;計算所述當前座標資訊和所述起始座標資訊之間的距離,將所述距離作為慣性勢能的距離。 Optionally, the distance determining unit is configured to obtain the initial coordinate information of the sliding input, wherein the initial coordinate information includes: the display interface starts to receive the coordinate information of the corresponding position of the sliding input; and calculating the current coordinates The distance between the information and the starting coordinate information, and the distance is taken as the distance of inertial potential energy.
可選的,當所述滑動方向為水平方向時,基於橫座標計算所述距離;當所述滑動方向為垂直方向時,基於縱座標計算所述距離。 Optionally, when the sliding direction is the horizontal direction, the distance is calculated based on the abscissa; when the sliding direction is the vertical direction, the distance is calculated based on the ordinate.
可選的,所述滾動顯示子模組,還用於當未滾動到所述顯示介面的邊界時,依據所述滑動操作確定滑動速度,依據所述滑動速度調整顯示介面內容的滾動速度。 Optionally, the scroll display sub-module is further configured to determine a sliding speed according to the sliding operation when the display interface is not scrolled to the boundary, and adjust the scrolling speed of the content of the display interface according to the sliding speed.
可選的,所述滑動輸入包括慣性勢能;所述繪製模組,包括:基準點確定子模組,用於依據所述慣性勢能確定基準點;繪製產生子模組,用於依據所述基準點繪製曲線,採用所述曲線產生響應圖像。 Optionally, the sliding input includes inertial potential energy; the drawing module includes: a reference point determination sub-module for determining a reference point according to the inertial potential energy; a drawing generation sub-module for determining a reference point according to the reference point Point to draw a curve, and use the curve to generate a response image.
可選的,所述基準點確定子模組,包括:距離獲取單元,用於獲取與所述顯示介面相關的顯示距離;座標確定單元,用於依據所述顯示距離和慣性勢能確定至少三個基準點的座標資訊。 Optionally, the reference point determination sub-module includes: a distance acquisition unit for acquiring a display distance related to the display interface; a coordinate determination unit for determining at least three points according to the display distance and inertial potential energy The coordinate information of the reference point.
可選的,所述距離獲取單元,用於獲取預置的第一距 離,以及依據所述顯示介面確定第二距離和第三距離,所述第一距離、第二距離和第三距離構成所述顯示距離。 Optionally, the distance acquiring unit is configured to acquire a preset first distance, and determine a second distance and a third distance according to the display interface, and the first distance, the second distance and the third distance constitute the The display distance.
可選的,所述繪製產生子模組,用於依據所述至少三個基準點的座標資訊繪製賽貝爾曲線;將所述賽貝爾曲線和所述顯示介面的邊界構成響應圖像。 Optionally, the drawing generation sub-module is used to draw a Sebel curve according to the coordinate information of the at least three reference points; the Sebel curve and the boundary of the display interface form a response image.
可選的,所述繪製產生子模組,用於採用至少兩組基準點的座標資訊分別繪製賽貝爾曲線,其中,每組基準點包括三個基準點;將至少兩條賽貝爾曲線和所述顯示介面的邊界構成響應圖像。 Optionally, the drawing generation sub-module is used to draw the Seibel curve using the coordinate information of at least two sets of reference points, wherein each set of reference points includes three reference points; The boundary of the display interface constitutes a response image.
可選的,所述繪製模組,還包括:顏色填充子模組,用於在所述響應圖像中添加至少一種顏色或至少一種圖案。 Optionally, the drawing module further includes: a color filling sub-module for adding at least one color or at least one pattern to the response image.
可選的,所述繪製模組,還包括:顏色填充子模組,用於按照以下任一種填充方式填充所述響應圖像;所述填充方式包括:由淺到深填充,由深到淺填充,冷、暖色填充。 Optionally, the drawing module further includes: a color filling sub-module for filling the response image according to any of the following filling methods; the filling method includes: filling from light to dark, from dark to light Filling, cold and warm color filling.
可選的,所述繪製模組,還包括:透明度設置子模組,用於設置所述響應圖像的透明度。 Optionally, the drawing module further includes: a transparency setting sub-module for setting the transparency of the response image.
可選的,所述繪製模組,還用於當撤銷所述滑動操作時,所述慣性勢能隨顯示訊框衰減;依據衰減的慣性勢能繪製響應圖像並顯示,直到慣性勢能衰減為0,停止繪製所述響應圖像。 Optionally, the drawing module is further configured to: when the sliding operation is canceled, the inertial potential energy decays with the display frame; draw and display a response image according to the decayed inertial potential energy until the inertial potential energy decays to 0, Stop drawing the response image.
本發明實施例還揭露了一種智慧終端,包括:所述智慧終端包括:記憶體、顯示器、處理器和輸入單元,其 中,所述輸入單元包括:觸控式螢幕;所述處理器用於執行本發明實施例所述的方法。 The embodiment of the present invention also discloses a smart terminal, including: the smart terminal includes: a memory, a display, a processor, and an input unit, wherein the input unit includes: a touch screen; the processor is used to execute the The method described in the embodiment of the invention.
與現有技術相比,本發明實施例包括以下優點:在本發明實施例中,在顯示介面內接收滑動輸入,依據所述滑動輸入繪製響應圖像,將所述響應圖像添加到所述顯示介面中進行顯示,能夠直接基於依據滑動輸入繪製響應圖像,無需使用者其他操作且在不干擾介面固有的滾動互動的前提下,提示使用者當前的滑動狀態。 Compared with the prior art, the embodiment of the present invention includes the following advantages: In the embodiment of the present invention, a sliding input is received in a display interface, a response image is drawn according to the sliding input, and the response image is added to the display. The display in the interface can directly draw a response image based on the sliding input, and prompts the user of the current sliding state without interfering with the inherent scrolling interaction of the interface without requiring other operations by the user.
102‧‧‧步驟 102‧‧‧Step
104‧‧‧步驟 104‧‧‧Step
106‧‧‧步驟 106‧‧‧Step
202‧‧‧步驟 202‧‧‧Step
204‧‧‧步驟 204‧‧‧Step
206‧‧‧步驟 206‧‧‧Step
208‧‧‧步驟 208‧‧‧Step
210‧‧‧步驟 210‧‧‧Step
212‧‧‧步驟 212‧‧‧Step
302‧‧‧步驟 302‧‧‧Step
304‧‧‧步驟 304‧‧‧Step
306‧‧‧步驟 306‧‧‧Step
308‧‧‧步驟 308‧‧‧Step
310‧‧‧步驟 310‧‧‧Step
312‧‧‧步驟 312‧‧‧Step
314‧‧‧步驟 314‧‧‧Step
316‧‧‧步驟 316‧‧‧Step
502‧‧‧步驟 502‧‧‧Step
504‧‧‧步驟 504‧‧‧Step
506‧‧‧步驟 506‧‧‧Step
508‧‧‧步驟 508‧‧‧Step
510‧‧‧步驟 510‧‧‧Step
512‧‧‧步驟 512‧‧‧Step
1002‧‧‧輸入接收模組 1002‧‧‧Input Receive Module
1004‧‧‧繪製模組 1004‧‧‧Drawing Module
1006‧‧‧顯示模組 1006‧‧‧Display Module
11022‧‧‧滾動顯示子模組 11022‧‧‧Scroll display sub-module
11024‧‧‧慣性勢能確定子模組 11024‧‧‧Inertial potential energy determination sub-module
11042‧‧‧基準點確定子模組 11042‧‧‧Datum point determination sub-module
11044‧‧‧繪製產生子模組 11044‧‧‧Drawing and generating sub-modules
11046‧‧‧顏色填充子模組 11046‧‧‧Color Fill Submodule
11048‧‧‧透明度設置子模組 11048‧‧‧Transparency setting sub-module
1106‧‧‧顯示模組 1106‧‧‧Display Module
110242‧‧‧獲取單元 110242‧‧‧Acquisition Unit
110244‧‧‧方向確定單元 110244‧‧‧Direction determination unit
110246‧‧‧距離確定單元 110246‧‧‧Distance determination unit
110422‧‧‧距離獲取單元 110422‧‧‧Distance acquisition unit
110424‧‧‧座標確定單元 110424‧‧‧Coordinate determination unit
1210‧‧‧記憶體 1210‧‧‧Memory
1220‧‧‧顯示器 1220‧‧‧Display
1230‧‧‧處理器 1230‧‧‧Processor
1240‧‧‧輸入單元 1240‧‧‧Input Unit
1241‧‧‧觸控式螢幕 1241‧‧‧Touch screen
圖1是本發明的一種介面操作的處理方法實施例的步驟流程圖;圖2是本發明的另一種介面操作的處理方法實施例的步驟流程圖;圖3是本發明的另一種介面操作的處理方法實施例中滑動輸入的產生步驟流程圖;圖4A、B是本發明實施例中滑動確定慣性勢能的示意圖;圖5是本發明的另一種介面操作的處理方法實施例中響應圖像的繪製步驟流程圖圖6A、B是本發明實施例中基準點確定的示意圖;圖7A、B是本發明實施例中基準點對應各控制點確定的示意圖;圖8A、B是本發明實施例中基於賽貝爾曲線繪製響 應圖像的示意圖;圖9A、B是本發明實施例中依據觸控點調整波峰的示意圖;圖10是本發明一種介面操作的處理裝置實施例的結構方塊圖;圖11A是本發明另一種介面操作的處理裝置實施例的結構方塊圖;圖11B是本發明另一種介面操作的處理裝置實施例中慣性勢能確定子模組的結構方塊圖;圖11C是本發明另一種介面操作的處理裝置實施例中基準點確定子模組的結構方塊圖 Figure 1 is a step flow chart of an embodiment of a method for processing interface operations of the present invention; Figure 2 is a step flow chart of another embodiment of a method for processing interface operations of the present invention; Figure 3 is a flow chart of another embodiment of interface operations of the present invention 4A and B are schematic diagrams of determining the inertial potential energy by sliding in the embodiment of the present invention; Fig. 5 is the response image in the embodiment of the processing method of another interface operation of the present invention. Drawing step flowchart Figures 6A and B are schematic diagrams of reference point determination in an embodiment of the present invention; Figures 7A and B are schematic diagrams of reference point determination corresponding to each control point in an embodiment of the present invention; A schematic diagram of drawing a response image based on a Sebel curve; FIGS. 9A and B are schematic diagrams of adjusting wave crests according to touch points in an embodiment of the present invention; FIG. 10 is a structural block diagram of an embodiment of a processing device for interface operation of the present invention; FIG. 11A Fig. 11B is a block diagram of the structure of the inertial potential energy determining sub-module in the embodiment of the processing device for another interface operation of the present invention; Fig. 11C is another embodiment of the processing device for the interface operation of the present invention The block diagram of the structure of the reference point determination sub-module in the embodiment of the processing device for interface operation
圖12是本發明一種智慧終端實施例的結構方塊圖。 FIG. 12 is a structural block diagram of an embodiment of a smart terminal of the present invention.
為使本發明的上述目的、特徵和優點能夠更加明顯易懂,下面結合附圖和具體實施方式對本發明作進一步詳細的說明。 In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
本發明實施例的核心構思之一在於,提出一種介面操作的處理方法、裝置和智慧終端,以解決現有觸控操作不便捷的問題。在顯示介面內接收滑動輸入,依據所述滑動輸入繪製響應圖像,將所述響應圖像添加到所述顯示介面中進行顯示,能夠直接基於依據滑動輸入繪製響應圖像,無需使用者其他操作且在不干擾介面固有的滾動互動的前提下,提示使用者當前的滑動狀態。 One of the core concepts of the embodiments of the present invention is to provide an interface operation processing method, device, and smart terminal to solve the problem of inconvenient touch operation in the prior art. Receiving sliding input in the display interface, drawing a response image according to the sliding input, adding the response image to the display interface for display, the response image can be drawn directly based on the sliding input, without the need for other operations by the user And on the premise of not interfering with the inherent scrolling interaction of the interface, the current sliding state of the user is prompted.
本發明實施例中,智慧終端指的是具有多媒體功能的終端設備,這些設備支援音訊、視頻、資料等方面的功能。本實施例中該智慧終端具有觸控式螢幕,包括智慧行動終端如智慧手機、平板電腦能,也可以是具有觸控式螢幕的智慧電視、個人電腦等設備。 In the embodiments of the present invention, smart terminals refer to terminal devices with multimedia functions, and these devices support audio, video, data, and other functions. In this embodiment, the smart terminal has a touch screen, including smart mobile terminals such as smart phones and tablet computers, and can also be devices such as smart TVs and personal computers with touch screens.
參照圖1,顯示了本發明的一種介面操作的處理方法實施例的步驟流程圖,具體可以包括如下步驟:步驟102,在顯示介面內接收滑動輸入。 1, there is shown a step flow chart of an embodiment of an interface operation processing method of the present invention, which may specifically include the following steps: Step 102, receiving a sliding input in the display interface.
當前智慧終端通常採用觸控式螢幕,因此使用者可以直接藉由手指、觸控筆等方式執行觸控操作,對智慧終端進行控制。因此在智慧終端當前的顯示介面內,使用者可以滑動進行輸入控制,相應智慧終端可以接收滑動輸入。 The current smart terminal usually uses a touch screen, so users can directly perform touch operations with fingers, stylus, etc. to control the smart terminal. Therefore, in the current display interface of the smart terminal, the user can slide for input control, and the corresponding smart terminal can receive the sliding input.
步驟104,依據所述滑動輸入繪製響應圖像。 Step 104: Draw a response image according to the sliding input.
步驟106,將所述響應圖像添加到所述顯示介面中進行顯示。 Step 106: Add the response image to the display interface for display.
依據滑動輸入可以執行相應的操作,本實施例中,當基於滑動輸入滑動到某些狀態下時,可以繪製響應圖像,響應圖像是響應滑動輸入的繪製並顯示,用於提示使用者當前輸入狀態,因此在繪製完響應圖像後,可以將響應圖像添加到所述顯示介面中進行顯示,提示使用者當前滑動輸入操作狀態,如已滑動到邊界等。 Corresponding operations can be performed based on the sliding input. In this embodiment, when sliding to a certain state based on the sliding input, a response image can be drawn. The response image is drawn and displayed in response to the sliding input, and is used to remind the user that the current Input status, so after the response image is drawn, the response image can be added to the display interface for display, prompting the user of the current sliding input operation status, such as sliding to a boundary.
本實施例中,依據滑動輸入時介面狀態不同可以執行 不同的響應,例如依據滑動輸入調整頁面內容;也可以繪製不同的響應圖像,例如,滑動到邊緣時繪製響應圖像提醒邊緣,又如滑動到中間時繪製響應圖像提示後續滑動方向等。 In this embodiment, different responses can be executed according to different interface states during sliding input, for example, page content can be adjusted according to sliding input; different response images can also be drawn, for example, when sliding to the edge, a response image is drawn to remind the edge, another example is When sliding to the middle, draw a response image to prompt the subsequent sliding direction, etc.
本發明一個可選實施例中,依據所述滑動輸入繪製響應圖像,包括:當依據滑動輸入判斷當前滾動到所述顯示介面的邊界時,繪製所述響應圖像。 In an optional embodiment of the present invention, drawing the response image according to the sliding input includes: drawing the response image when it is determined that the current scroll is to the boundary of the display interface according to the sliding input.
在當前介面內展示有相應的顯示介面內容,如網頁、列表等,可以基於使用者觸控對應的滑動輸入移動顯示介面內容,以展示不同的內容。當移動到顯示介面內容所述顯示介面的邊界時,如上移到上邊界,又如左移到左邊界等,均無法繼續移動,此時可以繪製響應圖像提醒使用者當前移動到邊緣,無法繼續移動。 Corresponding display interface content, such as web pages, lists, etc., are displayed in the current interface, and the display interface content can be moved based on the sliding input corresponding to the user's touch to display different content. When moving to the border of the display interface described in the content of the display interface, such as moving up to the upper border, or moving left to the left border, etc., the movement cannot be continued. At this time, a response image can be drawn to remind the user to move to the edge. Keep moving.
因此,本實施例能夠基於依據滑動輸入繪製響應圖像,以提示使用者當前的滑動狀態。其中,可以繪製響應圖像,在不干擾介面固有的滾動互動的前提下,明確的提示使用者列表已經滾動到邊界了。 Therefore, this embodiment can draw a response image based on the sliding input to prompt the user of the current sliding state. Among them, the response image can be drawn, and the user is clearly reminded that the list has scrolled to the boundary without disturbing the inherent scrolling interaction of the interface.
參照圖2,顯示了本發明的另一種介面操作的處理方法實施例的步驟流程圖,具體可以包括如下步驟:步驟202,在顯示介面內接收滑動操作。 Referring to FIG. 2, there is shown a step flow chart of another embodiment of a method for processing interface operations of the present invention, which may specifically include the following steps: Step 202, receiving a sliding operation in the display interface.
步驟204,依據所述滑動操作產生滑動輸入,其中,所述滑動輸入包括慣性勢能。 Step 204: Generate a sliding input according to the sliding operation, where the sliding input includes inertial potential energy.
在當前的顯示介面中,使用者可以藉由手指、觸控筆等滑動進行輸入操作,相應在智慧終端的觸控式螢幕可以接收到在顯示介面內的滑動操作,依據該滑動操作產生相應的滑動輸入。 In the current display interface, the user can perform input operations by sliding fingers, stylus, etc., correspondingly, the touch screen of the smart terminal can receive the sliding operation in the display interface, and generate the corresponding sliding operation according to the sliding operation. Swipe to enter.
其中,依據滑動操作的不同,顯示介面中顯示內容的不同,可以產生不同的滑動輸入,則依據滑動操作產生滑動輸入如圖3所示包括如下子步驟:子步驟302,依據所述滑動操作在所述顯示介面中滾動顯示介面內容。 Among them, according to different sliding operations and different contents displayed in the display interface, different sliding inputs can be generated. Then generating sliding input according to the sliding operation includes the following sub-steps as shown in FIG. 3: sub-step 302, according to the sliding operation in The content of the display interface is scrolled in the display interface.
子步驟304,檢測是否滾動到顯示介面的邊界。 In
本實施例中,當顯示介面內容超出顯示介面的範圍時,通常在顯示介面中僅顯示部分顯示介面內容,且在顯示介面底部或側邊顯示有捲軸,藉由調整捲軸的位置可以顯示不同的顯示介面內容。其中,當顯示介面內容寬度超出顯示介面的寬度時,在底部配置捲軸;當顯示介面內容長度超出顯示介面的高度時,在側邊配置捲軸。 In this embodiment, when the content of the display interface exceeds the range of the display interface, usually only part of the display interface content is displayed in the display interface, and scrolls are displayed at the bottom or side of the display interface. By adjusting the position of the scrolls, different displays can be displayed. Display the content of the interface. Among them, when the content width of the display interface exceeds the width of the display interface, a scroll is arranged at the bottom; when the content length of the display interface exceeds the height of the display interface, a scroll is arranged on the side.
可以依據滑動操作在所述顯示介面中滾動顯示介面內容,即左、右、上、下調整顯示介面內容。其中,當滾動到顯示介面的邊界後,無法繼續滾動,可以給使用者相應的提示,因此可以檢測是否滾動到顯示介面的邊界。 The display interface content can be scrolled in the display interface according to the sliding operation, that is, the display interface content can be adjusted to the left, right, up, and down. Among them, when scrolling to the boundary of the display interface, scrolling cannot continue, and a corresponding prompt can be given to the user, so it can be detected whether the scroll reaches the boundary of the display interface.
若否,即未滾動到所述顯示介面的邊界,執行子步驟306;若是,即滾動到所述顯示介面的邊界,執行子步驟308。 If not, that is, the boundary of the display interface is not scrolled, perform sub-step 306; if yes, that is, the boundary of the display interface is scrolled, and sub-step 308 is performed.
子步驟306,依據所述滑動操作確定滑動速度,將滑 動速度作為滑動輸入,調整顯示介面內容的滾動速度。 In
當未滾動到所述顯示介面的邊界時,可以基於滾動顯示介面內容進行顯示,在顯示介面內容進行滾動時,可以依據所述滑動操作確定滑動速度,將滑動速度作為滑動輸入,調整顯示介面內容的滾動速度。 When it is not scrolled to the boundary of the display interface, it can be displayed based on the content of the scrolling display interface. When the content of the display interface is scrolled, the sliding speed can be determined according to the sliding operation, and the sliding speed can be used as a sliding input to adjust the content of the display interface. The scroll speed.
本實施例中,假設滑動輸入為inertia,以上下滑動為例,在未滾動到所述顯示介面的邊界時,設inertia為手指在螢幕上縱向滑動的速度,單位為dp(device independent pixels,設備獨立像素),速度的計算方式是:當前訊框手指在螢幕上的y座標-前一訊框手指在螢幕上的y座標。 In this embodiment, it is assumed that the sliding input is inertia, and sliding up and down is taken as an example. Before scrolling to the boundary of the display interface, set inertia as the vertical sliding speed of the finger on the screen, and the unit is dp (device independent pixels, device independent pixels). Independent pixels), the speed calculation method is: the y coordinate of the finger on the screen of the current frame-the y coordinate of the finger on the screen of the previous frame.
其中,dp也稱為dip,一種用於移動端設計的長度單位,與傳統的px(pixels,像素)不同點在於,在同一介面中,dp不會隨設備實體尺寸變化而變化,介面呈現高度大小是統一的,更接近實體呈現。訊框即智慧終端中顯示的圖像訊框,依據系統設置不同,每秒顯示的訊框數也不同,例如60訊框/秒,則依據距離和訊框速即確定滑動速度,從而相應調整顯示介面內容的滾動速度。 Among them, dp is also called dip, a length unit used in mobile terminal design. The difference from traditional px (pixels) is that in the same interface, dp does not change with the physical size of the device, and the interface presents a height. The size is uniform, closer to the physical appearance. The frame is the image frame displayed in the smart terminal. Depending on the system settings, the number of frames displayed per second is also different. For example, 60 frames per second, the sliding speed is determined according to the distance and frame speed, and the display is adjusted accordingly. The scroll speed of the interface content.
當滾動到所述顯示介面的邊界時,依據所述滑動操作確定慣性勢能,將所述慣性勢能作為滑動輸入,其中,慣性勢能藉由如下子步驟確定。 When scrolling to the boundary of the display interface, the inertial potential energy is determined according to the sliding operation, and the inertial potential energy is used as a sliding input, wherein the inertial potential energy is determined by the following sub-steps.
子步驟308,獲取當前顯示訊框,從所述當前顯示訊框中獲取所述滑動操作的方向和當前座標資訊。 In
子步驟310,依據所述滑動操作的方向確定慣性勢能 的方向。 In
獲取當前顯示訊框,並且獲取記錄的前一顯示訊框,依據當前顯示訊框確定當前座標資訊,依據當前顯示訊框和前一顯示訊框確定獲取所述滑動操作的方向和。將滑動操作的方向確定為慣性勢能的方向,還可以依據所述滑動操作對應當前座標資訊確定所述慣性勢能的距離。 The current display frame is acquired, and the recorded previous display frame is acquired, the current coordinate information is determined according to the current display frame, and the direction sum of the sliding operation is determined according to the current display frame and the previous display frame. The direction of the sliding operation is determined as the direction of the inertial potential energy, and the distance of the inertial potential energy can also be determined according to the current coordinate information corresponding to the sliding operation.
子步驟312,獲取所述滑動輸入的起始座標資訊,其中,所述起始座標資訊包括:顯示介面開始接收滑動輸入對應位置的座標資訊。 In
子步驟314,計算所述當前座標資訊和所述起始座標資訊之間的距離,將所述距離作為慣性勢能的距離。 Sub-step 314: Calculate the distance between the current coordinate information and the initial coordinate information, and use the distance as the distance of inertial potential energy.
在使用者開始滑動時,相應顯示介面開始接收滑動輸入,記錄開始接收滑動輸入對應位置的座標資訊,作為滑動輸入的起始座標資訊,獲取該起始座標資訊。接著計算所述當前座標資訊和所述起始座標資訊之間的距離,將所述距離作為慣性勢能的距離。 When the user starts sliding, the corresponding display interface starts to receive the sliding input, and records the coordinate information of the position corresponding to the start receiving the sliding input as the starting coordinate information of the sliding input, and the starting coordinate information is obtained. Then, the distance between the current coordinate information and the starting coordinate information is calculated, and the distance is taken as the distance of the inertial potential energy.
其中,當所述滑動方向為水平方向時,基於橫座標計算所述距離;當所述滑動方向為垂直方向時,基於縱座標計算所述距離。所述滑動方向為水平方向即左右滑動時,滾動到所述顯示介面的豎邊的邊界,可以採用當前位置對應當前座標資訊的橫座標和所述起始座標資訊的橫座標計算距離;滑動方向為垂直方向即上下滑動時,滾動到所述顯示介面的橫邊的邊界,可以採用當前位置對應當前座標資訊的縱座標和所述起始座標資訊的縱座標計算距離。 Wherein, when the sliding direction is the horizontal direction, the distance is calculated based on the abscissa; when the sliding direction is the vertical direction, the distance is calculated based on the ordinate. When the sliding direction is horizontal, that is, when sliding left and right, scroll to the boundary of the vertical side of the display interface, and the abscissa corresponding to the current coordinate information at the current position and the abscissa of the start coordinate information can be used to calculate the distance; the sliding direction In the vertical direction, that is, when sliding up and down, scrolling to the boundary of the horizontal side of the display interface, the ordinate of the current position corresponding to the current coordinate information and the ordinate of the starting coordinate information can be used to calculate the distance.
例如,在上下滑動時如圖4A所示,顯示介面內容如清單在頂部時,即列表已經到上邊無法繼續向下滾動,設inertia為手指繼續向下滑動的距離,取值範圍為0dp~150dp。距離的計算方式是:當前訊框手指在螢幕上的y座標-手指開始接觸螢幕時的y座標。反之,列表在底部時如圖4B所示,即列表已經到底邊無法繼續向上滾動,設inertia為手指繼續向上滑動的距離,取值範圍為0dp~150dp,距離為當前訊框手指在螢幕上的y座標-手指開始接觸螢幕時的y座標。 For example, when sliding up and down, as shown in Figure 4A, the display interface content is like the list at the top, that is, the list has reached the top and cannot continue to scroll down. Let inertia be the distance that the finger continues to slide down, and the value range is 0dp~150dp . The distance calculation method is: the y coordinate of the finger on the screen of the current frame-the y coordinate when the finger starts to touch the screen. On the contrary, when the list is at the bottom, as shown in Figure 4B, that is, the list is at the bottom and cannot continue to scroll upwards. Set inertia as the distance for the finger to continue to slide upwards. The value range is 0dp~150dp. y coordinate-the y coordinate when the finger starts to touch the screen.
子步驟316,將慣性勢能作為滑動輸入。 In
在確定出慣性勢能的方向和距離後,將慣性勢能作為滑動輸入,依據該滑動輸入調整顯示介面的顯示。 After determining the direction and distance of the inertial potential energy, the inertial potential energy is used as a sliding input, and the display of the display interface is adjusted according to the sliding input.
步驟206,依據所述慣性勢能確定基準點,依據所述基準點繪製曲線,採用所述曲線產生響應圖像。 Step 206: Determine a reference point according to the inertial potential energy, draw a curve according to the reference point, and use the curve to generate a response image.
當依據滑動輸入判斷當前滾動到所述顯示介面的邊界時,繪製所述響應圖像,其中,可以依據慣性勢能確定基準點,基於該基準點繪製曲線,採用所述曲線和顯示介面相應的邊界產生響應圖像。例如,確定出一個基準點和曲線的弧度或曲率來繪製曲線,又如確定兩個或以上基準點繪製曲線等。 When judging that the current scrolling to the boundary of the display interface is based on the sliding input, the response image is drawn, wherein a reference point can be determined according to the inertial potential energy, a curve is drawn based on the reference point, and the curve and the corresponding boundary of the display interface are used Generate response images. For example, determining a reference point and the radian or curvature of the curve to draw a curve, or determining two or more reference points to draw a curve.
其中,依據所述慣性勢能繪製響應圖像,如圖5所示具體包括如下子步驟:子步驟502,獲取與所述顯示介面相關的顯示距離。 Wherein, drawing the response image according to the inertial potential energy, as shown in FIG. 5, specifically includes the following sub-steps: sub-step 502, obtaining a display distance related to the display interface.
以三個基準點繪製一條曲線為例,預置確定基準點所 需的顯示距離,在確定基準點時,獲取與所述顯示介面相關的顯示距離,包括:獲取預置的第一距離,以及依據所述顯示介面確定第二距離和第三距離,所述第一距離、第二距離和第三距離構成所述顯示距離。 Taking a curve drawn with three reference points as an example, preset the display distance required to determine the reference point, and when the reference point is determined, obtaining the display distance related to the display interface includes: obtaining the preset first distance, and The second distance and the third distance are determined according to the display interface, and the first distance, the second distance and the third distance constitute the display distance.
其中,第一距離可以為曲線和螢幕左右的留白距離margin,該第一距離可以是固定值如位於1/4顯示介面的寬度,也可以是動態值。第二距離可以為顯示介面內容在顯示介面中的可視寬度width,如可視寬度與顯示介面的寬度相同,則width即為顯示介面的寬度,若可視寬度與顯示介面的寬度的一半,則width即為顯示介面的寬度的一半。第三距離可以為顯示介面內容在顯示介面中的可視高度height,如可視高度與顯示介面的高度相同,則height即為顯示介面的高度,若可視高度與顯示介面的高度的一半,則height即為顯示介面的高度的一半。 Wherein, the first distance can be the curve and the margin of the left and right sides of the screen, and the first distance can be a fixed value such as 1/4 the width of the display interface, or a dynamic value. The second distance can be the visible width width of the display interface content in the display interface. If the visible width is the same as the width of the display interface, then width is the width of the display interface. If the visible width is half of the width of the display interface, then width is It is half the width of the display interface. The third distance can be the visual height of the display interface content in the display interface. If the visual height is the same as the height of the display interface, the height is the height of the display interface. If the visual height is half the height of the display interface, the height is It is half the height of the display interface.
子步驟504,依據所述顯示距離和慣性勢能確定至少一組基準點的座標資訊。 In
本實施例以三個基準點繪製一條曲線為例,則可以每三個基準點構成一組基準點,則當可以依據顯示距離和慣性勢能確定至少一組基準點的座標資訊,即可以藉由設置具有多組顯示距離確定多組基準點,也可以藉由調整第一距離來繪製多組顯示基準點。 In this embodiment, drawing a curve with three reference points as an example, then every three reference points can form a set of reference points, then when the coordinate information of at least one set of reference points can be determined according to the display distance and inertial potential energy, that is, the coordinate information of at least one set of reference points can be determined by Multiple sets of display distances are set to determine multiple sets of reference points, and multiple sets of display reference points can also be drawn by adjusting the first distance.
以一組基準點為例,設3個基準點分別為p0,p1,p2,設第一距離即曲線和螢幕左右的留白距離為margin,第二距離即顯示介面內容在顯示介面中的可視寬度為 width;第三距離即顯示介面內容在顯示介面中的可視高度為height。 Take a set of reference points as an example. Set the 3 reference points as p0, p1, and p2 respectively. Set the first distance that is the curve and the left and right margins of the screen as margin, and the second distance is the visibility of the display interface content in the display interface. The width is width; the third distance is the visible height of the display interface content in the display interface as height.
如圖6A所示,當手指拖動顯示介面內容如清單至頂部,或手指放開列表自行滾動至頂部時,p0的x座標為margin,y座標為0,即p0(margin,0);p1的x座標為width-margin,y座標為0即p1(width-margin,0);p2的x座標為width*0.5,y座標為inertia,即p2(width*0.5,inertia)。 As shown in Figure 6A, when the content of the display interface such as the list is dragged to the top by the finger, or the list is scrolled to the top when the finger is released, the x coordinate of p0 is margin, and the y coordinate is 0, that is, p0(margin, 0); p1 The x coordinate of is width-margin, and the y coordinate is 0, which means p1 (width-margin, 0); the x coordinate of p2 is width*0.5, and the y coordinate is inertia, which means p2(width*0.5, inertia).
如圖6B所述,當手指拖動列表至底部,或手指放開列表自行滾動至底部時,p0的x座標為margin,y座標為height,即p0(margin,height);p1的x座標為width-margin,y座標為height即p1(width-margin,height);p2的x座標為width*0.5,y座標為height-inertia即p2(width*0.5,height-inertia)。 As shown in Figure 6B, when the finger drags the list to the bottom, or the finger releases the list to scroll to the bottom, the x coordinate of p0 is margin, and the y coordinate is height, that is, p0 (margin, height); the x coordinate of p1 is Width-margin, the y coordinate is height, which is p1 (width-margin, height); the x coordinate of p2 is width*0.5, and the y coordinate is height-inertia, which is p2 (width*0.5, height-inertia).
當確定一組基準點的座標資訊,執行子步驟506;當確定至少兩組基準點的座標資訊,執行子步驟510。 When the coordinate information of a set of reference points is determined, the sub-step 506 is executed; when the coordinate information of at least two sets of reference points is determined, the sub-step 510 is executed.
子步驟506,依據所述三個基準點的座標資訊繪製賽貝爾曲線。 In
子步驟508,將所述賽貝爾曲線和所述顯示介面的邊界構成響應圖像。 In
依據所述三個基準點的座標資訊繪製賽貝爾曲線時,即確定各基準點的控制點,採用該控制點繪製賽貝爾曲線。通常的圖形程式設計API(Application Programming Interface,應用程式設計發展介面)都帶有在兩點間繪製 貝茲曲線的方法,如有的語言中叫做cubicTo,有的語言中叫做cubicCurveTo,參數的數量都是6個,分別為起點的控制點x座標,起點控制點y座標,終點控制點x座標,終點控制點y座標,終點x座標,終點y座標。 When drawing the Sebel curve based on the coordinate information of the three reference points, the control points of each reference point are determined, and the Sebel curve is drawn using the control points. The usual graphic programming API (Application Programming Interface, application programming development interface) has a method to draw a Bezier curve between two points, such as cubicTo in some languages, cubicCurveTo in some languages, and the number of parameters is all There are six, which are the x coordinate of the starting point, the y coordinate of the starting point, the x coordinate of the end control point, the y coordinate of the end control point, the x coordinate of the end point, and the y coordinate of the end point.
如圖7A,圖7B所示,滾動到上邊界、地邊界時,均可配置各基準點的控制點,其中,p0的控制點設為p0R,p1的控制點設為p1L,由於p2需要分別和p0,p1繪製曲線,所以需要兩個控制點p2L,p2R。每個控制點距離其關鍵點的距離設為100dp。 As shown in Figure 7A and Figure 7B, when scrolling to the upper boundary and the ground boundary, the control points of each reference point can be configured. Among them, the control point of p0 is set to p0R, and the control point of p1 is set to p1L. Because p2 needs to be separated Draw a curve with p0 and p1, so two control points p2L and p2R are needed. The distance between each control point and its key point is set to 100dp.
首先從p0繪製到p1的直線,接著繪製從p1到p2的貝茲曲線,之後繪製p2到p0的貝茲曲線,如果用java代碼表示繪製過程,即:path.moveTo(p0.x,p0.y);path.lineTo(p1.x,p1.y);path.cubicTo(p1L.x,p1L.y,p2R.x,p2R.y,p2.X,p2.y);path.cubicTo(p2L.x,p2L.y,p0R.x,p0R.y,p0.x,p0.y)。 First draw a straight line from p0 to p1, then draw a Bezier curve from p1 to p2, and then draw a Bezier curve from p2 to p0. If you use java code to represent the drawing process, that is: path.moveTo(p0.x,p0. y); path.lineTo(p1.x,p1.y); path.cubicTo(p1L.x,p1L.y,p2R.x,p2R.y,p2.X,p2.y); path.cubicTo(p2L .x,p2L.y,p0R.x,p0R.y,p0.x,p0.y).
從而將繪製出的賽貝爾曲線和顯示介面的邊界構成響應圖像,則賽貝爾曲線和顯示介面的上邊界構成如圖8A所示的響應圖像,賽貝爾曲線和顯示介面的地邊界構成如圖8B所示的響應圖像。 Thus the drawn Sebel curve and the boundary of the display interface constitute a response image, the Sebel curve and the upper boundary of the display interface constitute the response image as shown in Figure 8A, and the Sebel curve and the boundary of the display interface constitute the response image as shown in Figure 8A. The response image shown in Figure 8B.
其中,貝茲曲線(Bézier curve),又稱貝茲曲線或貝濟埃曲線,是應用於二維圖形應用程式的數學曲線。一般的向量圖形軟體藉由它來精確畫出曲線,貝茲曲線由線段與節點組成,節點是可拖動的支點,線段像可伸縮的皮筋, 從而繪製出所需的曲線。 Among them, Bézier curve, also known as Bézier curve or Bézier curve, is a mathematical curve applied to two-dimensional graphics applications. The general vector graphics software uses it to accurately draw the curve. The Bezier curve is composed of line segments and nodes. The nodes are draggable fulcrums, and the line segments are like stretchable rubber bands to draw the required curve.
子步驟510,採用至少兩組基準點的座標資訊分別繪製賽貝爾曲線,其中,每組基準點包括三個基準點。 In
子步驟512,將至少兩條賽貝爾曲線和所述顯示介面的邊界構成響應圖像。 In
為了增強視覺效果,可以採用至少兩組基準點的座標資訊分別繪製各組對應賽貝爾曲線,每組基準點對應賽貝爾曲線繪製方式如上所述,因此不再贅述。接著將繪製的至少兩條賽貝爾曲線和所述顯示介面的邊界構成響應圖像。 In order to enhance the visual effect, the coordinate information of at least two sets of reference points can be used to draw the corresponding Sebel curve of each group. The drawing method of each set of reference points corresponding to the Sebel curve is as described above, so it will not be repeated. Then, the drawn at least two Sebel curves and the boundary of the display interface form a response image.
其中,藉由調整第一距離來繪製多組顯示基準點時,相應依據第一距離的調整來調整p2的座標資訊,則p2L,p2R也相應移動,保持在p2兩側,從而進行賽貝爾曲線的繪製,其中,p0和p1的座標不變,則各賽貝爾曲線與顯示介面的邊界的交點也相同。 Among them, when multiple sets of display reference points are drawn by adjusting the first distance, the coordinate information of p2 is adjusted according to the adjustment of the first distance, then p2L and p2R are also moved correspondingly and kept on both sides of p2, thus performing the Sebel curve In the drawing, where the coordinates of p0 and p1 remain unchanged, the intersection of each Sebel curve and the boundary of the display interface is also the same.
上述是賽貝爾曲線為例,實際還可以繪製其他曲線,如依據三個基準點繪製正弦曲線等,即本實施例中,所述響應圖像可以由一條或多條曲線與所述顯示介面的邊界構成。而曲線可以依據實際繪製需求確定,本發明實施例對此不做限定。 The above is the Sebel curve as an example. In fact, other curves can be drawn, such as a sine curve based on three reference points. That is, in this embodiment, the response image can be composed of one or more curves and the display interface. Border formation. The curve can be determined according to actual drawing requirements, which is not limited in the embodiment of the present invention.
本發明實施例中,所述曲線的波峰與所述滑動輸入的觸控點對應。以賽貝爾曲線為例,在給上下邊界繪製響應圖像,即配置p2的橫座標時,給第二距離即可視寬度width配置不同的權重則相應曲線的波峰就會變更,則該 參數可以依據滑動輸入的觸控點確定,如圖9A所示,觸控點向左則相應曲線的波峰偏左,如圖9B所示,觸控點向右則相應曲線的波峰偏右。 In the embodiment of the present invention, the peak of the curve corresponds to the touch point of the sliding input. Taking the Sebel curve as an example, when drawing the response image for the upper and lower boundaries, that is, when configuring the abscissa of p2, the second distance can be configured with different weights depending on the width, and the peak of the corresponding curve will change, and the parameter can be based on The touch point of the sliding input is determined, as shown in FIG. 9A, the peak of the corresponding curve is shifted to the left when the touch point is left, and the peak of the corresponding curve is shifted to the right when the touch point is shifted to the right.
本發明實施例中,顯示距離配置有第一距離即留白距離,若第一距離為0,則曲線與所述顯示介面的邊界的兩個交點即為顯示介面的左上角和右上角的頂點,即兩個交點間線段的長度等於該邊界的長度;相應若第一距離不為0,所述曲線與所述顯示介面的邊界的兩個交點間線段的長度小於該邊界的長度。 In the embodiment of the present invention, the display distance is configured with a first distance, that is, a blanking distance. If the first distance is 0, the two intersection points of the curve and the boundary of the display interface are the vertices of the upper left corner and the upper right corner of the display interface. , That is, the length of the line segment between two intersections is equal to the length of the boundary; correspondingly, if the first distance is not 0, the length of the line segment between the two intersections of the curve and the boundary of the display interface is less than the length of the boundary.
子步驟514,在所述響應圖像中填充顏色或圖案。 In sub-step 514, a color or pattern is filled in the response image.
子步驟516,設置所述響應圖像的透明度。 Sub-step 516, setting the transparency of the response image.
採用曲線和所述顯示介面的邊界構成響應圖像後,可以在響應圖像中填充顏色或圖案,從而突出該響應圖像;還可以設置響應圖像的透明度,以使響應圖像的顯示不影響當前的介面內容。 After the response image is formed by the curve and the border of the display interface, the response image can be filled with colors or patterns to highlight the response image; the transparency of the response image can also be set so that the response image is not displayed. Affect the current interface content.
在填充響應圖像時,可以在所述響應圖像中添加至少一種顏色或至少一種圖案,也可以按照以下任一種填充方式填充所述響應圖像,該填充方式包括:由淺到深填充,由深到淺填充,冷、暖色填充。當由多條曲線和邊界構成響應圖像時,不同曲線間可以填充不同顏色進行區分,如由淺到深填充,由深到淺填充,或者填充多種冷色,多種暖色或者藉由冷、暖色進行過渡。 When filling the response image, at least one color or at least one pattern may be added to the response image, or the response image may be filled in any of the following filling methods, the filling method includes: filling from light to dark, Fill in from dark to light, cold and warm colors. When the response image is composed of multiple curves and borders, different curves can be filled with different colors to distinguish, such as filling from light to dark, from dark to light, or filling with multiple cool colors, multiple warm colors, or by using cold and warm colors. transition.
步驟208,將所述響應圖像添加到所述顯示介面中進行顯示。 Step 208: Add the response image to the display interface for display.
步驟210,當撤銷所述滑動操作時,所述慣性勢能隨顯示訊框衰減。 Step 210: When the sliding operation is cancelled, the inertial potential energy decays along with the display frame.
步驟212,依據衰減的慣性勢能繪製響應圖像並顯示,直到慣性勢能衰減為0,停止繪製所述響應圖像。 Step 212: Draw a response image according to the attenuated inertial potential energy and display it until the inertial potential energy attenuates to 0, stop drawing the response image.
在繪製完響應圖像並填充顏色後,可以在顯示介面中顯示該響應圖像。為了給使用者帶來更好的體驗,同時符合慣性勢能的力學規律,在使用者手指或觸控筆離開螢幕,撤銷所述滑動操作時,可以配置慣性勢能inertia為隨顯示訊框衰減,如每訊框自衰減配置為inertia*=0.95,則每個顯示訊框均依照衰減的慣性勢能繪製響應圖像並顯示,直到慣性勢能衰減為0,停止繪製所述響應圖像。 After the response image is drawn and filled with colors, the response image can be displayed on the display interface. In order to bring a better experience to the user and conform to the laws of inertial potential energy, when the user's finger or stylus leaves the screen to cancel the sliding operation, the inertia potential energy inertia can be configured to decay with the display frame, such as The self-attenuation configuration of each frame is inertia*=0.95, and each display frame draws a response image according to the attenuated inertial potential energy and displays it until the inertial potential energy attenuates to 0, stop drawing the response image.
在配置有慣性勢能inertia後,當滑動到顯示介面的邊界時,可以根據inertia繪製曲線產生響應圖像。其中,手指按在螢幕上即保持該滑動操作時,確定每個顯示訊框均的inertia,繪製並顯示響應圖像;手指離開螢幕即撤銷滑動操作後,由於inertia每訊框自衰減,在inertia不接近0時,每訊框都進行繪製響應圖像,在inertia非常接近0時,例如inertia<0.1時,設inertia為0,且停止繪製響應圖像。 After inertia is configured with inertia potential energy, when sliding to the boundary of the display interface, a response image can be generated according to the inertia drawing curve. Among them, when the finger is pressed on the screen and the sliding operation is maintained, the inertia of each display frame is determined, and the response image is drawn and displayed; after the finger leaves the screen to cancel the sliding operation, each frame of inertia is attenuated. When it is not close to 0, every frame draws a response image. When inertia is very close to 0, for example, when inertia<0.1, set inertia to 0 and stop drawing the response image.
上述實施例中,主要以縱向滑動即上線滑動繪製響應圖像為例進行論述,實際上在橫向滑動即左右滑動時,各組基準點的確定,相應曲線的繪製與此類似,從而可以繪製出與顯示介面的左右邊界構成響應圖像的曲線,因此不 再贅述。 In the above-mentioned embodiment, the description is mainly based on the example of drawing the response image with vertical sliding, namely sliding on the line. In fact, when sliding horizontally, that is, sliding left and right, each group of reference points is determined and the corresponding curve is drawn similarly, so that it can be drawn The left and right borders of the display interface form the curve of the response image, so it will not be repeated here.
在繪製貝茲曲線時,曲線的曲度可以藉由控制第一距離margin,以及控制點到基準點的距離細微控制,從而繪製出多樣的曲線。此外,曲線的顏色可以是多種多樣的,可以是單一純色,還可以是漸變色,還可以是某種點陣圖材質,從而繪製顯示豐富的響應圖像,給使用者更好的提示和更多樣的互動體驗。 When drawing a Bezier curve, the curvature of the curve can be finely controlled by controlling the first distance margin and the distance from the control point to the reference point to draw a variety of curves. In addition, the color of the curve can be various, it can be a single solid color, it can also be a gradient color, it can also be a bitmap material, so as to draw and display rich response images, to give users better prompts and more Various interactive experiences.
本實施例中,上述步驟可以通用於多數針對CPU程式設計的電腦語言,還可以移植到針對GPU程式設計的電腦語言。 In this embodiment, the above-mentioned steps can be universally applied to most computer languages designed for CPU programming, and can also be transplanted to computer languages designed for GPU programming.
需要說明的是,對於方法實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是本領域技術人員應該知悉,本發明實施例並不受所描述的動作順序的限制,因為依據本發明實施例,某些步驟可以採用其他順序或者同時進行。其次,本領域技術人員也應該知悉,說明書中所描述的實施例均屬於較佳實施例,所關於的動作並不一定是本發明實施例所必須的。 It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the described sequence of actions, because According to the embodiments of the present invention, some steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the related actions are not necessarily required by the embodiments of the present invention.
在上述實施例的基礎上,本實施例還提供了一種介面操作的處理裝置。 On the basis of the foregoing embodiment, this embodiment also provides an interface operation processing device.
參照圖10,顯示了本發明一種介面操作的處理裝置實施例的結構方塊圖,具體可以包括如下模組:輸入接收模組1002,用於在顯示介面內接收滑動輸 入。 10, there is shown a structural block diagram of an embodiment of an interface operation processing device of the present invention, which may specifically include the following modules: an input receiving module 1002 for receiving sliding input in a display interface.
繪製模組1004,用於依據所述滑動輸入繪製響應圖像。 The drawing module 1004 is used to draw a response image according to the sliding input.
顯示模組1006,用於將所述響應圖像添加到所述顯示介面中進行顯示。 The display module 1006 is used to add the response image to the display interface for display.
綜上,在顯示介面內接收滑動輸入,依據所述滑動輸入繪製響應圖像,將所述響應圖像添加到所述顯示介面中進行顯示,能夠直接基於依據滑動輸入繪製響應圖像,無需使用者其他操作且在不干擾介面固有的滾動互動的前提下,提示使用者當前的滑動狀態。 In summary, receiving a sliding input in the display interface, drawing a response image according to the sliding input, and adding the response image to the display interface for display, the response image can be drawn directly based on the sliding input without using Other operations by the user and without interfering with the inherent scrolling interaction of the interface, prompt the user of the current sliding state.
參照圖11A,顯示了本發明另一種介面操作的處理裝置實施例的結構方塊圖,具體可以包括如下模組:輸入接收模組1102,用於在顯示介面內接收滑動輸入。 Referring to FIG. 11A, there is shown a structural block diagram of another embodiment of a processing device for interface operation of the present invention, which may specifically include the following modules: an input receiving module 1102 for receiving sliding input in the display interface.
繪製模組1104,用於依據所述滑動輸入繪製響應圖像。 The drawing module 1104 is used to draw a response image according to the sliding input.
顯示模組1106,用於將所述響應圖像添加到所述顯示介面中進行顯示。 The display module 1106 is configured to add the response image to the display interface for display.
其中,所述繪製模組1104,用於當依據滑動輸入判斷當前、滾動到所述顯示介面的邊界時,繪製所述響應圖像。 Wherein, the drawing module 1104 is used to draw the response image when it is judged that it is currently scrolled to the boundary of the display interface according to the sliding input.
所述響應圖像由一條或多條曲線與所述顯示介面的邊界構成。 The response image is composed of one or more curves and the boundary of the display interface.
所述曲線的波峰與所述滑動輸入的觸控點對應。 The crest of the curve corresponds to the touch point of the sliding input.
所述曲線與所述顯示介面的邊界的兩個交點間線段的長度小於所述邊界的長度。 The length of the line segment between the two intersection points of the boundary of the curve and the display interface is less than the length of the boundary.
所述輸入接收模組1102,用於在顯示介面內接收滑動操作,依據所述滑動操作產生滑動輸入。 The input receiving module 1102 is used to receive a sliding operation in the display interface, and generate a sliding input according to the sliding operation.
本發明一個可選實施例中,所述輸入接收模組1102,包括:滾動顯示子模組11022,用於依據所述滑動操作在所述顯示介面中滾動顯示介面內容。 In an optional embodiment of the present invention, the input receiving module 1102 includes a scrolling display sub-module 11022 for scrolling and displaying interface content in the display interface according to the sliding operation.
慣性勢能確定子模組11024,用於當滾動到所述顯示介面的邊界時,依據所述滑動操作確定慣性勢能,將所述慣性勢能作為滑動輸入。 The inertial potential energy determining sub-module 11024 is used to determine the inertial potential energy according to the sliding operation when scrolling to the boundary of the display interface, and use the inertial potential energy as a sliding input.
參照圖11B,顯示了本發明另一種介面操作的處理裝置實施例中慣性勢能確定子模組的結構方塊圖。 Referring to FIG. 11B, there is shown a block diagram of the structure of the inertial potential energy determining sub-module in another embodiment of the processing device for interface operation of the present invention.
所述慣性勢能確定子模組11024,包括:獲取單元110242,用於獲取當前顯示訊框,依據所述當前顯示訊框中確定所述滑動操作的方向和當前座標資訊;方向確定單元110244,用於依據所述滑動操作的方向確定慣性勢能的方向;距離確定單元110246,用於依據所述滑動操作對應當前座標資訊確定所述慣性勢能的距離。 The inertial potential energy determining sub-module 11024 includes: an acquiring unit 110242 for acquiring the current display frame, and determining the direction of the sliding operation and current coordinate information according to the current display frame; the direction determining unit 110244 uses The direction of the inertial potential energy is determined according to the direction of the sliding operation; the distance determining unit 110246 is configured to determine the distance of the inertial potential energy according to the current coordinate information corresponding to the sliding operation.
所述距離確定單元110246,用於獲取所述滑動輸入的起始座標資訊,其中,所述起始座標資訊包括:顯示介面開始接收滑動輸入對應位置的座標資訊;計算所述當前 座標資訊和所述起始座標資訊之間的距離,將所述距離作為慣性勢能的距離。 The distance determining unit 110246 is used to obtain the initial coordinate information of the sliding input, wherein the initial coordinate information includes: the display interface starts to receive the coordinate information of the corresponding position of the sliding input; The distance between the initial coordinate information is taken as the distance of inertial potential energy.
當所述滑動方向為水平方向時,基於橫座標計算所述距離;當所述滑動方向為垂直方向時,基於縱座標計算所述距離。 When the sliding direction is the horizontal direction, the distance is calculated based on the abscissa; when the sliding direction is the vertical direction, the distance is calculated based on the ordinate.
所述滾動顯示子模組11022,還用於當未滾動到所述顯示介面的邊界時,依據所述滑動操作確定滑動速度,依據所述滑動速度調整顯示介面內容的滾動速度。 The scroll display sub-module 11022 is also used for determining the sliding speed according to the sliding operation when the display interface is not scrolled to the boundary, and adjusting the scrolling speed of the content of the display interface according to the sliding speed.
所述滑動輸入包括慣性勢能;所述繪製模組1104,包括:基準點確定子模組11042,用於依據所述慣性勢能確定基準點。 The sliding input includes inertial potential energy; the drawing module 1104 includes: a reference point determining sub-module 11042 for determining a reference point according to the inertial potential energy.
繪製產生子模組11044,用於依據所述基準點繪製曲線,採用所述曲線產生響應圖像。 The drawing generation sub-module 11044 is used for drawing a curve according to the reference point, and using the curve to generate a response image.
參照圖11C,顯示了本發明另一種介面操作的處理裝置實施例中基準點確定子模組的結構方塊圖。 Referring to FIG. 11C, there is shown a structural block diagram of the fiducial point determination sub-module in another embodiment of the processing device for interface operation of the present invention.
所述基準點確定子模組11042,包括:距離獲取單元110422,用於獲取與所述顯示介面相關的顯示距離;座標確定單元110424,用於依據所述顯示距離和慣性勢能確定至少三個基準點的座標資訊。 The reference point determination sub-module 11042 includes: a distance acquiring unit 110422, configured to acquire a display distance related to the display interface; a coordinate determining unit 110424, configured to determine at least three benchmarks based on the display distance and inertial potential energy The coordinate information of the point.
距離獲取單元110422,用於獲取預置的第一距離,以及依據所述顯示介面確定第二距離和第三距離,所述第一距離、第二距離和第三距離構成所述顯示距離。 The distance acquiring unit 110422 is configured to acquire a preset first distance, and determine a second distance and a third distance according to the display interface, and the first distance, the second distance and the third distance constitute the display distance.
所述繪製產生子模組11044,用於依據所述至少三個基準點的座標資訊繪製賽貝爾曲線;將所述賽貝爾曲線和所述顯示介面的邊界構成響應圖像。 The drawing generation sub-module 11044 is used to draw a Sebel curve according to the coordinate information of the at least three reference points; and the boundary of the Sebel curve and the display interface constitutes a response image.
所述繪製產生子模組11044,用於採用至少兩組基準點的座標資訊分別繪製賽貝爾曲線,其中,每組基準點包括三個基準點;將至少兩條賽貝爾曲線和所述顯示介面的邊界構成響應圖像。 The drawing generation sub-module 11044 is used to draw the Seibel curve using the coordinate information of at least two sets of reference points, wherein each set of reference points includes three reference points; the at least two Seibel curves are combined with the display interface The borders of which constitute the response image.
所述繪製模組,還包括:顏色填充子模組11046,用於在所述響應圖像中添加至少一種顏色或至少一種圖案。 The drawing module further includes a color filling sub-module 11046 for adding at least one color or at least one pattern to the response image.
所述繪製模組,還包括:顏色填充子模組11046,用於按照以下任一種填充方式填充所述響應圖像;所述填充方式包括:由淺到深填充,由深到淺填充,冷、暖色填充。 The drawing module further includes: a color filling sub-module 11046 for filling the response image according to any of the following filling methods; the filling method includes: filling from light to dark, filling from dark to light, cold , Warm color filling.
所述繪製模組,還包括:透明度設置子模組11048,用於設置所述響應圖像的透明度。 The drawing module further includes: a transparency setting sub-module 11048 for setting the transparency of the response image.
所述繪製模組1104,還用於當撤銷所述滑動操作時,所述慣性勢能隨顯示訊框衰減;依據衰減的慣性勢能繪製響應圖像並顯示,直到慣性勢能衰減為0,停止繪製所述響應圖像。 The drawing module 1104 is also used for when the sliding operation is canceled, the inertial potential energy decays with the display frame; the response image is drawn and displayed according to the decayed inertial potential energy, until the inertial potential energy decays to 0, stop drawing The response image.
在配置有慣性勢能inertia後,當滑動到顯示介面的邊界時,可以根據inertia繪製曲線產生響應圖像。其中,手指按在螢幕上即保持該滑動操作時,確定每個顯示訊框均的inertia,繪製並顯示響應圖像;手指離開螢幕即撤銷滑動操作後,由於inertia每訊框自衰減,在inertia 不接近0時,每訊框都進行繪製響應圖像,在inertia非常接近0時,例如inertia<0.1時,設inertia為0,且停止繪製響應圖像。 After inertia is configured with inertia potential energy, when sliding to the boundary of the display interface, a response image can be generated according to the inertia drawing curve. Among them, when the finger is pressed on the screen and the sliding operation is maintained, the inertia of each display frame is determined, and the response image is drawn and displayed; after the finger leaves the screen to cancel the sliding operation, each frame of inertia is attenuated. When it is not close to 0, every frame draws a response image. When inertia is very close to 0, for example, when inertia<0.1, set inertia to 0 and stop drawing the response image.
上述實施例中,主要以縱向滑動即上線滑動繪製響應圖像為例進行論述,實際上在橫向滑動即左右滑動時,各組基準點的確定,相應曲線的繪製與此類似,從而可以繪製出與顯示介面的左右邊界構成響應圖像的曲線,因此不再贅述。 In the above-mentioned embodiment, the description is mainly based on the example of drawing the response image with vertical sliding, namely sliding on the line. In fact, when sliding horizontally, that is, sliding left and right, each group of reference points is determined and the corresponding curve is drawn similarly, so that it can be drawn The left and right borders of the display interface form the curve of the response image, so it will not be repeated here.
在繪製貝茲曲線時,曲線的曲度可以藉由控制第一距離margin,以及控制點到基準點的距離細微控制,從而繪製出多樣的曲線。此外,曲線的顏色可以是多種多樣的,可以是單一純色,還可以是漸變色,還可以是某種點陣圖材質,從而繪製顯示豐富的響應圖像,給使用者更好的提示和更多樣的互動體驗。 When drawing a Bezier curve, the curvature of the curve can be finely controlled by controlling the first distance margin and the distance from the control point to the reference point to draw a variety of curves. In addition, the color of the curve can be various, it can be a single solid color, it can also be a gradient color, it can also be a bitmap material, so as to draw and display rich response images, to give users better prompts and more Various interactive experiences.
本實施例中,上述步驟可以通用於多數針對CPU程式設計的電腦語言,還可以移植到針對GPU程式設計的電腦語言。 In this embodiment, the above-mentioned steps can be universally applied to most computer languages designed for CPU programming, and can also be transplanted to computer languages designed for GPU programming.
在上述實施例的基礎上,本實施例還揭露了一種智慧終端。 On the basis of the foregoing embodiment, this embodiment also discloses a smart terminal.
參照圖12,顯示了本發明一種智慧終端實施例的結構方塊圖,具體可以包括如下模組:該智慧終端1200包括:記憶體1210、顯示器1220、 處理器1230和輸入單元1240。 12, there is shown a structural block diagram of an embodiment of a smart terminal of the present invention, which may specifically include the following modules: The smart terminal 1200 includes a memory 1210, a display 1220, a processor 1230, and an input unit 1240.
其中,該輸入單元1240可用於接收使用者輸入的數位或字元資訊,以及控制訊號。具體地,本發明實施例中,該輸入單元1240可以包括觸控式螢幕1241,可收集使用者在其上或附近的觸控操作(例如使用者使用手指、觸筆等任何適合的物體或附件在觸控式螢幕1241上的操作),並根據預先設定的程式驅動相應的連接裝置。當然,除了觸控式螢幕1241,輸入單元1240還可以包括其他輸入裝置,如實體鍵盤、功能鍵(例如音量控制按鍵、開關按鍵等)、滑鼠等。 Wherein, the input unit 1240 can be used to receive digital or character information input by the user, and control signals. Specifically, in the embodiment of the present invention, the input unit 1240 may include a
顯示器1220包括顯示面板,可選的,可以採用液晶顯示器(Liquid Crystal Display,LCD)或有機發光二極體(Organic Light-Emitting Diode,OLED)等形式來配置顯示面板。其中,觸控式螢幕可以覆蓋顯示面板,形成觸控顯示幕,當該觸控顯示幕檢測到在其上或附近的觸控操作後,傳送給處理器1230以執行相應的處理。 The display 1220 includes a display panel. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED). Wherein, the touch screen may cover the display panel to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 1230 to perform corresponding processing.
在本發明實施例中,藉由調用儲存該記憶體1210內的軟體程式,和/或,模組,和/或,資料,處理器1230用於在顯示介面內接收滑動輸入;依據所述滑動輸入繪製響應圖像;將所述響應圖像添加到所述顯示介面中進行顯示。 In the embodiment of the present invention, by calling the software program, and/or, the module, and/or the data stored in the memory 1210, the processor 1230 is used to receive sliding input in the display interface; according to the sliding Input and draw a response image; add the response image to the display interface for display.
可選的,依據所述滑動輸入繪製響應圖像,包括:當依據滑動輸入判斷當前滾動到所述顯示介面的邊界時,繪製所述響應圖像。 Optionally, drawing the response image according to the sliding input includes: drawing the response image when it is determined that the current scroll is to the boundary of the display interface according to the sliding input.
可選的,所述響應圖像由一條或多條曲線與所述顯示介面的邊界構成。 Optionally, the response image is formed by a boundary between one or more curves and the display interface.
可選的,所述曲線的波峰與所述滑動輸入的觸控點對應。 Optionally, the peak of the curve corresponds to the touch point of the sliding input.
可選的,所述曲線與所述顯示介面的邊界的兩個交點間線段的長度小於所述邊界的長度。 Optionally, the length of a line segment between two intersection points of the curve and the boundary of the display interface is less than the length of the boundary.
可選的,在顯示介面內接收滑動輸入,包括:在顯示介面內接收滑動操作,依據所述滑動操作產生滑動輸入。 Optionally, receiving a sliding input in the display interface includes: receiving a sliding operation in the display interface, and generating the sliding input according to the sliding operation.
可選的,依據所述滑動操作產生滑動輸入,包括:依據所述滑動操作在所述顯示介面中滾動顯示介面內容;當滾動到所述顯示介面的邊界時,依據所述滑動操作確定慣性勢能,將所述慣性勢能作為滑動輸入。 Optionally, generating a sliding input according to the sliding operation includes: scrolling and displaying interface content in the display interface according to the sliding operation; when scrolling to the boundary of the display interface, determining the inertial potential energy according to the sliding operation , And use the inertial potential energy as the sliding input.
可選的,依據所述滑動操作確定慣性勢能,包括:獲取當前顯示訊框,依據所述當前顯示訊框中確定所述滑動操作的方向和當前座標資訊;依據所述滑動操作的方向確定慣性勢能的方向;依據所述滑動操作對應當前座標資訊確定所述慣性勢能的距離。 Optionally, determining the inertial potential energy according to the sliding operation includes: obtaining a current display frame, determining the direction of the sliding operation and current coordinate information according to the current display frame; determining the inertia according to the direction of the sliding operation The direction of the potential energy; the distance of the inertial potential energy is determined according to the current coordinate information corresponding to the sliding operation.
可選的,依據所述滑動操作對應當前座標資訊確定所述慣性勢能的距離,包括:獲取所述滑動輸入的起始座標資訊,其中,所述起始座標資訊包括:顯示介面開始接收滑動輸入對應位置的座標資訊;計算所述當前座標資訊和所述起始座標資訊之間的距離,將所述距離作為慣性勢能的距離。 Optionally, determining the distance of the inertial potential energy according to the current coordinate information corresponding to the sliding operation includes: acquiring initial coordinate information of the sliding input, wherein the initial coordinate information includes: the display interface starts to receive the sliding input The coordinate information of the corresponding position; calculate the distance between the current coordinate information and the initial coordinate information, and use the distance as the distance of inertial potential energy.
可選的,當所述滑動方向為水平方向時,基於橫座標 計算所述距離;當所述滑動方向為垂直方向時,基於縱座標計算所述距離。 Optionally, when the sliding direction is the horizontal direction, the distance is calculated based on the abscissa; when the sliding direction is the vertical direction, the distance is calculated based on the ordinate.
可選的,還包括:當未滾動到所述顯示介面的邊界時,依據所述滑動操作確定滑動速度,依據所述滑動速度調整顯示介面內容的滾動速度。 Optionally, the method further includes: when the boundary of the display interface is not scrolled, determining a sliding speed according to the sliding operation, and adjusting the scrolling speed of the content of the display interface according to the sliding speed.
可選的,所述滑動輸入包括慣性勢能;依據所述滑動輸入繪製響應圖像,包括:依據所述慣性勢能確定基準點;依據所述基準點繪製曲線,採用所述曲線產生響應圖像。 Optionally, the sliding input includes inertial potential energy; drawing a response image according to the sliding input includes: determining a reference point according to the inertial potential energy; drawing a curve according to the reference point, and using the curve to generate a response image.
可選的,依據所述慣性勢能確定基準點,包括:獲取與所述顯示介面相關的顯示距離;依據所述顯示距離和慣性勢能確定至少三個基準點的座標資訊。 Optionally, determining the reference point according to the inertial potential energy includes: obtaining a display distance related to the display interface; and determining coordinate information of at least three reference points according to the display distance and the inertial potential energy.
可選的,獲取與所述顯示介面相關的顯示距離,包括:獲取預置的第一距離,以及依據所述顯示介面確定第二距離和第三距離,所述第一距離、第二距離和第三距離構成所述顯示距離。 Optionally, acquiring the display distance related to the display interface includes: acquiring a preset first distance, and determining a second distance and a third distance according to the display interface, the first distance, the second distance, and the The third distance constitutes the display distance.
可選的,依據所述基準點繪製曲線,採用所述曲線產生響應圖像,包括:依據所述至少三個基準點的座標資訊繪製賽貝爾曲線;將所述賽貝爾曲線和所述顯示介面的邊界構成響應圖像。 Optionally, drawing a curve based on the reference point and using the curve to generate a response image includes: drawing a Sebel curve based on the coordinate information of the at least three reference points; combining the Sebel curve with the display interface The borders of which constitute the response image.
可選的,依據所述基準點繪製曲線,採用所述曲線產生響應圖像,包括:採用至少兩組基準點的座標資訊分別繪製賽貝爾曲線,其中,每組基準點包括三個基準點;將至少兩條賽貝爾曲線和所述顯示介面的邊界構成響應圖 像。 Optionally, drawing a curve based on the reference points and using the curve to generate a response image includes: drawing a Sebel curve using coordinate information of at least two sets of reference points, wherein each set of reference points includes three reference points; At least two Sebel curves and the boundary of the display interface form a response image.
可選的,還包括:在所述響應圖像中添加至少一種顏色或至少一種圖案。 Optionally, the method further includes: adding at least one color or at least one pattern to the response image.
可選的,還包括:按照以下任一種填充方式填充所述響應圖像;所述填充方式包括:由淺到深填充,由深到淺填充,冷、暖色填充。 Optionally, the method further includes: filling the response image according to any one of the following filling modes; the filling mode includes: filling from light to dark, filling from dark to light, and filling with cold and warm colors.
可選的,還包括:設置所述響應圖像的透明度。 Optionally, it further includes: setting the transparency of the response image.
可選的,還包括:當撤銷所述滑動操作時,所述慣性勢能隨顯示訊框衰減;依據衰減的慣性勢能繪製響應圖像並顯示,直到慣性勢能衰減為0,停止繪製所述響應圖像。 Optionally, the method further includes: when the sliding operation is canceled, the inertial potential energy decays along with the display frame; drawing a response image according to the decayed inertial potential energy and displaying it until the inertial potential energy decays to 0, stopping drawing the response graph Like.
對於裝置實施例而言,由於其與方法實施例基本相似,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。 As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
本說明書中的各個實施例均採用遞進的方式描述,每個實施例重點說明的都是與其他實施例的不同之處,各個實施例之間相同相似的部分互相參見即可。 The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other.
本領域內的技術入員應明白,本發明實施例的實施例可提供為方法、裝置、或電腦程式產品。因此,本發明實施例可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本發明實施例可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。 Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may adopt the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may adopt computer program products implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program codes. form.
在一個典型的配置中,所述電腦設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。記憶體可能包括電腦可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非揮發性記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。記憶體是電腦可讀媒體的實例。電腦可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的儲存媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可抹除可程式設計唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁磁片儲存或其他磁性存放裝置或任何其他非傳輸媒體,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,電腦可讀媒體不包括非暫態的電腦可讀媒體(transitory media),如調變的資料訊號和載波。 In a typical configuration, the computer equipment includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. Memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash). RAM). Memory is an example of computer-readable media. Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), and other types of random access memory (RAM) , Read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only CD-ROM (CD-ROM), digital multi-function Optical discs (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include non-transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
本發明實施例是參照根據本發明實施例的方法、終端設備(系統)、和電腦程式產品的流程圖和/或方塊圖來描述的。應理解可由電腦程式指令實現流程圖和/或方塊圖中的每一流程和/或方塊、以及流程圖和/或方塊圖中的流程和/或方塊的結合。可提供這些電腦程式指令到通用 電腦、專用電腦、嵌入式處理機或其他可程式設計資料處理終端設備的處理器以產生一個機器,使得藉由電腦或其他可程式設計資料處理終端設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的裝置。 The embodiments of the present invention are described with reference to the flowcharts and/or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to general-purpose computers, dedicated computers, embedded processors or other programmable data processing terminal equipment processors to generate a machine, so that the computer or other programmable data processing terminal equipment processors The executed instructions generate a device for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
這些電腦程式指令也可儲存在能引導電腦或其他可程式設計資料處理終端設備以特定方式工作的電腦可讀記憶體中,使得儲存在該電腦可讀記憶體中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能。 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal equipment to work in a specific manner, so that the instructions stored in the computer-readable memory can be generated including the manufacturing of the instruction device The instruction device realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
這些電腦程式指令也可裝載到電腦或其他可程式設計資料處理終端設備上,使得在電腦或其他可程式設計終端設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可程式設計終端設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的步驟。 These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operation steps are executed on the computer or other programmable terminal equipment to produce computer-implemented processing, so that the computer or other programmable terminal equipment The instructions executed on the design terminal device provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
儘管已描述了本發明實施例的較佳實施例,但本領域內的技術人員一旦得知了基本創造性概念,則可對這些實施例做出另外的變更和修改。所以,所附申請專利範圍意欲解釋為包括較佳實施例以及落入本發明實施例範圍的所有變更和修改。 Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the scope of the attached patent application is intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present invention.
最後,還需要說明的是,在本文中,諸如第一和第二等之類的關係用語僅僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或 操作之間存在任何這種實際的關係或者順序。而且,用語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、物品或者終端設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、物品或者終端設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個......”限定的要素,並不排除在包括所述要素的過程、方法、物品或者終端設備中還存在另外的相同要素。 Finally, it should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. Or there is any such actual relationship or sequence between operations. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements not only includes those elements, but also includes those elements that are not explicitly listed. Other elements listed, or also include elements inherent to this process, method, article, or terminal device. Without more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same elements in the process, method, article, or terminal device that includes the element.
以上對本發明所提供的一種介面操作的處理方法、一種介面操作的處理裝置,以及一種智慧終端,進行了詳細介紹,本文中應用了具體個例對本發明的原理及實施方式進行了闡述,以上實施例的說明只是用於幫助理解本發明的方法及其核心思想;同時,對於本領域的一般技術人員,依據本發明的思想,在具體實施方式及應用範圍上均會有改變之處,綜上所述,本說明書內容不應理解為對本發明的限制。 In the above, a method for processing interface operations, a device for processing interface operations, and a smart terminal provided by the present invention have been introduced in detail. In this article, specific examples are used to illustrate the principles and implementations of the present invention. The above implementations The description of the examples is only used to help understand the method and the core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and the scope of application. In summary As mentioned, the content of this specification should not be construed as a limitation of the present invention.
Claims (33)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW106102483A TWI724096B (en) | 2017-01-23 | 2017-01-23 | Processing method, device and smart terminal for interface operation |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW106102483A TWI724096B (en) | 2017-01-23 | 2017-01-23 | Processing method, device and smart terminal for interface operation |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201827997A TW201827997A (en) | 2018-08-01 |
| TWI724096B true TWI724096B (en) | 2021-04-11 |
Family
ID=63960472
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW106102483A TWI724096B (en) | 2017-01-23 | 2017-01-23 | Processing method, device and smart terminal for interface operation |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI724096B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101384047A (en) * | 2007-09-04 | 2009-03-11 | Lg电子株式会社 | Scrolling method of mobile terminal |
| CN102385473A (en) * | 2010-09-02 | 2012-03-21 | 腾讯科技(深圳)有限公司 | Page switching method and device |
| CN102597944A (en) * | 2009-10-16 | 2012-07-18 | 高通股份有限公司 | Content boundary signaling techniques |
| US20140379341A1 (en) * | 2013-06-20 | 2014-12-25 | Samsung Electronics Co., Ltd. | Mobile terminal and method for detecting a gesture to control functions |
-
2017
- 2017-01-23 TW TW106102483A patent/TWI724096B/en not_active IP Right Cessation
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101384047A (en) * | 2007-09-04 | 2009-03-11 | Lg电子株式会社 | Scrolling method of mobile terminal |
| CN102597944A (en) * | 2009-10-16 | 2012-07-18 | 高通股份有限公司 | Content boundary signaling techniques |
| CN102385473A (en) * | 2010-09-02 | 2012-03-21 | 腾讯科技(深圳)有限公司 | Page switching method and device |
| US20140379341A1 (en) * | 2013-06-20 | 2014-12-25 | Samsung Electronics Co., Ltd. | Mobile terminal and method for detecting a gesture to control functions |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201827997A (en) | 2018-08-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR102042169B1 (en) | User termincal device for displaying contents and methods thereof | |
| US9710149B2 (en) | Method and apparatus for displaying user interface capable of intuitively editing and browsing folder | |
| US20130169579A1 (en) | User interactions | |
| CN105892831A (en) | Sliding display method and sliding display device of list data of mobile terminal | |
| US20140129988A1 (en) | Parallax and/or three-dimensional effects for thumbnail image displays | |
| CN110716687B (en) | Method and apparatus for displaying picture on portable device | |
| JP2015507783A (en) | Display device and screen mode changing method using the same | |
| CN106445431A (en) | Terminal operation method and device | |
| KR20160033547A (en) | Apparatus and method for styling a content | |
| US8745525B1 (en) | Presenting graphical windows on a device | |
| KR20190064633A (en) | Method and apparatus for displaying pages, graphical user interface, and mobile terminal | |
| KR20140102386A (en) | Display apparatus and control method thereof | |
| WO2017097142A1 (en) | Interface operation processing method and apparatus, and a smart terminal | |
| TWI724096B (en) | Processing method, device and smart terminal for interface operation | |
| EP2998833B1 (en) | Electronic device and method of controlling display of screen thereof | |
| US20180067632A1 (en) | User terminal apparatus and control method thereof | |
| CN116541619A (en) | Page rolling display method and display device | |
| EP2767973A1 (en) | User terminal and method of displaying image thereof | |
| JP6427504B2 (en) | User terminal and image display method thereof | |
| GB2505404A (en) | Rotating a graphical user interface object in 3D space | |
| WO2017097141A1 (en) | Inputting operation processing method and apparatus, and smart terminal | |
| TW201828026A (en) | Input operation processing method, device, and an intelligent terminal solves existing problem that the input condition cannot be known |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |