Temporary display object management method, device, and equipment, and storage medium

By classifying and managing temporary display objects, the problem of chaotic management in existing technologies is solved, resulting in more efficient logical standardization and reduced maintenance costs.

CN116243828BActive Publication Date: 2026-04-17深圳市万翼数字技术有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
深圳市万翼数字技术有限公司
Filing Date
2023-02-02
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

In existing technologies, the management logic for temporary display objects is scattered across various modules, leading to chaotic management and high maintenance costs.

Method used

A temporary display object management method is provided. By obtaining the category of the currently operated display object, the corresponding management process is determined, and temporary display objects are generated and managed according to the process, including different management strategies for selecting, snapping, and commanding temporary display objects.

Benefits of technology

The management logic for temporary display objects has been standardized, reducing redundancy, lowering maintenance costs, and improving the efficiency of the business layer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116243828B_ABST
    Figure CN116243828B_ABST
Patent Text Reader

Abstract

This application relates to a method, apparatus, device, and storage medium for managing temporary display objects. The method includes obtaining the temporary display object category of the currently operated display object; determining the management process corresponding to the temporary display object category; and generating and managing temporary display objects corresponding to the display object according to the management process. The solution in this embodiment abstracts the display logic of three types of temporary objects in the design software and manages them by proposing different management methods for different temporary display objects. The advantage is that the business layer only needs to focus on the business logic corresponding to the temporary display object, without needing to pay special attention to the creation and destruction of the temporary object, while also standardizing the command invocation logic of the temporary display object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more particularly to a method, apparatus, device, and storage medium for managing temporary display objects. Background Technology

[0002] In design software, when one or more entities are selected, it often triggers the display of operation options or auxiliary information. These operation options or auxiliary information are called temporary display objects. There are three common types of temporary display objects: selection temporary display objects, command temporary display objects, and snap-in temporary display objects. Selection temporary display objects are mainly triggered by changes in the selection set, displaying different temporary display objects depending on the selected entity, such as displaying drag handles; or, for example, displaying components drawn by the user in the drawing software. Command temporary display objects typically refer to commands triggered by buttons on the menu bar, which require temporary display objects to assist the user in operation. Snap-in temporary display objects refer to temporary display objects used when commands such as drawing lines are triggered, requiring the snap-in of the endpoints of other lines to indicate the current state.

[0003] Because the display logic of temporary objects is complex, a management solution is needed to manage these objects. Current technology lacks a good solution for managing these temporary objects; the logic is often scattered across various modules, leading to chaotic management and high maintenance costs. Summary of the Invention

[0004] This application provides a temporary display object management method, apparatus, device, and storage medium to solve the problems of chaotic management and high maintenance costs in existing solutions.

[0005] Firstly, a method for managing temporary display objects is provided, including:

[0006] Get the temporary display object category of the currently manipulated display object;

[0007] Determine the management process corresponding to the category of the temporary display object;

[0008] The temporary display object corresponding to the display object is generated and managed according to the management process described above.

[0009] Optionally, obtain the temporary display object category of the currently manipulated display object, including:

[0010] If the adsorption and capture function of the display object is enabled, the temporary display object category of the display object is determined to be an adsorption and capture temporary display object.

[0011] If the displayed object is a preset displayed object and the snap-in function is not enabled, the temporary displayed object category of the displayed object is determined to be a selected temporary displayed object;

[0012] If the display object is operated based on a command, the temporary display object category of the temporary display object is determined to be a command temporary display object.

[0013] Optionally, the temporary display object category of the display object is selected as a temporary display object;

[0014] Generating and managing temporary display objects corresponding to the display objects according to the management process includes:

[0015] The selection manager component sends a selection change event to the temporary display object manager component. The selection change event includes the identifier of the temporary display object and is used to instruct the generation of a temporary display object corresponding to the display object.

[0016] When the temporary display object manager component responds to the selection change event and determines that there is a previously generated historical selection temporary display object, it performs hiding and deactivation processing on the historical selection temporary display object through the temporary display object manager component and the basic component of the temporary display object;

[0017] After the hiding and deactivation processes, a first temporary display object corresponding to the display object is created through the temporary display object manager component and the factory component for selecting temporary display objects;

[0018] The first temporary display object is activated and displayed using the temporary display object manager component and the basic component of the temporary display object.

[0019] Optionally, the historical selection temporary display object is hidden and deactivated through the temporary display object manager component and the basic component of the temporary display object, including:

