CN114996440B - Map display method and device, storage medium and electronic equipment - Google Patents

Map display method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114996440B
CN114996440B CN202210848676.0A CN202210848676A CN114996440B CN 114996440 B CN114996440 B CN 114996440B CN 202210848676 A CN202210848676 A CN 202210848676A CN 114996440 B CN114996440 B CN 114996440B
Authority
CN
China
Prior art keywords
node
coordinate
adjustment
target node
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210848676.0A
Other languages
Chinese (zh)
Other versions
CN114996440A (en
Inventor
张阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jindi Technology Co Ltd
Original Assignee
Beijing Jindi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jindi Technology Co Ltd filed Critical Beijing Jindi Technology Co Ltd
Priority to CN202210848676.0A priority Critical patent/CN114996440B/en
Publication of CN114996440A publication Critical patent/CN114996440A/en
Application granted granted Critical
Publication of CN114996440B publication Critical patent/CN114996440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/169Annotation, e.g. comment data or footnotes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a map display method and device, a storage medium and electronic equipment, wherein the method comprises the following steps: responding to the operation of triggering a target node in the graph by a user, enabling the target node to enter a to-be-moved state, and acquiring coordinate information of each node in the graph; determining whether a first overlapped node exists in a target node or not according to the coordinate information of each node; if the first overlapped node exists, when an adjustment trigger request of a user is received, the adjustment coordinate in the adjustment trigger request is obtained, and the center point coordinate of the target node is adjusted to be the adjustment coordinate. The map display method and device, the storage medium and the electronic equipment provided by the invention can enable a user to look up the nodes in the map more intuitively and clearly, and improve the user experience.

Description

Map display method and device, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a map display method and device, a storage medium and electronic equipment.
Background
In the business query field, in order to enable a user to visually and clearly view relationships between enterprises, between enterprises and individuals, and between individuals, a user is usually presented in a graph presentation manner. However, because of huge enterprise data and complex relationships, the graph of the enterprise is often intricate and complex and cannot be displayed intuitively and clearly, and particularly, the problem that in a limited display area, nodes, connecting lines and/or labeled information in the graph are seriously overlapped is caused, so that a user cannot intuitively and clearly refer to information such as a target node and the like which the user wants to refer to. Therefore, a method and an apparatus for displaying a graph, a storage medium, and an electronic device that are capable of flexibly adjusting target nodes, links, and/or label information in the graph according to a user operation are lacking in the prior art.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present invention provide a map display method and apparatus, a storage medium, and an electronic device.
According to an aspect of an embodiment of the present invention, there is provided a map display method, including:
responding to the operation of triggering a target node in the graph by a user, enabling the target node to enter a to-be-moved state, and acquiring coordinate information of each node in the graph;
determining whether a first overlapped node exists in a target node or not according to the coordinate information of each node;
if the first overlapped node exists, when an adjustment trigger request of a user is received, the adjustment coordinate in the adjustment trigger request is obtained, and the center point coordinate of the target node is adjusted to be the adjustment coordinate.
Optionally, the method further comprises: and if the first overlapped node does not exist, the target node is switched from the state to be moved to the locking state.
Optionally, if there is a first overlapping node, when receiving an adjustment trigger request from a user, obtaining an adjustment coordinate in the adjustment trigger request, and adjusting a center point coordinate of the target node to an adjustment coordinate, including:
if the first overlapped node exists, when an adjustment trigger request of a user is received, acquiring an adjustment coordinate in the adjustment trigger request;
generating a virtual node with the adjustment coordinate as a central point coordinate according to the coordinate information and the adjustment coordinate of the target node, wherein the shape and the size of the virtual node are the same as those of the target node;
judging whether a second overlapped node exists in the virtual nodes or not;
if the second overlapped node does not exist, the coordinate of the center point of the target node is adjusted to be an adjustment coordinate;
and if the second overlapped node exists, deleting the virtual node, and switching the target node from the state to be moved to a locking state, or if the second overlapped node exists, moving the second overlapped node to the outer side of the virtual node, and adjusting the center point coordinate of the target node to be an adjustment coordinate.
Optionally, generating a virtual node using the adjusted coordinate as a center point coordinate according to the coordinate information of the target node and the adjusted coordinate, including:
establishing a first virtual layer;
and generating a virtual node taking the adjustment coordinate as a central point coordinate on the first virtual layer according to the coordinate information and the adjustment coordinate of the target node.
Optionally, the method further comprises:
acquiring a related node directly related to a target node, and connecting the related node with a virtual node through a virtual connecting line;
and deleting a connecting line between the target node and the associated node before the movement, and connecting the associated node and the target node after the movement through the virtual connecting line.
Optionally, the method further comprises:
responding to the operation that a user triggers marking information on a connecting line between any two nodes in the map, and enabling the marking information to enter a state to be slid;
and if the user drags the annotation information, the annotation information slides along the connecting line in the dragging direction of the user.
Optionally, the method further comprises:
responding to an operation of dragging a connecting line between any two nodes in the map by a user, wherein the connecting line moves and bends in the dragging direction of the user;
if the user triggers the recovery request, the connection is recovered to the original state.
According to another aspect of an embodiment of the present invention, there is provided an atlas display apparatus, the apparatus comprising:
the coordinate acquisition module is used for responding to the operation of a target node in a user triggered map, enabling the target node to enter a to-be-moved state and acquiring coordinate information of each node in the map;
and the judging module is used for determining whether a first overlapped node exists in the target node according to the coordinate information of each node, acquiring an adjusting coordinate in the adjusting trigger request when the adjusting trigger request of the user is received if the first overlapped node exists, and adjusting the center point coordinate of the target node into the adjusting coordinate.
According to yet another aspect of embodiments of the present invention, there is provided a computer-readable storage medium storing a computer program for executing the method according to any one of the above-mentioned embodiments of the present invention.
According to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus including: a processor; a memory for storing processor-executable instructions; and the processor is used for reading the executable instructions from the memory and executing the instructions to realize the method of any one of the above embodiments of the invention.
Based on the graph display method and apparatus, the storage medium, and the electronic device provided in the embodiments of the present invention, it is determined whether the target node needs to be moved by determining whether the target node has the first overlapping node, and the moving position of the target node is determined by adjusting the trigger request triggered by the user, which enables the user to look up the node in the graph more intuitively and clearly, thereby improving the user experience.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in more detail embodiments of the present invention with reference to the attached drawings. The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings, like reference numbers generally indicate like parts or steps.
FIG. 1 is a flowchart of a method for displaying a map according to an embodiment of the present invention;
FIG. 2 is another flowchart of a map displaying method according to an embodiment of the present invention;
FIG. 3 is a further flowchart of a spectrum display method according to an embodiment of the present invention;
FIG. 4 is an analysis diagram of a map display method according to an embodiment of the present invention;
FIG. 5 is a schematic block diagram of a spectrum display apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Hereinafter, example embodiments according to the present invention will be described in detail with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a subset of embodiments of the invention and not all embodiments of the invention, with the understanding that the invention is not limited to the example embodiments described herein.
It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless it is specifically stated otherwise.
It will be understood by those skilled in the art that the terms "first", "second", etc. in the embodiments of the present invention are used only for distinguishing different steps, devices or modules, etc., and do not denote any particular technical meaning or necessarily order therebetween.
It should also be understood that in embodiments of the present invention, "a plurality" may refer to two or more than two, and "at least one" may refer to one, two or more than two.
It should also be understood that any reference to any component, data, or structure in an embodiment of the invention may be generally understood as one or more, unless explicitly stated otherwise or indicated otherwise herein.
In addition, the term "and/or" in the present invention is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In the present invention, the character "/" generally indicates that the preceding and following related objects are in an "or" relationship.
It should also be understood that the description of the embodiments of the present invention emphasizes the differences between the embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Embodiments of the invention are operational with numerous other general purpose or special purpose computing system environments or configurations, and with numerous other electronic devices, such as terminal devices, computer systems, servers, etc. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with electronic devices, such as terminal devices, computer systems, servers, and the like, include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set top boxes, programmable consumer electronics, network pcs, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above systems, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
Exemplary method
Fig. 1 is a flowchart of a map displaying method according to an embodiment of the present invention. As shown in fig. 1, the method is applicable to an electronic device, and includes the following steps:
step S101: responding to the operation of triggering a target node in the graph by a user, enabling the target node to enter a to-be-moved state, and acquiring coordinate information of each node in the graph;
in the embodiment of the present invention, the map is a map in the prior art, such as an enterprise relationship map, and a person skilled in the art can flexibly select various maps according to actual needs, which is not limited herein. The graph can comprise connecting lines among the nodes and marking information on the connecting lines; the target node in the graph refers to a node selected by a user, and the number of the target nodes can be one or more.
Taking the enterprise relationship graph as an example, the nodes in the enterprise relationship graph include a target enterprise to be queried, and associated enterprises and/or individuals (such as a director of directors) directly associated and/or indirectly associated with the target enterprise, and the connection between the nodes and the label information include participating shares, performing president, monitoring, legal representatives, and the like.
In a specific implementation mode, a user can trigger the target node in the graph to be selected by clicking or double clicking the target node through a mouse, at the moment, the target node enters a to-be-moved state, and coordinate information of each node in the graph is obtained.
Optionally, the target node entering the to-be-moved state may be indicated by highlighting a color different from that of other nodes, or may be indicated by blinking the target node, and a person skilled in the art may flexibly select a display mode after the target node enters the to-be-moved state according to actual needs, which is not limited herein.
When the target node flicker display mode is realized, a second virtual layer can be established on the graph, a virtual target node is generated on the second virtual layer at a position corresponding to the target node in the graph, and the second virtual layer is refreshed at intervals of preset time (such as 0.1 second), so that the virtual target node on the second virtual layer and the target node in the graph jointly form a flicker display effect. By the method, the target node in the map can form a flickering display effect on the basis of not changing the original map, so that a user can visually and clearly look up the position of the target node in the map, and the user experience is improved. In addition, when the effect of flicker display is not needed, the second virtual layer is directly deleted, and the method is simple and convenient. It should be noted that the second virtual layer is a transparent layer, and other nodes in the map may be referred to through the second virtual layer.
In addition, the coordinate information of each node in the map may be obtained in a manner of prior art, and those skilled in the art may select different obtaining manners according to different maps, which is not limited herein.
Step S102: determining whether a first overlapped node exists in a target node or not according to the coordinate information of each node;
in the embodiment of the present invention, each node in the graph may be one or more of a circular node, a rectangular node, a square node, a triangular node, a rhombic node, and a parallelogram node, and a person skilled in the art may flexibly set the shape of each node according to actual needs, which is not limited herein.
Since each node has the above shape, the coordinate information of each node is a set including a plurality of coordinates including all coordinates within the shape region of the node. When judging whether the target node has the first overlapped node, the node is judged to be overlapped with the target node as long as at least one same coordinate exists in the set of the multiple coordinates of the target node, and the node is the first overlapped node.
Step S103: if the first overlapped node exists, when an adjustment trigger request of a user is received, the adjustment coordinate in the adjustment trigger request is obtained, and the center point coordinate of the target node is adjusted to be the adjustment coordinate.
In the embodiment of the present invention, the adjustment trigger request may be an adjustment trigger request generated after a user clicks or double clicks any one region in the graph after determining that the first overlapping node exists, and the adjustment trigger request includes an adjustment coordinate, and then the coordinate of the center point of the target node is adjusted to the adjustment coordinate, that is, the target node is moved to a position where the adjustment coordinate is located.
In an alternative embodiment, as shown in fig. 2, step S103 specifically includes:
step S1031: if the first overlapped node exists, when an adjustment trigger request of a user is received, acquiring an adjustment coordinate in the adjustment trigger request;
step S1032: generating a virtual node taking the adjustment coordinate as a central point coordinate according to the coordinate information and the adjustment coordinate of the target node, wherein the shape and the size of the virtual node are the same as those of the target node;
optionally, as shown in fig. 3, step S1032 specifically includes:
step S10321: establishing a first virtual layer;
the first virtual layer is a transparent layer, and other nodes in the map can be referred to through the first virtual layer.
Step S10322: and generating a virtual node with the adjustment coordinate as a central point coordinate on the first virtual layer according to the coordinate information and the adjustment coordinate of the target node.
Step S1033: judging whether a second overlapped node exists in the virtual nodes or not;
step S1034: if the second overlapped node does not exist, the coordinate of the center point of the target node is adjusted to be an adjustment coordinate;
step S1035: and if the second overlapped node exists, deleting the virtual node, and switching the target node from the state to be moved to a locking state, or if the second overlapped node exists, moving the second overlapped node to the outer side of the virtual node, and adjusting the center point coordinate of the target node to be the adjustment coordinate.
In the embodiment of the present invention, the locked state refers to a state in which the target node cannot move. Moving the second overlapping node to the outside of the virtual node means that there is no identical coordinate between the virtual node and the second overlapping node.
Step S1035 includes two parallel specific implementation manners, the first implementation manner is to move the target node only when the user clicks or double clicks a blank area in the map, that is, there is no second overlapping node at the position corresponding to the adjusted coordinate, otherwise, the target node enters a locked state; in a second specific implementation manner, the position of the second overlay node that overlaps with the virtual node can be flexibly adjusted, that is, no matter the user clicks or double clicks any position in the graph, the target node can move after the position of the second overlay node is adjusted.
It should be noted that, in the first specific implementation manner, if the virtual node is generated on the first virtual layer, the virtual node may be deleted by deleting the first virtual layer, which is simple and convenient, and does not affect the original map; in the second specific implementation manner, since the target node moves to the position corresponding to the adjusted coordinate, the virtual node may be deleted in the same manner as the deletion manner in the first specific implementation manner, which is not described herein again, or may be directly covered by the target node, and a person skilled in the art may flexibly select the virtual node according to actual needs, and the method is not limited herein.
Since the adjustment coordinate is generated after the user clicks or double clicks any one area in the map, other nodes may exist at the position corresponding to the adjustment coordinate, and in order to avoid that the target node is still overlapped with other nodes after adjustment, a virtual node having the same shape and size as those of the target node is established at the position corresponding to the adjustment coordinate to judge whether an overlapped node (second overlapped node) also exists at the position corresponding to the adjustment coordinate. This way multiple repeated movements of the target node can be avoided.
The method of the embodiment of the invention can also comprise the following steps: step S108: and if the first overlapped node does not exist, the target node is switched from the state to be moved to the locking state.
Optionally, the method in the embodiment of the present invention further includes: acquiring a related node directly related to a target node, and connecting the related node with a virtual node through a virtual connecting line; and deleting a connecting line between the target node and the associated node before the movement, and connecting the associated node and the moved target node through a virtual connecting line.
In the embodiment of the present invention, the associated node directly associated with the target node refers to a node directly connected to the target node through a connection line. For a target node, the number of associated nodes directly associated therewith may be one or more, and is not limited herein.
The virtual connecting line may be generated on the first virtual layer, or may be directly generated on the map, which is not limited herein. And the line type and/or color of the virtual connecting line and other connecting lines in the atlas can be the same or different.
Optionally, the method in the embodiment of the present invention further includes: responding to the operation that a user triggers the marking information on the connecting line between any two nodes in the map, and enabling the marking information to enter a state to be slid; and if the user drags the annotation information, the annotation information slides along the connecting line in the dragging direction of the user.
Optionally, the method in the embodiment of the present invention further includes: responding to an operation of dragging a connecting line between any two nodes in the map by a user, wherein the connecting line moves and bends in the dragging direction of the user; if the user triggers the recovery request, the connection is recovered to the original state.
The recovery request may be triggered by the user releasing the connection between the two selected nodes, and after the user releases the connection between the two nodes, the connection is recovered to the original state, for example, the two nodes are connected by a straight line with an arrow.
In order to make those skilled in the art clearly understand the technical solution of the present invention, the enterprise relationship map in fig. 4 is taken as an example to describe the technical solution of the present invention in detail.
In the enterprise relationship graph shown in fig. 4, company a is a target node, companies B, C, and D are directly related companies of company a, that is, related nodes directly related to the target node, company E is indirectly related companies of company a, that is, related nodes indirectly related to the target node, and individuals lie on monitoring of company a, that is, related nodes directly related to the target node. After a user clicks or double clicks the company A, the company A enters a to-be-moved state and coordinate information of each node in the map is acquired; determining whether a first overlapped node exists in a target node or not according to the coordinate information of each node, wherein the company A in the figure 4 is judged to have the first overlapped node E company, so that the company A is determined to need to move; receiving a trigger operation of clicking or double-clicking any region in the atlas by a user, generating an adjustment trigger request, such as a position shown by a mouse arrow in fig. 4, and acquiring an adjustment coordinate in the adjustment trigger request; establishing a first virtual layer, and generating a virtual node with the adjustment coordinate as a central point coordinate on the first virtual layer according to the coordinate information and the adjustment coordinate of company A, such as a dotted circle company A in FIG. 4; and judging whether the virtual node has a second overlapped node, wherein the center point coordinate of the company A is directly adjusted to be an adjusted coordinate because the virtual node in the figure 4 does not have the second overlapped node, namely the company A is moved to a position corresponding to the adjusted coordinate.
It should be noted that if the second overlapped node exists, the virtual node is deleted and company a is switched from the to-be-moved state to the locked state, or if the second overlapped node exists, the second overlapped node is moved to the outside of the virtual node and the center point coordinate of company a is adjusted to the adjustment coordinate.
As clearly shown in fig. 4, in the method in the embodiment of the present invention, in addition to moving the target node to the position corresponding to the adjusted coordinate, the directly associated nodes connected to the target node need to be adjusted accordingly, and the adjustment method is to obtain the associated nodes directly associated to company a, company B, company C, and company D, and connect company B, company C, and company D with the virtual node through the virtual connection line; after the company A is determined to move, the connection lines between the company A and the companies B, C and D before the movement are deleted, and the company B, the company C and the company D are connected with the destination company A after the movement through virtual connection lines.
In addition, for the connection lines, virtual connection lines and labeled information (such as stock participation, monitoring and the like) in fig. 4, the user can also flexibly adjust the position of the connection lines according to actual needs, so that the problem that the user cannot visually and clearly look up the nodes in the map due to the superposition of the labeled information and/or the connection lines can be avoided.
According to the map display method provided by the embodiment of the invention, whether the target node needs to be moved or not is determined by judging whether the target node has the first overlapped node or not, the moving position of the target node is determined by the adjustment trigger request triggered by the user, and the connecting line and/or the marking information between the two nodes can be flexibly adjusted, so that the user can look up the nodes in the map more intuitively and clearly, and the user experience is improved.
Exemplary devices
Fig. 5 is a schematic block structure diagram of a map display apparatus according to an embodiment of the present invention. As shown in fig. 5, the apparatus includes:
the coordinate acquisition module 301 is configured to respond to an operation that a user triggers a target node in a graph, where the target node enters a to-be-moved state and acquires coordinate information of each node in the graph;
the determining module 302 is configured to determine whether a first overlapping node exists in the target node according to the coordinate information of each node, and if the first overlapping node exists, when an adjustment trigger request of a user is received, obtain an adjustment coordinate in the adjustment trigger request, and adjust a center point coordinate of the target node to the adjustment coordinate.
Optionally, the determining module 302 further includes: an adjustment coordinate acquisition module (not shown in the figure), a virtual node generation module (not shown in the figure) and a node moving module (not shown in the figure); the adjusting coordinate acquiring module is used for acquiring adjusting coordinates in an adjusting trigger request when receiving the adjusting trigger request of a user if a first overlapped node exists; the virtual node generating module is used for generating a virtual node taking the adjustment coordinate as a central point coordinate according to the coordinate information and the adjustment coordinate of the target node; the node moving module is used for judging whether the virtual node has a second overlapped node or not; if the second overlapped node does not exist, the coordinate of the center point of the target node is adjusted to be an adjusted coordinate; and if the second overlapped node exists, deleting the virtual node, and switching the target node from the state to be moved to a locking state, or if the second overlapped node exists, moving the second overlapped node to the outer side of the virtual node, and adjusting the center point coordinate of the target node to be the adjustment coordinate.
And the virtual node and the target node have the same shape and size.
Optionally, the virtual node generating module is specifically configured to: establishing a first virtual layer; and generating a virtual node with the adjustment coordinate as a central point coordinate on the first virtual layer according to the coordinate information and the adjustment coordinate of the target node.
Optionally, the determining module 302 is further configured to: and if the first overlapped node does not exist, the target node is switched from the state to be moved to the locking state.
Optionally, the apparatus in the embodiment of the present invention further includes: a link drawing module (not shown); the connecting line drawing module is used for acquiring a related node directly related to the target node and connecting the related node with the virtual node through a virtual connecting line; and deleting a connecting line between the target node and the associated node before the movement, and connecting the associated node and the moved target node through a virtual connecting line.
Optionally, the apparatus in the embodiment of the present invention further includes: a label information moving module (not shown in the figure); the labeling information moving module is used for responding to the operation that a user triggers the labeling information on the connecting line between any two nodes in the map, and the labeling information enters a to-be-slid state; and if the user drags the annotation information, the annotation information slides along the connecting line in the dragging direction of the user.
Optionally, the apparatus in the embodiment of the present invention further includes: a wire drag module (not shown); a connecting line dragging module for responding to the operation of a user dragging the connecting line between any two nodes in the map, wherein the connecting line moves and bends in the direction dragged by the user; if the user triggers the recovery request, the connection is recovered to the original state.
The map display method provided by the embodiment of the invention corresponds to the map display device provided by the embodiment of the invention, and other descriptions can refer to the description of the map display method provided by the embodiment of the invention, and are not repeated here.
The map display device provided by the embodiment of the invention determines whether the target node needs to be moved or not by judging whether the target node has the first overlapped node or not, determines the moving position of the target node through the adjustment trigger request triggered by the user, and can flexibly adjust the connecting line and/or the marking information between the two nodes, so that the user can look up the nodes in the map more intuitively and clearly, and the user experience is improved.
Exemplary electronic device
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device may be either or both of the first device and the second device, or a stand-alone device separate from them that may communicate with the first device and the second device to receive the acquired input signals therefrom. Fig. 6 illustrates a block diagram of an electronic device in accordance with an embodiment of the disclosure. As shown in fig. 6, the electronic device 40 includes one or more processors 41 and a memory 42.
The processor 41 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
Memory 42 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer readable storage medium and executed by the processor 41 to implement the method of stress testing a server and/or other desired functions of the software program of the various embodiments of the present disclosure described above. In one example, the electronic device may further include: an input device 43 and an output device 44, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 43 may also include, for example, a keyboard, a mouse, and the like.
The output device 44 can output various information to the outside. The output devices 44 may include, for example, a display, speakers, a printer, and a communication network and its connected remote output devices, among others.
Of course, for simplicity, only some of the components of the electronic device relevant to the present disclosure are shown in fig. 6, omitting components such as buses, input/output interfaces, and so forth. In addition, the electronic device may include any other suitable components, depending on the particular application.
Exemplary computer program product and computer-readable storage Medium
In addition to the above-described methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the method of stress testing a server according to various embodiments of the present disclosure described in the "exemplary methods" section of this specification above.
The computer program product may write program code for carrying out operations for embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the steps in the method of stress testing a server according to various embodiments of the present disclosure described in the "exemplary methods" section above in this specification.
The computer readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The basic principles of the present disclosure have been described above in connection with specific embodiments, but it should be noted that advantages, effects, and the like, mentioned in the present disclosure are only examples and not limitations, and should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure will be described in detail with reference to specific details.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The block diagrams of devices, apparatuses, systems referred to in this disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
The method and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
It is also noted that in the apparatus, devices, and methods of the present disclosure, various components or steps may be broken down and/or re-combined. Such decomposition and/or recombination should be considered as equivalents of the present disclosure. The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (9)

1. A method of atlas presentation, the method comprising:
responding to the operation of a user for triggering a target node in a graph, enabling the target node to enter a to-be-moved state, and acquiring coordinate information of each node in the graph;
determining whether a first overlapped node exists in the target node according to the coordinate information of each node;
if the first overlapped node exists, when an adjustment trigger request of the user is received, acquiring an adjustment coordinate in the adjustment trigger request, and adjusting the center point coordinate of the target node into the adjustment coordinate;
if the first overlapped node exists, when an adjustment trigger request of the user is received, acquiring an adjustment coordinate in the adjustment trigger request, and adjusting the center point coordinate of the target node to the adjustment coordinate, including:
if the first overlapped node exists, when an adjustment trigger request of a user is received, obtaining an adjustment coordinate in the adjustment trigger request;
generating a virtual node taking the adjustment coordinate as a central point coordinate according to the coordinate information of the target node and the adjustment coordinate, wherein the virtual node and the target node have the same shape and size;
judging whether a second overlapped node exists in the virtual node;
if the second overlapped node does not exist, the coordinate of the center point of the target node is adjusted to be the adjusted coordinate;
and if the second overlapped node exists, deleting the virtual node, and switching the target node from the state to be moved to a locking state, or if the second overlapped node exists, moving the second overlapped node to the outer side of the virtual node, and adjusting the center point coordinate of the target node to the adjustment coordinate.
2. The method of claim 1, further comprising: and if the first overlapped node does not exist, the target node is switched from the state to be moved to a locking state.
3. The method according to claim 1, wherein the generating a virtual node having the adjusted coordinate as a center point coordinate according to the coordinate information of the target node and the adjusted coordinate comprises:
establishing a first virtual layer;
and generating a virtual node with the adjustment coordinate as a central point coordinate on the first virtual layer according to the coordinate information of the target node and the adjustment coordinate.
4. The method of claim 1, further comprising:
acquiring a related node directly related to the target node, and connecting the related node with the virtual node through a virtual connecting line;
and deleting a connecting line between the target node and the associated node before moving, and connecting the associated node and the moved target node through a virtual connecting line.
5. The method of claim 1, further comprising:
responding to the operation that the user triggers the marking information on the connecting line between any two nodes in the graph, and enabling the marking information to enter a state to be slid;
and if the user drags the marking information, the marking information slides along the connecting line in the dragging direction of the user.
6. The method of claim 1, further comprising:
responding to an operation of dragging a connecting line between any two nodes in the graph by the user, wherein the connecting line moves and bends in the direction dragged by the user;
and if the user triggers a recovery request, the connection is recovered to the original state.
7. An atlas presentation apparatus, the apparatus comprising:
the system comprises a coordinate acquisition module, a mapping module and a mapping module, wherein the coordinate acquisition module is used for responding to the operation that a user triggers a target node in a map, the target node enters a to-be-moved state, and coordinate information of each node in the map is acquired;
a judging module, configured to determine whether a first overlapping node exists in the target node according to the coordinate information of each node, and if the first overlapping node exists, when receiving an adjustment trigger request from the user, obtain an adjustment coordinate in the adjustment trigger request, and adjust a center point coordinate of the target node to the adjustment coordinate;
wherein, the judging module further comprises: the system comprises an adjustment coordinate acquisition module, a virtual node generation module and a node moving module;
the adjusting coordinate acquiring module is used for acquiring adjusting coordinates in an adjusting trigger request when the adjusting trigger request of a user is received if a first overlapped node exists;
the virtual node generating module is used for generating a virtual node which takes the adjustment coordinate as a central point coordinate according to the coordinate information and the adjustment coordinate of the target node, wherein the shape and the size of the virtual node are the same as those of the target node;
the node moving module is used for judging whether the virtual node has a second overlapped node or not; if the second overlapped node does not exist, the coordinate of the center point of the target node is adjusted to be an adjustment coordinate; and if the second overlapped node exists, deleting the virtual node, and switching the target node from the state to be moved to a locking state, or if the second overlapped node exists, moving the second overlapped node to the outer side of the virtual node, and adjusting the center point coordinate of the target node to be the adjustment coordinate.
8. A computer-readable storage medium, characterized in that the storage medium stores a computer program for performing the method of any of the preceding claims 1-6.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method of any one of claims 1-6.
CN202210848676.0A 2022-07-19 2022-07-19 Map display method and device, storage medium and electronic equipment Active CN114996440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210848676.0A CN114996440B (en) 2022-07-19 2022-07-19 Map display method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210848676.0A CN114996440B (en) 2022-07-19 2022-07-19 Map display method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114996440A CN114996440A (en) 2022-09-02
CN114996440B true CN114996440B (en) 2022-11-04

Family

ID=83021795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210848676.0A Active CN114996440B (en) 2022-07-19 2022-07-19 Map display method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114996440B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026895A (en) * 2019-12-02 2020-04-17 上海交通大学 Data visualization processing method and device and storage medium
CN112272109A (en) * 2020-10-15 2021-01-26 上海云轴信息科技有限公司 Network topological graph generation method, equipment and system
CN112583620A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Network topology map generation method and device, electronic equipment and storage medium
CN112749282A (en) * 2019-10-31 2021-05-04 北京国双科技有限公司 Knowledge graph display method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180366013A1 (en) * 2014-08-28 2018-12-20 Ideaphora India Private Limited System and method for providing an interactive visual learning environment for creation, presentation, sharing, organizing and analysis of knowledge on subject matter
US10013450B2 (en) * 2015-12-03 2018-07-03 International Business Machines Corporation Using knowledge graphs to identify potential inconsistencies in works of authorship
CN110602101B (en) * 2019-09-16 2021-01-01 北京三快在线科技有限公司 Method, device, equipment and storage medium for determining network abnormal group

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112583620A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Network topology map generation method and device, electronic equipment and storage medium
CN112749282A (en) * 2019-10-31 2021-05-04 北京国双科技有限公司 Knowledge graph display method, device, equipment and storage medium
CN111026895A (en) * 2019-12-02 2020-04-17 上海交通大学 Data visualization processing method and device and storage medium
CN112272109A (en) * 2020-10-15 2021-01-26 上海云轴信息科技有限公司 Network topological graph generation method, equipment and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
大规模异构局域网中拓扑图的自动生成;胡华平等;《武汉大学学报(理学版)》;20061023(第05期);全文 *

Also Published As

Publication number Publication date
CN114996440A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
US11893703B1 (en) Precise manipulation of virtual object position in an extended reality environment
US11836440B1 (en) Web browsing
US11003846B2 (en) Smarter copy/paste
US11410403B1 (en) Precise scaling of virtual objects in an extended reality environment
US9836551B2 (en) GUI for viewing and manipulating connected tag clouds
US10963144B2 (en) Graphically organizing content in a user interface to a software application
US11200293B2 (en) Method and system for controlling presentation of web resources in a browser window
US20110047187A1 (en) Drag and drop importation of content
US11790623B1 (en) Manipulation of virtual object position within a plane of an extended reality environment
US20190339820A1 (en) Displaying a subset of menu items based on a prediction of the next user-actions
WO2021155820A1 (en) Document processing method and device, and page processing method and device
US10861202B1 (en) Sankey graph visualization for machine data search and analysis system
WO2018174365A1 (en) Method for visualizing chart of data table
US20090249238A1 (en) Automated directing of data to an application
JP2015518219A (en) Method and system for selecting business objects
US10579227B1 (en) Identifying missed interactions
US10719206B1 (en) Measuring unresponsive interactions
US20170139475A1 (en) Method and apparatus for tracking user gaze and adapting content
CN109582317A (en) Method and apparatus for debugging boarding application
US9892380B2 (en) Adaptive knowledge navigator
TWI744216B (en) Method and device for providing prompt information
CN114996440B (en) Map display method and device, storage medium and electronic equipment
US11836869B1 (en) Generating three-dimensional data visualizations in an extended reality environment
JP2019067359A (en) System and method for visual exploration of subnetwork patterns in two-mode networks, program, and computer device
CN115357314A (en) Popup window display method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant