CN114385152A - Information display method and device and computer readable storage medium - Google Patents

Information display method and device and computer readable storage medium Download PDF

Info

Publication number
CN114385152A
CN114385152A CN202011123990.XA CN202011123990A CN114385152A CN 114385152 A CN114385152 A CN 114385152A CN 202011123990 A CN202011123990 A CN 202011123990A CN 114385152 A CN114385152 A CN 114385152A
Authority
CN
China
Prior art keywords
information
round
turn
next level
dimensional array
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011123990.XA
Other languages
Chinese (zh)
Inventor
胡福星
王鹏程
郭计伟
何光华
邹世杰
张癸鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011123990.XA priority Critical patent/CN114385152A/en
Publication of CN114385152A publication Critical patent/CN114385152A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Abstract

The embodiment of the application discloses an information display method, an information display device and a computer readable storage medium. The embodiment of the application acquires the step tree; converting the step tree into one-dimensional array information according to the hierarchical relationship; performing layer-by-layer retraction processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low; connecting step information of a next level of the turn information by a turn polyline; and marking and displaying the expanded information in the one-dimensional array information. Therefore, the step tree is automatically generated into the one-dimensional array information to be displayed, the information is indented and incrementally processed according to different levels, the step information of the next layer of the turn information is connected and displayed through the turn fold line, and the expanded information in the one-dimensional array information is marked and displayed, so that the display level of the case information is clear, the operational difficulty is reduced, and the information display efficiency is greatly improved.

Description

