View legend style synchronization method and system and electronic equipment

By finding and matching model elements in the view in the simulation software and automatically applying legend styles, the problem of users needing to modify model element styles one by one is solved, and synchronization efficiency and user experience are improved.

CN119440345APending Publication Date: 2025-02-14CHENGDU GONGDING TECHNOLOGY CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411684232.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In simulation software, users need to modify the styles for each model element one by one to obtain the best view state, resulting in increased time-consuming and increased user fatigue.

Method used

By finding model elements matching in the second view in the first view, the legend style of the model elements in the first view is automatically applied to the corresponding model elements in the second view, simplifying user operations and improving synchronization efficiency.

Benefits of technology

It realizes automatic synchronization of legend styles in simulation software, which reduces user operation time, reduces user fatigue, and improves the efficiency of legend style synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440345A_ABST
    Figure CN119440345A_ABST
Patent Text Reader

Abstract

The invention discloses a view legend style synchronization method and system and electronic equipment, and relates to the technical field of computers. According to the method, model elements in a first view and legend styles of the model elements are obtained, a legend style list is constructed, model elements in a second view are obtained, and a to-be-synchronized style list is constructed; and searching a target model element matched with the model element in the to-be-synchronized style list in the legend style list based on the to-be-synchronized style list, so that when the type of the target model element is consistent with the type of the corresponding model element in the to-be-synchronized style list, the target model element is synchronized with the corresponding model element in the to-be-synchronized style list. And applying the legend pattern of the target model element to the corresponding model element in the second view. Therefore, the problems that in simulation software, in order to obtain and check the optimal state of the simulation project, a user needs to modify the model elements one by one, time is consumed, and the fatigue feeling of the user is increased are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a view legend style synchronization method, system and electronic device. Background Art

[0002] In actual engineering development, simulation projects often contain a large number of model elements, all of which have their own style information (scaling ratio, color, line type, transparency, font, visibility, etc.). After making various adjustments to the model elements (adjustments refer to modifying styles such as scale, color, and transparency), users will get the best state for viewing the simulation project (the best state means: being able to clearly view a model or a group of models through the display state of the model in the current view).

[0003] However, currently, when modifying the style of model elements, users need to modify each model element one by one, that is, repeat a large number of style modification steps. This operation method is not only inefficient, but also requires users to spend a lot of time operating various visualization windows in simulation software, and it also increases user fatigue, especially when facing a large number of legends. Summary of the invention

[0004] In view of this, the embodiments of the present application are committed to providing a view legend style synchronization method, system and electronic device to solve the problem that in order to obtain the best state for viewing the simulation project in the simulation software, the user needs to modify the model elements one by one, which is time-consuming and increases the user's fatigue. By searching for model elements matching the second view in the first view, the legend style of the model elements in the first view can be automatically applied to the corresponding model elements in the second view, thereby simplifying the user's operation and improving the synchronization efficiency of the legend style.

[0005] In a first aspect, the present invention provides a view legend style synchronization method, comprising:

[0006] Obtain the model elements in the first view and the legend styles of each model element, and construct a legend style list;

[0007] Get the model elements in the second view and build a list of styles to be synchronized;

[0008] Based on the list of styles to be synchronized, searching for a target model element in the legend style list, the target model element being a model element that matches a model element in the list of styles to be synchronized;

[0009] When the type of the target model element is consistent with that of the corresponding model element in the to-be-synchronized style list, the legend style of the target model element is applied to the corresponding model element in the second view.

[0010] In a possible implementation, the legend style list includes a first legend style hash table constructed by using the legend name;

[0011] The searching for a target model element in the legend style list based on the to-be-synchronized style list includes:

[0012] Based on the name of the model element in the to-be-synchronized style list, the target model element is searched in the first legend style hash table.

[0013] In a possible implementation, the legend style list further includes a second legend style hash table constructed by legend positions;

[0014] The searching the target model element in the legend style list based on the to-be-synchronized style list further includes:

