Overlapped data type display method and device, equipment and storage medium
By displaying bubbles in the data type display area and displaying the collapsed data type, the problem of unintuitive data type display in the prior art is solved, and a more intuitive and convenient data type display is achieved.
Patent Information
- Application Number
- CN202311591136.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2025-05-27
AI Technical Summary
The display method of the selected data type in the prior art is not intuitive enough, especially after the data type exceeds a certain display length, the selected data type will be folded and displayed, making it difficult for users to view it intuitively.
By obtaining the pointer coordinates and the display area of the folded data type, after entering the display area in response to the pointer coordinates, the folded data type is obtained, and the bubble size and display position are determined according to the number of data types, and the folded data type bubble is displayed to realize the intuitive display of the data type.
The collapsed data type is output through bubbles, which avoids the user's need to click to expand the collapsed data type, making the display of the data type more intuitive and convenient.
Smart Images

Figure CN120045102A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing and big data technology, and particularly to a method, device, equipment and storage medium for displaying folded data types. Background Art
[0002] With the continuous development of information technology, the data to be stored has gradually increased. In order to speed up the data screening speed, users usually need to select data types in a selector component, and then use the selected data types to screen the data.
[0003] Currently, in the prior art, if a user selects multiple data types, after exceeding a certain display length, the selected data types will be folded and displayed.
[0004] However, the inventors found that the prior art has at least the following technical problems: the display method of the currently selected data types is not intuitive enough. Summary of the Invention
[0005] This application provides a method, device, equipment and storage medium for displaying folded data types to solve the problem that the display method of the selected data types is not intuitive enough.
[0006] In a first aspect, this application provides a method for displaying folded data types, including: obtaining pointer coordinates and a display area of the folded data types, where the folded data types include at least one selected data type; in response to the pointer coordinates entering the display area, obtaining the folded data types; determining the bubble size according to the number of data types in the folded data types; determining the bubble display position according to the display area; and displaying the folded data type bubbles according to the bubble size, the bubble display position and the folded data types.
[0007] In a possible implementation manner, the bubble size includes the length and width of the bubble, and the bubble display position includes the abscissa value and the ordinate value; correspondingly, displaying the folded data type bubbles according to the bubble size, the bubble display position and the folded data types includes: inputting the length of the bubble and the abscissa value into a preset first position calculation formula to obtain the relative abscissa of the bubble; inputting the width of the bubble and the ordinate value into a preset second position calculation formula to obtain the ordinate of the bubble; writing the abscissa value, the relative abscissa of the bubble, the ordinate of the bubble and the folded data types into the attributes of the folded data type bubbles, and displaying the folded data type bubbles.
[0008] In a possible implementation manner, the display area includes diagonal point coordinates; correspondingly, determining the bubble display position according to the display area includes: determining the maximum value of the abscissa in the diagonal point coordinates as the abscissa of the bubble display position; calculating the average value of the ordinates in the diagonal point coordinates; and combining the abscissa of the bubble display position and the average value to obtain the bubble display position.
[0009] In a possible implementation, after obtaining the pointer coordinates and the display area of the folded data type, it further includes: obtaining the target time when the pointer coordinates enter the display area; obtaining the current time in real time; inputting the current time and the target time into the transparency calculation formula to obtain the real-time transparency of the bubble; and controlling the transparency of the folded data type bubble according to the real-time transparency of the bubble.
[0010] In a possible implementation, the transparency calculation formula is as follows:
[0011] T = a + MAP[log b |cos(c • T r - c · T 1 )|]
[0012] In the formula, T represents the real-time transparency of the bubble, a, b, and c represent constants, log represents the logarithmic function, MAP represents a preset mapping function, cos is the cosine function, T r represents the current time, and T 1 represents the target time.
[0013] In a possible implementation, after displaying the folded data type bubble, it further includes: in response to receiving a deselection instruction corresponding to the target data type in the folded data type bubble, removing the target data type from the selected data types, where the target data type is any one of the selected data types.
[0014] In a possible implementation, before obtaining the pointer coordinates and the display area of the folded data type, it further includes: receiving a selection instruction corresponding to the target data type, where the target data type is any data type; and if all data types other than the target data type are selected data types, then displaying a preset label in the display area.
[0015] In a second aspect, the present application provides a folded data type display device, including: an area acquisition module for acquiring pointer coordinates and the display area of the folded data type, where the folded data type includes at least one selected data type; a type acquisition module for acquiring the folded data type in response to the pointer coordinates entering the display area; a size determination module for determining the bubble size according to the number of data types in the folded data type; a position determination module for determining the bubble display position according to the display area; and a bubble display module for displaying the folded data type bubble according to the bubble size, the bubble display position, and the folded data type.
[0016] In a third aspect, the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor executes the folded data type display method described in the first aspect.
[0017] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the folded data type display method described in the first aspect.
[0018] The folded data type display method, device, equipment and storage medium provided by the present application obtain the pointer coordinates and the display area of the folded data type. After the pointer coordinates enter the display area, the folded data type is obtained. The bubble size is obtained from the number of data types in the folded data type, and the bubble display position is determined from the display area. The bubble size, the bubble display position and the folded data type are used as the attributes of the bubble, and the folded data type bubble is displayed, so as to realize the output of the folded data type in the form of a bubble, avoiding the need to click on the folded data type in the display area and expand the folded data type when viewing the folded data type, making the display of the folded data type more intuitive. Description of the Drawings
[0019] The drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0020] Figure 1 It is a schematic diagram of the application scenario of the folded data type display method provided by the embodiment of the present application;
[0021] Figure 2 It is a schematic flow chart of the folded data type display method provided by the embodiment of the present application;
[0022] Figure 3 It is a schematic diagram of the folded data type bubble provided by the embodiment of the present application;
[0023] Figure 4 It is a schematic structural diagram of the folded data type display device provided by the embodiment of the present application;
[0024] Figure 5 It is a schematic structural diagram of the electronic device provided by the embodiment of the present application.
[0025] Through the above-mentioned drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and the text description are not intended to limit the scope of the concept of the present application in any way, but to explain the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed implementation manners
[0026] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0027] With the development of information technology, the current data storage quantity is increasing continuously. In order to quickly find data when needed, usually the user selects the data type required, and filters using the data type to obtain the required data.
[0028] Currently, after the data type selected by the user exceeds the display range, it will be folded, which makes it impossible for the user to intuitively view the selected data type.
[0029] In view of the above technical problems, the inventor proposes the following technical concept: after the mouse pointer moves to the display area of the folded data type, the folded data type is displayed in a bubble.
[0030] The present application is applied to the scenario of displaying folded data types. Figure 1 It is a schematic diagram of the application scenario of the method for displaying folded data types provided by an embodiment of the present application. As Figure 1 , in this scenario, it includes: a terminal device 101 and a server 102.
[0031] In the specific implementation process, the server 102 can be implemented by using a server or a cluster composed of multiple servers with more powerful processing capabilities and higher security. If possible, a computer with strong computing power, a laptop, etc. can also be used for replacement.
[0032] The terminal device 101 can include a computer, a server, a tablet, a mobile phone, a personal digital assistant (PDA), a laptop, etc., and they can perform data input.
[0033] The connection manner between the server 102 and the terminal device 101 can be a wired connection or a wireless connection.
[0034] The server 102 is used to store data, store the data types selected by the user, etc.
[0035] The terminal device 101 is used to receive the data input by the user, receive the selection information of the data type by the user, calculate the size of the bubble, and determine the bubble display position.
[0036] It is understandable that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the method for displaying folded data types. In other feasible embodiments of the present application, the above architecture may include more or fewer components than those illustrated, or combine certain components, or split certain components, or have different component arrangements, which can be specifically determined according to the actual application scenario and will not be limited herein. Figure 1 The illustrated components may be implemented by hardware, software, or a combination of software and hardware.
[0037] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail below with specific embodiments. These several specific embodiments below may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
[0038] Figure 2 It is a schematic flowchart of the method for displaying folded data types provided by the embodiments of the present application. The execution subject of the embodiments of the present application may be Figure 1 the terminal device 101 in, or a computer and / or a mobile phone, etc., and this embodiment does not make special limitations in this regard. As Figure 2 shown, the method includes:
[0039] S201: Obtain the pointer coordinates and the display area of the folded data type, where the folded data type includes at least one selected data type.
[0040] In this step, the pointer coordinates and the display area of the folded data type may be obtained by using a preset function or command. The selected data type may be the data type selected by the user before executing this step.
[0041] Among them, the pointer coordinates may include the coordinates of the mouse pointer. The selected data type may include the data type selected by the user through clicking, inputting, etc. The number of the folded data types can be displayed in the display area of the folded data type. The folded data type may include the selected data types that are folded due to exceeding the preset display range.
[0042] S202: In response to the pointer coordinates entering the display area, obtain the folded data type.
[0043] In this step, the display area can be represented by diagonal coordinates. This step may include that the horizontal and vertical coordinates of the pointer coordinates are between the horizontal and vertical coordinates of the diagonal coordinates of the display area, and obtaining the folded data type. Obtaining the folded data type may include reading all selected data types and non-folded data types, removing the non-folded data types from all selected data types to obtain the folded data type; it may also include sending a folded data type acquisition request to the server 102 and receiving the folded data type returned by the server according to the folded data type acquisition request; it may also include directly reading the folded data type using a preset command or interface.
[0044] For example, if the current pointer coordinate is "(20, 60)" and the display area corresponds to two coordinates "(10, 20)" and "(40, 70)", then the horizontal coordinate of the pointer coordinate is between the two horizontal coordinates of the display area, and the vertical coordinate of the pointer coordinate is between the two vertical coordinates of the display area. Another example, if the current pointer coordinate is "(40, 70)" and the display area corresponds to two coordinates "(15, 30)" and "(70, 120)", then the horizontal coordinate of the pointer coordinate is between the two horizontal coordinates of the display area, and the vertical coordinate of the pointer coordinate is between the two vertical coordinates of the display area.
[0045] S203: Determine the bubble size according to the number of data types in the folded data type.
[0046] In this step, the number of data types can be obtained by counting the folded data type. The bubble size can be obtained by looking up the preset correspondence between the number and the size.
[0047] Among them, the correspondence between the number and the size can be stored in the format of a table, a function or a key-value pair, and can be pre-calibrated by the staff according to experimental data or empirical parameters.
[0048] S204: Determine the bubble display position according to the display area.
[0049] In this step, it may include inputting the diagonal coordinates of the display area into a preset position calculation formula to obtain the bubble display position.
[0050] Among them, the position calculation formula can be set by the staff.
[0051] S205: Display the folded data type bubble according to the bubble size, the bubble display position and the folded data type.
[0052] In this step, it may include writing the bubble size, the bubble display position and the folded data type into the attributes of the bubble component, and changing the display attribute of the bubble component to "yes" to obtain the folded data type bubble. It may also include displaying the folded data type in a bubble with the size and position information being the bubble size and the bubble display position.
[0053] As can be seen from the description of the above embodiments, in the embodiments of the present application, by obtaining the pointer coordinates and the display area of the folded data type, after the pointer coordinates enter the display area, the folded data type is obtained. The bubble size is obtained from the number of data types in the folded data type. The bubble display position is determined from the display area. The bubble size, the bubble display position, and the folded data type are used as the attributes of the bubble, and the folded data type bubble is displayed, realizing the output of the folded data type in the form of a bubble, avoiding the need to click on the folded data type in the display area and expand the folded data type when viewing the folded data type, making the display of the folded data type more intuitive.
[0054] In a possible implementation, the bubble size includes the length and width of the bubble, and the bubble display position includes the abscissa value and the ordinate value.
[0055] Correspondingly, in the above step S205, displaying the folded data type bubble according to the bubble size, the bubble display position, and the folded data type includes:
[0056] S2051: Input the length of the bubble and the abscissa value into a preset first position calculation formula to obtain the relative abscissa of the bubble.
[0057] In this step, the first position calculation formula can be pre-set by the staff.
[0058] Among them, the first position calculation formula, for example:
[0059] X = c + X 1 + L
[0060] In the formula, X represents the relative abscissa of the bubble, c represents a constant, X 1 represents the abscissa value, and L represents the length of the bubble.
[0061] S2052: Input the width of the bubble and the ordinate value into a preset second position calculation formula to obtain the ordinate of the bubble.
[0062] This step is similar to the above step S2051, and the obtained ordinate of the bubble can be one or two.
[0063] Among them, the second position calculation formula, for example:
[0064] Y = d + h ± wg
[0065] In the formula, Y represents the ordinate of the bubble, d and w represent constants, h represents the ordinate value, and g represents the width of the bubble.
[0066] S2053: Write the abscissa value, the relative abscissa of the bubble, the ordinate of the bubble, and the folded data type into the attributes of the folded data type bubble, and display the folded data type bubble.
[0067] In this step, it may include writing the folded data type into the display content attribute of the folded data type bubble; writing the abscissa value and the relative abscissa of the bubble into the abscissa attribute of the folded data type bubble; writing the ordinate of the bubble into the ordinate attribute of the folded data type bubble.
[0068] Figure 3 It is a schematic diagram of the folded data type bubble provided by the embodiment of the present application. As Figure 3 shown, the unfolded data type "Data Type A" and the folded data types "+7", the box corresponding to "+7" is the display area of the folded data type. At this time, the pointer coordinates are within the display area of the folded data type. On the right is the displayed folded data type bubble, and the folded data types "Data Type B", "Data Type C", "Data Type D", "Data Type E", "Data Type F", "Data Type G", "Data Type H" are displayed in the folded data type bubble.
[0069] From the description of the above embodiments, it can be seen that in the embodiment of the present application, the relative abscissa of the bubble is obtained by inputting the length and abscissa value of the bubble into the formula, and the ordinate of the bubble is obtained by inputting the width and ordinate value of the bubble into the formula, thereby specifying the position and size of the folded data type bubble, and writing the folded data type into the attributes of the folded data type bubble, so as to display a bubble of appropriate size beside the display area of the folded data type and display all the folded data types.
[0070] In a possible implementation manner, the display area includes diagonal point coordinates.
[0071] Correspondingly, in the above step S204, determining the bubble display position according to the display area includes:
[0072] S2041: Determine the maximum value of the abscissa in the diagonal point coordinates as the abscissa of the bubble display position.
[0073] In this step, for example, the current focus coordinates include "(20, 40)", "(40, 90)", the abscissas are 20 and 40, and 40 is taken as the abscissa of the bubble display position. Another example, the current focus coordinates include "(30, 70)", "(70, 140)", the abscissas are 30 and 70, and 70 is taken as the abscissa of the bubble display position.
[0074] S2042: Calculate the average value of the ordinates in the diagonal point coordinates.
[0075] In this step, since the diagonal point coordinates include two, the sum of the ordinates in the two diagonal point coordinates can be calculated and then divided by 2 to obtain the average value of the ordinates in the diagonal point coordinates.
[0076] S2043: Combine the abscissa of the bubble display position and the average value to obtain the bubble display position.
[0077] In this step, it includes determining the average value as the ordinate of the bubble display position, and combining the abscissa and the ordinate to obtain the bubble display position.
[0078] As can be seen from the description of the above embodiments, in the embodiments of the present application, the maximum value of the abscissa in the diagonal point coordinates is determined as the abscissa of the bubble display position, and the average value of the ordinates in the diagonal point coordinates is calculated. The abscissa of the bubble display position and the average value are combined to obtain the bubble display position, so as to realize that the folded data type bubble is displayed at an appropriate position, facilitating the user to view the folded data type.
[0079] In a possible implementation manner, after obtaining the pointer coordinates and the display area of the folded data type, it further includes:
[0080] S220: Obtain the target time when the pointer coordinates enter the display area.
[0081] In this step, it may include obtaining the time stamp when the pointer coordinates enter the display area to obtain the target time.
[0082] S221: Obtain the current time in real time.
[0083] In this step, the method of obtaining the current time in real time may include continuously obtaining the system time, continuously obtaining the time through the Network Time Protocol, etc.
[0084] S222: Input the current time and the target time into the transparency calculation formula to obtain the real-time transparency of the bubble.
[0085] In this step, the transparency calculation formula can be preset by the staff.
[0086] S223: Control the transparency of the folded data type bubble according to the real-time transparency of the bubble.
[0087] In this step, it may include: inputting the real-time transparency of the bubble into the transparency attribute of the folded data type bubble to control the data.
[0088] As can be seen from the description of the above embodiments, the embodiments of the present application obtain the target time when the pointer coordinate enters the display area, and implement the acquisition of the current time. The current time and the target time are input into the transparency calculation formula to obtain the real-time transparency of the bubble, and the transparency of the bubble of the folded data type is controlled by the real-time transparency of the bubble, so as to realize the control of the transparency of the bubble of the folded data type through real-time time, avoid the bubble of the folded data type from blocking the displayed data, and facilitate the user to adjust the selected data type.
[0089] In a possible implementation manner, the transparency calculation formula in the above step S222 is as follows:
[0090] T = a + MAP[log b |cos(c·T r - c·T 1 )|]
[0091] In the formula, T represents the real-time transparency of the bubble, a, b, and c represent constants, log represents the logarithmic function, MAP represents the preset mapping function, cos is the cosine function, T r represents the current time, T 1 represents the target time. |cos(c·T r - c·T 1 )| represents taking the absolute value of cos(c·T r - c·T 1 ), and the mapping function can be set by the staff according to experimental data or empirical parameters, and is used to map the calculation result of log b |cos(c·T r - c·T 1 )| to a preset range.
[0092] As can be seen from the description of the above embodiments, the embodiments of the present application set trigonometric functions to make the power period of the logarithmic function change, take the absolute value to make the power of the logarithmic function always non-negative, and use the mapping function to keep the value output by the logarithmic function within a certain range, so that the transparency of the bubble of the folded data type circulates within a certain range, reducing the occlusion of the interface.
[0093] In a possible implementation manner, after the above step S205 displays the bubble of the folded data type, it further includes:
[0094] S231: In response to receiving a cancellation selection instruction corresponding to the target data type in the bubble of the folded data type, remove the target data type from the selected data types, where the target data type is any one of the selected data types.
[0095] In this step, the deselection instruction may include the user's click on the deselection button corresponding to the target data type, the deselection command input by the user, etc. Removing the target data type from the selected data types may include deleting the target data type from the stored selected data types.
[0096] Among them, the deselection button is, for example, Figure 3 the "×" sign displayed after the data type in
[0097] For example, currently the collapsed data type bubble contains 4 data types A, B, C, and D. After receiving the deselection instruction corresponding to data type A, the selection of data type A is cancelled, and the remaining data types in the collapsed data type bubble include B, C, and D. Another example, currently the collapsed data type bubble contains 4 data types A, B, C, D, E, and F. After receiving the deselection instructions corresponding to data types A and E, the selections of data types A and E are cancelled, and the remaining data types in the collapsed data type bubble include B, C, and D.
[0098] It can be seen from the description of the above embodiments that in the embodiment of the present application, by receiving the deselection instruction corresponding to the target data type in the collapsed data type bubble, the target data type is removed from the selected data types, so that the selected data types can be changed in the bubble, without the user having to click the expansion button and then deselect, reducing the steps of data type change.
[0099] In a possible implementation manner, before obtaining the pointer coordinates and the display area of the collapsed data type in the above step S201, it further includes:
[0100] S241: Receive the selection instruction corresponding to the target data type, where the target data type is any data type.
[0101] In this step, the selection instruction may be the click signal of the user on the data type option, or the selection command input by the user.
[0102] S242: If all data types other than the target data type are selected data types, then display a preset label in the display area.
[0103] In this step, for example, currently all data types include A, B, C, D, and E, the target data type is data type A, and data types B, C, D, and E are all selected data types, then display the "All" label in the display area. Another example, currently all data types include B, C, D, E, and F, the target data type is data type E, and data types B, C, D, and F are all selected data types, then display the "All" label in the display area.
[0104] As can be seen from the description of the above embodiments, after receiving a selection instruction for a data type, it is determined whether all data types have been selected. In the case where all data types have been selected, a preset label is displayed in the display area, reducing the number of displayed contents in the display area and making the interface more concise.
[0105] Figure 4 FIG. is a schematic structural diagram of a folded data type display device provided by an embodiment of the present application. As Figure 4 shown, the folded data type display device 400 includes: a region acquisition module 401, a type acquisition module 402, a size determination module 403, a position determination module 404, and a bubble display module 405.
[0106] The region acquisition module 401 is configured to acquire a pointer coordinate and a display region of a folded data type, where the folded data type includes at least one selected data type;
[0107] The type acquisition module 402 is configured to acquire a folded data type in response to the pointer coordinate entering the display region;
[0108] The size determination module 403 is configured to determine a bubble size according to the number of data types in the folded data type;
[0109] The position determination module 404 is configured to determine a bubble display position according to the display region;
[0110] The bubble display module 405 is configured to display a folded data type bubble according to the bubble size, the bubble display position, and the folded data type.
[0111] The device provided in this embodiment can be used to execute the technical solutions of the above method embodiments, and its implementation principles and technical effects are similar, which will not be elaborated here in this embodiment.
[0112] In a possible implementation manner, the bubble size includes the length and width of the bubble, and the bubble display position includes an abscissa value and an ordinate value; correspondingly, the bubble display module 405 is specifically configured to input the length of the bubble and the abscissa value into a preset first position calculation formula to obtain a relative abscissa of the bubble; input the width of the bubble and the ordinate value into a preset second position calculation formula to obtain a bubble ordinate; write the abscissa value, the relative abscissa of the bubble, the bubble ordinate, and the folded data type into the attributes of the folded data type bubble, and display the folded data type bubble.
[0113] The device provided in this embodiment can be used to execute the technical solutions of the above method embodiments, and its implementation principles and technical effects are similar, which will not be elaborated here in this embodiment.
[0114] In a possible implementation, the display area includes diagonal point coordinates; correspondingly, the position determination module 404 is specifically configured to determine the maximum value of the abscissa in the diagonal point coordinates as the abscissa of the bubble display position; calculate the average value of the ordinates in the diagonal point coordinates; and combine the abscissa of the bubble display position and the average value to obtain the bubble display position.
[0115] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.
[0116] In a possible implementation, the folded data type display device 400 further includes: a transparency control module 406.
[0117] The transparency control module 406 is configured to obtain the target time when the pointer coordinate enters the display area; obtain the current time in real time; input the current time and the target time into the transparency calculation formula to obtain the real-time transparency of the bubble; and control the transparency of the folded data type bubble according to the real-time transparency of the bubble.
[0118] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.
[0119] In a possible implementation, the transparency calculation formula is as follows:
[0120] T = a + MAP[log b |cos(c·T r - c·T 1 )|]
[0121] In the formula, T represents the real-time transparency of the bubble, a, b, and c represent constants, log represents the logarithmic function, MAP represents a preset mapping function, cos is the cosine function, T r represents the current time, and T 1 represents the target time.
[0122] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.
[0123] In a possible implementation, the folded data type display device 400 further includes: a type removal module 407.
[0124] The type removal module 407 is configured to, in response to receiving a deselection instruction corresponding to the target data type in the folded data type bubble, remove the target data type from the selected data types, where the target data type is any one of the selected data types.
[0125] The device provided in this embodiment can be used to implement the technical solution of the above method embodiment. The implementation principle and technical effect are similar, and will not be elaborated here in this embodiment.
[0126] In a possible implementation manner, the folded data type display device 400 further includes a label display module 408.
[0127] The label display module 408 is configured to receive a selection instruction corresponding to a target data type, where the target data type is any data type; if each data type other than the target data type is a selected data type, a preset label is displayed in the display area.
[0128] The device provided in this embodiment can be used to implement the technical solution of the above method embodiment. The implementation principle and technical effect are similar, and will not be elaborated here in this embodiment.
[0129] To implement the above embodiment, an electronic device is further provided in an embodiment of the present application.
[0130] Referring to Figure 5 , which shows a schematic structural diagram of an electronic device 500 suitable for implementing an embodiment of the present application. The electronic device 500 can be a terminal device or a server. Among them, the terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, abbreviated as PDA), tablet computers (Portable Android Device, abbreviated as PAD), portable multimedia players (Portable MediaPlayer, abbreviated as PMP), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is only an example and should not impose any limitations on the functions and usage scopes of the embodiments of the present application.
[0131] Such as Figure 5As shown, the electronic device 500 may include a processor (such as a central processing unit, a graphics processing unit, etc.) 501, and a memory 502 communicatively connected to the processor. It can perform various appropriate actions and processes according to the programs, computer-executable instructions stored in the memory 502, or the programs loaded from the storage device 508 into the Random Access Memory (RAM) 503, and implement the folded data type display method in any of the above embodiments, where the memory may be a Read Only Memory (ROM). In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the memory 502, and the RAM 503 are connected to each other through a bus 504. The Input / Output (I / O) interface 505 is also connected to the bus 504.
[0132] Generally, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or wireline to exchange data. Although Figure 5 the electronic device 500 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.
[0133] Specifically, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains program codes for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the memory 502. When the computer program is executed by the processing device 501, the above functions defined in the method of the embodiment of the present application are executed.
[0134] It should be noted that the above-mentioned computer-readable storage medium in this application can be a computer-readable signal medium, a computer storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, the computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device. And in this application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable storage medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0135] The above-mentioned computer-readable storage medium can be included in the above-mentioned electronic device; it can also exist independently without being assembled into the electronic device.
[0136] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device is caused to execute the method shown in the above-mentioned embodiments.
[0137] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above-mentioned programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or it can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).
[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0139] The modules described in the embodiments of this application can be implemented in software or in hardware. Among them, the name of the unit does not constitute a limitation on the module itself in some cases. For example, the area acquisition module can also be described as the "display area acquisition module".
[0140] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include: Field Programmable Gate Arrays (FPGA), Application Specific Integrated Circuits (ASIC), Application Specific Standard Products (ASSP), System on a Chip (SOC), Complex Programmable Logic Devices (CPLD), and so on.
[0141] The present application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the technical solution of the folded data type display method in any of the above embodiments. The implementation principle and beneficial effects are similar to those of the folded data type display method. For details, refer to the implementation principle and beneficial effects of the folded data type display method, which will not be elaborated herein.
[0142] In the context of the present application, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0143] The present application also provides a computer program product including a computer program, which, when executed by a processor, implements the technical solution of the folded data type display method in any of the above embodiments. The implementation principle and beneficial effects are similar to those of the folded data type display method. For details, refer to the implementation principle and beneficial effects of the folded data type display method, which will not be elaborated herein.
[0144] The above description is only a preferred embodiment of the present application and an explanation of the applied technical principle. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, a technical solution formed by mutually replacing the above features with technical features (but not limited to) having similar functions disclosed in the present application.
[0145] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include the common general knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present application are pointed out by the following claims.
[0146] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.
Claims
1. A method for displaying folded data types, It is characterized in that include: Acquire the pointer coordinates and the display area of the folded data type, wherein the folded data type includes at least one selected data type; In response to the pointer coordinates entering the display area, acquiring the folded data type; Determining a bubble size according to the number of data types in the collapsed data type; Determining a bubble display position according to the display area; Display a bubble of the collapsed data type according to the bubble size, the bubble display position and the collapsed data type.
2. The method according to claim 1, It is characterized in that The bubble size includes the length and width of the bubble, and the bubble display position includes the abscissa value and the ordinate value; Accordingly, displaying a bubble of a collapsed data type according to the bubble size, the bubble display position and the collapsed data type includes: Inputting the length of the bubble and the horizontal coordinate value into a preset first position calculation formula to obtain the relative horizontal coordinate of the bubble; Inputting the width of the bubble and the vertical coordinate value into a preset second position calculation formula to obtain the vertical coordinate of the bubble; The horizontal coordinate value, the relative horizontal coordinate of the bubble, the vertical coordinate of the bubble and the collapsed data type are written into the properties of the collapsed data type bubble, and the collapsed data type bubble is displayed.
3. The method according to claim 1, It is characterized in that The display area includes diagonal point coordinates; Accordingly, determining the bubble display position according to the display area includes: The maximum value of the horizontal coordinate of the diagonal point coordinates is determined as the horizontal coordinate of the bubble display position; Calculate the average value of the ordinates in the diagonal point coordinates; The abscissa of the bubble display position and the average value are combined to obtain the bubble display position.
4. The method according to any one of claims 1 to 3, It is characterized in that After obtaining the pointer coordinates and the display area of the folded data type, the method further includes: Obtaining a target time for the pointer coordinates to enter the display area; Get the current time in real time; Input the current time and the target time into a transparency calculation formula to obtain the real-time transparency of the bubble; The transparency of the bubble of the collapsed data type is controlled according to the real-time transparency of the bubble.
5. The method according to claim 4, It is characterized in that The transparency calculation formula is as follows: T=a+MAP[log b |cos(c·T r -c·T 1 )|] Where T represents the real-time transparency of the bubble, a, b, c represent constants, log represents the logarithmic function, MAP represents the preset mapping function, cos represents the cosine function, and T r represents the current time, T 1 Indicates the target time.
6. The method according to any one of claims 1 to 3, It is characterized in that After displaying the collapsed data type bubble, the method further includes: In response to receiving a deselect instruction corresponding to a target data type in the collapsed data type bubble, the target data type is removed from the selected data types, wherein the target data type is any selected data type.
7. The method according to any one of claims 1 to 3, It is characterized in that Before obtaining the pointer coordinates and the display area of the folded data type, the method further includes: receiving a selection instruction corresponding to a target data type, wherein the target data type is any data type; If all data types other than the target data type are selected data types, a preset label is displayed in the display area.
8. A folded data type display device, It is characterized in that include: An area acquisition module, used to acquire the pointer coordinates and the display area of the folded data type, wherein the folded data type includes at least one selected data type; A type acquisition module, configured to acquire the folded data type in response to the pointer coordinates entering the display area; a size determination module, configured to determine a bubble size according to the number of data types in the collapsed data type; A position determination module, used to determine the bubble display position according to the display area; The bubble display module is used to display the bubble of the collapsed data type according to the bubble size, the bubble display position and the collapsed data type.
9. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the folded data type display method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the folded data type display method according to any one of claims 1 to 7.