CN115454295A - Method, device, equipment and storage medium for displaying equipment icons - Google Patents

Method, device, equipment and storage medium for displaying equipment icons Download PDF

Info

Publication number
CN115454295A
CN115454295A CN202211271173.8A CN202211271173A CN115454295A CN 115454295 A CN115454295 A CN 115454295A CN 202211271173 A CN202211271173 A CN 202211271173A CN 115454295 A CN115454295 A CN 115454295A
Authority
CN
China
Prior art keywords
icon
equipment
interface
displaying
display position
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.)
Pending
Application number
CN202211271173.8A
Other languages
Chinese (zh)
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.)
Shenzhen Inovance Technology Co Ltd
Original Assignee
Shenzhen Inovance 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 Shenzhen Inovance Technology Co Ltd filed Critical Shenzhen Inovance Technology Co Ltd
Priority to CN202211271173.8A priority Critical patent/CN115454295A/en
Publication of CN115454295A publication Critical patent/CN115454295A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/04817Interaction 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 using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for displaying an equipment icon. When the device icon is detected to move, the grid matrix is displayed in the interface, then the initial distance between the device icon and the candidate grids in the grid matrix is obtained, the icon display position is determined in the interface according to the initial distance, and the device icon is placed at the icon display position for display. According to the method, the grid matrix is displayed in the interface when the movement of the equipment icon is detected, the grid matrix in the interface can be awakened, the icon display position is determined in the interface according to the initial distance, and compared with the existing method of manually adjusting the position of the equipment icon, the method can automatically determine the icon display position and place the equipment icon at the icon display position for display in the movement process of the equipment icon, so that the equipment icon can be displayed at a proper position, and the equipment icon display efficiency is improved.

Description