[0015] When the target model element cannot be found in the first legend style hash table based on the name of the model element in the list of styles to be synchronized, the target model element is searched in the second legend style hash table based on the position of the model element in the list of styles to be synchronized.

[0016] In a possible implementation manner, after applying the legend style of the target model element to the corresponding model element in the second view, the method further includes:

[0017] Determine whether to traverse all model elements in the list of styles to be synchronized;

[0018] After determining that all model elements in the to-be-synchronized style list have been traversed, classifying the remaining model elements in the to-be-synchronized style list according to type, the remaining model elements being model elements in the to-be-synchronized style list that are not matched to model elements in the legend style list;

[0019] According to the type, a legend style in the legend style list is applied to a corresponding model element in the second view.

[0020] In a possible implementation manner, after applying the legend style of the target model element to the corresponding model element in the second view, the method further includes:

[0021] The corresponding model element in the list of styles to be synchronized is removed.

[0022] In a possible implementation manner, the model elements and the legend styles of the model elements in the first view are obtained by copying;

[0023] The legend style of the target model element is applied to the corresponding model element in the second view by pasting.

[0024] In a second aspect, the present invention provides a view legend style synchronization system, comprising:

[0025] A first acquisition unit is used to obtain the model elements in the first view and the legend style of each model element, and construct a legend style list;

[0026] The second acquisition unit is used to obtain the model elements in the second view and construct a list of styles to be synchronized;

[0027] A searching unit, configured to search for a target model element in the legend style list based on the list of styles to be synchronized, wherein the target model element is a model element that matches a model element in the list of styles to be synchronized;

[0028] A synchronization unit is used to apply the legend style of the target model element to the corresponding model element in the second view when the type of the target model element is consistent with the type of the corresponding model element in the list of styles to be synchronized.

[0029] In a possible implementation, the system further includes: a fuzzy processing unit;

[0030] The fuzzy processing unit is used to determine whether to traverse all model elements in the to-be-synchronized style list; after determining that all model elements in the to-be-synchronized style list have been traversed, classify the remaining model elements in the to-be-synchronized style list according to type, and the remaining model elements are model elements in the to-be-synchronized style list that are not matched to model elements in the legend style list; according to the type, apply the legend style in the legend style list to the corresponding model element in the second view.

[0031] In a possible implementation manner, the fuzzy processing unit is further used for:

[0032] The corresponding model element in the list of styles to be synchronized is removed.

[0033] In a third aspect, the present invention provides an electronic device, the electronic device comprising:

[0034] processor;

[0035] a memory for storing instructions executable by the processor;

[0036] The processor is used to execute the view legend style synchronization method provided by the first aspect of the present invention.

[0037] According to the view legend style synchronization method provided by the present invention, after obtaining the model elements in the first view and the legend styles of each model element and constructing the legend style list, the model elements in the second view are obtained and the list of styles to be synchronized is constructed, so that based on the list of styles to be synchronized, the model elements matching the model elements in the list of styles to be synchronized, that is, the target model elements, can be searched in the legend style list, so that when the type of the target model element is consistent with that of the corresponding model element in the list of styles to be synchronized, the legend style of the target model element can be applied to the corresponding model element in the second view. That is, by searching the model elements matching the second view in the first view, the legend style of the model elements in the first view is automatically applied to the corresponding model elements in the second view, thereby not only simplifying the user's operation, but also improving the synchronization efficiency of the legend style. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0039] Figure 1 Shown is a flow chart of a view legend style synchronization method provided by an embodiment of the present invention.

[0040] Figure 2 Shown is an instance view where style legend modifications are to be made.

[0041] Figure 3 Shown is the pair Figure 2 The instance view shown is the view after the style legend is modified.

[0042] Figure 4 The flowchart is a flowchart of an example of performing view legend style synchronization using the view legend style synchronization method provided by an embodiment of the present invention.

[0043] Figure 5 Shown is a structural diagram of a view legend style synchronization system provided by an embodiment of the present invention.