[0020] The temporary display object manager component sends a hide request to the underlying component of the temporary display object, and the hide request is used to hide the history selection temporary display object.

[0021] In response to the hiding request, the historical selection temporary display object is hidden through the basic component of the temporary display object, and the result of the hiding process is returned to the temporary display object manager component;

[0022] When the result of the hiding process indicates that the hiding was successful, the temporary display object manager component sends a deactivation request to the base component of the temporary display object. The deactivation request is used to deactivate the history selection temporary display object.

[0023] In response to the deactivation request, the historical selection temporary display object is deactivated through the basic components of the temporary display object, and the result of the deactivation process is returned to the temporary display object manager component.

[0024] Optionally, creating a first temporary display object corresponding to the display object through the temporary display object manager component and the factory component for selecting temporary display objects includes:

[0025] The temporary display object manager component sends a creation request to the factory component that selects the temporary display object, the creation request including the identifier of the display object;

[0026] In response to the creation request, a first temporary display object corresponding to the identifier of the display object is created by the factory component that selects the temporary display object.

[0027] Optionally, the temporary display object category of the display object is an adsorption-capture temporary display object;

[0028] Generating and managing temporary display objects corresponding to the display objects according to the management process includes:

[0029] A second temporary display object corresponding to the display object is created using the snap-capture manager component, the temporary display object manager component, and the factory component for snapping and adsorbing temporary display objects.

[0030] The second temporary display object is activated and displayed through the temporary display object manager component and the basic component of the temporary display object.

[0031] Optionally, the temporary display object category of the display object is a command temporary display object;

[0032] Generating and managing temporary display objects corresponding to the display objects according to the management process includes:

[0033] According to the command, a third temporary display object corresponding to the display object is generated and displayed.

[0034] Secondly, a temporary display object management device is provided, comprising:

[0035] The acquisition module is used to obtain the temporary display object category of the currently manipulated display object;

[0036] The determination module is used to determine the management process corresponding to the category of the temporary display object;

[0037] The processing module is used to generate and manage temporary display objects corresponding to the display objects according to the management process.

[0038] Thirdly, an electronic device is provided, comprising: a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;

[0039] The memory is used to store computer programs;

[0040] The processor is used to execute the program stored in the memory to implement the temporary display object management method described in the first aspect.

[0041] Fourthly, a computer-readable storage medium is provided, storing a computer program that, when executed by a processor, implements the temporary display object management method described in the first aspect.

[0042] Compared with the prior art, the technical solution provided in this application has the following advantages: The method provided in this application obtains the temporary display object category of the currently operated display object; determines the management process corresponding to the temporary display object category; and generates and manages the temporary display object corresponding to the display object according to the management process. The solution in this embodiment abstracts the display logic of three types of temporary objects in the design software and manages them by proposing different management methods for different temporary display objects. The advantage is that the business layer only needs to care about the business logic corresponding to the temporary display object, without needing to pay special attention to the creation and destruction of the temporary object, while also standardizing the command invocation logic of the temporary display object. Attached Figure Description

[0043] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0044] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0045] Figure 1 This is a schematic diagram of the structure of each module of the temporary display object management method in the embodiments of this application;

[0046] Figure 2 This is a flowchart illustrating the temporary display object management method in an embodiment of this application;

[0047] Figure 3 This is a flowchart illustrating the specific management process for selecting a temporary display object in an embodiment of this application;

[0048] Figure 4 This is a flowchart illustrating the specific management process for selecting a temporary display object in an embodiment of this application;

[0049] Figure 5 This is a schematic diagram of the temporary display object management device in the embodiments of this application;

[0050] Figure 6 This is a schematic diagram of the structure of the electronic device in the embodiments of this application. Detailed Implementation

[0051] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0052] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0053] This application provides a method for managing temporary display objects, which can be applied to electronic devices. The electronic devices described in this embodiment may include terminals or servers. Terminals may be mobile terminals such as mobile phones, tablets, laptops, PDAs (Personal Digital Assistants), PMPs (Portable Media Players), navigation devices, etc., as well as fixed terminals such as digital TVs, desktop computers, etc.

[0054] Please see Figure 1 , Figure 1This is a schematic diagram of the structure of each module in an electronic device that implements the temporary display object management method in this embodiment.

[0055] TmpDispManager (Temporary Display Object Manager Component) mainly maintains three types of temporary objects (namely, command, selection, and snap-to-attach temporary display objects), as well as the creation factory for selection and snap-to-attach temporary display objects, and is also responsible for listening to and responding to selection events.

[0056] onSelectionChangeEvent is the event handler for selection set changes.

[0057] `setSelectionTmpDispFactory` sets the factory for creating temporary display objects. Different types of views typically have different factories, and each view has its own corresponding temporary display object manager.

[0058] `setSnapTmpDispFactory` sets the factory for creating snapped temporary display objects. `addCmdTmpDisp` adds a temporary display object related to a command. The temporary display object manager provides weak management of command-related temporary display objects; the main state maintenance is done by the command itself.

[0059] `removeCmdTmpDisp` removes a temporary display object associated with a specific command.

[0060] `removeCmdTmpDisps` removes all temporary display objects associated with a given command.

[0061] getCmdTmpDisps retrieves the temporary display object for the command.

[0062] createSnapTmpDisp creates a snap-tap temporary display object.

[0063] `removeSnapTmpDisp` removes the snap-capture temporary display object.

[0064] getSelectionTmpDisps retrieves the temporary display object for the selected element.

[0065] TmpDispSelectFactory is a factory component for selecting temporary display objects, used to create selection-related temporary display objects.

[0066] TmpDispSnapFactory is a factory component for capturing snapped temporary display objects, used to create snapped temporary display objects.

[0067] TmpDisp is the basic component for temporarily displaying objects.

[0068] `activate` is called when a temporary display object is activated.

[0069] deactivate is called when a temporary display object is deactivated.

[0070] hide: Hides temporarily displayed objects.

[0071] show displays a temporary object.

[0072] `draw` is used to draw a temporary display object.

[0073] executeCmd executes the command object.

[0074] `postCmdMessage` sends a message to the command.

[0075] addChildTmpDisp adds a child temporary display object.

[0076] `removeChildTmpDisp` removes the child temporary display object.

[0077] getChildTmpDisps retrieves all child temporary display objects.

[0078] MessageCmd is a message command used to perform operations that modify data layer entity objects.

[0079] like Figure 2 As shown, the method may include the following steps:

[0080] Step 201: Obtain the temporary display object category of the currently operated display object.

[0081] In this embodiment, the temporary display object categories include three types: snap-to-capture temporary display objects, selected temporary display objects, and commanded temporary display objects. Detailed descriptions of these three types of temporary display objects can be found above and will not be elaborated upon here.

[0082] In one specific embodiment, the following implementation for obtaining the temporary display object category of the display object is provided:

[0083] If the snap-in function of the displayed object is enabled, the temporary displayed object category is determined to be a snap-in temporary displayed object; if the displayed object is a preset displayed object and the snap-in function is not enabled, the temporary displayed object category is determined to be a selected temporary displayed object; if the displayed object is operated based on a command, the temporary displayed object category is determined to be a command temporary displayed object.

[0084] The preset display object in this embodiment can be set manually. For example, the preset display object can be set to a rectangle or line segment that the drawing person executes in the drawing software. This embodiment does not make specific limitations on this.

[0085] The commands in this embodiment can be commands from the menu bar of drawing software, and this embodiment does not specifically limit them.

[0086] Step 202: Determine the management process corresponding to the temporary display object category.

[0087] Step 203: Generate and manage temporary display objects corresponding to the display objects according to the management process.

[0088] This embodiment classifies and manages display objects of different temporary display object categories based on the temporary display object category, thereby increasing reuse and reducing redundancy.

[0089] In one specific embodiment, if the temporary display object category of the display object is selected as a temporary display object, then generating and managing the temporary display object corresponding to the display object according to the corresponding management process can specifically be as follows:

[0090] The selection manager component sends a selection change event to the temporary display object manager component (TmpDisManager). This selection change event indicates a change in the selection object's identifier. When the temporary display object manager component responds to the selection change event and determines that there is a previously generated historical selection temporary display object, it hides and deactivates the historical selection temporary display object through the temporary display object manager component and the base component of the temporary display object (TmpDisp). After hiding and deactivating, the temporary display object manager component and the factory component of the selected temporary display object (TmpDisSelectFactory) create a first temporary display object corresponding to the display object. Finally, the temporary display object manager component and the base component of the temporary display object activate and show the first temporary display object.