Method, device, equipment and storage medium for displaying equipment icon
Technical Field
The invention relates to the technical field of industrial Internet of things, in particular to a method, a device, equipment and a storage medium for displaying an equipment icon.
Background
The software interface in the industrial control industry has high complexity of functions, multiple interactive interfaces and high learning and memorizing cost, the movement and connection of the equipment icons are important parts of the industrial control industry, and the movement and connection of the equipment icons do not have a good rule mode all the time, so that the operation efficiency of the product is low and the user experience is poor. In the current stage, the equipment icons in the industrial control industry are in movable connection, the connection among the equipment icons is mainly completed in a mode of moving for multiple times or double-clicking, and the positions of the equipment icons need to be adjusted repeatedly in many scenes; the existing operation mode cannot realize the adjustment of the position of the equipment icon, and the connection mode is hard and lacks the perception of a user. Therefore, how to display the device icon at a proper position and improve the efficiency of displaying the device icon becomes a problem to be solved urgently.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for displaying equipment icons, and aims to solve the technical problems of displaying the equipment icons at proper positions and improving the efficiency of displaying the equipment icons.
In order to achieve the above object, the present invention provides an apparatus icon display method, including the steps of:
when the movement of the equipment icon is detected, displaying a grid matrix in the interface;
acquiring an initial distance between the equipment icon and a candidate grid in the grid matrix;
and determining an icon display position in the interface according to the initial distance, and placing the equipment icon at the icon display position for displaying.
Optionally, the step of obtaining an initial distance between the device icon and a candidate grid in the grid matrix specifically includes:
acquiring the position information of the equipment icon in the interface;
selecting candidate grids in a preset range from the grid matrix according to the position information;
and acquiring an initial distance between the equipment icon and the candidate square grids.
Optionally, the step of determining an icon display position in the interface according to the initial distance, and placing the device icon at the icon display position for display includes:
selecting a minimum initial distance from the initial distances;
selecting a target square from the candidate squares according to the minimum initial distance;
and determining an icon display position in the interface according to the target grid, and placing the equipment icon at the icon display position for displaying.
Optionally, after the step of determining an icon display position in the interface according to the initial distance and placing the device icon at the icon display position for display, the method further includes:
judging whether the equipment icon triggers equipment connection operation or not;
if the equipment connection operation is triggered, acquiring an equipment icon to be connected and an equipment connection interface;
and connecting the equipment icon to be connected with the equipment icon through the equipment connecting interface.
Optionally, the step of acquiring the to-be-connected device icon and the device connection interface if the device connection operation is triggered includes:
if the equipment connection operation is triggered, acquiring an equipment connection protocol and an equipment connection interface;
and determining the icon of the equipment to be connected according to the equipment connection protocol.
Optionally, the step of acquiring the device connection interface specifically includes:
acquiring a target device icon and a target connecting line which are touched by the device icon in the moving process;
acquiring a connection equipment interface corresponding to the target equipment icon and a connection line interface corresponding to the target connection line;
and determining the equipment connection interface according to the connection equipment interface and the connection line interface.
Optionally, the step of acquiring a device connection interface specifically includes:
acquiring interface selection information of the equipment icon to be connected;
and determining a device connection interface according to the information selected by the interface.
In addition, to achieve the above object, the present invention further provides an apparatus icon presenting device, including:
the grid matrix display module is used for displaying a grid matrix in the interface when the movement of the equipment icon is detected;
the distance acquisition module is used for acquiring an initial distance between the equipment icon and a candidate grid in a preset range in the grid matrix;
and the equipment icon display module is used for determining an icon display position in the interface according to the initial distance and placing the equipment icon at the icon display position for displaying.
In addition, to achieve the above object, the present invention further provides an apparatus icon presenting apparatus, including: a memory, a processor and a device icon presentation program stored on the memory and executable on the processor, the device icon presentation program being configured to implement the steps of the device icon presentation method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium, in which a device icon presenting program is stored, and the device icon presenting program implements the steps of the device icon presenting method as described above when executed by a processor.
According to the method and the device, when the device icon is detected to move, the grid matrix is displayed in the interface, the initial distance between the device icon and the candidate grids in the grid matrix is obtained, the icon display position is determined in the interface according to the initial distance, and the device icon is placed at the icon display position for display. According to the method, the grid matrix is displayed in the interface when the equipment icon is detected to move, the grid matrix in the interface can be awakened, the icon display position is determined in the interface according to the initial distance, and compared with the existing method for manually adjusting the position of the equipment icon, the method can automatically determine the icon display position and place the equipment icon at the icon display position for displaying in the moving process of the equipment icon, so that the equipment icon can be displayed at a proper position, and the equipment icon display efficiency is improved.
Drawings
Fig. 1 is a schematic structural diagram of a device icon presentation device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for displaying icons of a device according to a first embodiment of the present invention;
FIG. 3 is a schematic interface diagram of an embodiment of a method for displaying icons of a device according to the present invention;
FIG. 4 is a flowchart illustrating a method for displaying icons of a device according to a second embodiment of the present invention;
FIG. 5 is a schematic interface diagram of an apparatus icon displaying method according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a third embodiment of a method for displaying icons of devices according to the present invention;
FIG. 7 is a schematic interface diagram illustrating an embodiment of a method for displaying icons of a device according to the present invention;
FIG. 8 is a schematic interface diagram of an apparatus icon displaying method according to an embodiment of the present invention;
FIG. 9 is a schematic interface diagram of an apparatus icon displaying method according to an embodiment of the present invention;
FIG. 10 is a schematic interface diagram illustrating an embodiment of a method for displaying icons of a device according to the present invention;
FIG. 11 is a block diagram of a first embodiment of an apparatus for displaying icons according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a device icon display device structure of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the device icon presentation device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the device icon display device, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a device icon presentation program.
In the device icon presentation device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the device icon display device according to the present invention may be disposed in the device icon display device, and the device icon display device calls the device icon display program stored in the memory 1005 through the processor 1001 and executes the device icon display method according to the embodiment of the present invention.
Based on the device icon display device, an embodiment of the present invention provides a device icon display method, and referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of the device icon display method according to the present invention.
In this embodiment, the method for displaying the device icon includes the following steps:
step S10: when the movement of the equipment icon is detected, displaying a grid matrix in the interface;
it should be noted that the execution subject of the embodiment may be a computing service device with data processing, network communication and program running functions, such as a personal computer, or an electronic device or device icon display device capable of implementing the above functions. The present embodiment and the following embodiments will be described below by taking the device icon presenting device as an example.
It can be understood that when the movement of the device icon in the interface is detected, the interface can be an industrial control industry software interface, and the movement process can be that the device icon is selected from a device list and dragged to the interface or the device icon is moved in the interface.
It should be understood that, referring to fig. 3, fig. 3 is an interface schematic diagram of an embodiment of a method for displaying a device icon according to the present invention. As shown in fig. 3, the grid matrix may fully cover the entire interface, the grid matrix may include a plurality of grids, the number of the grids is related to the size of the interface, the size of each grid is consistent, the size of the grids and the distance between the grids are not specifically limited in this embodiment, but the distances between the upper and lower grids are the same, and the distances between the left and right grids are also the same.
Step S20: acquiring an initial distance between the equipment icon and a candidate grid in the grid matrix;
the candidate grid is a grid around the position where the device icon is located after the movement is completed. The initial distance is the distance between the device icon and each of the candidate tiles after the movement is completed.
Further, in order to accurately determine the candidate squares and reduce the time for obtaining the initial distance, in this embodiment, the step S20 includes: acquiring the position information of the equipment icon in the interface; selecting candidate grids in a preset range from the grid matrix according to the position information; and acquiring an initial distance between the equipment icon and the candidate square grids.
The position information refers to a position where the device icon is located, for example: device five in fig. 3 is located between the fifth column in the second row and the sixth column in the third row.
It is understood that the preset range can be set according to actual situations, for example: nine squares, sixteen squares, etc., centered on the position information, which is not specifically limited in this embodiment. Taking fig. 3 as an example, when the preset range is nine squares with the position information as the center, the candidate squares are nine squares between the fifth column in the first row and the seventh column in the third row.
In a specific implementation, when determining the initial distance, an edge closest to the square grid may be determined first, and then a distance between the edge and the square grid is determined, for example: in fig. 3, a side of the device icon closest to the grid square in the second row and the seventh column is the right side of the device icon, and then the initial distance between the right side of the device icon and the grid square in the second row and the seventh column is determined.
Step S30: and determining an icon display position in the interface according to the initial distance, and placing the equipment icon at the icon display position for displaying.
It can be understood that, in the present embodiment, the icon display position, that is, the square grid where the device icon is displayed, may be determined in the interface according to the initial distance, specifically, the square grid with the minimum initial distance may be selected as the icon display position, and then the device icon is placed at the icon display position for display.
In the embodiment, when the device icon is detected to move, the grid matrix is displayed in the interface, then the initial distance between the device icon and the candidate grids in the grid matrix is obtained, the icon display position is determined in the interface according to the initial distance, and the device icon is placed at the icon display position for display. According to the method, when the device icon is detected to move, the grid matrix is displayed in the interface, the grid matrix in the interface can be awakened, the icon display position is determined in the interface according to the initial distance, and compared with the position of the device icon which is adjusted manually in the prior art, the icon display position can be automatically determined in the moving process of the device icon, the device icon is placed in the icon display position to be displayed, the device icon can be displayed in a proper position, and the display efficiency of the device icon is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for displaying device icons according to a second embodiment of the present invention.
Based on the first embodiment described above, in the present embodiment, the step S30 includes:
step S301: selecting a minimum initial distance from the initial distances;
the minimum initial distance is a minimum value among the initial distances.
Step S302: selecting a target square from the candidate squares according to the minimum initial distance;
it can be understood that, referring to fig. 5, fig. 5 is an interface schematic diagram of an embodiment of the equipment icon displaying method of the present invention. As shown in FIG. 5, the device four in FIG. 5 has a small hand mark, which indicates that the user mouse is pressed on the device four, which indicates that the device four is a moving device icon, and the square in the second row and the fifth column is a dotted line, which indicates the position of the device four before moving.
It should be understood that the cell corresponding to the minimum initial distance is the target cell, and the target cell in fig. 5 switches colors. If the device icon exists on the target pane, it is necessary to select a pane corresponding to the second initial distance as the target pane in the arrangement from small to large initial distances, and so on, if the device icon also exists on the target pane, the pane corresponding to the third initial distance is the target pane, which is not described in detail in this embodiment.
Step S303: and determining an icon display position in the interface according to the target grid, and placing the equipment icon at the icon display position for displaying.
It can be understood that the icon display position is the target square grid, and the device icon can be displayed at the icon display position. After the device icon is displayed at the icon display position, the dotted line at the position where the device icon is located before the movement corresponding to the device icon disappears.
In the embodiment, the minimum initial distance is selected from the initial distances, the target pane is selected from the candidate panes according to the minimum initial distance, the icon display position is determined in the interface according to the target pane, and the device icon is placed at the icon display position for displaying. According to the icon display method and device, the minimum initial distance is selected from the initial distances, the target square is selected from the candidate squares according to the minimum initial distance, and the target square is used as the icon display position, so that the icon display position can be automatically determined in the moving process of the device icon.
Referring to fig. 6, fig. 6 is a flowchart illustrating a method for displaying device icons according to a third embodiment of the present invention.
Based on the foregoing embodiments, in this embodiment, after the step S30, the method further includes:
step S40: judging whether the equipment icon triggers equipment connection operation or not;
in a specific implementation, the determining whether the device icon triggers the device connection operation may be determining whether the device icon is the first icon on the interface, if yes, the device connection operation does not need to be triggered, and if not, the device connection operation needs to be triggered, where the device connection operation refers to an operation of connecting with other device icons.
Step S50: if the equipment connection operation is triggered, acquiring an equipment icon to be connected and an equipment connection interface;
it can be understood that if the device connection operation is triggered, that is, the device icon is not the device one, the device icon to be connected and the device connection interface are acquired.
It should be understood that if the device connection operation is not triggered, that is, the device icon is the device one, the device icon is placed in the icon display position for display.
In a specific implementation, the device icon to be connected refers to a device icon that needs to be connected with the device icon, and the device connection interface refers to an interface for connecting the device icon to be connected with the device icon. Referring to fig. 7, fig. 7 is a schematic interface diagram of an embodiment of a method for displaying an apparatus icon according to the present invention. As shown in fig. 7, the device four is a device icon, the device icon to be connected is a device one, the device connection interface is the interface 1 on the device one, and both the device two and the device three are connected with the device one through the interface 1 of the device one. Referring to fig. 8, fig. 8 is a schematic interface diagram of an embodiment of a method for displaying device icons according to the present invention. As shown in fig. 8, the device five is a device icon, the device icon to be connected is a device one, the device connection interface is the interface 1 on the device one, and the device two, the device three, and the device four are all connected with the device one through the interface 1 of the device one.
Specifically, referring to fig. 9, fig. 9 is an interface schematic diagram of an embodiment of a method for displaying an apparatus icon according to the present invention. As shown in fig. 9, when there is no hand mark on all the device icons on the interface, that is, when the user releases the mouse, all the device icons on the interface are shown completely, and at this time, the grid matrix on the interface disappears. In fig. 9, the second device, the third device, the fourth device and the fifth device are connected to the first device through the interface 1 in the first device, and the sixth device is connected to the first device through the interface 2 in the first device.
Further, in order to determine the device icon to be connected and the device connection interface, in this embodiment, the step S50 includes: if the equipment connection operation is triggered, acquiring an equipment connection protocol and an equipment connection interface; and determining the icon of the equipment to be connected according to the equipment connection protocol.
It can be understood that if the device connection operation is triggered, that is, the device icon needs to be connected with other device icons, a device connection protocol between the device icon and the device icon to be connected can be acquired, the device connection protocol can be preset in the device icon, and the device icon to be connected corresponding to the device icon and which interface of the device icon to be connected is used for connection can be stored. Therefore, the icon of the device to be connected and the device connection interface can be determined according to the device connection protocol. The device connection interface may be determined in other ways besides according to the device connection protocol.
Optionally, in order to accurately determine the device connection interface, in this embodiment, the step of obtaining the device connection interface specifically includes: acquiring a target device icon and a target connecting line which are touched by the device icon in the moving process; acquiring a connecting equipment interface corresponding to the target equipment icon and a connecting line interface corresponding to the target connecting line; and determining the equipment connection interface according to the connection equipment interface and the connection line interface.
It should be understood that other device icons on the interface may be touched during the movement of the device icon, that is, the target device icon, and a target connecting line exists between the target device icon and the connected device icon, and the connecting line interface on the connected device icon can be determined according to the target connecting line.
It can be understood that, referring to fig. 10, fig. 10 is an interface schematic diagram of an embodiment of a device icon displaying method of the present invention. As shown in fig. 10, the seventh device is a device icon, the second, third, fourth, and fifth devices are connected to the first device through the interface 1 on the first device, and the sixth device is connected to the first device through the interface 2 on the first device. If the device seven touches the device six in the moving process, the target device icon is the device six, and the target connection line is a line connecting the device six and the device one through the interface 2, it can be known that the connection line interface corresponding to the target connection line is the interface 2, that is, the connection interface between the device seven and the device one is also the interface 2.
Optionally, in order to accurately determine the device connection interface, in this embodiment, the step of acquiring the device connection interface specifically includes: acquiring interface selection information of the equipment icon to be connected; and determining the equipment connection interface according to the interface selection information.
It should be understood that, besides the above-mentioned manner for determining the device connection interface, it may also be determined whether there is a selected interface in the icons of the devices to be connected, that is, interface selection information, and if there is a selected interface, the interface is a device connection interface. For example: and in the moving process of the device seven, receiving the message that the interface 2 on the device one is selected, wherein the interface 2 is a device connection interface.
Step S60: and connecting the equipment icon to be connected with the equipment icon through the equipment connecting interface.
It can be understood that, if a device connection operation is triggered, that is, the device icon needs to be connected with other device icons, the device icon may be placed in the icon display position for display, the device seven in fig. 10 may be placed in the third row and the sixth column for display, and the device seven is connected with the device one through the interface 2 on the device one.
In a specific implementation, when a user presses an alt key or other shortcut keys to trigger a function of copying an equipment icon, an original equipment icon is copied to generate a new equipment icon, and a grid matrix is displayed on a grid on an interface.
In this embodiment, whether the device icon triggers the device connection operation is determined, if the device connection operation is triggered, the device icon to be connected and the device connection interface are acquired, and then the device icon to be connected and the device icon are connected through the device connection interface. Whether this embodiment triggers equipment connection operation through judging the equipment icon, can judge whether the equipment icon needs to be connected with other equipment icons, when trigger equipment connection operation, will wait to connect equipment icon and equipment icon through equipment connection interface and be connected to can demonstrate the equipment icon in suitable position, and can be connected between equipment icon and the equipment icon that needs to be connected automatically.
Referring to fig. 11, fig. 11 is a block diagram illustrating a first embodiment of an apparatus icon presenting device according to the present invention.
As shown in fig. 11, an apparatus icon display device provided in the embodiment of the present invention includes:
a grid matrix display module 10, configured to display a grid matrix in an interface when it is detected that an equipment icon moves;
a distance obtaining module 20, configured to obtain an initial distance between the device icon and a candidate grid in a preset range in the grid matrix;
and the device icon displaying module 30 is configured to determine an icon displaying position in the interface according to the initial distance, and place the device icon at the icon displaying position for displaying.
In the embodiment, when the device icon is detected to move, the square grid matrix is displayed in the interface, then the initial distance between the device icon and the candidate square grids in the square grid matrix is obtained, the icon display position is determined in the interface according to the initial distance, and the device icon is placed at the icon display position for display. According to the method, the grid matrix is displayed in the interface when the equipment icon is detected to move, the grid matrix in the interface can be awakened, the icon display position is determined in the interface according to the initial distance, and compared with the position of the equipment icon which is manually adjusted in the prior art, the icon display position can be automatically determined in the equipment icon moving process, so that the equipment icon can be displayed in a proper position, and the equipment icon display efficiency is improved.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the method for displaying the device icon provided in any embodiment of the present invention, and are not described herein again.
Based on the first embodiment of the device icon displaying apparatus of the present invention, a second embodiment of the device icon displaying apparatus of the present invention is provided.
In this embodiment, the distance obtaining module 20 is further configured to obtain position information of the device icon in the interface; selecting candidate grids in a preset range from the grid matrix according to the position information; and acquiring an initial distance between the equipment icon and the candidate square grids.
Further, the device icon presenting module 30 is further configured to select a minimum initial distance from the initial distances; selecting target grids from the candidate grids according to the minimum initial distance; and determining an icon display position in the interface according to the target grid, and placing the equipment icon at the icon display position for displaying.
Further, the device icon displaying module 30 is further configured to determine whether the device icon triggers a device connection operation; if the equipment connection operation is triggered, acquiring an equipment icon to be connected and an equipment connection interface; and connecting the equipment icon to be connected with the equipment icon through the equipment connecting interface.
Further, the device icon display module 30 is further configured to obtain a device connection protocol and a device connection interface if the device connection operation is triggered; and determining the icon of the equipment to be connected according to the equipment connection protocol.
Further, the device icon presenting module 30 is further configured to obtain a target device icon and a target connection line touched by the device icon in the moving process; acquiring a connecting equipment interface corresponding to the target equipment icon and a connecting line interface corresponding to the target connecting line; and determining the equipment connection interface according to the connection equipment interface and the connection line interface.
Further, the device icon displaying module 30 is further configured to obtain information selected by an interface of the device icon to be connected; and determining the equipment connection interface according to the interface selection information.
Other embodiments or specific implementation manners of the device icon display apparatus of the present invention may refer to the above method embodiments, and are not described herein again.
In addition, an embodiment of the present invention further provides a storage medium, where an apparatus icon displaying program is stored in the storage medium, and when the apparatus icon displaying program is executed by a processor, the steps of the apparatus icon displaying method described above are implemented.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An equipment icon display method is characterized by comprising the following steps:
when the movement of the equipment icon is detected, displaying a grid matrix in the interface;
acquiring an initial distance between the equipment icon and a candidate grid in the grid matrix;
and determining an icon display position in the interface according to the initial distance, and placing the equipment icon at the icon display position for displaying.
2. The method for displaying device icons according to claim 1, wherein the step of obtaining the initial distance between the device icon and the candidate grid in the grid matrix specifically includes:
acquiring the position information of the equipment icon in the interface;
selecting candidate grids in a preset range from the grid matrix according to the position information;
and acquiring an initial distance between the equipment icon and the candidate grid.
3. The method for displaying the device icon according to claim 1, wherein the step of determining an icon display position in the interface according to the initial distance and placing the device icon at the icon display position for displaying includes:
selecting a minimum initial distance from the initial distances;
selecting a target square from the candidate squares according to the minimum initial distance;
and determining an icon display position in the interface according to the target grid, and placing the equipment icon at the icon display position for displaying.
4. The method for displaying the equipment icon according to claim 1, wherein after the steps of determining an icon display position in the interface according to the initial distance and placing the equipment icon at the icon display position for displaying, the method further comprises:
judging whether the equipment icon triggers equipment connection operation or not;
if the equipment connection operation is triggered, acquiring an equipment icon to be connected and an equipment connection interface;
and connecting the equipment icon to be connected with the equipment icon through the equipment connecting interface.
5. The method for displaying the device icon according to claim 4, wherein the step of acquiring the device icon to be connected and the device connection interface if the device connection operation is triggered specifically includes:
if the equipment connection operation is triggered, acquiring an equipment connection protocol and an equipment connection interface;
and determining the icon of the equipment to be connected according to the equipment connection protocol.
6. The device icon presenting method according to claim 5, wherein the step of obtaining the device connection interface specifically includes:
acquiring a target device icon and a target connecting line which are touched by the device icon in the moving process;
acquiring a connecting equipment interface corresponding to the target equipment icon and a connecting line interface corresponding to the target connecting line;
and determining the equipment connection interface according to the connection equipment interface and the connection line interface.
7. The device icon presenting method according to claim 5, wherein the step of obtaining the device connection interface specifically includes:
acquiring interface selection information of the equipment icon to be connected;
and determining a device connection interface according to the information selected by the interface.
8. An apparatus icon presentation apparatus, comprising:
the square matrix display module is used for displaying a square matrix in the interface when the equipment icon is detected to move;
the distance acquisition module is used for acquiring an initial distance between the equipment icon and a candidate grid in a preset range in the grid matrix;
and the equipment icon display module is used for determining an icon display position in the interface according to the initial distance and placing the equipment icon at the icon display position for displaying.
9. An apparatus icon presentation apparatus, the apparatus comprising: memory, a processor and a device icon presentation program stored on the memory and executable on the processor, the device icon presentation program being configured to implement the steps of the device icon presentation method according to any one of claims 1 to 7.
10. A storage medium having stored thereon a device icon presentation program which, when executed by a processor, implements the steps of the device icon presentation method according to any one of claims 1 to 7.
CN202211271173.8A 2022-10-17 2022-10-17 Method, device, equipment and storage medium for displaying equipment icons Pending CN115454295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211271173.8A CN115454295A (en) 2022-10-17 2022-10-17 Method, device, equipment and storage medium for displaying equipment icons

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211271173.8A CN115454295A (en) 2022-10-17 2022-10-17 Method, device, equipment and storage medium for displaying equipment icons