[0044] Figure 6 Shown is a structural diagram of yet another view legend style synchronization system provided by an embodiment of the present invention.

[0045] Figure 7 Shown is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] Unless otherwise defined, the technical terms or scientific terms used in the embodiments of this specification shall have the common meanings understood by persons with ordinary skills in the field to which this specification belongs. The words "first", "second" and similar words used in the embodiments of this specification do not indicate any order, quantity or importance, but are only used to avoid confusion of constituent elements.

[0047] Unless the context requires otherwise, throughout the specification, "plurality" means "at least two", and "including" is interpreted as an open, inclusive meaning, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples" or "some examples" are intended to indicate that a particular feature, structure, material or characteristic associated with the embodiment or example is included in at least one embodiment or example of the specification. The schematic representation of the above terms does not necessarily refer to the same embodiment or example.

[0048] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0049] It is understandable that for a large number of model elements contained in a simulation project, by adjusting the model elements, the user can obtain the best state of viewing the simulation project. Figure 2 The view shown in the figure contains a large number of marker points, which greatly interferes with the user's viewing of model elements. Therefore, the user hopes to get Figure 3 The view shown in Figure 1 hides all the marker points. Figure 2 When the view shown in the figure is used, based on the existing legend style operation method, the user Figure 2 After the view shown has completed the operation of hiding all the Marker points, the same operation needs to be performed on other views one by one to eliminate the influence from the Marker. This repetitive style modification operation not only wastes a lot of user time, but is also inefficient and increases user fatigue.

[0050] The present invention aims to solve the above-mentioned problem by constructing a legend style list based on the model elements in the first view and the legend styles of each model element, and constructing a list of styles to be synchronized based on the model elements in the second view, so that based on the list of styles to be synchronized, model elements matching the model elements in the second view can be searched in the legend style list, thereby realizing automatic application of the legend styles of the model elements in the first view to the corresponding model elements in the second view, thereby avoiding the trouble of users operating different views one by one, and improving the efficiency of view legend style modification.

[0051] Furthermore, the view legend style synchronization method provided by the present invention is executed on an electronic device, which may be an intelligent terminal such as a smart phone, a laptop computer, a network-side server, etc.

[0052] Based on the above, see Figure 1 , Figure 1 is a flow chart of a view legend style synchronization method provided by an embodiment of the present invention, such as Figure 1 As shown, the process of the method may include:

[0053] S100: Obtain model elements in a first view and legend styles of each model element, and construct a legend style list.

[0054] It should be noted that the first view refers to the view in which the legend style modification has been completed.

[0055] It is understandable that a view contains a large number of model elements, and these model elements have their own style information, namely the legend style, such as: scaling, color, line type, transparency, font, visibility, etc.

[0056] Specifically, by acquiring the model elements in the first view and the legend styles of the model elements, a legend style list may be constructed.

[0057] In some possible embodiments, the legend style list may be based on a list of names of the model elements in the first view, and then the legend style of each model element may be saved corresponding to the name of each model element.

[0058] S110: Obtain model elements in the second view and construct a list of styles to be synchronized.

[0059] It should be noted that the second view refers to the view whose legend style is to be modified.

[0060] Specifically, by acquiring the model elements in the second view, a list of styles to be synchronized may be constructed, so as to be used to modify the legend style of each model element in the second view one by one.

[0061] More specifically, in order to ensure the integrity of the modification to the second view, the list of styles to be synchronized should include all model elements in the second view.

[0062] S120. Based on the list of styles to be synchronized, search for a target model element in the legend style list.

[0063] The target model element is a model element that matches the model element in the list of styles to be synchronized.

[0064] Specifically, by constructing the list of styles to be synchronized, the model elements matching the model elements in the list of styles to be synchronized can be searched in sequence in the legend style list according to the order of the list of styles to be synchronized.

[0065] S130: When the target model element is consistent with the type of the corresponding model element in the list of styles to be synchronized, apply the legend style of the target model element to the corresponding model element in the second view.