[0091] The specific implementation process for hiding and deactivating the temporarily displayed historical selection object can be as follows:

[0092] The temporary display object manager component sends a hide request to the base component of the temporary display object. The hide request is used to hide the historical selection temporary display object. In response to the hide request, the base component of the temporary display object hides the historical selection temporary display object and returns the result of the hiding process to the temporary display object manager component. When the result of the hiding process indicates that the hiding was successful, the temporary display object manager component sends a deactivation request to the base component of the temporary display object. The deactivation request is used to deactivate the historical selection temporary display object. In response to the deactivation request, the base component of the temporary display object deactivates the historical selection temporary display object and returns the result of the deactivation process to the temporary display object manager component.

[0093] The specific implementation process for creating the first temporary display object corresponding to the display object can be as follows:

[0094] The temporary display object manager component sends a creation request to the factory component that selects the temporary display object. The creation request includes the identifier of the display object. In response to the creation request, the factory component that selects the temporary display object creates a first temporary display object corresponding to the identifier of the display object.

[0095] Please see 3. Figure 3 This embodiment provides a specific management process for selecting temporary display objects.

[0096] In one specific embodiment, if the temporary display object category of the display object is a snap-capture temporary display object, the management strategy for snap-capture temporary display objects differs from that for selected temporary display objects. The main difference lies in the fact that snap-capture temporary display objects are created once and persist, with one snap-capture strategy per temporary display object, while selected temporary display objects are continuously destroyed and created. Therefore, the specific process for generating and managing the temporary display objects corresponding to the display object according to the corresponding management flow can be as follows:

[0097] A second temporary display object corresponding to the display object is created using the snap snap manager component, the temporary display object manager component, and the factory component (TmpDisSnapFactory) for snapping temporary display objects; the second temporary display object is activated and displayed using the temporary display object manager component and the base component of the temporary display object.

[0098] Please see 4. Figure 4 This embodiment provides a specific management process for selecting temporary display objects.

[0099] In one specific embodiment, if the temporary display object category of the display object is a command temporary display object, then generating and managing the temporary display object corresponding to the display object according to the corresponding management process can specifically be as follows: according to the command, generate and display the third temporary display object corresponding to the display object.

[0100] In this embodiment, a weak management strategy is adopted for the temporary display object of the command, because the creation of the temporary display object of the command is mainly the responsibility of the command itself, but the command does not care about the destruction of the object, and the destruction is mainly the responsibility of the temporary object manager.

[0101] The technical solution provided in this embodiment obtains the temporary display object category of the currently operated display object; determines the management process corresponding to the temporary display object category; and generates and manages the temporary display object corresponding to the display object according to the management process. This embodiment abstracts the display logic of three types of temporary objects in the design software and manages them by proposing different management methods for different temporary display objects. The advantage is that the business layer only needs to focus on the business logic corresponding to the temporary display object, without needing to pay special attention to the creation and destruction of the temporary object, while also standardizing the command invocation logic of the temporary display object.

[0102] Based on the same concept, this application provides a temporary display object management device. The specific implementation of this device can be found in the description of the method embodiments section; repeated details will not be repeated here. Figure 5 As shown, the device mainly includes:

[0103] The acquisition module 501 is used to acquire the temporary display object category of the currently manipulated display object;

[0104] Module 502 is used to determine the management process corresponding to the category of temporary display objects;

[0105] Processing module 503 is used to generate and manage temporary display objects corresponding to the display objects according to the management process.

[0106] Module 501 is used for:

[0107] If the snap-in function of the display object is enabled, the temporary display object category of the display object is determined to be a snap-in temporary display object;

[0108] If the displayed object is a preset displayed object and the snap-in function is not enabled, the temporary displayed object category is selected as the temporary displayed object.

[0109] If the displayed object is operated based on a command, the temporary displayed object category is determined to be a command temporary displayed object.

[0110] Optionally, the temporary display object category for the displayed object is selected as a temporary display object;

[0111] Processing module 503 is used for:

[0112] The selection manager component sends a selection change event to the temporary display object manager component. The selection change event includes the identifier of the temporary display object and is used to instruct the generation of a temporary display object corresponding to the display object.

[0113] When the Temporary Display Object Manager component responds to a selection change event and determines that there is a previously generated historical selection temporary display object, it hides and deactivates the historical selection temporary display object through the Temporary Display Object Manager component and the base component of the temporary display object.