Publications (1)

Publication Number Publication Date
CN115454295A true CN115454295A (en) 2022-12-09

Family

ID=84309927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211271173.8A Pending CN115454295A (en) 2022-10-17 2022-10-17 Method, device, equipment and storage medium for displaying equipment icons

Country Status (1)

Country Link
CN (1) CN115454295A (en)

Similar Documents

Publication Publication Date Title
US11079908B2 (en) Method and apparatus for adding icon to interface of android system, and mobile terminal
US10983668B2 (en) Method and apparatus for component display processing
JP5725533B2 (en) Information processing apparatus and input method
KR20180103881A (en) Test method, system, apparatus and readable storage medium
EP1835385A2 (en) Method and device for fast access to application in mobile communication terminal
CN108694012B (en) Method and system for displaying objects on screen
EP2116924A1 (en) Information processing device and program
JPH1127368A (en) Mobile station with contact sensing input having automatic symbol magnification function
JP5522755B2 (en) INPUT DISPLAY CONTROL DEVICE, THIN CLIENT SYSTEM, INPUT DISPLAY CONTROL METHOD, AND PROGRAM
CN107066176A (en) A kind of control method and device of the singlehanded pattern of terminal
WO2008001750A1 (en) Method, computer and program for making out seat layout
CN111142756A (en) Page display method, equipment and computer readable storage medium
US11455071B2 (en) Layout method, device and equipment for window control bars
CN107728898B (en) Information processing method and mobile terminal
CN111104035B (en) Display interface control method, device, equipment and computer readable storage medium
CN115454295A (en) Method, device, equipment and storage medium for displaying equipment icons
CN105930090A (en) Method and system for transmitting coordinate data of touch screens on basis of mobile terminals
CN104714739A (en) Information processing method and electronic equipment
CN109739590B (en) Desktop wallpaper replacing method, device and equipment
US20180232116A1 (en) User interface method and system for a mobile device
CN105808082B (en) Multi-touch processing system and method
CN113162840B (en) Display method, display device, electronic apparatus, and readable storage medium
JP2013073366A (en) Information processing device
CN104657042A (en) Trigger realizing method for application program icon and mobile terminal for trigger realizing method
AU2016202825B2 (en) Component display processing method and user 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