[0066] It is understandable that model elements are divided into different types. For example, in a 3D view, typical types of model elements include: Part, Point, Marker, Beam, Joint, PointMotion, JointMotion, Bushing, and Spring, etc.; in a 2D view, typical types of model elements include: X / Y coordinate axes, curves, titles, marker points, and grids, etc. And the legend styles of different types of model elements cannot be reused. For example, a Marker can only reuse the Marker legend style, but not the Bushing legend style.

[0067] Based on this, in this embodiment, after finding the target model element in the legend style list based on the list of styles to be synchronized, it is necessary to further determine whether the type of the target model element is consistent with the corresponding model element in the list of styles to be synchronized, and only when it is determined that the types of the two are consistent, the legend style of the target model element is applied to the corresponding model element in the second view.

[0068] In this embodiment, a legend style list is first constructed by acquiring the model elements in the first view and the legend styles of each model element, and a to-be-synchronized style list is constructed by acquiring the model elements in the second view. Then, based on the to-be-synchronized style list, the target model element is searched in the legend style list, and when the target model element is of the same type as the corresponding model element in the to-be-synchronized style list, the legend style of the target model element is applied to the corresponding model element in the second view. Thus, by searching for the same model element in the two views, the legend style of the model element in the second view is automatically synchronized with the legend style of the corresponding model element in the first view, thereby avoiding the trouble of users making a large number of repeated modifications to the legend styles of model elements in different views, effectively improving the modification efficiency of the view legend style, and improving the user experience.

[0069] Understandably, for each view, the legend style contained in it has its own name.

[0070] Based on this, in an optional embodiment, the legend style list is constructed into a first legend style hash table by the legend name;

[0071] This allows the target model element to be found in the legend style list based on the list of styles to be synchronized, including:

[0072] Based on the name of the model element in the list of styles to be synchronized, the target model element is searched in the first legend style hash table.

[0073] Specifically, the Key value of the first legend style hash table constructed by the legend name is the legend name, and the Value is another data structure containing the model element and the legend style data.

[0074] More specifically, after constructing the first legend style hash table, by searching in the first legend style hash table based on the name of the model element in the style list to be synchronized, it is possible to search in the first view in which the legend style modification has been completed for the model element with the same name as that in the second view of the legend style to be modified.

[0075] Further, in order to improve the completeness of the modification of the legend style of the model element in the second view, in an optional embodiment, the legend style list also includes a second legend style hash table constructed by the legend position;

[0076] Therefore, based on the list of styles to be synchronized, the target model element is searched in the legend style list, which also includes:

[0077] When the target model element cannot be found in the first legend style hash table based on the name of the model element in the style list to be synchronized, the target model element is searched in the second legend style hash table based on the position of the model element in the style list to be synchronized.

[0078] It is understandable that for each view, the legend styles contained therein have their own names, but not necessarily all have location information, such as coordinates (X, Y, Z).

[0079] Based on this, in this embodiment, when the target model element cannot be found in the first legend style hash table based on the name of the model element in the style list to be synchronized, the target model element is then searched in the second legend style hash table based on the position of the model element in the style list to be synchronized. That is, based on the position, in the first view where the legend style modification has been completed, the same model element as in the second view of the legend style to be modified is searched.

[0080] Specifically, in this embodiment, a fixed-point matching mechanism is used by first searching for model elements with the same name based on the model element name, and then matching the model elements by position when no model elements with the same name are matched. This improves the matching degree of model elements between views, thereby ensuring that the same model element can correctly apply the legend style when the projects are similar, that is, ensuring that two completely identical (all model elements are the same) project styles can be correctly applied.

[0081] It is understandable that if it can be ensured that the project styles between two projects that are not exactly the same can also be correctly applied, the efficiency of view legend style synchronization will be further improved and user operations will be simplified.

[0082] Based on this, in an optional embodiment, after applying the legend style of the target model element to the corresponding model element in the second view, the method further includes:

[0083] Determine whether to traverse all model elements in the list of styles to be synchronized;

[0084] After determining that all model elements in the to-be-synchronized style list have been traversed, the remaining model elements in the to-be-synchronized style list are classified according to type;

[0085] The remaining model elements are model elements in the to-be-synchronized style list that are not matched to model elements in the legend style list;

[0086] Applies the legend styles in the Legend Style list to the corresponding model elements in the second view by type.

[0087] Specifically, by determining whether to traverse all model elements in the style list to be synchronized after applying the legend style of the target model element to the corresponding model element in the second view, it can be determined whether matching model elements have been found in the first view for all model elements in the style list to be synchronized through name search and position search.

[0088] More specifically, after determining that all model elements in the to-be-synchronized style list have been traversed, the remaining model elements in the to-be-synchronized style list that have not been matched to the model elements in the legend style list are classified by type, and then the legend style is applied to the corresponding model elements in the second view according to the type. That is, for model elements that cannot be found through a fixed-point matching mechanism, a fuzzy search mechanism based on type search is used to achieve one-to-one legend style application based on element type, so that the view legend style synchronization method provided in this embodiment is also compatible with style application between two projects that are not completely the same.

[0089] In an optional embodiment, after applying the legend style of the target model element to the corresponding model element in the second view, the method further includes:

[0090] Remove the corresponding model elements from the list of styles to be synchronized.

[0091] In this embodiment, by removing the corresponding model elements in the list of styles to be synchronized after applying the legend style of the target model element to the corresponding model element in the second view, the efficiency of determining whether to traverse all model elements in the list of styles to be synchronized can be improved, thereby further improving the efficiency of view legend style synchronization.

[0092] It is understandable that in computer applications, copying and pasting are common and convenient operations.

[0093] In an optional embodiment, the model elements in the first view and the legend styles of the model elements are obtained by copying;

[0094] Apply the legend style of the target model element to the corresponding model element in the second view by pasting.

[0095] In this embodiment, the model elements and the legend styles of the model elements in the first view are obtained by copying, and the legend style of the target model element is applied to the corresponding model element in the second view by pasting, so that the legend style coverage is automatically completed by copying and pasting.

[0096] Figure 4 FIG. 1 is a specific flow chart of an example of applying the view legend style synchronization method provided by the above embodiment of the present invention to synchronize view legend styles. Figure 4When the view legend style synchronization method provided by the above embodiment of the present invention is applied to synchronize the view legend style, first use Ctrl+C to copy the legend style in the first view, and the legend style content (scaling ratio, color, line type, transparency, font, visibility, etc.) will be saved in the memory using the legend style data structure. Among them, the legend style data can be saved by creating a structure of multiple style lists according to the element type. For example, if there are 9 Markers, there are 9 Marker-type legend styles.

[0097] Then, construct the legend style hash table, that is, construct the hash table by the legend name and position respectively. The two hash table Key values ​​are the name and position respectively, and the Value is another data structure, which contains the element and legend style data structure. It should be noted that if the project is empty, there is no hash table, which means there is no style; and if there is no position information in the model element, there is only a hash table created by the name.

[0098] After that, use Ctrl+V to paste the copied legend style in the second view, and build a list of styles to be synchronized for all model elements in the second view. First search by name, and if the search is not successful in the name hash table, search in the position hash table, and if the search is successful in the name hash table or in the position hash table, further determine whether the type of the matching model element is consistent, and if the type is determined to be consistent, apply the legend style stored in the hash table Value (there is a corresponding data structure in memory). And remove the model elements that have applied the new legend style from the list of elements to be applied.

[0099] Furthermore, if the search in the position hash table is unsuccessful, it is determined whether the currently pre-matched model element is the last model element in the list of styles to be synchronized, that is, whether all model elements in the list of styles to be synchronized have been traversed. If not, the next model element is traversed, and if it is the last model element, a fuzzy search is performed on the remaining model elements in the list of styles to be synchronized. That is, the remaining model elements in the list of styles to be synchronized are classified by type, element lists are created respectively, and then the legend style is applied to the model elements according to the type.