Information display method and device and computer readable storage medium
Technical Field
The application relates to the technical field of software development, in particular to an information display method and device and a computer readable storage medium.
Background
In recent years, the main contradiction faced by the software industry is still the contradiction between the ever-increasing and increasingly complex user demand and the laggard software productivity. Particularly, with the appearance of new technologies and new models such as cloud computing, big data, mobile internet and the like, the contradiction is particularly prominent, and is particularly reflected in low product development efficiency, uncontrolled development cost and progress and the like. The system use case can run through the processes of system development and system application, so the writing and display of the system use case are important factors influencing the system development and application.
In the research and practice process of the prior art, the inventor of the present application finds that, in the prior art, the display of information in a system case is incomplete, the distinction between information with different attributes is not obvious, and the efficiency of information display is low.
Disclosure of Invention
The embodiment of the application provides an information display method, an information display device and a computer-readable storage medium, which can improve the efficiency of information display.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
an information display method, comprising:
acquiring a step tree, wherein the step tree is formed by drawing round information, step information and expansion information in use case information according to a hierarchical relationship;
converting the step tree into one-dimensional array information according to a hierarchical relationship, wherein the one-dimensional array information is used for displaying turn information, step information and expansion information;
performing layer-by-layer indentation processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low;
connecting step information of a next level of the turn information by a turn polyline, wherein the turn polyline is used for folding or unfolding the step information;
and marking and displaying the expanded information in the one-dimensional array information.
Correspondingly, the embodiment of the present application further provides an information display device, including:
the step tree is formed by drawing round information, step information and expansion information in the use case information according to a hierarchical relationship;
the conversion unit is used for converting the step tree into one-dimensional array information according to the hierarchical relationship, and the one-dimensional array information is used for displaying the round information, the step information and the expansion information;
the retraction unit is used for performing layer-by-layer retraction processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low;
a connecting unit for connecting step information of a next level of the round information with a round polyline for folding or unfolding the step information;
and the display unit is used for marking and displaying the expanded information in the one-dimensional array information.
In some embodiments, the rendering subunit is to:
sorting step information of a next level of each round information;
and generating corresponding number information according to the sorting sequence, and marking the starting step and the ending step of the sorted step information.
In some embodiments, the rendering subunit is further configured to:
acquiring step information of a next level of each round information;
acquiring a step bidirectional linked list corresponding to the step information, wherein the step bidirectional linked list is used for recording the sequence relation between the step information;
sorting the step information based on the step bidirectional linked list;
and generating corresponding number information according to the sorting sequence, and marking the starting step and the ending step of the sorted step information.
A computer device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any one of the information presentation methods provided by the embodiments of the present application.
A computer-readable storage medium, wherein a plurality of instructions are stored in the computer-readable storage medium, and the instructions are suitable for being loaded by a processor to execute the steps of the information presentation method.
A computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the computer device executes the steps in any information presentation method provided by the embodiment of the application.
The embodiment of the application acquires the step tree; converting the step tree into one-dimensional array information according to the hierarchical relationship; performing layer-by-layer retraction processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low; connecting step information of a next level of the turn information by a turn polyline; and marking and displaying the expanded information in the one-dimensional array information. Therefore, the step tree is automatically generated into the one-dimensional array information to be displayed, the information is indented and incrementally processed according to different levels, the step information of the next layer of the turn information is connected and displayed through the turn fold line, and the expanded information in the one-dimensional array information is marked and displayed, so that the display level of the case information is clear, the operational difficulty is reduced, and the information display efficiency is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scene of an information presentation system provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of an information displaying method provided in an embodiment of the present application;
fig. 3 is another schematic flow chart of an information displaying method provided in the embodiment of the present application;
fig. 4a is a schematic product diagram of an information displaying method according to an embodiment of the present disclosure;
FIG. 4b is another product diagram of an information displaying method according to an embodiment of the present disclosure;
FIG. 4c is another product diagram of an information displaying method according to an embodiment of the present disclosure;
FIG. 4d is another product diagram of an information displaying method according to an embodiment of the present disclosure;
FIG. 5 is a schematic structural diagram of an information display apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an information display method, an information display device and a computer readable storage medium.
The round information in the embodiment of the application is a complete step sequence from a step of requesting the system by a main executor to a step of jumping/ending the use case in the system use case.
The step information is the action description of the executor or the target system.
The expanded information is a path branch generated by the interaction between the executor and the system due to the result difference.
Referring to fig. 1, fig. 1 is a schematic view of a scene of an information display system according to an embodiment of the present application, including: the terminal a and the server (the information presentation system may also include other terminals besides the terminal a, and the specific number of the terminals is not limited herein), the terminal a and the server may be connected through a communication network, which may include a wireless network and a wired network, wherein the wireless network includes one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal area network. The network includes network entities such as routers, gateways, etc., which are not shown in the figure. Terminal a may perform information interaction with the server through a communication network, for example, terminal a may send the step tree to the server or terminal a receives the step tree fed back by the server.
The server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, big data and artificial intelligence platform and the like. As shown in fig. 1, the server may draw a step tree in a hierarchical relationship based on the round information, the step information, and the extension information in the use case information, and transmit the step tree to the terminal a.
The information display system may include an information display device, which may be specifically integrated in a terminal, and the terminal a may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein. The terminal A can install various applications required by users, such as webpage applications and the like, and the terminal can acquire a step tree which is formed by drawing turn information, step information and expansion information in use case information according to a hierarchical relationship; converting the step tree into one-dimensional array information according to the hierarchical relationship, wherein the one-dimensional array information is used for displaying turn information, step information and expansion information; performing layer-by-layer retraction processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low; connecting step information of a next level of the turn information by a turn polyline, wherein the turn polyline is used for folding or unfolding the step information; and marking and displaying the expanded information in the one-dimensional array information.
It should be noted that the scene schematic diagram of the information presentation system shown in fig. 1 is only an example, and the information presentation system and the scene described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application.
The following are detailed below.
In the present embodiment, the description will be made from the perspective of an information presentation apparatus, which may be particularly integrated in a terminal having a storage unit and a microprocessor mounted therein with computing capability.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating an information displaying method according to an embodiment of the present disclosure. The information display method comprises the following steps:
in step 101, a step tree is obtained.
It can be understood that a use case (use case), or a translation use case, is a description of how the system reacts to an external request in software engineering or system engineering, and is a technology for acquiring a requirement through a use scenario of a user. The system uses the case: belonging to the concept of system scope. It can also be understood as a system-level implementation of a certain service use case, which at least includes four steps, namely, request, verification, change and feedback.
The system case is composed of three pieces of information, the information is round information, step information and extended information respectively, the round information is composed of a plurality of step information, the step information can comprise a plurality of extended information, the extended information can also comprise one to a plurality of round information, the three pieces of information are combined and nested according to the rule to generate a corresponding step tree, namely the step tree is formed by drawing the round information, the step information and the extended information in the case information according to a hierarchical relation, and the step tree can reflect functions and requests of the system case from a data structure.
In the embodiment of the present application, a pre-drawn step tree may be obtained.
In step 102, the step tree is converted into one-dimensional array information according to the hierarchical relationship.
Because the step tree contains the hierarchical relationship among the turn information, the step information and the extension information, in order to better display the turn information, the step information and the extension information in the step tree, so that a designer or a viewer can know the relationship among the turn information, the step information and the extension information more clearly, the step tree can be converted into one-dimensional array information according to the hierarchical relationship, and the one-dimensional array information can be used for converting the turn information, the step information and the extension information into characters of different paragraphs according to the hierarchical relationship for display.
In step 103, a layer-by-layer reduction process is performed on the one-dimensional array information according to the priority order from the top to the bottom of the hierarchical relationship.
Because the one-dimensional array information is only used for simply listing the turn information, the step information and the extension information, the one-dimensional array information is not displayed in a visual complete step range, and in an extension path, the first extended turn information lacks the step information requested by an executor, so that the turn information is intermittent and incomplete, a designer or a viewer cannot visually design and view the steps in the turn information, and the step information and the extension information are not obviously distinguished, so that the designer or the viewer is often misled, system cases are easy to make mistakes, the operation difficulty is high, and the operation efficiency is low.
In the embodiment of the present application, in order to solve the above technical problem, a layer-by-layer indentation processing may be performed on one-dimensional array information according to a priority order from a high level to a low level, that is, the indentation amount of information with a higher level is smaller, and the indentation amount of information with a lower level is larger, because in the step tree, different turn information, step information, and extension information have different hierarchical relationships because of subordination relationships, in order to better display the one-dimensional array information, the information with the same level may have the same indentation amount, and the information with different levels may form a level difference because of different indentation amounts, so that a designer or a viewer may more easily understand the relationships among the information.
In step 104, step information of a next level of the round information is connected with the round polyline.
The step information is the action description of the executor or the target system, and is often in a large quantity, different turn information has different step information, and the related technology has no intuitive complete step range display, which often causes the steps to be easily confused.
Therefore, the embodiment of the application provides that the step information of the next level of the turn information can be connected through the turn polyline, the turn polyline is used for folding or unfolding the step information, and can also be used for marking the associated step information through the connection relation.
In some embodiments, the step of concatenating the step information of the next hierarchy of the round information with the round polyline may include:
(1) a starting step and an ending step for acquiring step information of a next level of the round information;
(2) connecting the turn polyline to the starting step and the terminating step;
(3) acquiring the number information of the starting step and the ending step;
(4) and generating and displaying the display name of the turn information of the previous level according to the number information of the starting step and the ending step.
No matter the round information, the step information and the extended information have corresponding sequence relations, the front and back information nodes of each information node can be recorded in a double-linked list structure, so that the starting step and the terminating step of the step information of the next level of the round information can be obtained based on the double-linked list structure, and other intermediate steps are also included between the starting step and the terminating step.
Furthermore, the starting step and the terminating step are connected through a turn polyline, so that the step information of the next level of each turn information is calibrated, and the step information of the next level of each turn information can be folded or unfolded.
In the related art, a complete indication of step information does not exist in the round information, so that no correlation exists between step information of a next level of the round information, which is not beneficial for a designer or a viewer to know the relationship therebetween, and the information display efficiency is not high. In this way, the display name of the round information of the previous level may be generated and displayed according to the number information of the starting step and the terminating step, for example, if the number information of the starting step is 1 and the number information of the terminating step is 6, then the display name of the round information of the previous level may be generated as rounds 1- >6, and the detailed information of the step information included in the round information may be clearly known by the display name of the round information.
In step 105, the extension information in the one-dimensional array information is marked and displayed.
In the related art, the distinction degree between the step information and the extended information is not obvious, which often causes a designer or a viewer to mistake the extended information as the step information, causes information confusion, and reduces the effect of information display, so that the embodiment of the application can display the extended information in the one-dimensional array information in a marking manner, wherein the marking manner at least includes one of the following: and the information is subjected to thickening, color calibration or underlining calibration, so that the difference between the expanded information and the step information is highlighted, and the information display efficiency is further improved.
As can be seen from the above, in the embodiment of the present application, a step tree is obtained; converting the step tree into one-dimensional array information according to the hierarchical relationship; performing layer-by-layer retraction processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low; connecting step information of a next level of the turn information by a turn polyline; and marking and displaying the expanded information in the one-dimensional array information. Therefore, the step tree is automatically generated into the one-dimensional array information to be displayed, the information is indented and incrementally processed according to different levels, the step information of the next layer of the turn information is connected and displayed through the turn fold line, and the expanded information in the one-dimensional array information is marked and displayed, so that the display level of the case information is clear, the operational difficulty is reduced, and the information display efficiency is greatly improved.
The method described in connection with the above embodiments will be described in further detail below by way of example.
In the present embodiment, the information presentation apparatus will be described by taking as an example that the information presentation apparatus is specifically integrated in a terminal, and the following description will be specifically referred to.
Referring to fig. 3, fig. 3 is another schematic flow chart of an information displaying method according to an embodiment of the present disclosure. The method flow can comprise the following steps:
for better describing the embodiment of the present application, please refer to fig. 4a, fig. 4b and fig. 4c together, in which fig. 4a is a product schematic diagram of the information display method provided in the embodiment of the present application; FIG. 4b is another product diagram of an information displaying method according to an embodiment of the present disclosure; FIG. 4c is another product diagram of an information displaying method according to an embodiment of the present disclosure; FIG. 4d is another product diagram of an information displaying method according to an embodiment of the present disclosure; .
In step 201, the terminal acquires use case information.
The use case information is information for designing a system use case, and can be composed of turn information, step information and extension information, the use case information can be input by a designer through a webpage, and the turn information, the step information and the extension information have different hierarchical information according to different implementation sequences.
In step 202, the terminal acquires step information of a next level of each round information, extension information of the next level of each step information, and a hierarchical relationship of the round information of the next level of each extension information.
Referring to fig. 4a together, fig. 4a is a schematic product diagram provided in this embodiment, a round step may include a plurality of step information, the step information may include a plurality of extension information, the extension information may further include a plurality of round information, and different round information, step information, and extension information have different hierarchical relationships.
In one embodiment, when the user inputs the round information, the step information and the extension information, the user may set that the round information stores an extension identifier, the step information stores a round identifier, the extension information stores a step identifier, the extension identifier is used for indicating to which extension information the round information belongs, the round identifier is used for indicating to which round information the step information belongs, and the step identifier is used for indicating to which step information the extension information belongs, so that the terminal may clearly determine the hierarchical relationship between the step information of the next level of each round information, the extension information of the next level of each step information and the round information of the next level of each extension information.
In step 203, the terminal determines target round information in which a preset identifier is stored from the use case information, and determines the target round information as a root node hierarchy.
With reference to fig. 4a, the round information may have highest-level target round information a, where the target round information a does not belong to any extension information, that is, no extension identifier is stored in the target round information, and a corresponding preset identifier may be stored, where the preset identifier may be 0, and the terminal may automatically determine the round information in which the preset identifier 0 is stored in the use case information as the target round information a, where the target round information a is a highest level, that is, the target round information a may be determined as a root node level.
The target round information a has an order relationship, please refer to fig. 4C together, where fig. 4C shows a round bidirectional linked list C corresponding to the round information, the round bidirectional linked list C records the front-back order relationship of each round information, the front round identifier (id) of the first round information is 0, and the back round identifier of the last round information is 0, so that the target round information a can be sorted according to the round bidirectional scale C.
In step 204, the terminal acquires step information of a next level of each round of information based on the root node level and the level relationship, acquires a step bidirectional linked list corresponding to the step information, sorts the step information based on the step bidirectional linked list, generates corresponding number information according to the sorting order, and marks an initial step and a termination step of the sorted step information.
The terminal sequentially obtains step information of a next level of each turn information based on a root node level a and a level relationship, please refer to fig. 4D, where fig. 4D shows a step bidirectional linked list D corresponding to the step information, a front-back order relationship of each step information is recorded in the step bidirectional linked list D, a front turn identifier (id) of the step information with the first order is 0, and a back turn identifier of the step information with the last order is 0, so that the step information can be sorted according to the step bidirectional scaled list D.
Further, number information corresponding to the step information is generated according to the sorting sequence, and the starting step and the ending step of the sorted step information are marked, so that the step information of different turn information can be better distinguished according to the starting step and the ending step of the step information under each turn information, and the association relationship among the step information is formed.
In step 205, the terminal draws the extended information of the next level of each step information and draws the round information of the next level of each extended information until the case information is drawn, and generates a step tree.
After the terminal acquires the step information of the next level of each round information for drawing, the terminal can continue to draw the extended information of the next level of each step information and draw the round information of the next layer of each extended information until the round information, the step information and the extended information in the use case information are traversed, and a complete step tree structure is generated.
In step 206, the terminal obtains the step tree, converts the step tree into one-dimensional array information according to the hierarchical relationship, and performs layer-by-layer indentation processing on the one-dimensional array information according to the priority sequence from high to low of the hierarchical relationship.
In order to better show functions and relations among all information in the system case, the terminal can acquire the step tree and convert the step tree into the one-dimensional array information 10 for display according to the hierarchical relationship, and the one-dimensional array information is only used for simply listing the turn information, the step information and the extension information.
In step 207, the terminal detects whether the hierarchy of the round information is a root node hierarchy.
The number of step information of each round is large, the initial step of each round cannot be visually displayed, step description of the previous step information is lacked in the expanded round information, so that the relation between the expanded round information and the previous step information cannot be displayed, the information display efficiency is low, and the operation difficulty of a system use case designer is increased.
Therefore, the terminal may first detect whether the hierarchy of the round information is the root node hierarchy, directly perform step 209 when detecting that the hierarchy of the round information is the root node hierarchy, and when detecting that the hierarchy of the round information is not the root node hierarchy, indicate that the round information is the round information after the extended information, need to perform step description supplement of the previous step information, and perform step 208.
In step 208, the terminal acquires target step information on the highest hierarchy to which the round information belongs in the hierarchical relationship, generates virtual step information according to step information ordered before the target step information, and adds the virtual step information to step information of a next hierarchy of the round information.
When it is detected that the level of the round information is not the root node level, after the round information is described as the subordinate extension information, the round information 14 is described by taking as an example, and assuming that the round information 14 is subordinate to the "extension b-verification transaction record WeChat Payment System", the terminal can obtain target step information "2. [ System ] verification request information" on the highest level subordinate to the round information in the level relationship, generate virtual step information 13 according to the step information "1. WeChat Payment System feedback request information" sequenced before the target step information, and add the virtual step information 13 to the step information of the next level of the round information 14, so that the step information of the next level in the extension information is complete, and the information display efficiency is improved.
In step 209, the terminal connects step information of a next level of the round information with the round polyline.
With reference to fig. 4b, the terminal connects the step information of the next level of the turn information with a turn polyline 11, the turn polyline can mark all the step information of the next level of the turn information, and a designer or a viewer can fold or unfold the step information by clicking or long-pressing, so as to improve the operation convenience of the system case design.
In one embodiment, the step of concatenating step information of a next level of the round information with the round polyline may include:
(1) a starting step and an ending step for acquiring step information of a next level of the round information;
(2) connecting the turn polyline to the starting step and the terminating step;
(3) acquiring the number information of the starting step and the ending step;
(4) and generating and displaying the display name of the turn information of the previous level according to the number information of the starting step and the ending step.
As shown in fig. 4b, the terminal obtains the start step "request information fed back by the wechat payment system" and the end step "feedback display information" of the step information of the next level of the round information, connects the start step and the end step with a round polyline 11, and generates and displays the display names "round 1- > 6" of the previous layer and the round information according to the coding information 1 of the start step and the number information 6 of the end step, so that the complete step information corresponding to the round information can be quickly known through the display names of the round information, and the information display efficiency is high.
In step 210, the terminal performs bolding, color calibration and/or underlining processing on the expanded information in the one-dimensional array information to perform mark display.
As shown in fig. 4b, because the distinction degree between the expanded information and the step information is not obvious, the designer or the viewer may misunderstand the expanded information as the step information, which leads to confusion of information and reduces the effect of information display, so that the embodiment of the present application may perform the thickening, color calibration and/or underlining processing on the expanded information in the one-dimensional array information for display by marking, and in fig. 4b, the expanded information is displayed by marking with the effect of the thickening, which further improves the efficiency of information display.
As can be seen from the above, in the embodiment of the present application, a step tree is obtained; converting the step tree into one-dimensional array information according to the hierarchical relationship; performing layer-by-layer retraction processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low; connecting step information of a next level of the turn information by a turn polyline; and marking and displaying the expanded information in the one-dimensional array information. Therefore, the step tree is automatically generated into the one-dimensional array information to be displayed, the information is indented and incrementally processed according to different levels, the step information of the next layer of the turn information is connected and displayed through the turn fold line, and the expanded information in the one-dimensional array information is marked and displayed, so that the display level of the case information is clear, the operational difficulty is reduced, and the information display efficiency is greatly improved.
Further, please refer to table 1 below:
Figure BDA0002732977230000121
as can be seen from table 1, in the embodiment of the present application, a novel information display method based on system use cases is provided from multiple dimensions, so that the efficiency of information display is further improved.
In order to better implement the information display method provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the information display method. The meanings of the nouns are the same as those in the information display method, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an information display apparatus according to an embodiment of the present disclosure, where the information display apparatus may include an obtaining unit 301, a converting unit 302, an retracting unit 303, a connecting unit 304, a display unit 305, and the like.
An obtaining unit 301, configured to obtain a step tree, where the step tree is formed by plotting the round information, the step information, and the extension information in the use case information according to a hierarchical relationship.
A converting unit 302, configured to convert the step tree into one-dimensional array information according to a hierarchical relationship, where the one-dimensional array information is used to display the round information, the step information, and the extension information.
The retracting unit 303 is configured to perform layer-by-layer retracting processing on the one-dimensional array information according to a priority order from a high level to a low level.
A connecting unit 304 for connecting step information of a next level of the round information with a round polyline for folding or unfolding the step information.
In some embodiments, the connection unit 304 includes:
a first acquisition subunit configured to acquire a start step and an end step of step information of a next level of the round information;
a connection subunit for connecting the turn polyline to the starting step and the terminating step;
a second obtaining subunit, configured to obtain number information of the starting step and the terminating step;
and the generating subunit is used for generating and displaying the display name of the round information of the previous level according to the number information of the starting step and the ending step.
A display unit 305, configured to mark and display the extension information in the one-dimensional array information.
In some embodiments, the display unit 305 is configured to: and carrying out thickening, color calibration and/or underlining treatment on the expanded information in the one-dimensional array information to mark and display.
In some embodiments, the apparatus further comprises a detection unit for: detecting whether the hierarchy of the turn information is a root node hierarchy; when detecting that the hierarchy of the turn information is a root node hierarchy, executing a step of connecting step information of a next hierarchy of the turn information by a turn polyline; when detecting that the hierarchy of the turn information is not the root node hierarchy, acquiring target step information of the turn information on the highest hierarchy subordinate to the turn information in the hierarchy; generating virtual step information according to the step information ordered before the target step information; adding the virtual step information to step information of a next level of the round information, and performing a step of connecting the step information of the next level of the round information with a round polyline.
In some embodiments, the apparatus further comprises:
a third obtaining unit, configured to obtain use case information, where the use case information includes round information, step information, and extension information;
and the drawing unit is used for drawing the step tree by the round information, the step information and the expansion information according to a hierarchical relationship.
In some embodiments, the rendering unit includes:
the acquisition subunit acquires step information of a next level of each round information, extended information of the next level of each step information and a hierarchical relationship of the round information of the next level of each extended information;
the determining subunit is used for determining target round information in which preset identification is stored from the use case information, and determining the target round information as a root node hierarchy;
and the drawing subunit is used for drawing step information of a next level of each turn information, drawing expanded information of the next level of each step information and drawing turn information of the next level of each expanded information based on the root node level and the level relation until the use case information is drawn completely, and generating a step tree.
In some embodiments, the rendering subunit is to: sorting step information of a next level of each round information; and generating corresponding number information according to the sorting sequence, and marking the starting step and the ending step of the sorted step information.
In some embodiments, the rendering subunit is further configured to: acquiring step information of a next level of each round information; acquiring a step bidirectional linked list corresponding to the step information, wherein the step bidirectional linked list is used for recording the sequence relation among the step information; sorting the step information based on the step bidirectional linked list; and generating corresponding number information according to the sorting sequence, and marking the starting step and the ending step of the sorted step information.
The specific implementation of each unit can refer to the previous embodiment, and is not described herein again.
As can be seen from the above, in the embodiment of the present application, the step tree is obtained by the obtaining unit 301; the conversion unit 302 converts the step tree into one-dimensional array information according to the hierarchical relationship; the retracting unit 303 performs layer-by-layer retracting processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low; the connection unit 304 connects step information of a next level of the round information with the round polyline; the display unit 305 displays the extension information in the one-dimensional array information in a mark. Therefore, the step tree is automatically generated into the one-dimensional array information to be displayed, the information is indented and incrementally processed according to different levels, the step information of the next layer of the turn information is connected and displayed through the turn fold line, and the expanded information in the one-dimensional array information is marked and displayed, so that the display level of the case information is clear, the operational difficulty is reduced, and the information display efficiency is greatly improved.
An embodiment of the present application further provides a computer device, as shown in fig. 6, which shows a schematic structural diagram of a terminal according to an embodiment of the present application, specifically:
an embodiment of the present application also provides a terminal, as shown in fig. 6, which may include components such as a Radio Frequency (RF) circuit 601, a memory 602 including one or more computer-readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and information processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 608, and can receive and execute commands sent by the processor 608. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 6 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 606, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 606 and converted into audio data, which is then processed by the audio data output processor 608, and then transmitted to, for example, another terminal via the RF circuit 601, or the audio data is output to the memory 602 for further processing. The audio circuit 606 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 6 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 608 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
acquiring a step tree, wherein the step tree is formed by drawing round information, step information and expansion information in use case information according to a hierarchical relationship; converting the step tree into one-dimensional array information according to the hierarchical relationship, wherein the one-dimensional array information is used for displaying turn information, step information and expansion information; performing layer-by-layer retraction processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low; connecting step information of a next level of the turn information by a turn polyline, wherein the turn polyline is used for folding or unfolding the step information; and marking and displaying the expanded information in the one-dimensional array information.
It should be noted that the terminal provided in the embodiment of the present application and the information display method applied to the terminal in the above embodiment belong to the same concept, and the specific implementation process thereof is detailed in the above method embodiment and is not described herein again.
As can be seen from the above, the computer device according to the embodiment of the present application may obtain the step tree; converting the step tree into one-dimensional array information according to the hierarchical relationship; performing layer-by-layer retraction processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low; connecting step information of a next level of the turn information by a turn polyline; and marking and displaying the expanded information in the one-dimensional array information. Therefore, the step tree is automatically generated into the one-dimensional array information to be displayed, the information is indented and incrementally processed according to different levels, the step information of the next layer of the turn information is connected and displayed through the turn fold line, and the expanded information in the one-dimensional array information is marked and displayed, so that the display level of the case information is clear, the operational difficulty is reduced, and the information display efficiency is greatly improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the information presentation methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
acquiring a step tree, wherein the step tree is formed by drawing round information, step information and expansion information in use case information according to a hierarchical relationship; converting the step tree into one-dimensional array information according to the hierarchical relationship, wherein the one-dimensional array information is used for displaying turn information, step information and expansion information; performing layer-by-layer retraction processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low; connecting step information of a next level of the turn information by a turn polyline, wherein the turn polyline is used for folding or unfolding the step information; and marking and displaying the expanded information in the one-dimensional array information.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations provided by the embodiments described above.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any information displaying method provided in the embodiments of the present application, the beneficial effects that can be achieved by any information displaying method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The information display method, the information display device, and the computer-readable storage medium provided by the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (15)