[0114] After hiding and deactivating, a first temporary display object corresponding to the display object is created by using the temporary display object manager component and the factory component for selecting temporary display objects.

[0115] The first temporary display object is activated and displayed using the temporary display object manager component and the basic component of the temporary display object.

[0116] Optionally, the processing module 503 is used for:

[0117] The temporary display object manager component sends a hide request to the underlying component of the temporary display object. The hide request is used to hide the temporary display object of the history selection.

[0118] In response to a hide request, the historical selection temporary display object is hidden through the underlying component of the temporary display object, and the result of the hiding process is returned to the temporary display object manager component;

[0119] When the hiding process indicates that the hiding was successful, a deactivation request is sent to the base component of the temporary display object through the temporary display object manager component. The deactivation request is used to deactivate the temporary display object selected in the history.

[0120] In response to the deactivation request, the historical selection temporary display object is deactivated through the basic component of the temporary display object, and the result of the deactivation is returned to the temporary display object manager component.

[0121] Optionally, the processing module 503 is used for:

[0122] The temporary display object manager component sends a creation request to the factory component that selects the temporary display object. The creation request includes the identifier of the display object.

[0123] In response to the creation request, a first temporary display object corresponding to the identifier of the display object is created by selecting the factory component of the temporary display object.

[0124] Optionally, the temporary display object category of the displayed object is snap-to-capture temporary display object;

[0125] Processing module 503 is used for:

[0126] Create a second temporary display object corresponding to the display object by using the snap snap manager component, the temporary display object manager component, and the factory component for snapping temporary display objects;

[0127] Activate and display the second temporary display object by using the temporary display object manager component and the base component of the temporary display object.

[0128] Optionally, the temporary display object category of the displayed object is a command temporary display object;

[0129] Processing module 503 is used for:

[0130] As instructed, generate and display a third temporary display object corresponding to the display object.

[0131] Based on the same concept, this application also provides an electronic device, such as... Figure 6 As shown, the electronic device mainly includes a processor 601, a memory 602, and a communication bus 603. The processor 601 and the memory 602 communicate with each other via the communication bus 603. The memory 602 stores programs that can be executed by the processor 601. The processor 601 executes the programs stored in the memory 602 to achieve the following steps:

[0132] Get the temporary display object category of the currently manipulated display object;

[0133] Determine the management process corresponding to the category of temporary display objects;

[0134] The temporary display objects corresponding to the display objects are generated and managed according to the management process.

[0135] The communication bus 603 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus 603 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0136] The memory 602 may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor 601.

[0137] The processor 601 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., or a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0138] In another embodiment of this application, a computer-readable storage medium is also provided, which stores a computer program that, when run on a computer, causes the computer to execute the temporary display object management method described in the above embodiments.

[0139] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. This computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another, for example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape, etc.), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.

[0140] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0141] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for managing temporary display objects, characterized in that, include: Get the temporary display object category of the currently manipulated display object; Determine the management process corresponding to the category of the temporary display object; Generating and managing temporary display objects corresponding to the display objects according to the management process described above; Retrieve the temporary display object category of the currently manipulated display object, including: If the adsorption and capture function of the display object is enabled, the temporary display object category of the display object is determined to be an adsorption and capture temporary display object. If the displayed object is a preset displayed object and the snap-in function is not enabled, the temporary displayed object category of the displayed object is determined to be a selected temporary displayed object; If the display object is operated based on a command, the temporary display object category of the temporary display object is determined to be a command temporary display object; The temporary display object category of the display object is to select a temporary display object; Generating and managing temporary display objects corresponding to the display objects according to the management process includes: The selection manager component sends a selection change event to the temporary display object manager component. The selection change event includes the identifier of the temporary display object and is used to instruct the generation of a temporary display object corresponding to the display object. When the temporary display object manager component responds to the selection change event and determines that there is a previously generated historical selection temporary display object, it performs hiding and deactivation processing on the historical selection temporary display object through the temporary display object manager component and the basic component of the temporary display object; After the hiding and deactivation processes, a first temporary display object corresponding to the display object is created through the temporary display object manager component and the factory component for selecting temporary display objects; The first temporary display object is activated and displayed using the temporary display object manager component and the basic component of the temporary display object; The temporary display object manager component and the basic components of the temporary display object are used to hide and deactivate the historical selection temporary display object, including: The temporary display object manager component sends a hide request to the underlying component of the temporary display object, and the hide request is used to hide the history selection temporary display object. In response to the hiding request, the historical selection temporary display object is hidden through the basic component of the temporary display object, and the result of the hiding process is returned to the temporary display object manager component; When the result of the hiding process indicates that the hiding was successful, the temporary display object manager component sends a deactivation request to the base component of the temporary display object. The deactivation request is used to deactivate the history selection temporary display object. In response to the deactivation request, the historical selection temporary display object is deactivated through the basic component of the temporary display object, and the result of the deactivation process is returned to the temporary display object manager component; The process of creating a first temporary display object corresponding to the display object through the temporary display object manager component and the factory component for selecting temporary display objects includes: The temporary display object manager component sends a creation request to the factory component that selects the temporary display object, the creation request including the identifier of the display object; In response to the creation request, a first temporary display object corresponding to the identifier of the display object is created by the factory component that selects the temporary display object.