[0100] The view legend style synchronization method provided by the above-mentioned embodiment of the present invention realizes automatic recognition of model elements by constructing a legend style list and a list of styles to be synchronized, and then searching for target model elements in the legend style list based on the list of styles to be synchronized by using a fixed-point matching mechanism. For model elements that cannot be identified by the fixed-point matching mechanism, a fuzzy search mechanism is used to complete the legend style application, so that the legend style coverage can be automatically completed through a simple copy and paste operation. This simplifies the user's operation during view legend style synchronization and improves synchronization efficiency and user experience. On the other hand, it ensures that two completely identical (all elements are the same) project styles can be correctly applied, and is also compatible with style application between two non-completely identical projects.

[0101] A view legend style synchronization system provided in an embodiment of the present invention is introduced below. The view legend style synchronization system described below can be considered as a module architecture for implementing a view legend style synchronization method provided in an embodiment of the present invention; the content described below can be cross-referenced with the above.

[0102] See also Figure 5 , Figure 5 : is a structural block diagram of a view legend style synchronization system provided by an embodiment of the present invention, and the system may include:

[0103] The first acquisition unit 10 is used to obtain the model elements in the first view and the legend style of each model element, and construct a legend style list;

[0104] The second acquisition unit 20 is used to obtain the model elements in the second view and construct a list of styles to be synchronized;

[0105] A search unit 30 is used to search for a target model element in the legend style list based on the list of styles to be synchronized, where the target model element is a model element that matches the model element in the list of styles to be synchronized;

[0106] The synchronization unit 40 is configured to apply the legend style of the target model element to the corresponding model element in the second view when the type of the target model element is consistent with that of the corresponding model element in the list of styles to be synchronized.

[0107] Optional, see Figure 6 , Figure 6 FIG. 1 is a structural block diagram of another view legend style synchronization system provided by an embodiment of the present invention. Figure 5 Based on the illustrated embodiment, the system further includes: a fuzzy processing unit 50;

[0108] The fuzzy processing unit 50 is used to determine whether to traverse all model elements in the to-be-synchronized style list; after determining that all model elements in the to-be-synchronized style list have been traversed, the remaining model elements in the to-be-synchronized style list are classified according to type, and the remaining model elements are model elements in the to-be-synchronized style list that are not matched to model elements in the legend style list; according to the type, the legend style in the legend style list is applied to the corresponding model element in the second view.

[0109] Optionally, the legend style list includes a first legend style hash table constructed from the legend name;

[0110] The searching unit 30 is specifically configured to search the first legend style hash table for the target model element based on the name of the model element in the to-be-synchronized style list.

[0111] Optionally, the legend style list also includes a second legend style hash table constructed by the legend position;

[0112] The search unit 30 is also specifically used to search for the target model element in the second legend style hash table based on the position of the model element in the style list to be synchronized when the target model element cannot be found in the first legend style hash table based on the name of the model element in the style list to be synchronized.

[0113] Optionally, after applying the legend style of the target model element to the corresponding model element in the second view, the synchronization unit 40 is further configured to remove the corresponding model element from the list of styles to be synchronized.

[0114] Optionally, the first acquisition unit 10 is specifically used to obtain the model elements and the legend style of each model element in the first view by copying;

[0115] The synchronization unit 40 is specifically configured to apply the legend style of the target model element to the corresponding model element in the second view by pasting.

[0116] Below, reference Figure 7 To describe the electronic device provided by the embodiment of the present application, the electronic device provided by the embodiment may include: at least one processor 100, at least one communication interface 200, at least one memory 300 and at least one communication bus 400;

[0117] In the embodiment of the present invention, the number of the processor 100, the communication interface 200, the memory 300, and the communication bus 400 is at least one, and the processor 100, the communication interface 200, and the memory 300 communicate with each other through the communication bus 400; obviously, Figure 7 The communication connections shown for the processor 100, the communication interface 200, the memory 300, and the communication bus 400 are merely optional;