1. An information display method, comprising:
acquiring a step tree, wherein the step tree is formed by drawing round information, step information and expansion information in use case information according to a hierarchical relationship;
converting the step tree into one-dimensional array information according to a hierarchical relationship, wherein the one-dimensional array information is used for displaying turn information, step information and expansion information;
performing layer-by-layer indentation processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low;
connecting step information of a next level of the turn information by a turn polyline, wherein the turn polyline is used for folding or unfolding the step information;
and marking and displaying the expanded information in the one-dimensional array information.
2. The information presentation method according to claim 1, wherein the step of connecting the step information of the next level of the turn information by a turn polyline comprises:
a starting step and an ending step for acquiring step information of a next level of the round information;
connecting a turn polyline to the initiating step and the terminating step;
acquiring the number information of the starting step and the ending step;
and generating and displaying the display name of the turn information of the previous level according to the number information of the starting step and the ending step.
3. The information presentation method according to claim 1, wherein the step of connecting the step information of the next level of the turn information with the turn polyline is preceded by:
detecting whether the hierarchy of the turn information is a root node hierarchy;
when detecting that the hierarchy of the turn information is a root node hierarchy, executing a step of connecting step information of a next hierarchy of the turn information by a turn polyline;
when detecting that the hierarchy of the round information is not the root node hierarchy, acquiring target step information on the highest hierarchy subordinate to the round information in the hierarchical relationship;
generating virtual step information according to step information sequenced before the target step information;
adding the virtual step information to step information of a next level of the round information, and performing a step of connecting the step information of the next level of the round information with a round polyline.
4. The information display method according to any one of claims 1 to 3, wherein the step of displaying the extension information in the one-dimensional array information by marking comprises:
and carrying out thickening, color calibration and/or underlining treatment on the expanded information in the one-dimensional array information to mark and display.
5. The information presentation method according to any one of claims 1 to 3, characterized in that the method further comprises:
acquiring use case information, wherein the use case information comprises round information, step information and extension information;
and drawing the step tree according to the turn information, the step information and the expansion information according to a hierarchical relationship.
6. The information presentation method according to claim 5, wherein the step of drawing the round information, the step information, and the extended information into a step tree in a hierarchical relationship comprises:
acquiring step information of a next level of each round information, expanded information of the next level of each step information and a hierarchical relationship of the round information of the next level of each expanded information;
determining target round information with preset identification stored in the use case information, and determining the target round information as a root node level;
and drawing step information of a next level of each turn information, drawing extended information of the next level of each step information and drawing turn information of the next level of each extended information based on the root node level and the level relation until the case information is drawn completely, and generating a step tree.
7. The information presentation method of claim 6, wherein the step of mapping step information of a next level of each round information comprises:
sorting step information of a next level of each round information;
and generating corresponding number information according to the sorting sequence, and marking the starting step and the ending step of the sorted step information.
8. The information presentation method of claim 7, wherein the step of ordering step information of a next level of each round information comprises:
acquiring step information of a next level of each round information;
acquiring a step bidirectional linked list corresponding to the step information, wherein the step bidirectional linked list is used for recording the sequence relation between the step information;
and sorting the step information based on the step doubly linked list.
9. An information presentation device, comprising:
the step tree is formed by drawing round information, step information and expansion information in the use case information according to a hierarchical relationship;
the conversion unit is used for converting the step tree into one-dimensional array information according to the hierarchical relationship, and the one-dimensional array information is used for displaying the round information, the step information and the expansion information;
the retraction unit is used for performing layer-by-layer retraction processing on the one-dimensional array information according to the priority sequence of the hierarchical relationship from high to low;
a connecting unit for connecting step information of a next level of the round information with a round polyline for folding or unfolding the step information;
and the display unit is used for marking and displaying the expanded information in the one-dimensional array information.
10. The information presentation device of claim 9, wherein the connection unit comprises:
a first acquisition subunit configured to acquire a start step and an end step of step information of a next level of the round information;
a connection subunit for connecting the turn polyline to the starting step and the terminating step;
the second acquisition subunit is used for acquiring the number information of the starting step and the ending step;
and the generating subunit is used for generating and displaying the display name of the turn information of the previous level according to the number information of the starting step and the ending step.
11. The information presentation device of claim 9, further comprising a detection unit for:
detecting whether the hierarchy of the turn information is a root node hierarchy;
when detecting that the hierarchy of the turn information is a root node hierarchy, executing a step of connecting step information of a next hierarchy of the turn information by a turn polyline;
when detecting that the hierarchy of the round information is not the root node hierarchy, acquiring target step information on the highest hierarchy subordinate to the round information in the hierarchical relationship;
generating virtual step information according to step information sequenced before the target step information;
adding the virtual step information to step information of a next level of the round information, and performing a step of connecting the step information of the next level of the round information with a round polyline.
12. The information presentation device of any one of claims 9 to 11, wherein the display unit is configured to:
and carrying out thickening, color calibration and/or underlining treatment on the expanded information in the one-dimensional array information to mark and display.
13. The information presentation device according to any one of claims 9 to 11, wherein the device further comprises:
a third obtaining unit, configured to obtain use case information, where the use case information includes round information, step information, and extension information;
and the drawing unit is used for drawing the step tree by the round information, the step information and the expansion information according to a hierarchical relationship.
14. The information presentation device of claim 13, wherein the drawing unit comprises:
the acquisition subunit acquires step information of a next level of each round information, extended information of the next level of each step information and a hierarchical relationship of the round information of the next level of each extended information;
the determining subunit is used for determining target round information in which preset identification is stored from the use case information, and determining the target round information as a root node hierarchy;
and the drawing subunit is used for drawing step information of a next level of each turn information, drawing extended information of the next level of each step information and drawing turn information of the next level of each extended information based on the root node level and the level relation until the case information is drawn completely, and generating a step tree.
15. A computer-readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the information presentation method of any one of claims 1 to 8.
CN202011123990.XA 2020-10-20 2020-10-20 Information display method and device and computer readable storage medium Pending CN114385152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011123990.XA CN114385152A (en) 2020-10-20 2020-10-20 Information display method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011123990.XA CN114385152A (en) 2020-10-20 2020-10-20 Information display method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114385152A true CN114385152A (en) 2022-04-22

