Graph reference chart editing method, device, and computer-readable storage medium
The method and apparatus for editing graph reference charts on mobile terminals address the inconvenience of manual analysis by enabling direct editing of reference charts on price trend charts, improving the accuracy and efficiency of price trend analysis.
Patent Information
- Application Number
- JP2022558349
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-03-23
- Filing Date
- 2021-03-23
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2041-03-23
AI Technical Summary
Conventional financial market information software on mobile terminals can only display price trend charts, making it inconvenient for users to perform accurate price trend analysis, which is time-consuming and labor-intensive when done manually.
A method and apparatus for editing graph reference charts on mobile terminals that allows users to select a graph operation target, switch to an editable state, and perform touch-based editing operations on a control area to create, modify, or delete reference charts directly on the main chart.
Enables users to efficiently edit and analyze price trends on mobile devices, enhancing the accuracy and convenience of price trend analysis by allowing direct manipulation of reference charts on price trend charts.
Smart Images

Figure 0007553591000014 
Figure 0007553591000001 
Figure 0007553591000006
Abstract
Description
[Technical field]
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus and computer-readable storage medium for editing a reference chart of a graph. [Background technology]
[0002] Currently, financial market information software that can be run on mobile terminals has been developed to enable users to view financial market information at any time. Through this financial market information software, price trend charts of stocks, options, etc. can be viewed, and users can perform price trend analysis according to the price trend charts.
[0003] However, the conventional mobile terminal financial market information software can only display price trend charts, and users need to complete specific price trend analysis by themselves, which makes it inconvenient for users to perform price trend analysis on price trend charts. Users can analyze price trends by visually observing the price trend chart, but the accuracy of the analysis results obtained in this way is low. Users can also take screenshots of the price trend chart and print them, or manually draw reference charts on the price trend chart to perform price trend analysis, but this method is time-consuming and labor-intensive. Summary of the Invention [Problem to be solved by the invention]
[0004] The main objective of the embodiments of the present application is to provide a graph reference chart editing method, device, and computer-readable storage medium to solve the problem that the conventional financial market information software of a mobile terminal can only display price trend charts, and it is inconvenient to perform price trend analysis on the price trend charts. [Means for solving the problem]
[0005] The above technical problems are solved by the embodiments of the present application through the following technical solutions.
[0006] A reference chart editing method for a graph according to an embodiment of the present application is executed on a mobile terminal, and includes the steps of: detecting whether a graph operation target is selected in a process of displaying a graph; switching a state of the graph to an editable state when the graph operation target is selected; detecting a pre-set editing touch event in a control area of an editing page corresponding to the graph after switching the state of the graph to an editable state, the editing page including the control area and the graph, and the control area overlapping an area of a main chart of the graph; and performing an editing operation of a reference chart on the main chart of the graph and editing the reference chart on the main chart in response to the editing touch event detected in the control area of the editing page.
[0007] An embodiment of the present application further provides a graph reference chart editing device, the graph reference chart editing device comprising a memory, a processor and a computer program stored in the memory and operable on the processor, and when the computer program is executed by the processor, the steps of the graph reference chart editing method described above are realized.
[0008] An embodiment of the present application further provides a computer-readable storage medium, in which a graph reference chart editing program is stored, and when the data exchange program is executed by a processor, the steps of the graph reference chart editing method described above are realized.
[0009] The beneficial effects of the embodiment of the present application are as follows: after the graph operation target is selected, the embodiment of the present application can edit the reference chart on the main chart of the graph through a touch operation in the control area of the editing page. The embodiment of the present application can display the graph, and at the same time, can edit the reference chart on the main chart of the graph through a touch operation, so that the user can perform price trend analysis on the main chart according to the reference chart edited on the main chart. [Brief description of the drawings]
[0010] The drawings described herein are intended to provide a further understanding of the present application and constitute a part of the present application, and the illustrative embodiments and the description thereof are intended to interpret the present application and are not to be construed as undue limitations of the present application. [Figure 1] 1 is a flowchart of a reference chart editing method for a graph according to an embodiment of the present application; [Diagram 2] FIG. 13 is a schematic diagram of a graph edit entry on a quote page according to one embodiment of the present application. [Diagram 3] FIG. 13 is a schematic diagram of a page change after a graph editing entry is selected according to an embodiment of the present application; [Figure 4] FIG. 13 is a schematic diagram of a page change after a graph editing entry is selected according to an embodiment of the present application; [Diagram 5] 1 is a flowchart showing the steps for creating a reference chart according to one embodiment of the present application. [Figure 6] FIG. 2 is a schematic diagram of a line drawing toolbar according to one embodiment of the present application; [Figure 7] FIG. 2 is a schematic diagram of anchor point creation presentation information according to an embodiment of the present application; [Figure 8] 1 is a flow chart showing the steps of correcting a reference chart position according to an embodiment of the present application; [Figure 9] 1 is a flowchart showing the steps of modifying a reference chart attribute according to an embodiment of the present application; [Figure 10]1 is a flow chart showing steps for modifying a reference chart shape according to one embodiment of the present application; [Figure 11] FIG. 2 is a schematic diagram illustrating an enlarged display image according to an embodiment of the present application. [Figure 12] 1 is a flowchart showing the steps of deleting a reference chart according to an embodiment of the present application; [Figure 13] FIG. 13 is a schematic diagram of editing a line segment according to an embodiment of the present application; [Figure 14] FIG. 1 is a schematic diagram of editing rays according to an embodiment of the present application; [Figure 15] FIG. 13 is a schematic diagram of editing a straight line according to an embodiment of the present application; [Figure 16] FIG. 13 is a schematic diagram of editing parallel lines according to an embodiment of the present application; [Figure 17] FIG. 13 is a schematic diagram of editing an isoperimeter according to an embodiment of the present application; [Figure 18] FIG. 1 is a schematic diagram of editing a channel line according to an embodiment of the present application; [Figure 19] FIG. 2 is a schematic diagram of editing a triangle according to an embodiment of the present application; [Figure 20] FIG. 13 is a schematic diagram of editing a rectangle according to an embodiment of the present application; [Figure 21] FIG. 13 is a schematic diagram of editing a parallelogram according to an embodiment of the present application; [Figure 22] FIG. 13 is a schematic diagram of editing a circle according to an embodiment of the present application; [Figure 23] FIG. 2 is a schematic diagram of editing three wavy lines according to an embodiment of the present application. [Figure 24] FIG. 2 is a structural diagram of a graph reference chart editing device according to an embodiment of the present application; [Diagram 25] FIG. 2 is a structural diagram of a processor according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] In order to make the objectives, technical solutions and advantages of the present application more apparent, the present application will be described in more detail below in combination with drawings and specific embodiments.
[0012] According to an embodiment of the present application, a method for editing a reference chart of a graph is provided. As shown in Figure 1, it is a flowchart of a method for editing a reference chart of a graph according to an embodiment of the present application.
[0013] In step S110, in the process of displaying the graph, it is detected whether a graph operation object is selected, and if so, step S120 is executed; if not, step S110 is executed and it is continued to detect whether a graph operation object is selected.
[0014] The graphs include, but are not limited to, a main chart, a sub-chart, and graph information.
[0015] A main chart refers to a price trend chart that corresponds to a graph body. A graph body is the entity to which a price trend chart belongs. A graph body is, for example, a company. Types of price trend charts include, but are not limited to, underlying stocks, options, and indexes. Periods of price trend charts include, but are not limited to, time-series charts, daily K-line charts, weekly K-line charts, monthly K-line charts, quarterly K-line charts, and yearly K-line charts.
[0016] Subchart refers to indicator lines, such as rate of change, volume indicators, trend indicators, etc.
[0017] The graph information includes, but is not limited to, the name of the graph body, the trading state of the graph body, and the trading information of the graph body. The trading state includes, but is not limited to, trading periods and non-trading periods. The trading information includes, but is not limited to, the opening price, closing price, trading volume, and sales amount.
[0018] The graph operation targets include, but are not limited to, graph edit entries and reference charts created in the main chart.
[0019] The graph edit entry refers to an entry button for switching the state of the graph to an editable state. The graph edit entry may be provided on a first edit page of the graph and / or a second edit page of the graph. The first edit page of the graph may be an estimate page (vertical display surface) of the graph. The second edit page of the graph may be a horizontal display page including at least a main chart.
[0020] A reference chart created on a main chart refers to a graphic created on a main chart. By creating a reference chart on a main chart, the shape of the main chart can be analyzed and the current state and subsequent trend of the main chart can be determined.
[0021] In step S120, when the graph operation target is selected, the state of the graph is switched to an editable state.
[0022] The state of a graph includes an editable state and a non-editable state. The editable state means that the main chart of the graph is allowed to edit the reference chart. The non-editable state means that the main chart of the graph is prohibited from editing the reference chart. Editing the reference chart includes creating, modifying, and / or deleting the reference chart.
[0023] When a reference chart to be created in the main chart is selected, the state of the graph is switched to an editable state to allow modification and deletion of the reference chart. Furthermore, when a reference chart to be created in the main chart is selected, switching the state of the graph to an editable state includes switching the selected reference chart of the main chart to a selected state.
[0024] When the Edit Graph entry is selected, it switches the state of the graph to an editable state, allowing the main chart to create, modify and delete reference charts.
[0025] Furthermore, when the graph edit entry is selected, a second edit page is displayed, the state of the graph on the second edit page is switched to an editable state, and reference charts are permitted to be created, modified, and deleted in the main chart on the second edit page, and when the graph edit entry is closed, the state of the graph is switched to a non-editable state and the page state is restored to the state before the graph edit entry was selected. For example, when the graph edit entry is selected on the second edit page, the page maintains the second edit page, and when the graph edit entry is selected on the first edit page, the page is switched from the first edit page to the second edit page, and after the graph edit entry is closed, the page is restored to the previous first edit page.
[0026] In step S130, after the state of the graph is switched to an editable state, an edit touch event preset in a control area of an edit page corresponding to the graph is detected.
[0027] A graph can be displayed on the edit page. The edit page includes a control area and a graph, and the control area and the area of the main chart of the graph overlap. The edit page includes a first edit page and a second edit page. The control area of the edit page refers to an area for detecting edit touch events for editing the reference chart, and the edit touch events include, but are not limited to, a touch down event, a touch move event, and a touch up event. The touch down event is an event that occurs when a user's finger touches the screen of the mobile terminal, the touch move event is an event that occurs when the user's finger moves (drags) on the screen of the mobile terminal, and the touch up event is an event that occurs when the user's finger is lifted off the screen of the mobile terminal.
[0028] When a user's finger touches the screen of the mobile terminal, the mobile terminal can detect a touch event and determine whether the touch event occurs in a control area of an editing page according to the location where the touch event occurs. If the touch event occurs in the control area of an editing page and the type is a touch-down event, a touch-move event, or a touch-up event, the editing touch event is considered to have been detected.
[0029] In step S140, an editing operation of a reference chart is performed on a main chart in the graph in response to an editing touch event detected in a control area of the editing page, so that the reference chart is edited on the main chart.
[0030] The reference chart editing operations include a reference chart creation operation, a reference chart modification operation, and / or a reference chart deletion operation.
[0031] The create reference chart operation is used to create a reference chart in the main chart in response to an edit touch event detected in a control area of the edit page.
[0032] The modify reference chart operation is used to modify the position, attributes and / or shape of a reference chart created on the main chart in response to an edit touch event detected in a control area of the edit page.
[0033] The delete reference chart operation is used to delete a reference chart that was created in the main chart in response to an edit touch event detected in a control area of the edit page.
[0034] Before performing the reference chart editing operation on the main chart in the graph, the editing description of the reference chart can be set. The editing description of the reference chart includes steps of how to create, modify and delete a reference chart. After detecting that the description display button is selected, it jumps to a page for displaying the editing description of the reference chart, and after the page displaying the editing description of the reference chart is closed, it returns to the page before the jump. The page displaying the editing description of the reference chart may be an H5 page. H5 is the abbreviation of HTML (HyperText Markup Language) 5, i.e. HTML5.0.
[0035] When performing a reference chart editing operation on a main chart in a graph, the main chart needs to be updated once per preset period. Therefore, in order to avoid affecting the accuracy of the main chart, the main chart is continuously updated according to the update period of the main chart during the process of performing the reference chart editing operation.
[0036] When a graph edit entry is selected on the first edit page, a second edit page can be switched to, and the reference chart is edited on the second edit page; after the graph edit entry is closed, the first edit page is restored to the first edit page before the graph edit entry was selected, and the first edit page displays the main chart after editing the reference chart or hides the edited reference chart on the main chart; when the first edit page displays the main chart after editing the reference chart, after a reference chart in the main chart is selected, the first edit page is maintained, and the reference chart is modified or deleted on the first edit page.
[0037] After performing a reference chart editing operation on the main chart in the graph, the editing result is stored in a local memory or uploaded to a back-end server, and when the graph is displayed again, the previous editing result can be obtained from the local memory or the back-end server, and the edited reference chart can be displayed on the main chart of the graph according to the editing result. For example, after creating a reference chart last time, when viewing the main chart this time, the main chart displays the reference chart created last time, if the color of the reference chart was modified last time, when viewing the main chart this time, the main chart displays the reference chart after the color was modified, and if the reference chart was deleted last time, when viewing the main chart this time, the main chart displays the main chart after the reference chart was deleted. Furthermore, in this embodiment, preferably, after performing a reference chart editing operation on the main chart in the graph, the editing result is uploaded to a back-end server, and the editing result is synchronized between different mobile terminals.
[0038] In order to make it convenient for users to view the main chart, a hide reference chart button and a show reference chart button can be set on the edit page. After the hide reference chart button is selected, the edited reference chart will be hidden in the main chart, and after the show reference chart button is selected, the edited reference chart will be displayed in the main chart. Moreover, the show reference chart button is selected by default.
[0039] In order to facilitate users to analyze the main chart, the edit page can support functions such as displaying the line drawing toolbar, zooming in and / or zooming out of the graph, chip distribution, cross pin logo, setting buy / sell labels, setting custom labels, displaying cost lines, displaying details, etc. In addition, the line drawing toolbar is a tool for editing the reference chart in the main chart. The line drawing toolbar includes at least a plurality of line drawing types and a plurality of attribute modification options. The line drawing toolbar includes two parts that are displayed independently, the first part being a plurality of line drawing types and the second part being a plurality of attribute modification options. After the graph editing entry is selected or the reference chart created in the main chart is selected, the line drawing toolbar can be displayed in the edit page, and after the line drawing toolbar is closed, the edit page is closed, or the graph editing entry is closed, the display of the line drawing toolbar is canceled. When performing the reference chart editing operation on the main chart in the graph, the use of the cross pin logo, zooming in or zooming out of the main chart is prohibited, the graph body is switched, and the cycle of the main chart is switched.
[0040] In the present application, after the graph editing entry is selected, a reference chart editing is performed on the main chart in the graph by a touch operation on the control area of the editing page. In the embodiment of the present application, a graph can be displayed, and at the same time, a reference chart can be edited on the main chart of the graph by a touch operation, so that the user can perform price trend analysis on the main chart according to the reference chart edited on the main chart.
[0041] The configuration of graph edit entries is further described below.
[0042] Graph editing entries can be configured as virtual and / or physical buttons.
[0043] If the graph editing entry is a physical button, it can be implemented using an existing physical button of the mobile terminal. For example, in the process of displaying a graph, pressing the HOME button for a predetermined period of time indicates that the graph editing entry is selected.
[0044] When the graph edit entry is a virtual button, the graph edit entry can be set to a first edit page of the graph and / or a second edit page of the graph, for example, the first edit page is a quote page (vertical display page) containing the graph, and the second edit page is a horizontal display page containing at least the main chart.
[0045] As shown in Fig. 2 and Fig. 3, in both cases, a graph editing entry is set on the quote page, and a virtual button "Line Drawing" corresponding to the graph editing entry is set on the toolbar corresponding to the main chart. In Fig. 2, the graph editing entry "Line Drawing" is used as a first level option button on the toolbar, and in Fig. 3, after the graph editing entry "Line Drawing" is selected, the user enters from the first editing page to the second editing page.
[0046] As shown in Fig. 4, a graph editing entry is set on the horizontal display page of the main chart, and a virtual button "line drawing" corresponding to the graph editing entry is set on the toolbar on the horizontal display page of the main chart, and the character "line drawing" is replaced with a pen graphic. After the graph editing entry "line drawing" is selected, the page is made to maintain the editing page.
[0047] When a graph edit entry set on the second edit page of the graph is selected, the graph edit page is maintained.When a graph edit entry set on the first edit page of the graph is selected, the graph second edit page is entered.When entering the graphical edit page from the second edit page of the graph, a transition special effect is used to improve the sensory effect for the user.
[0048] The reference chart creation operation is further described below.
[0049] As shown in FIG. 5, it is a step flow chart of creating a reference chart according to one embodiment of the present application.
[0050] In step S510, a plurality of line drawing types are preset for the edit page.
[0051] Line drawing types include, but are not limited to, line segment, horizontal line segment, vertical line segment, ray, straight line, horizontal line, parallel line, regular periodic line, channel line, triangle, rectangle, parallelogram, circle, 3-wavy line, 5-wavy line, and 8-wavy line.
[0052] When there are many kinds of line art types, in order to make it easier for users to find the line art types they need, each line art type can be divided into multi-level types according to its features, where the first level type is the parent type (high-level type), and the second level type is the subtype of the first level type (low-level type).
[0053] First level types include, but are not limited to, line types, polygon types, and wavy line types.
[0054] The second level types of line segment types include line segment, horizontal line segment, vertical line segment, radial line, straight line, horizontal straight line, parallel line, equal periodic line and channel line. A schematic diagram of the line drawing toolbar as shown in Figure 6 shows the first level type menu and the second level type menu of line segment types.
[0055] Second level types of polygon types include triangle, rectangle, parallelogram, circle and ellipse.
[0056] Second level types of wavy line types include 3 wavy lines, 5 wavy lines, 8 wavy lines, head-shoulders top, head-shoulders bottom, M-head-W bottom, ABCD form, XABCD form, and triangle form.
[0057] In step S520, it is detected whether a preset line drawing type is selected for the edit page, and if so, execute step S530; if not, continue to execute step S520.
[0058] After switching the state of the graph to an editable state, it is detected whether a line drawing type preset on the edit page is selected before detecting an edit touch event preset on a control area of the edit page corresponding to the graph.
[0059] If the line art type includes only first level types, it is detected whether a preset line art type is selected on the edit page. If it is detected that a preset line art type is selected, the selected line art type is displayed in a preset color. By displaying the selected line art type in a preset color, the user can know the selected line art type at a glance.
[0060] When the line art type includes a multi-level type, it is detected whether a lowest level line art type preset on the edit page is selected. When it is detected that a preset line art type is selected, it shows the selected line art type in a preset color, or hides the menu of lower level line art types and shows only the highest level line art types, and shows the highest level line art type corresponding to the selected line art type in a preset color.
[0061] In step S530, when it is detected that a preset line drawing type has been selected, the total number of anchor points corresponding to the selected line drawing type is determined.
[0062] The total number of anchor points is preset corresponding to each line drawing type, for example, the total number of anchor points corresponding to a line segment is two anchor points, and the total number of anchor points corresponding to a triangle is three anchor points.
[0063] After selecting a line drawing type, anchor points corresponding to the line drawing type can be created on the main chart, and the number of anchor points that need to be created is equal to the total number of anchor points corresponding to the line drawing type. After the creation of all anchor points is completed, the creation of a reference chart corresponding to the selected line drawing type is completed on the main chart.
[0064] In step S540, an anchor point is created in the main chart of the graph in response to an edit touch event detected in a control area of an edit page.
[0065] Because the reference chart does not support editing operations in areas other than the control area of the edit page, it only detects edit touch events that occur in the control area of the edit page.
[0066] When a touch-down event is detected in the control area of the edit page, a touch-up event is detected in the control area of the edit page, and when a touch-up event is detected in the control area of the edit page, an anchor point is created according to the location where the touch-up event occurred.
[0067] Furthermore, the location where the touch-down event occurs is the initial coordinate location of the touch point, and the location where the touch-up event occurs is the final coordinate location of the touch point. The final coordinate location of the touch point can be the creation location of the anchor point, and of course, another location close to the location of the touch point can also be the creation location of the anchor point. After detecting a touch-down event in the control area of the editing page, it can be detected whether a touch-move event occurs before detecting a touch-up event, and when the touch-move event is detected, the coordinate location of the touch point is corrected. The coordinate location of the touch point is the latest occurrence location of the touch-move event.
[0068] Specifically, creating an anchor point according to the location where a touch-up event occurs includes creating an anchor point at the location where a touch-up event occurs, or using a magnetic attraction function in the process of creating an anchor point, i.e., when a touch-up event is detected in the control area of the editing page, detecting whether the distance between the location where the touch-up event occurs and a first preset point on the main chart is smaller than a first preset distance threshold, and when detecting that the distance between the location where the touch-up event occurs and the first preset point on the main chart is smaller than the first preset distance threshold, creating an anchor point at the location of the first preset point. The distance threshold is an empirical value or a value obtained through testing, for example, a distance of 10 pixel points. The first preset point refers to a preset location on a price trend chart. The preset location can be set as needed. For example, the first preset point is a preset candle point of a candle on a K-line chart, for example, the highest point, lowest point, opening point or closing point of a candle. The magnetic attraction function can be controlled on and off via a magnetic attraction button. In this embodiment, the open / close status of the magnetic attraction function can be stored locally in the mobile terminal, and can also be stored in the back-end server, so that the open / close status of the magnetic attraction function can be read the next time the editing page is entered. When the magnetic attraction function is turned on or off, a presentation information can be displayed on the editing page. The presentation information can be a toast presentation.
[0069] Furthermore, after the creation of an anchor point is completed, the created anchor point is in a selected state, and after a touch-down event occurs on the anchor point, the selected state of the anchor point is cancelled. After the selected state of the anchor point is cancelled, the next anchor point can be created.
[0070] Furthermore, if the selected line drawing type is changed during the process of creating anchor points, the flow shown in FIG. 5 is executed again.
[0071] In step S550, a shape for creating a reference chart is drawn on the main chart according to the created anchor points, and when the number of created anchor points is equal to the total number of anchor points, the creation of the reference chart is completed.
[0072] After the creation of the reference chart is completed, the created reference chart is in a selected state, and a reference chart modification operation and a reference chart deletion operation are permitted to be performed on the reference chart, and after a touch-down event and a touch-up event are generated on the reference chart, the selected state of the reference chart is cancelled.
[0073] In this embodiment, after the creation of the reference chart is completed, the line drawing toolbar is restored to its initial state, i.e., no line drawing type is selected. Of course, a continuous line drawing function can be set on the edit page. The continuous line drawing function means that after the creation of the previous reference chart is completed, the line drawing toolbar can be left as it is, and the line drawing type selected when creating the previous reference chart is continued to be used to create the next reference chart. Furthermore, when the continuous line drawing function is turned on, in the process of creating anchor points, the number of created anchor points is counted, and when the number of created anchor points is equal to the total number of anchor points corresponding to the selected line drawing type, the creation of the reference chart is completed, and the number of anchor points is recounted, and when the number of created anchor points is equal to the number of anchor points corresponding to the selected line drawing type again, one reference chart is recreated.
[0074] In this embodiment, the anchor points may be presented according to the relationship between the number of anchor points created in the process of creating the anchor points and the total number of anchor points. Specifically, if the number of the created anchor points is equal to or less than the total number of anchor points, anchor point creation prompting information is displayed, and the anchor point creation prompting information includes the selected line drawing type, the total number of anchor points, and / or the number of the created anchor points, and / or if the number of the created anchor points is equal to the total number of anchor points, creation completion prompting information is displayed. The anchor point creation prompting information and the creation completion prompting information can be set as toast prompting information.
[0075] As shown in Fig. 7, a schematic diagram of anchor point creation prompt information is presented, which shows that two anchor points corresponding to a line segment need to be created, and the anchor point creation prompt information needs to "click two anchor points", and no anchor point has been created between the two anchor points. When the continuous line drawing function is turned on, if you start to create the next reference chart, you need to change the content of the anchor point creation prompt information to the number of created anchor points corresponding to the next reference chart.
[0076] In this embodiment, in the process of creating an anchor point, the created anchor point can be deleted. Specifically, an anchor point delete button is set on the editing page, and after detecting that a touch-down event occurs on the anchor point, the state of the anchor point is switched to a selected state, and after detecting that the anchor point delete button is selected, the anchor point in the selected state is deleted. Furthermore, after creating the first anchor point of a reference chart, the line drawing toolbar is restored to the initial state when the first anchor point is deleted; of course, when the continuous line drawing function is turned on, the line drawing toolbar can be left as it is, and there is no need to restore it to the initial state.
[0077] In the present embodiment, in the process of creating an anchor point, an image within a certain range may be displayed using a magnifying glass function. Specifically, when a touch-down event is detected in a control area of the editing page and the touch-down event is maintained for a first preset time, an image within a first preset range at a position where the touch-down event occurs is enlarged and displayed at a first preset ratio, and / or when a touch-move event is detected in the control area of the editing page, an image within a second preset range at a position where the touch-move event occurs is enlarged and displayed at a second preset ratio. The first preset time, the first preset ratio, the first preset range, the second preset ratio, and the second preset range are values obtained through experience or testing.
[0078] The reference chart modifying operation and the reference chart deleting operation are further described below.
[0079] When a touch down event is detected to occur on a reference chart created in a control area of an editing page, the state of the reference chart is switched to a selected state; when a touch move event is detected to occur on the reference chart after switching the state of the reference chart to the selected state, the position of the reference chart is adjusted according to the touch move event; when a touch up event is detected to occur on the reference chart during the process of adjusting the position of the reference chart according to the touch move event, the position of the reference chart is fixed according to the touch up event; and / or, when a preset attribute modification option is detected to be selected after switching the state of the reference chart to the selected state, the attributes of the reference chart are modified according to the selected attribute modification option; and / or, when a preset graphic deletion option is detected to be selected after switching the state of the reference chart to the selected state, the reference chart is deleted.
[0080] When a touch down event is detected to have occurred at an anchor point of a reference chart created in a control area of an editing page, a state of the anchor point is switched to a selected state; when a touch move event is detected to have occurred at the anchor point after the state of the anchor point is switched to the selected state, a position of the anchor point is adjusted in response to the touch move event, and a shape of the reference chart where the anchor point is located is adjusted in response to the adjusted position of the anchor point; when a touch up event is detected to have occurred at the anchor point during the process of adjusting the position of the anchor point in response to the touch move event, the adjusted position of the anchor point is fixed in response to the touch up event, and the shape of the reference chart where the anchor point is located is fixed in response to the fixed position of the anchor point.
[0081] Specifically, the reference chart modification includes reference chart position modification, reference chart attribute modification, and / or reference chart shape modification. Furthermore, when the reference chart is created, the reference chart attributes are preset default attributes, and the default attributes at the time of creation can be adjusted by modifying the reference chart attributes, and the modification of the reference chart shape can be realized by modifying the position of the anchor point on the reference chart.
[0082] Furthermore, a lock button can be set on the edit page, and after the lock button is selected, the position, attributes and / or shape of the reference chart are prohibited from being modified. After the lock button is selected, the position, attributes and / or shape of the reference chart are prohibited from being modified even if the reference chart or an anchor point on the reference chart is selected.
[0083] As shown in FIG. 8, it is a step flow chart of correcting the reference chart position according to one embodiment of the present invention.
[0084] In step S810, when a touch-down event is detected on a created reference chart in the control area of the edit page, the state of the reference chart is switched to a selected state.
[0085] The selected state indicates that it is selected and can be edited.
[0086] Moreover, after the creation of the reference chart is completed, the user can select the reference chart by touching the finger.
[0087] If the reference chart is a line type diagram, such as a straight line, a radial line, an ellipse, etc., when determining whether the touch selects the reference chart, the distance between the touch point and the nearest pixel point on the reference chart can be calculated, and if the distance is smaller than a preset response distance, it is determined that a touch-down event occurs on the reference chart. The response distance is a value obtained through experience or testing.
[0088] If the reference chart is an area chart, for example a rectangular area, when determining whether a touch selects the reference chart, it can be determined whether the touch point is within the range of the area chart according to the edge coordinates of the area chart, and if the touch point is within the range of the area chart, it is determined that a touch-down event has occurred on the reference chart.
[0089] For example, take the example where the reference chart is a straight line, use the distance formula from the point to the straight line to calculate the distance from the touch point to the straight line, and if the distance is smaller than the response distance, it is determined that a touch-down event occurs on the straight line. If the reference chart is a ray, we can refer to the case where the reference chart is a straight line, and first find the boundary intersection between the ray and the control area, and calculate the distance from the touch point to the ray, which can be converted into the distance from the touch point to the line segment between the intersection and the start point of the ray.
[0090] Also, for example, if the reference chart is an ellipse, the distance from the touch point to the ellipse can be calculated according to the standard formula for the ellipse, and if the distance is smaller than the response distance, it is determined that a touch-down event has occurred on the ellipse.
[0091] Further, for example, if the reference chart is a rectangular area, it is calculated whether the touch point is within the rectangular area, and if the touch point is within the range of the rectangular area, it is determined that a touch down event has occurred in the rectangular area.
[0092] In step S820, after switching the state of the reference chart to a selected state, it is detected whether a touch-move event occurs on the reference chart.
[0093] When it is detected that the position coordinates of the occurrence position of the TouchMove event (i.e., the position coordinates of the touch point corresponding to the TouchMove event) are located on the reference chart, it is determined that the TouchMove event has occurred on the reference chart.
[0094] In step S830, when it is detected that a touch-move event occurs on the reference chart, the position of the reference chart is adjusted according to the touch-move event.
[0095] A position coordinate of a touch point corresponding to a touch-move event is detected, the touch point corresponding to the touch-move event is located on a reference chart, and the position of the reference chart is adjusted according to the change of the position coordinate of the touch point.
[0096] In step S840, if a touch-up event occurs on the reference chart during the process of adjusting the position of the reference chart in response to the touch-move event, the position of the reference chart is fixed in response to the touch-up event.
[0097] Detect a position coordinate of a touch point corresponding to a touch-up event, and locate the touch point corresponding to the touch-up event on a reference chart, and fix the position of the reference chart to the position coordinate of the touch point corresponding to the touch-up event. Furthermore, the position coordinate of the touch point corresponding to the touch-up event is the final position coordinate of the touch point corresponding to the touch-move event.
[0098] After the reference chart position is fixed and the correction of the reference chart position is completed, the reference chart is still in a selected state, and after detecting a touch-down event and a touch-up event on the reference chart again, the selected state of the reference chart is canceled.
[0099] As shown in FIG. 9, it is a step flow chart of modifying reference chart attributes according to one embodiment of the present application.
[0100] In step S910, when a touch-down event is detected on a created reference chart in the control area of the edit page, the state of the reference chart is switched to a selected state.
[0101] In step S920, after switching the state of the reference chart to a selected state, if it is detected that a preset attribute modification option has been selected, the attributes of the reference chart are modified according to the selected attribute modification option.
[0102] Pre-defined attribute modification options include, but are not limited to, color, thickness and line style. Line style types include short dashed line, long dashed line and double line.
[0103] After the modification of the reference chart attributes is completed, the reference chart is still in a selected state, and after detecting a touch-down event and a touch-up event on the reference chart again, the selected state of the reference chart is cancelled.
[0104] As shown in FIG. 10, it is a step flow chart of modifying the reference chart shape according to one embodiment of the present application.
[0105] In step S1010, when it is detected that a touch-down event has occurred on an anchor point of the created reference chart in the control area of the edit page, the state of the anchor point is switched to a selected state.
[0106] When it is detected that the position coordinates of the occurrence position of the TouchMove event (i.e., the position coordinates of the touch point corresponding to the TouchMove event) are located at the anchor point, it is determined that the TouchMove event has occurred at the anchor point.
[0107] In step S1020, after switching the state of the anchor point to a selected state, if it is detected that a touch-move event occurs at the anchor point, the position of the anchor point is adjusted according to the touch-move event.
[0108] Detect a position coordinate of a touch point corresponding to a touch-up event, the touch point corresponding to the touch-up event is located at an anchor point, and the position of the anchor point is fixed to the position coordinate of the touch point corresponding to the touch-up event, and the position coordinate of the touch point corresponding to the touch-up event is the final position coordinate of the touch point corresponding to the touch-move event.
[0109] In the process of correcting the position of the anchor point, if the corrected position of the anchor point overlaps with the position of another anchor point or the distance is smaller than a first preset distance threshold, the corrected position of the anchor point is moved so that the distance between the moved position of the anchor point and the position of the other anchor point is larger than a second preset distance threshold. The first preset distance threshold and the second preset distance threshold are values obtained through experience or testing.
[0110] In step S1030, the shape of the reference chart where the anchor point is located is adjusted according to the adjusted position of the anchor point.
[0111] Since the reference chart is composed of continuous anchor points, the shape of the reference chart is also adjusted as the positions of the anchor points are adjusted.
[0112] In step S1040, in the process of adjusting the position of the anchor point in response to the touch move event, if it is detected that a touch up event occurs at the anchor point, the adjusted position of the anchor point is fixed in response to the touch up event, and the shape of the reference chart on which the anchor point is located is fixed in response to the fixed position of the anchor point.
[0113] In this embodiment, fixing the adjusted position of the anchor point according to the touch-up event includes fixing the anchor point at the occurrence position of the touch-up event, or using a magnetic attraction function in the process of adjusting the position of the anchor point, i.e., detecting whether the distance between the occurrence position of the touch-up event and a second preset point on the main chart is smaller than a preset second distance threshold, and moving and fixing the anchor point to the position of the second preset point when detecting that the distance between the occurrence position of the touch-up event and the second preset point on the main chart is smaller than the preset second distance threshold. The second distance threshold may be a value obtained through experience or testing, for example, a distance of 10 pixel points. The second preset point refers to a preset position on a price trend chart. The preset position may be set as necessary. For example, the second preset point is a preset candle point of a candle on a K-line chart, for example, the highest point, lowest point, opening point or closing point of a candle.
[0114] In this embodiment, when a touch down event is detected to have occurred on a line of the created reference chart or on an anchor point of the created reference chart, and the touch down event continues for a second preset time, a state of the reference chart or the anchor point where the touch down event has occurred is switched to a selected state, and an image within a third preset range at the location where the touch down event has occurred is enlarged and displayed in a third preset ratio; and / or when a touch move event is detected to have occurred on a line of the created reference chart or on an anchor point of the created reference chart, an image within a fourth preset range at the location where the touch move event has occurred is enlarged and displayed in a fourth preset ratio; and / or when a touch down event is detected to have occurred on a line of the created reference chart or on an anchor point of the created reference chart, a state of the reference chart or the anchor point is switched to a selected state, and after the state of the reference chart or the anchor point is switched to the selected state, the reference chart or the anchor point in the selected state is displayed in a preset display manner. The second preset time, the third preset proportion, the third preset range, the fourth preset proportion, and the fourth preset range are values obtained through experience or testing. When a touch-down event occurs on a line of the reference chart, the reference chart is switched to a selected state, and when a touch-down event occurs on an anchor point of the reference chart, the anchor point is switched to a selected state.
[0115] Furthermore, after a reference chart is selected or an anchor point in the reference chart is selected, if the selection time continues for a second preset time, an image within a third preset range centered on the touch point is enlarged and displayed in a third preset proportion, and if the selected reference chart or the selected anchor point is dragged, an image within a fourth preset range centered on the touch point is enlarged and displayed in a fourth preset proportion. In this way, the process from selecting the reference chart or anchor point to lifting the finger (touch-up event) ends, and the image around the touch point is enlarged and displayed, allowing the user to better observe the situation around the touch point and drag the selected reference chart or anchor point to a more appropriate position.
[0116] Due to the limitations of the screen size of a mobile terminal, a magnifying glass display safety area can be set, and the magnified image is displayed in the magnifying glass display safety area, so that the magnified image is not always blocked by the user's hand. For example, the screen display area is divided into two parts, left and right, and when the touch point is on the left side, the magnifying glass display safety area is on the right side, and the magnified image is displayed on the right side; when the touch point is on the right side, the magnifying glass display safety area is on the left side, and the magnified image is displayed on the left side; when the touch point is on the dividing line between the left and right sides, the magnifying glass display safety area can be randomly selected from the left and left sides. As shown in FIG. 11, which is a schematic diagram of an image to be enlarged, a user selects the right end of a straight line in the main chart, and the right end of the straight line is on the right side of the screen, and at this time, the magnified image is displayed on the left side of the screen. For the enlargement display method in the process of creating a reference chart, such a enlargement display method in the process of adjusting the position of the anchor point may be referred to.
[0117] Furthermore, displaying the reference chart or anchor point in a selected state in a preset display manner includes, but is not limited to, displaying the reference chart or anchor point in a selected state in a preset color or adding a shadow to the reference chart or anchor point in a selected state.
[0118] After the position adjustment of the anchor point is completed, the anchor point is still in a selected state, and after detecting a touch-down event and a touch-up event on the anchor point again, the selected state of the anchor point is cancelled.
[0119] In this embodiment, all the created reference charts may be deleted, or only a part of the created reference charts may be deleted.
[0120] FIG. 12 is a step flow chart of deleting a reference chart according to an embodiment of the present application.
[0121] In step S1210, when a touch-down event is detected on a created reference chart in the control area of the edit page, the state of the reference chart is switched to a selected state.
[0122] In step S1220, after switching the state of the reference chart to a selected state, if it is detected that a preset graphic deletion option is selected, the reference chart in the selected state is deleted.
[0123] In addition to being able to delete the selected reference chart, this embodiment can also delete all reference charts edited in the main chart. A reference chart clear button can be set on the edit page, and after detecting that the reference chart clear button is selected, all reference charts edited in the main chart are deleted. The reference chart clear button is, for example, the "clear canvas" button in FIG. 6 or the "clear all" button in FIG. 7.
[0124] Furthermore, a reconfirmation popup notification can be set, and the reconfirmation popup notification includes deletion prompting information, a cancel option, and a confirmation option. The contents of the popup prompting information can be set as required, for example, to confirm the deletion of all line drawings in the current cycle. After detecting that the graphic deletion option is selected, the reconfirmation popup notification pops up, and if the cancel option is selected, the deletion of the reference chart in the selected state or all reference charts created in the main chart is canceled, and when the confirmation option is detected to be selected, the reference chart in the selected state or all reference charts created in the main chart are deleted.
[0125] After deleting all the reference charts created in the main chart, a preset deletion completion prompt may be displayed on the editing page, and the deletion completion prompt may be a toast prompt.
[0126] The reference chart editing operation process of the embodiment of the present application will be described below with reference to some specific examples. After the reference chart editing is completed, it can be stored in the back-end server, and the previous editing result can be viewed after entering the editing page next time or changing the mobile terminal.
[0127] FIG. 13 is a schematic diagram of editing a line segment according to an embodiment of the present application.
[0128] The total number of anchor points corresponding to the line segment is two. Two anchor points need to be created in the control area of the editing page. In addition, touch and click once in the control area, i.e., the first target position on the main chart, and release your finger to create the first anchor point at the first target position. Touch and click a second time on the second target position on the main chart, and release your finger to create the second anchor point at the second target position. The first anchor point and the second anchor point are automatically connected, and the creation of the line segment is completed.
[0129] FIG. 14 is a schematic diagram of editing rays according to an embodiment of the present application.
[0130] The total number of anchor points corresponding to the ray is two. Two anchor points need to be created in the control area of the editing page. Then, touch and click once in the control area, i.e., on the first target position on the main chart, and release your finger to create the first anchor point at the first target position; touch and click a second time on the second target position on the main chart, and release your finger to create the second anchor point at the second target position, with the first anchor point as the starting point of the ray and the second anchor point as a point on the ray, and the non-starting end of the ray will extend to the boundary of the main chart, completing the creation of the ray.
[0131] FIG. 15 is a schematic diagram of editing a straight line according to an embodiment of the present application.
[0132] The straight line is divided into a specific straight line and an arbitrary straight line. The specific straight line may be a horizontal straight line. The total number of anchor points corresponding to the horizontal straight line is 1. Create one anchor point in the control area for editing the page, and the horizontal straight line should pass through the anchor point.
[0133] The arbitrary line may be a line other than the specified line. The total number of anchor points corresponding to the arbitrary line is two.
[0134] As shown in Figure 15, two anchor points need to be created in the control area of the edit page. Furthermore, touch and click once in the control area, i.e., at the first target position in the main chart, and release the finger to create the first anchor point at the first target position, touch and click a second time at the second target position in the main chart, and release the finger to create the second anchor point at the second target position, so that both the first anchor point and the second anchor point are points on a straight line, and both ends of the straight line extend to the boundary of the main chart, completing the creation of the straight line.
[0135] FIG. 16 is a schematic diagram of editing parallel lines according to an embodiment of the present application.
[0136] The total number of anchor points corresponding to parallel lines is three.
[0137] Three anchor points need to be created in the control area of the editing page, and then touch and click once in the control area, i.e., at the first target position on the main chart, and release the finger to create the first anchor point at the first target position, touch and click a second time on the second target position on the main chart, and release the finger to create the second anchor point at the second target position, and both the first anchor point and the second anchor point are points on the first line, and both ends of the first line are extended to the boundary of the main chart, and the first line is created, and then touch and click once on the third target position on the main chart, and release the finger to create the third anchor point at the third target position, and the third anchor point is points on the second line, and the second line is parallel to the first line, and the second line is created, and the parallel line is created.
[0138] Furthermore, after switching the state of one line to a selected state, the distance between two lines can be adjusted by dragging the executed position.
[0139] FIG. 17 is a schematic diagram of editing an isoperimeter according to an embodiment of the present application.
[0140] The total number of anchor points corresponding to the isoperimeter is two.
[0141] Two anchor points need to be created in the control area of the edit page, and then touch-click once in the control area, i.e., at a first target position on the main chart, and when you release your finger, a first anchor point is automatically created at the first target position, and a first vertical line is automatically created with the first anchor point as a point on the first vertical line, touch-click a second time at a second target position on the main chart, and when you release your finger, a second anchor point is automatically created at the second target position, and a second line is automatically created with the second anchor point as a point on the second vertical line, and another vertical line is created with the distance between the first line and the second line as the periodic distance of the isoperimeter.
[0142] Furthermore, after switching the state of one of the anchor points to a selected state, the periodic distance of the isoperimeter can be adjusted by dragging the anchor point.
[0143] FIG. 18 is a schematic diagram of editing a channel line according to an embodiment of the present application.
[0144] The total number of anchor points corresponding to the channel line is three.
[0145] Three anchor points need to be created in the control area of the editing page, and then touch and click once in the control area, that is, at the first target position on the main chart, and release your finger to create the first anchor point at the first target position, touch and click a second time on the second target position on the main chart, and release your finger to create the second anchor point at the second target position, and both the first and second anchor points are points on the first line, and both ends of the first line are extended to the boundary of the main chart to complete the creation of the first line, touch and click once on the third target position on the main chart, and release your finger to create the third anchor point at the third target position, and the third anchor point is points on the second line, and the second line is parallel to the first line, and the second line is used as the symmetrical axis to create a symmetrical line of the first line, and the third line is obtained to complete the creation of the channel line.
[0146] In addition, after switching the state of one line to the selected state, the distance between the three lines can be adjusted by dragging the position of the line that is executed. When the second line is dragged, the line with the larger distance remains as it is, and the position of the line with the smaller distance can be adjusted.
[0147] FIG. 19 is a schematic diagram of editing a triangle according to an embodiment of the present application.
[0148] The total number of anchor points corresponding to the channel line is three.
[0149] You need to create three anchor points in the control area of the edit page, then touch and click once in the control area, namely the first target position on the main chart, and release your finger to create the first anchor point at the first target position, touch and click a second time on the second target position on the main chart, and release your finger to create the second anchor point at the second target position, connecting the first anchor point and the second anchor point, touch and click once on the third target position on the main chart, and release your finger to create the third anchor point at the third target position, connecting the first anchor point and the third anchor point, and connecting the second anchor point and the third anchor point, thus completing the creation of a triangle.
[0150] FIG. 20 is a schematic diagram of editing a rectangle according to an embodiment of the present application.
[0151] The total number of anchor points corresponding to the rectangle is two.
[0152] Two anchor points need to be created in the control area of the edit page, and then touch and click once in the control area, i.e., at the first target position in the main chart, and when you release your finger, the first anchor point is created at the first target position, and touch and click a second time at the second target position in the main chart, and when you release your finger, the second anchor point is created at the second target position, and a rectangle is created with the first anchor point and the second anchor point as the diagonal vertices of the rectangle.
[0153] Furthermore, after switching the state of one of the anchor points to a selected state, the length and width of the rectangle can be adjusted by dragging the anchor point.
[0154] FIG. 21 is a schematic diagram of editing a parallelogram according to an embodiment of the present application.
[0155] The total number of anchor points corresponding to a parallelogram is three.
[0156] Two anchor points need to be created in the control area of the edit page, and then touch-click once in the control area, i.e., at a first target position in the main chart, and when the finger is released, a first anchor point is created at the first target position, touch-click a second time at a second target position in the main chart, and when the finger is released, a second anchor point is created at the second target position, and the first anchor point and the second anchor point are connected to obtain a first line segment, touch-click a third time at a third target position in the main chart, and when the finger is released, a third anchor point is created at the third target position, and the second anchor point and the third anchor point are connected to obtain a second line segment, a parallel line is drawn to the first line segment, and the parallel line has the third anchor point as one of its endpoints to obtain a third line segment, and a parallel line is drawn to the second line segment, and the parallel line has the first anchor point as one of its endpoints to obtain a fourth line segment, and the closed graphic formed by the first line segment, the second line segment, the third line segment, and the fourth line segment is the created parallelogram.
[0157] FIG. 22 is a schematic diagram of editing a circle according to an embodiment of the present application.
[0158] The total number of anchor points corresponding to the circular rectangle is two.
[0159] Two anchor points need to be created in the control area of the edit page, and then touch-click once in the control area, i.e., at a first target position on the main chart, and release your finger to create a first anchor point at the first target position, touch-click a second time at a second target position on the main chart, and release your finger to create a second anchor point at the second target position, creating a circle with the first anchor point as the center and the distance between the first anchor point and the second anchor point as the radius, or creating a circle with the first anchor point as a point on the circle and the distance between the first anchor point and the second anchor point as the diameter.
[0160] Furthermore, by switching the state of one of the anchor points to a selected state and dragging the anchor point, the diameter of the circle can be adjusted.
[0161] FIG. 23 is a schematic diagram of editing three wavy lines according to an embodiment of the present application.
[0162] The total number of anchor points corresponding to the three wavy lines is four. Four anchor points need to be created in the control area of the editing page. In addition, touch and click once in the control area, i.e., at the first target position on the main chart, and release your finger to create the first anchor point at the first target position; touch and click a second time on the second target position on the main chart, and release your finger to create the second anchor point at the second target position, connecting the first anchor point and the second anchor point to obtain the first wavy line segment; touch and click a third time on the third target position on the main chart, and release your finger to create the third anchor point at the third target position, connecting the second anchor point and the third anchor point to obtain the second wavy line segment; touch and click a fourth time on the fourth target position on the main chart, and release your finger to create the fourth anchor point at the fourth target position, connecting the third anchor point and the fourth anchor point to obtain the fourth wavy line segment, thus completing the creation of the three wavy lines.
[0163] Furthermore, by switching the state of one of the anchor points to a selected state and dragging the anchor point, the length and angle of the line segment connected to the anchor point can be adjusted.
[0164] The reference chart created on the main chart above can be used to analyze the shape of the main chart, and can further determine the current situation and subsequent trend of the main chart. For example, a straight line can be used as a trend line to predict the future price trend of a stock, and the two end points of the trend line can respectively connect the highest or lowest points of the stock price within a certain period, and the angle of the trend line can reflect the trajectory of the rising or falling stock price. Also, for example, at the bottom of the market, the energy of the short side is gradually weakening, but the strength of the multi-side does not suddenly increase, but slowly becomes apparent, resulting in the occurrence of an arc bottom on the K-line chart. At this time, a circular or elliptical reference chart can be created to determine whether an arc bottom will occur on the K-line chart. For example, the 3-wave line is a simplified trend of the 8-wave line, and the 3-wave line contains the ABC three-wave trend. In the upward movement, wave A is the first wave, wave B is the correction wave (second wave), and wave C is the main upward wave (third wave). According to the ABC three-wave trend, you can grasp the rebound at the beginning of the upward movement, buy at the lowest point accordingly, and enjoy the large increase later.
[0165] The embodiment of the present application further provides a graph reference chart editing device. As shown in Figure 24, a structure diagram of a graph reference chart editing device according to an embodiment of the present application.
[0166] In this embodiment, the graph reference chart editing device includes, but is not limited to, a processor 2410 and a memory 2420 .
[0167] The processor 2410 is used to execute a graph reference chart editing program stored in the memory 2420, and the above-mentioned graph reference chart editing method is realized. The graph reference chart editing method has been described in detail above, so it will not be described in detail here.
[0168] 25, the processor 2410 includes a user interface (UI) unit 2510, a gesture controller 2520, and a graphic calculation unit 2530. The gesture controller 2520 and the graphic calculation unit 2530 may exist independently or may be combined into one independent unit.
[0169] The user interface unit 2510 is used for detecting whether a graph operation target is selected during the process of displaying a graph, and when the graph operation target is selected, switching the state of the graph to an editable state, detecting a touch event occurring on the editing page after switching the state of the graph to the editable state, and reporting information of the detected touch event to the gesture controller 2520.
[0170] The touch event information includes the position coordinates of the location where the touch event occurred.
[0171] The gesture controller 2520 receives the touch event reported by the user interface unit 2510, performs a legitimacy verification on the touch event, and if the legitimacy verification of the touch event is passed, determines that an edit touch event preset in a control area of an edit page corresponding to the graph is detected, and is used to transmit information of the edit touch event to the graphic calculation unit 2530.
[0172] The edit page contains a control area and a graph, and the control area overlaps the main chart area of the graph.
[0173] The information about the editing touch event includes the position coordinates of the position where the editing touch event occurs.
[0174] The legitimacy verification includes determining whether the position coordinates of the touch event are within the control area, and if the position coordinates of the touch event are within the control area, determining that the legitimacy verification is passed, and conversely, determining that the legitimacy verification is not passed.
[0175] The graphic calculation unit 2530 is used to perform an editing operation of a reference chart on a main chart in the graph according to an editing touch event detected in a control area of the editing page, and edit the reference chart on the main chart.
[0176] The graphic calculation unit 2530 is further used for sending the reference chart edited into the main chart to the user interface unit 2510. The user interface unit 2510 is further used for receiving the reference chart edited into the main chart sent from the graphic calculation unit 2530, and displaying it on the main chart in the editing interface.
[0177] In addition, the user interface unit 2510 is further used for detecting whether a line drawing type preset on the editing page is selected before detecting an editing touch event preset on a control area of the editing page corresponding to the graph after switching the state of the graph to an editable state, and when detecting that the preset line drawing type is selected, determining a total number of anchor points corresponding to the selected line drawing type and sending the total number of anchor points corresponding to the line drawing type to the graphic calculation unit 2530. The graphic calculation unit 2530 is used for creating anchor points on a main chart of the graph according to the editing touch event detected on the control area of the editing page, and drawing a shape for creating a reference chart on the main chart according to the created anchor points, and when the number of the created anchor points is equal to the total number of anchor points, the creation of the reference chart is completed.
[0178] Further, the editing touch events include a touch down event and a touch up event, and the graphics calculation unit 2530 is used for detecting a touch up event in the control area of the editing page when the touch down event is detected in the control area of the editing page, and for creating an anchor point according to the occurrence position of the touch up event when the touch up event is detected in the control area of the editing page.
[0179] Further, the editing touch events further include touch move events, and the graphic calculation unit 2530 is used in the process of creating an anchor point on the main chart of the graph according to the editing touch events detected on the control area of the editing page, to detect a touch down event on the control area of the editing page, and when the touch down event continues for a first preset time, to enlarge and display an image within a first preset range at the occurrence position of the touch down event with a first preset proportion, and / or when a touch move event is detected on the control area of the editing page, to enlarge and display an image within a second preset range at the occurrence position of the touch move event with a second preset proportion. The graphic calculation unit 2530 is used to create an anchor point at the occurrence position of the touch up event, or to create an anchor point at the position of the first preset point when it detects that the distance between the occurrence position of the touch up event and a first preset point on the main chart is less than a first preset distance threshold.
[0180] Further, the graphic calculation unit 2530 determines the number of created anchor points in the process of creating anchor points on the main chart of the graph according to the editing touch event detected in the control area of the editing page, and sends the number of created anchor points to the user interface unit 2510. The user interface unit 2510 is used to display anchor point creation presentation information when the number of created anchor points is less than or equal to the total number of anchor points, the anchor point creation presentation information including the selected line drawing type, the total number of anchor points and / or the number of created anchor points, and / or to display creation completion presentation information when the number of created anchor points is equal to the total number of anchor points.
[0181] Further, the editing touch events include a touch down event, a touch move event and a touch up event, and the user interface unit 2510 is used to switch the state of the reference chart to a selected state when it detects that a touch down event occurs on the reference chart created in the control area of the editing page, and the user interface unit 2510 is further used to report information of the touch move event to the graphic calculation unit 2530 when it detects that a touch move event occurs on the reference chart after switching the state of the reference chart to the selected state, and the graphic calculation unit 2530 is further used to adjust the position of the reference chart according to the touch move event, and the user interface unit 2510 is further used to perform a process of adjusting the position of the reference chart according to the touch move event. and, when it is detected that a touch-up event has occurred on the reference chart, reporting information of the touch-up event to the graphic calculation unit 2530, the graphic calculation unit 2530 fixes a position of the reference chart according to the touch-up event; and / or, when it is detected that a preset attribute modification option has been selected after switching the state of the reference chart to a selected state, the user interface unit 2510 is further used to modify attributes of the reference chart according to the selected attribute modification option; and / or, when it is detected that a preset graphic deletion option has been selected after switching the state of the reference chart to a selected state, the user interface unit 2510 is further used to delete the reference chart.
[0182] In addition, the editing touch events include a touch down event, a touch move event and a touch up event, and the user interface unit 2510 is further used to switch a state of the anchor point to a selected state when detecting that a touch down event occurs on an anchor point of the reference chart created in the control area of the editing page, and the user interface unit 2510 is further used to report information of the touch move event to the graphic calculation unit 2530 when detecting that a touch move event occurs on the anchor point after switching the state of the anchor point to the selected state, and the graphic calculation unit 2530 adjusts the position of the anchor point according to the touch move event, and and adjusts a shape of the reference chart where the anchor point is located according to the adjusted position of the anchor point; in the process of adjusting the position of the anchor point according to the touch move event, when the user interface unit 2510 detects that a touch up event occurs at the anchor point, the user interface unit 2510 reports the touch up event to the graphic calculation unit 2530, the graphic calculation unit 2530 fixes the adjusted position of the anchor point according to the touch up event, and fixes the shape of the reference chart where the anchor point is located according to the fixed position of the anchor point; and the graphic calculation unit 2530 transmits the adjusted anchor point and the adjusted shape of the reference chart to the user interface 2510 for display. Fixing the adjusted position of the anchor point according to the touch up event includes fixing the anchor point at the position where the touch up event occurs, or moving and fixing the anchor point at the position of the second preset point when it is detected that a distance between the position where the touch up event occurs and a second preset point in the main chart is less than a preset second distance threshold.
[0183] Further, the editing touch events include a touch down event and a touch move event, and the user interface unit 2510 is further used to detect that a touch down event occurs on a line of the created reference chart or an anchor point of the created reference chart in the process of performing an editing operation of a reference chart on a main chart in the graph, and when the touch down event continues for a second preset time, switch a state of the reference chart or the anchor point where the touch down event occurs to a selected state, and enlarge and display an image within a third preset range at the occurrence position of the touch down event in a third preset proportion; and / or the user interface unit 2510 is further used to detect that a touch down event occurs on a line of the created reference chart or an anchor point of the created reference chart in the process of performing an editing operation of a reference chart on a main chart in the graph, and switch a state of the reference chart or the anchor point where the touch down event occurs to a selected state when the touch down event continues for a second preset time, and enlarge and display an image within a third preset range at the occurrence position of the touch down event in a third preset proportion. When a touch move event is detected to occur on a line of the created reference chart or on an anchor point of the created reference chart, the user interface unit 2510 is used to enlarge and display an image within a fourth preset range at the location where the touch move event occurred in a fourth preset proportion, and / or the user interface unit 2510 is further used to detect a touch down event is detected to occur on a line of the created reference chart or on an anchor point of the created reference chart, switch a state of the reference chart or the anchor point to a selected state, and after switching a state of the reference chart or the anchor point to the selected state, display the reference chart or the anchor point in a selected state in a preset display manner.
[0184] The user interface unit 2510 further edits the reference chart into the main chart, and then uploads the edited reference chart into the main chart to the memory 2420 and / or a backend server.
[0185] An embodiment of the present application further provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium. The computer-readable storage medium may include a volatile memory such as a random access memory, a non-volatile memory such as a read-only memory, a flash memory, a hard disk, or a solid-state hard disk, or a combination of the above types of memory. The one or more programs in the computer-readable storage medium are executed by one or more processors to realize the above graph reference chart editing method. The graph reference chart editing method has been described in detail above, so it will not be described in detail here.
[0186] The above are only examples of the present application, and are not intended to limit the present application. Those skilled in the art can make various modifications and variations to the present application. As long as they do not deviate from the spirit and principles of the present application, any modifications, equivalent replacements, improvements, etc., made should be included within the scope of the claims of the present application.
[0187] This application claims priority to Chinese patent application No. 202010209012.0, filed on March 23, 2020, and entitled "Graph Reference Chart Editing Method, Apparatus, and Computer-Readable Storage Medium," the entire contents of which are incorporated herein by reference.
Claims
1. A method for editing a reference chart of a graph executed on a mobile terminal, comprising: detecting whether a graph operation target is selected in the process of displaying the graph; when the graph operation target is selected, switching the state of the graph to an editable state; after switching the state of the graph to an editable state, detecting a preset edit touch event in a control area of an edit page corresponding to the graph, the edit page including the control area and the graph, and the control area overlapping an area of a main chart of the graph; According to an edit touch event detected in a control area of the edit page, an edit operation of a reference chart is performed on a main chart in the graph, so that the reference chart is edited on the main chart; After switching the state of the graph to an editable state, before detecting an edit touch event preset in a control area of an edit page corresponding to the graph, detecting whether a preset line art type is selected for the edit page; and when detecting that a preset line art type is selected, determining a total number of anchor points corresponding to the selected line art type; performing an editing operation of a reference chart on a main chart in the graph in response to an editing touch event detected on a control area of the editing page; creating an anchor point in a main chart of the graph in response to an edit touch event detected in a control area of the edit page; and a step of drawing a shape for creating a reference chart on the main chart according to the created anchor points, and completing the creation of the reference chart when the number of the created anchor points is equal to the total number of the anchor points.
2. the editing touch events include a touch down event and a touch up event; creating an anchor point on a main chart of the graph in response to an edit touch event detected on a control area of the edit page, detecting a touch up event on a control area of the editing page when the touch down event is detected on the control area of the editing page; The method according to claim 1 , further comprising: when the touch-up event is detected in a control area of the editing page, creating an anchor point according to a location where the touch-up event occurs.
3. The editing touch events further include touch-move events; creating an anchor point on a main chart of the graph in response to an edit touch event detected in a control area of the edit page; and / or, when a touch-down event is detected in the control area of the editing page and the touch-down event continues for a first preset time, enlarging and displaying an image within a first preset range at a position where the touch-down event occurs in a first preset proportion. and when a touch-move event is detected in a control area of the editing page, enlarging and displaying an image within a second preset range at a position where the touch-move event occurs in a second preset proportion; The step of creating an anchor point according to a position where the touch-up event occurs includes:
3. The method of claim 2, further comprising: creating an anchor point at a position where the touch-up event occurs; or creating an anchor point at a position of the first preset point when detecting that a distance between the position where the touch-up event occurs and a first preset point on the main chart is less than a first preset distance threshold.
4. creating an anchor point on a main chart of the graph in response to an edit touch event detected in a control area of the edit page; if the number of created anchor points is equal to or less than the total number of anchor points, displaying anchor point creation presentation information, the anchor point creation presentation information including the selected line drawing type, the total number of anchor points and / or the number of created anchor points; and / or The method of claim 1 , further comprising the step of displaying a creation completion presentation when the number of created anchor points is equal to the total number of anchor points.
5. the editing touch events include a touch-down event, a touch-move event, and a touch-up event; performing an editing operation of a reference chart on a main chart in the graph in response to an editing touch event detected on a control area of the editing page; upon detecting a touch down event occurring on a created reference chart in a control area of the editing page, switching the state of the reference chart to a selected state; and / or, when detecting a touch move event occurring on the reference chart after switching the state of the reference chart to a selected state, adjusting a position of the reference chart in response to the touch move event, and when detecting a touch up event occurring on the reference chart during the process of adjusting the position of the reference chart in response to the touch move event, fixing a position of the reference chart in response to the touch up event; and / or and / or, after switching the state of the reference chart to a selected state, when detecting that a preset attribute modification option has been selected, modifying attributes of the reference chart according to the selected attribute modification option.
2. The method of claim 1, further comprising the step of deleting the reference chart upon detecting selection of a preset graphic deletion option after switching the state of the reference chart to a selected state.
6. the editing touch events include a touch-down event, a touch-move event, and a touch-up event; performing an editing operation of a reference chart on a main chart in the graph in response to an editing touch event detected on a control area of the editing page; detecting, in a control area of the editing page, a touch-down event occurring on an anchor point of the created reference chart, switching the state of the anchor point to a selected state; after switching the state of the anchor point to a selected state, when detecting that a touch move event occurs at the anchor point, adjusting a position of the anchor point according to the touch move event, and adjusting a shape of a reference chart where the anchor point is located according to the adjusted position of the anchor point; 2. The method of claim 1, further comprising: when detecting an occurrence of a touch up event on the anchor point, in the process of adjusting the position of the anchor point in response to the touch move event, fixing the adjusted position of the anchor point in response to the touch up event and fixing a shape of the reference chart on which the anchor point is located in accordance with the fixed position of the anchor point, wherein fixing the adjusted position of the anchor point in response to the touch up event includes fixing the anchor point to a position where the touch up event occurs, or moving and fixing the anchor point to a position of the second preset point when detecting that a distance between the occurrence position of the touch up event and a second preset point on the main chart is smaller than a second distance threshold.
7. the editing touch events include a touch down event and a touch move event; In the process of performing an editing operation of a reference chart on a main chart of the graph, Detecting a touch-down event occurring on a line of the created reference chart or on an anchor point of the created reference chart, and when the touch-down event continues for a second preset time, switching a state of the reference chart or the anchor point where the touch-down event occurred to a selected state, and enlarging and displaying an image within a third preset range at the occurrence position of the touch-down event in a third preset proportion; and / or When detecting that a touch move event occurs on a line of the created reference chart or an anchor point of the created reference chart, enlarging and displaying an image within a fourth preset range at the location where the touch move event occurs in a fourth preset proportion; and / or 2. The method of claim 1, further comprising: detecting an occurrence of a touch-down event on a line of the created reference chart or on an anchor point of the created reference chart; switching a state of the reference chart or the anchor point to a selected state; and displaying the reference chart or the anchor point in a selected state in a preset display manner after switching a state of the reference chart or the anchor point to the selected state.
8. A graph reference chart editing device comprising a memory, a processor and a computer program stored in the memory and operable on the processor, the graph reference chart editing device realizing the steps of the graph reference chart editing method described in any one of claims 1 to 7 when the computer program is executed by the processor.
9. A computer-readable storage medium, the computer-readable storage medium storing a graph reference chart editing program, the graph reference chart editing program being executed by a processor to realize steps of the graph reference chart editing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Realization method and device for drawing tool
CN105068727A
Method for forming graphic using graphic icon
JP1993159037A
Auxiliary line preparing device, processing execution method, and computer program
JP2007164574A
Variable display scale control device and variable playing speed control device
JP2012168942A
Graphic drawing device and program
JP2014063252A