[0118] Optionally, the communication interface 200 may be an interface of a communication module, such as an interface of a GSM module; the processor 100 may be a central processing unit CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention.

[0119] The memory 300 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0120] The processor 100 is specifically used to execute the application program in the memory to implement the steps of the above-mentioned view legend style synchronization method.

[0121] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0122] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0123] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0124] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0125] It should be understood that the qualifiers "first", "second", "third", "fourth", "fifth" and "sixth" used in the description of the embodiments of the present application are only used to more clearly explain the technical solutions and cannot be used to limit the scope of protection of the present application.

[0126] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A view legend style synchronization method, characterized in that: include: Obtain the model elements in the first view and the legend styles of each model element, and construct a legend style list; Get the model elements in the second view and build a list of styles to be synchronized; Based on the list of styles to be synchronized, searching for a target model element in the legend style list, the target model element being a model element that matches a model element in the list of styles to be synchronized; When the type of the target model element is consistent with that of the corresponding model element in the to-be-synchronized style list, the legend style of the target model element is applied to the corresponding model element in the second view.

2. The method according to claim 1, characterized in that The legend style list includes a first legend style hash table constructed by the legend name; The searching for a target model element in the legend style list based on the to-be-synchronized style list includes: Based on the name of the model element in the to-be-synchronized style list, the target model element is searched in the first legend style hash table.

3. The method according to claim 2, characterized in that The legend style list also includes a second legend style hash table constructed by the legend position; The searching for a target model element in the legend style list based on the to-be-synchronized style list further includes: When the target model element cannot be found in the first legend style hash table based on the name of the model element in the list of styles to be synchronized, the target model element is searched in the second legend style hash table based on the position of the model element in the list of styles to be synchronized.

4. The method according to claim 3, characterized in that After applying the legend style of the target model element to the corresponding model element in the second view, the method further includes: Determine whether to traverse all model elements in the list of styles to be synchronized; After determining that all model elements in the to-be-synchronized style list have been traversed, classifying the remaining model elements in the to-be-synchronized style list according to type, the remaining model elements being model elements in the to-be-synchronized style list that are not matched to model elements in the legend style list; According to the type, the legend styles in the legend style list are applied to the corresponding model elements in the second view.

5. The method according to claim 4, characterized in that After applying the legend style of the target model element to the corresponding model element in the second view, the method further includes: The corresponding model element in the list of styles to be synchronized is removed.

6. The method according to any one of claims 1 to 5, characterized in that: Obtaining the model elements and the legend styles of the model elements in the first view by copying; The legend style of the target model element is applied to the corresponding model element in the second view by pasting.

7. A view legend style synchronization system, characterized in that: include: A first acquisition unit is used to obtain the model elements in the first view and the legend style of each model element, and construct a legend style list; The second acquisition unit is used to obtain the model elements in the second view and construct a list of styles to be synchronized; A searching unit, configured to search for a target model element in the legend style list based on the list of styles to be synchronized, wherein the target model element is a model element that matches a model element in the list of styles to be synchronized; A synchronization unit is used to apply the legend style of the target model element to the corresponding model element in the second view when the type of the target model element is consistent with the type of the corresponding model element in the list of styles to be synchronized.

8. The system according to claim 7, characterized in that Also includes: Fuzzy processing unit; The fuzzy processing unit is used to determine whether to traverse all model elements in the list of styles to be synchronized; After determining that all model elements in the to-be-synchronized style list have been traversed, classifying the remaining model elements in the to-be-synchronized style list according to type, the remaining model elements being model elements in the to-be-synchronized style list that are not matched to model elements in the legend style list; According to the type, the legend styles in the legend style list are applied to the corresponding model elements in the second view.

9. The system according to claim 8, characterized in that The fuzzy processing unit is also used for: The corresponding model element in the list of styles to be synchronized is removed.

10. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to execute the method according to any one of claims 1 to 6.