2. The method according to claim 1, characterized in that, The temporary display object category of the display object is adsorption-capture temporary display object; Generating and managing temporary display objects corresponding to the display objects according to the management process includes: A second temporary display object corresponding to the display object is created using the snap-capture manager component, the temporary display object manager component, and the factory component for snapping and adsorbing temporary display objects. The second temporary display object is activated and displayed through the temporary display object manager component and the basic component of the temporary display object.

3. The method according to claim 1, characterized in that, The temporary display object category of the display object is command temporary display object; Generating and managing temporary display objects corresponding to the display objects according to the management process includes: According to the command, a third temporary display object corresponding to the display object is generated and displayed.

4. A temporary display object management device, characterized in that, include: The acquisition module is used to obtain the temporary display object category of the currently manipulated display object; The determination module is used to determine the management process corresponding to the category of the temporary display object; The processing module is used to generate and manage temporary display objects corresponding to the display objects according to the management process. Retrieve the temporary display object category of the currently manipulated display object, including: If the adsorption and capture function of the display object is enabled, the temporary display object category of the display object is determined to be an adsorption and capture temporary display object. If the displayed object is a preset displayed object and the snap-in function is not enabled, the temporary displayed object category of the displayed object is determined to be a selected temporary displayed object; If the display object is operated based on a command, the temporary display object category of the temporary display object is determined to be a command temporary display object; The temporary display object category of the display object is to select a temporary display object; Generating and managing temporary display objects corresponding to the display objects according to the management process includes: The selection manager component sends a selection change event to the temporary display object manager component. The selection change event includes the identifier of the temporary display object and is used to instruct the generation of a temporary display object corresponding to the display object. When the temporary display object manager component responds to the selection change event and determines that there is a previously generated historical selection temporary display object, it performs hiding and deactivation processing on the historical selection temporary display object through the temporary display object manager component and the basic component of the temporary display object; After the hiding and deactivation processes, a first temporary display object corresponding to the display object is created through the temporary display object manager component and the factory component for selecting temporary display objects; The first temporary display object is activated and displayed using the temporary display object manager component and the basic component of the temporary display object; The temporary display object manager component and the basic components of the temporary display object are used to hide and deactivate the historical selection temporary display object, including: The temporary display object manager component sends a hide request to the underlying component of the temporary display object, and the hide request is used to hide the history selection temporary display object. In response to the hiding request, the historical selection temporary display object is hidden through the basic component of the temporary display object, and the result of the hiding process is returned to the temporary display object manager component; When the result of the hiding process indicates that the hiding was successful, the temporary display object manager component sends a deactivation request to the base component of the temporary display object. The deactivation request is used to deactivate the history selection temporary display object. In response to the deactivation request, the historical selection temporary display object is deactivated through the basic component of the temporary display object, and the result of the deactivation process is returned to the temporary display object manager component; The process of creating a first temporary display object corresponding to the display object through the temporary display object manager component and the factory component for selecting temporary display objects includes: The temporary display object manager component sends a creation request to the factory component that selects the temporary display object, the creation request including the identifier of the display object; In response to the creation request, a first temporary display object corresponding to the identifier of the display object is created by the factory component that selects the temporary display object.

5. An electronic device, characterized in that, include: The processor, memory, and communication bus are used to communicate with each other. The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the temporary display object management method according to any one of claims 1-3.

6. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the temporary display object management method according to any one of claims 1-3.

Citation Information

Patent Citations

  • Temporary formatting and charting of selected data

    CN102870106A