Family

ID=81193721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011123990.XA Pending CN114385152A (en) 2020-10-20 2020-10-20 Information display method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114385152A (en)

Similar Documents

Publication Publication Date Title
CN106775637B (en) Page display method and device for application program
CN106406712B (en) Information display method and device
CN104852885B (en) Method, device and system for verifying verification code
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN110020293B (en) Multimedia data display method, device and storage medium
WO2017084452A1 (en) Method and apparatus for processing tag page in graphical interface
US20180293210A1 (en) Method and device for processing web page content
CN107766548B (en) Information display method and device, mobile terminal and readable storage medium
US20160099897A1 (en) Information sharing method and electronic device thereof
JP6910300B2 (en) A method for displaying chat history records and a device for displaying chat history records
KR101813437B1 (en) Method and system for collecting statistics on streaming media data, and related apparatus
WO2014169669A1 (en) Method and apparatus for processing reading history
CN105868319B (en) Webpage loading method and device
CN108769822B (en) Video display method and terminal equipment
CN112084747A (en) Resource management method and device, electronic equipment and storage medium
CN112749074B (en) Test case recommending method and device
CN105653112B (en) Method and device for displaying floating layer
CN111966436A (en) Screen display control method and device, terminal equipment and storage medium
CN105631059B (en) Data processing method, data processing device and data processing system
CN105095161B (en) Method and device for displaying rich text information
CN105335434B (en) Log management method and device and electronic equipment
CN103488720A (en) Method, system and client for viewing data
CN104123308B (en) Webpage generating method and auto-building html files device
CN110196662B (en) Method, device, terminal and storage medium for displaying synchronization state
CN106775745B (en) Method and device for merging program codes

Legal Events

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