CN109657201B - Typesetting display method and device for elements, electronic equipment and storage medium - Google Patents

Typesetting display method and device for elements, electronic equipment and storage medium Download PDF

Info

Publication number
CN109657201B
CN109657201B CN201710934763.7A CN201710934763A CN109657201B CN 109657201 B CN109657201 B CN 109657201B CN 201710934763 A CN201710934763 A CN 201710934763A CN 109657201 B CN109657201 B CN 109657201B
Authority
CN
China
Prior art keywords
typesetting
elements
determining
positions
display interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710934763.7A
Other languages
Chinese (zh)
Other versions
CN109657201A (en
Inventor
徐春雨
韩炳权
陈可楠
吴飏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201710934763.7A priority Critical patent/CN109657201B/en
Publication of CN109657201A publication Critical patent/CN109657201A/en
Application granted granted Critical
Publication of CN109657201B publication Critical patent/CN109657201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification

Abstract

The embodiment of the invention provides a typesetting display method and device of elements, electronic equipment and a storage medium, wherein the method comprises the following steps: determining the latest selected first element; determining typesetting positions of the first elements on a display interface; generating a typesetting effect diagram showing the typesetting position of the first element on the display interface based on the typesetting position; and displaying the typesetting effect diagram on a selection interface of the first element. The method provided by the embodiment of the invention can realize the typesetting effect of the real-time display elements when the elements are selected, and improve the user experience.

Description

Typesetting display method and device for elements, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for typesetting and displaying elements, an electronic device, and a storage medium.
Background
With the rapid development of computer technology, networks have become an integral part of people's daily lives. People conduct office work, entertainment, shopping, social contact and the like through a network, and in each application scene, a user needs to select elements, wherein the selection of the elements can be expressed as follows: when a user works by making demonstration documents, when the demonstration documents are sequentially arranged, the sequence of each document needs to be selected; when a user uses social software to conduct network social contact and wants to share photos posted on a website with other people, the sequencing of photo posting needs to be selected; when a user shops on a shopping website, in a shopping list, the ordering sequence of purchased commodities is required to be selected, and the ordering sequence can be called as the selection of elements, wherein the elements can represent any kind of things which need to be selected by the user, when the user selects a plurality of elements at one time, the arrangement sequence of the elements is more concerned, and the arrangement sequence of the elements can be adjusted according to actual requirements.
In the prior art, when a user selects an element and confirms the selection, a typesetting effect diagram of the element can be seen, and taking the example that the user publishes pictures on a social network site, as shown in fig. 1, the selection process of 9 pictures is shown in fig. 1, the selection sequence is respectively shown as 1,2,3,4,5,6,7,8 and 9 in turn according to the reference numerals in the figure, and after each element selection, the number appearing in the pictures represents the number of the selected pictures; fig. 2 shows a layout effect diagram after clicking is completed according to the selection shown in fig. 1, and 9 pictures are arranged in order from left to right and from top to bottom according to the selection of the user.
In the existing element typesetting display method, only after a user selects an element and confirms the selection, the typesetting effect diagram of the element can be seen, the typesetting result can not be displayed in real time, when the user wants to add or delete one element, the typesetting effect can not be known in real time, and after the selection is confirmed again, the typesetting effect of the element can be known.
Disclosure of Invention
The embodiment of the invention aims to provide a typesetting display method and device for elements, electronic equipment and a storage medium, so that typesetting effect of the elements is displayed in real time when the elements are selected, and user experience is improved. The specific technical scheme is as follows:
The embodiment of the invention provides a typesetting display method of elements, which comprises the following steps:
determining the latest selected first element;
determining typesetting positions of the first elements on a display interface;
generating a typesetting effect diagram showing the typesetting position of the first element on the display interface based on the typesetting position;
and displaying the typesetting effect diagram on a selection interface of the first element.
Specifically, the determining the typesetting position of the first element on the display interface includes:
determining the sequence positions of the first elements in all selected elements according to the selection sequence;
and determining the typesetting position corresponding to the first element as the typesetting position on the display interface according to the corresponding relation between the preset sequence position and the typesetting position.
Specifically, the determining the typesetting position of the first element on the display interface includes:
determining the number of elements of all selected elements;
determining typesetting formats corresponding to the element numbers of all selected elements according to the corresponding relation between the preset element numbers and the typesetting formats;
and determining typesetting positions of the first elements on a display interface according to the determined typesetting format.
Specifically, the determining the typesetting position of the first element on the display interface includes:
determining the sequence positions of the first elements in all selected elements according to the selection sequence;
determining the number of elements of all selected elements;
determining typesetting formats corresponding to the element numbers of all selected elements according to the corresponding relation between the preset element numbers and the typesetting formats;
and determining the typesetting position corresponding to the sequence position of the first element arranged according to the selection sequence in all the selected elements according to the corresponding relation between the preset sequence position and the typesetting position, and taking the typesetting position as the typesetting position for typesetting according to the determined typesetting format on the display interface.
Specifically, the method further comprises the following steps:
determining typesetting positions of other elements in all selected elements on a display interface according to the determined typesetting format;
generating a new typesetting effect diagram showing typesetting positions of other elements on a display interface according to the determined typesetting format based on the typesetting positions of the other elements;
and replacing the original typesetting effect diagram of the other elements displayed on the selection interface by using the new typesetting effect diagram of the other elements.
Specifically, the method further comprises the following steps:
determining revoked elements in all selected elements;
determining typesetting positions of the remaining selected elements on a display interface;
generating a new typesetting effect diagram showing the typesetting positions of the remaining selected elements on the display interface based on the typesetting positions;
and replacing the original typesetting effect diagram of the remaining selected elements displayed on the selection interface by using the new typesetting effect diagram of the remaining selected elements.
Specifically, the determining the typesetting position of the remaining selected elements on the display interface includes:
determining the number of elements of the remaining selected elements;
determining the typesetting format corresponding to the number of the elements of the remaining selected elements according to the corresponding relation between the number of the preset elements and the typesetting format;
and determining typesetting positions of the rest selected elements on the display interface according to the determined typesetting format.
Specifically, the determining the typesetting position of the remaining selected elements on the display interface includes:
determining the sequential positions of the remaining selected elements before the elements are revoked;
and determining typesetting positions of the remaining selected elements according to the corresponding relation between the preset sequence positions and the typesetting positions.
Specifically, after determining the revoked elements in all the selected elements, the method further includes:
determining the newly selected second element;
determining typesetting positions of the second elements on a display interface;
generating a typesetting effect diagram showing the typesetting position of the second element on the display interface based on the typesetting position;
and displaying the typesetting effect graph showing the typesetting position of the second element on the display interface on a selection interface of the second element.
Specifically, the determining the typesetting position of the second element on the display interface includes:
determining the rest typesetting positions except for the typesetting positions of the rest selected elements on the display interface;
determining the sequence position of the second element in all selected elements;
and determining the typesetting position of the second element in the rest typesetting positions according to the occupied sequence of the typesetting positions according to the determined sequence positions.
Specifically, the displaying the typesetting effect diagram on the selection interface of the first element includes:
and displaying the typesetting effect diagram on the upper layer of the current element on the selection interface of the first element.
The embodiment of the invention also provides a typesetting display device of the elements, which comprises:
a first element determining module for determining the latest selected first element;
the first position determining module is used for determining typesetting positions of the first elements on the display interface;
the first effect diagram generating module is used for generating a typesetting effect diagram which reflects the typesetting position of the first element on the display interface based on the typesetting position;
and the first display module is used for displaying the typesetting effect diagram on the selection interface of the first element.
The first position determining module is specifically configured to determine sequential positions of the first element in all selected elements according to a selection sequence;
and determining the typesetting position corresponding to the first element as the typesetting position on the display interface according to the corresponding relation between the preset sequence position and the typesetting position.
Specifically, the first position determining module is specifically configured to determine the number of elements of all the selected elements;
determining typesetting formats corresponding to the element numbers of all selected elements according to the corresponding relation between the preset element numbers and the typesetting formats;
And determining typesetting positions of the first elements on a display interface according to the determined typesetting format.
The first position determining module is specifically configured to determine sequential positions of the first element in all selected elements according to a selection sequence;
determining the number of elements of all selected elements;
determining typesetting formats corresponding to the element numbers of all selected elements according to the corresponding relation between the preset element numbers and the typesetting formats;
and determining the typesetting position corresponding to the sequence position of the first element arranged according to the selection sequence in all the selected elements according to the corresponding relation between the preset sequence position and the typesetting position, and taking the typesetting position as the typesetting position for typesetting according to the determined typesetting format on the display interface.
Specifically, the device further comprises:
the other element position determining module is used for determining typesetting positions of other elements in all selected elements on the display interface according to the determined typesetting format;
the other element effect diagram generating module is used for generating a new typesetting effect diagram which reflects the typesetting position of the other elements typeset on the display interface according to the determined typesetting format based on the typesetting position of the other elements;
And the other element display module is used for replacing the original typesetting effect diagram of the other elements displayed on the selection interface by using the new typesetting effect diagram of the other elements.
Specifically, the device further comprises:
the revocation element determining module is used for determining revoked elements in all selected elements;
the residual element position determining module is used for determining typesetting positions of the residual selected elements on the display interface;
the residual element effect diagram generating module is used for generating a new typesetting effect diagram which reflects the typesetting position of the residual selected elements on the display interface based on the typesetting position;
and the residual element display module is used for replacing the original typesetting effect diagram of the residual selected element displayed on the selection interface by using the new typesetting effect diagram of the residual selected element.
The residual element position determining module is specifically used for determining the number of elements of the residual selected elements;
determining the typesetting format corresponding to the number of the elements of the remaining selected elements according to the corresponding relation between the number of the preset elements and the typesetting format;
and determining typesetting positions of the rest selected elements on the display interface according to the determined typesetting format.
The residual element position determining module is specifically used for determining the sequential positions of the residual selected elements before the elements are withdrawn;
and determining typesetting positions of the remaining selected elements according to the corresponding relation between the preset sequence positions and the typesetting positions.
Specifically, the device further comprises:
a second element determining module for determining the newly selected second element;
the second position determining module is used for determining the typesetting position of the second element on the display interface;
the second effect diagram generating module is used for generating a typesetting effect diagram which reflects the typesetting position of the second element on the display interface based on the typesetting position;
and the second display module is used for displaying the typesetting effect graph which represents the typesetting position of the second element on the display interface on the selection interface of the second element.
The second position determining module is specifically configured to determine a remaining typesetting position except for the typesetting position of the remaining selected element on the display interface;
determining the sequence position of the second element in all selected elements;
and determining the typesetting position of the second element in the rest typesetting positions according to the occupied sequence of the typesetting positions according to the determined sequence positions.
The first display module is specifically configured to display the typesetting effect diagram on an upper layer of the first element on the selection interface.
The embodiment of the invention provides electronic equipment, which comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions which can be executed by the processor, and when the processor executes the machine-executable instructions, the typesetting display method steps of the elements are realized.
The embodiment of the invention provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and the computer program realizes the typesetting display method steps of the elements when being executed by a processor.
The typesetting display method, the typesetting display device, the electronic equipment and the storage medium for the elements can realize the typesetting effect of displaying the elements in real time after the elements are selected. Firstly, determining a current element selected by a user; determining the typesetting position of the current element on the display interface, generating a typesetting effect diagram capable of reflecting the current element on the display interface according to the typesetting position of the current element, wherein the typesetting effect diagram comprises the typesetting position of the current element on the display interface, and displaying the typesetting effect diagram on the display interface, so that a user can see the display element and can see the typesetting effect of the current element. The method provided by the embodiment of the invention can realize that the typesetting effect of the elements is displayed on the display interface of the elements after the elements are selected, so that a user can intuitively know the typesetting effect of the current elements through the typesetting effect diagram, and the user experience is improved. Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the above advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a sequence diagram of the selection of pictures in the prior art;
FIG. 2 is a diagram of a typesetting effect of the picture corresponding to FIG. 1;
FIG. 3 is a flowchart of a typesetting display method of elements provided in an embodiment of the present invention;
FIG. 4 is a flowchart of another typesetting display method of an element according to an embodiment of the present invention;
FIG. 5 is a flowchart of another method for typesetting and displaying elements according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a correspondence relationship between a preset number of elements and a typesetting format according to an embodiment of the present invention;
FIG. 7 is a flowchart of a typesetting display method of another element according to an embodiment of the present invention;
FIG. 8 is a flowchart of a typesetting display method of another element according to an embodiment of the present invention;
FIG. 9a is a diagram of typesetting formats before the current element is not selected and typesetting effects of other elements according to an embodiment of the present invention;
FIG. 9b is a new layout effect diagram of layout positions of other elements laid out according to the determined layout format after determining the currently selected element according to the embodiment of the present invention;
FIG. 10 is a flowchart of a typesetting display method of yet another element according to an embodiment of the present invention;
FIG. 11 is a flowchart of a typesetting display method of another element according to an embodiment of the present invention;
FIG. 12a is a schematic diagram of a typesetting format provided in an embodiment of the present invention;
FIG. 12b is a schematic diagram of typesetting formats of the remaining selected elements according to an embodiment of the present invention;
FIG. 13 is a flowchart of a typesetting display method of yet another element according to an embodiment of the present invention;
FIG. 14a is a schematic diagram of another typesetting format provided by an embodiment of the present invention;
fig. 14b is a schematic diagram of a typesetting format after the revocation selection according to the embodiment of the present invention;
FIG. 15 is a flowchart of a typesetting display method of yet another element according to an embodiment of the present invention;
FIG. 16 is a flowchart of a method for typesetting display of yet another element provided by an embodiment of the present invention;
FIG. 17a is a schematic diagram of typesetting positions of remaining selected elements on a display interface according to an embodiment of the present invention;
FIG. 17b is a schematic diagram of a typesetting position of a second element on a display interface according to an embodiment of the present invention;
FIG. 18 is a schematic diagram showing a typesetting effect diagram according to an embodiment of the present invention;
FIG. 19 is a schematic diagram showing the effect of the method according to the embodiment of the present invention in practical application;
fig. 20 is a schematic diagram of a device structure of a typesetting display device for elements according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention provides a typesetting display method of elements, which is shown in fig. 3, and specifically comprises the following steps:
step 301, determining the latest selected first element.
Step 302, determining typesetting positions of the first elements on the display interface.
And 303, generating a typesetting effect diagram showing the typesetting position of the first element on the display interface based on the typesetting position.
And 304, displaying the typesetting effect diagram on a selection interface of the first element.
The typesetting display method of the elements provided by the embodiment of the invention can realize the typesetting effect of displaying the elements in real time after the elements are selected. Firstly, determining a first element selected by a user; determining the typesetting position of the first element on the display interface, generating a typesetting effect diagram capable of reflecting the typesetting position of the first element on the display interface according to the typesetting position, wherein the typesetting effect diagram comprises the typesetting position of the first element on the display interface, and displaying the typesetting effect diagram on the selection interface, so that a user can see the typesetting effect of the first element while seeing the display of the first element. The method provided by the embodiment of the invention can realize that the typesetting effect of the elements is displayed on the selection interface of the elements in real time after the elements are selected, so that a user can intuitively know the typesetting effect of the elements through the typesetting effect diagram, and the user experience is improved.
For the above step 302, in one example, the following manner may be specifically adopted, and the flow is shown in fig. 4:
step 401, determining the latest selected first element.
The method provided by the embodiment of the invention can be applied to processors of mobile terminals, desktop computers, portable computers and the like, and can be particularly applied to social entertainment, video monitoring, word office and the like. The processor first determines the newly selected first element, wherein the first element may be any newly selected element by the user, the user may select the element through a touch screen or an external input device, such as a mouse, keyboard, etc., and the processor may determine the selected element through a sensor.
Step 402, determining the sequence position of the first element in the selected sequence among all the selected elements.
Before determining the newly selected first element, there may be other elements that have been selected, and the sequential position of the first element in the selected order among all the selected elements is determined, for example, if there are 5 elements that have been currently selected, the sequential position of the first element is 6.
Step 403, determining the typesetting position corresponding to the first element as the typesetting position on the display interface according to the corresponding relation between the preset sequence position and the typesetting position.
After determining the sequence position of the first element, the corresponding relation between the preset sequence position and the typesetting position can be defined according to the user requirement, for example, when the sequence position of the first element is 4, the typesetting position is the 4 th position of the sequence position from left to right and from top to bottom on the display interface; and when the sequence position of the first element is 8, the typesetting position is the 1 st position of the sequence position from left to right and from top to bottom on the display interface, and the corresponding relation between the preset sequence position and the typesetting position is not only one, but also can be changed according to the requirements of users and practical application.
And 404, generating a typesetting effect diagram showing the typesetting position of the first element on the display interface based on the typesetting position.
After the typesetting position of the first element is obtained, generating a typesetting effect diagram according to the obtained typesetting position, wherein the typesetting effect diagram represents the typesetting position of the first element on the display interface, for example, when the sequence position of the first element is 4, the typesetting position is the 4 th position of the sequence position on the display interface, and then the typesetting effect diagram capable of representing the typesetting position of the first element can be generated.
And 405, displaying the typesetting effect diagram on a selection interface.
After the typesetting effect diagram is generated, the typesetting effect diagram is displayed on a selection interface, so that a user can see the typesetting position of the first element.
The typesetting display method of the elements provided by the embodiment of the invention can realize the typesetting effect of displaying the elements in real time after the elements are selected. First determining the latest selected first element; determining the sequence positions of the first elements in all selected elements according to the selection sequence, and displaying the typesetting effect diagram on the selection interface by the corresponding relation between the preset sequence positions and the typesetting positions, wherein the corresponding relation between the preset sequence positions and the typesetting positions can be defined according to actual application and user requirements, and after determining the typesetting positions of the first elements based on the corresponding relation between the sequence positions and the typesetting positions, generating the typesetting effect diagram capable of reflecting the typesetting positions of the first elements on the display interface, and displaying the typesetting effect diagram on the selection interface so that a user can see the typesetting effect of the first elements in real time. The method provided by the embodiment of the invention can realize that the typesetting effect of the elements is displayed on the selection interface of the elements after the elements are selected, so that a user can intuitively know the typesetting effect of the elements through the typesetting effect diagram, and the user experience is improved.
For the above step 302, in another example, the following manner may be specifically adopted, and the flow is shown in fig. 5:
step 501, determining the latest selected first element.
Step 502, determining the number of elements of all the selected elements.
After the most recently selected first element is determined, the number of all selected elements is determined, for example, 5 currently selected elements are before the most recently selected first element is determined, and after the most recently selected first element is determined, at this time, the number of elements of all selected elements is 6.
Step 503, determining the typesetting format corresponding to the element numbers of all the selected elements according to the corresponding relation between the preset element numbers and the typesetting format.
After determining the number of all selected elements, according to the corresponding relation between the number of preset elements and the typesetting format, wherein the corresponding relation between the number of preset elements and the typesetting format can be set according to the requirements of users and actual applications, for example, when only 1 element exists, the corresponding relation between the number of elements and the typesetting format can be 1 square lattice; when 2 elements exist, the typesetting format is 4 square grids; when 5 elements exist, the typesetting format is 9 palace, etc., so the typesetting format corresponding to the element numbers of all the selected elements can be determined according to the number of all the selected elements and the corresponding relation between the preset element numbers and the typesetting format.
Step 504, determining typesetting positions of the first elements on the display interface according to the determined typesetting format.
After the typesetting formats corresponding to the element numbers of all the selected elements are obtained, typesetting positions of the first elements on the display interface according to the determined typesetting formats can be determined. For example, when all the selected elements have 5 elements, according to the corresponding relation between the preset number of elements and the typesetting format, the typesetting format may be 9 boxes, and the typesetting position of the currently latest selected first element is the position where the 1 st row and the 3 rd column of the 9 boxes are located, and the schematic diagram is shown in fig. 6.
And 505, generating a typesetting effect diagram showing the typesetting position of the first element on the display interface based on the typesetting position.
After the typesetting position of the first element is obtained, according to the typesetting position, a typesetting effect diagram is generated, where the typesetting effect diagram represents the typesetting position of the first element in the corresponding typesetting format on the display interface, for example, according to the example in step 504, 9 Gong Getu may be generated as the typesetting effect diagram of the first element.
And 506, displaying the typesetting effect diagram on a selection interface.
After the typesetting effect diagram is generated, the typesetting effect diagram is displayed on a selection interface, so that a user can see the typesetting effect of the first element.
The typesetting display method of the elements provided by the embodiment of the invention can realize the typesetting effect of displaying the elements in real time after the elements are selected. Firstly, determining the latest selected first elements, determining the number of elements of all selected elements, determining the typesetting format corresponding to the number of elements of all selected elements according to the corresponding relation between the preset number of elements and the typesetting format, wherein the corresponding relation between the preset number of elements and the typesetting format can be set according to actual application and user requirements, determining the typesetting position of the first elements typesetting on a display interface according to the determined typesetting format, generating an typesetting effect diagram showing the typesetting position of the first elements on the display interface based on the typesetting position, and displaying the typesetting effect diagram on the selection interface.
Different typesetting formats can be obtained according to different element numbers through the corresponding relation between the preset element numbers and the typesetting formats, so that the typesetting display method of the elements is more flexible and changeable. The method provided by the embodiment of the invention can realize that the typesetting effect of the elements is displayed on the selection interface of the elements in real time after the elements are selected, so that a user can intuitively know the typesetting effect of the currently latest selected elements through the typesetting effect diagram, and the user experience is improved.
For the above step 302, in another example, the following manner may be specifically adopted, and the flow is shown in fig. 7:
step 701, determining the latest selected first element.
Step 702, determining the number of elements of all the selected elements.
Step 703, determining the typesetting format corresponding to the element numbers of all the selected elements according to the corresponding relation between the preset element numbers and the typesetting format.
Step 704, determining the typesetting position corresponding to the sequence position of the first element arranged according to the selection sequence in all the selected elements according to the corresponding relation between the preset sequence position and the typesetting position, and taking the typesetting position as the typesetting position for typesetting according to the determined typesetting format on the display interface.
When the typesetting format corresponding to the number of elements of all the selected elements is obtained, determining the sequence position of the newly selected first element in all the selected elements according to the selection sequence, and after determining the sequence position of the first element, according to the corresponding relation between the preset sequence position and the typesetting position, for example, when the sequence position of the first element is 4, the typesetting position is the 4 th position of the sequence position from left to right and from top to bottom on the display interface, thereby obtaining the typesetting position corresponding to the sequence position of the first element in all the selected elements according to the selection sequence, and taking the typesetting position as the typesetting position for typesetting according to the typesetting format determined in step 703 on the display interface.
Step 705, generating a typesetting effect diagram showing the typesetting position of the first element on the display interface based on the typesetting position.
And 706, displaying the typesetting effect diagram on a selection interface.
The typesetting display method of the elements provided by the embodiment of the invention can realize the typesetting effect of displaying the elements in real time after the elements are selected. Determining the latest selected first elements, determining the number of elements of all selected elements, determining the typesetting format corresponding to the number of elements of all selected elements according to the corresponding relation between the preset number of elements and the typesetting format, wherein the corresponding relation between the preset number of elements and the typesetting format can be set according to actual application and user requirements, and determining the typesetting position corresponding to the sequence position of the first elements arranged according to the selection sequence in all selected elements based on the corresponding relation between the preset sequence position and the typesetting position as the typesetting position for typesetting according to the determined typesetting format on a display interface, and displaying the typesetting effect graph on the selection interface, so that a user can see the typesetting effect of the first elements in real time. The selection interface and the display interface of the element may be the same interface or different interfaces, for example, in the video monitoring field, the selection interface and the display interface are the same interface, and in the social network platform, the selection interface and the display interface are different interfaces.
Through the corresponding relation between the number of the preset elements and the typesetting format and the corresponding relation between the preset sequence positions and the typesetting positions, different typesetting formats can be obtained according to different element numbers, and all the currently selected elements have different typesetting positions according to different typesetting formats, so that the typesetting display method of the elements has flexibility.
The typesetting display method of the elements provided by the invention is described in detail below with specific embodiments in conjunction with the accompanying drawings.
The embodiment of the invention also provides a typesetting display method of the elements, as shown in fig. 8, which specifically comprises the following steps:
step 801, determining the latest selected first element.
Step 802, determining the number of elements of all the selected elements.
Step 803, determining the typesetting format corresponding to the element numbers of all the selected elements according to the corresponding relation between the preset element numbers and the typesetting format.
Step 804, determining typesetting positions of other elements in all selected elements on the display interface according to the determined typesetting format.
After the typesetting effect graphs of all the selected elements are displayed on the selection interface, the typesetting effect graphs of other elements except the newly selected first element in all the selected elements also need to be processed. And determining typesetting positions of other elements in all selected elements on the display interface according to the typesetting format determined in step 803, for example, when the number of elements in all selected elements is 5, the number of elements before the first element is not selected is 4, after the first element is determined, according to the corresponding relation between the preset number of elements and the typesetting format, the current typesetting format may be changed, the original 4 square grids are changed into 9 square grids, and other elements except the newly selected first element are typeset on the display interface according to the determined new typesetting format.
And 805, generating a new typesetting effect diagram which reflects typesetting positions of other elements on the display interface according to the determined typesetting format based on the typesetting positions of other elements.
After determining the typesetting positions of other elements except the newly selected first element in all the selected elements on the display interface according to the determined typesetting format, generating a new typesetting effect diagram representing the typesetting positions of other elements on the display interface according to the determined typesetting format according to the typesetting positions of other elements, for example, when the number of elements of all the selected elements is 5, when the number of elements before the first element is not selected is 4, fig. 9a is the typesetting format before the first element is not selected and the typesetting effect diagram of other elements, and fig. 9b is the new typesetting effect diagram of the typesetting positions of other elements according to the determined typesetting format after the newly selected first element is determined.
Step 806, replacing the original typesetting effect diagram of the other elements displayed on the selection interface by using the new typesetting effect diagram of the other elements.
After the new typesetting effect diagram is generated, updating the original typesetting effect diagram of other elements displayed on the selection interface, and replacing the original typesetting effect diagram of other elements displayed on the selection interface by using the new typesetting effect diagram to display the original typesetting effect diagram on the selection interface.
In the embodiment of the invention, first, a first element selected by a user is determined; determining the typesetting position of the first element on the display interface, generating a typesetting effect diagram capable of reflecting the typesetting position of the first element on the display interface according to the typesetting position, wherein the typesetting effect diagram comprises the typesetting position of the first element on the display interface, displaying the typesetting effect diagram on the selection interface, changing the typesetting effect diagram of other elements in all selected elements according to the number of the currently selected elements, typesetting the other elements in all selected elements on the display interface according to the determined typesetting format, generating a new typesetting effect diagram reflecting the typesetting position of the other elements on the display interface according to the determined typesetting format, and displaying the new typesetting effect diagram on the selection interface by replacing the original typesetting effect diagram of the other elements displayed on the selection interface.
The embodiment of the invention also provides a typesetting display method of the elements, as shown in fig. 10, which specifically comprises the following steps:
step 1001, determining revoked elements in all selected elements.
Step 1002, determining typesetting positions of the remaining selected elements on the display interface.
Step 1003, generating a new typesetting effect diagram which reflects the typesetting positions of the rest selected elements on the display interface based on the typesetting positions.
Step 1004, replacing the original typesetting effect diagram of the remaining selected elements displayed on the selection interface by using the new typesetting effect diagram of the remaining selected elements.
In the embodiment of the invention, when the elements are withdrawn, the withdrawn elements in all the selected elements are determined, and accordingly, the rest selected elements and the typesetting positions of the rest elements on the display interface are determined, according to the typesetting positions, a new typesetting effect diagram showing the typesetting positions of the rest selected elements on the display interface is generated, and the original typesetting effect diagram of the rest selected elements displayed on the selection interface is replaced by the new typesetting effect diagram of the rest selected elements. When the elements are withdrawn and selected, the typesetting positions of the residual elements may change, the typesetting positions of the residual elements and the typesetting effect diagram generated according to the typesetting positions need to be updated, and the element display method is more flexible and reflects the typesetting change of the elements in real time.
In one example, for the above step 1002, the following manner may be specifically adopted, and the flow is shown in fig. 11:
step 1101, determining the number of elements of the remaining selected elements.
Step 1102, determining the typesetting format corresponding to the number of elements of the remaining selected elements according to the corresponding relation between the preset number of elements and the typesetting format.
And determining the typesetting format corresponding to the number of the elements of the remaining selected elements according to the corresponding relation between the number of the preset elements and the typesetting format. For example, when the number of elements is 10, the typesetting format corresponding to the preset number of elements 10 is 16 boxes, as shown in fig. 12 a. When 4 elements are withdrawn, the number of elements of the remaining selected elements is 6, and the corresponding typesetting format is changed from 16 boxes to 9 boxes, as shown in fig. 12 b.
Step 1103, determining typesetting positions of the remaining selected elements on the display interface according to the determined typesetting format.
After determining the typesetting format corresponding to the number of elements of the remaining selected elements, determining typesetting positions of the remaining selected elements according to the determined typesetting format, typesetting the remaining elements according to the typesetting format determined in step 1102, for example, when the number of elements of the remaining selected elements is 4, determining that the corresponding typesetting format is 4 square, typesetting the remaining elements in the 4 square, and obtaining typesetting positions of the remaining selected elements in the typesetting sequence from left to right and from top to bottom.
And 1104, generating a new typesetting effect diagram showing typesetting positions of the rest selected elements on the display interface based on the typesetting positions.
And generating a new typesetting effect diagram of the remaining selected elements based on the typesetting positions of the remaining selected elements, wherein the typesetting effect diagram reflects the typesetting positions of the remaining selected elements on the display interface according to the determined typesetting format.
Step 1105, replacing the original typesetting effect diagram of the remaining selected elements displayed on the selection interface by using the new typesetting effect diagram of the remaining selected elements.
After the new typesetting effect diagram is generated, updating the original typesetting effect diagram of the remaining selected elements displayed on the selection interface, and replacing the original typesetting effect diagram of the remaining selected elements displayed on the selection interface by using the new typesetting effect diagram.
In the embodiment of the invention, if all the selected elements are subjected to the selection, determining the number of elements of the remaining selected elements, determining the typesetting format corresponding to the number of elements of the remaining selected elements according to the corresponding relation between the preset number of elements and the typesetting format, typesetting the remaining selected elements according to the determined typesetting format to obtain the typesetting positions of the remaining selected elements, generating a new typesetting effect diagram showing the typesetting positions of the remaining selected elements on the display interface according to the determined typesetting format, and replacing the original typesetting effect diagram of the remaining selected elements displayed on the selection interface. The method provided by the embodiment can update the typesetting effect graph of the remaining selected elements in time when the elements are deselected, so that a user can perceive typesetting effect in time.
In another example, for the above step 1002, the following manner may be specifically adopted, and the flow is shown in fig. 13:
step 1301, determining the revoked elements in all the selected elements.
Step 1302, determining the sequential positions of the remaining selected elements before the elements are revoked.
Step 1303, determining typesetting positions of the remaining selected elements according to the corresponding relation between the preset sequence positions and the typesetting positions.
And 1304, generating a new typesetting effect diagram which reflects the typesetting positions of the rest selected elements on the display interface based on the typesetting positions.
Step 1305, replacing the original typesetting effect diagram of the remaining selected elements displayed on the selection interface by using the new typesetting effect diagram of the remaining selected elements.
In the embodiment of the invention, if all the selected elements have elements which are withdrawn, determining the sequence positions of the remaining selected elements before the elements are withdrawn, determining the typesetting positions of the remaining selected elements according to the corresponding relation between the preset sequence positions and the typesetting positions, and generating a new typesetting effect diagram showing the typesetting positions of the remaining selected elements on the display interface based on the typesetting positions. For example, when the number of elements is 10, the corresponding typesetting format is 16 boxes, and when the elements with the selection positions of 1,4,6,7,8 and 9 are withdrawn, although only 4 elements remain, the sequence positions of the remaining selected elements before the elements are withdrawn are 2,3,5 and 10, and the elements with the original number 10 still exist, so the typesetting format is still 16 boxes, as shown in fig. 14 a. Similarly, when the element with the position of 10 is withdrawn, the original element No. 5 still exists, and the typesetting format is 9 palace, as shown in FIG. 14 b. The method provided by the embodiment can update the typesetting effect graph of the remaining selected elements in time when the elements are deselected, so that a user can perceive typesetting effect in time.
After determining the revoked elements in all the selected elements, the following steps may be specifically performed, where the flow is shown in fig. 15:
step 1501, determining the most recently selected second element.
Step 1502, determining a typesetting position of the second element on the display interface.
And 1503, generating a typesetting effect diagram showing the typesetting position of the second element on the display interface based on the typesetting position.
Step 1504, displaying the typesetting effect diagram showing the typesetting position of the second element on the display interface on the selection interface of the second element.
In the embodiment of the invention, if all the selected elements are selected after the elements are withdrawn, a second element is selected, wherein the second element can be the same as or different from the first element selected by the user, when the user withdraws the selected first element by mistake, the first element can be reselected, at this time, the second element can be the same as the first element selected by the user, if the user wants to select a new element again after withdrawing the selection, at this time, the second element is different from the first element, after the newly selected second element is determined, the typesetting position of the second element on the display interface is determined, based on the typesetting position, a typesetting effect diagram showing the typesetting position of the second element on the display interface is generated, and the typesetting effect diagram showing the typesetting position of the second element on the display interface is displayed on the selection interface of the second element. The method provided by the embodiment can update the typesetting effect graphs of all the selected elements in time when the new elements are reselected after the elements are deselected, so that a user can perceive typesetting effects in time.
In one example, for the step 1502, the following manner may be specifically adopted, as shown in fig. 16:
step 1601, determining a newly selected second element.
Step 1602, determining the rest typesetting positions except the typesetting positions of the rest selected elements on the display interface.
Step 1603, determining the sequential position of the second element in all selected elements.
Step 1604, determining the typesetting position of the second element in the rest typesetting positions according to the occupied sequence of the typesetting positions.
Step 1605, generating a typesetting effect diagram representing the typesetting position of the second element on the display interface based on the typesetting position.
Step 1606, displaying the typesetting effect diagram representing the typesetting position of the second element on the display interface on the selection interface of the second element.
In the embodiment of the invention, if the elements in all the selected elements are withdrawn and then the second element is selected, the rest typesetting positions except the typesetting positions of the rest selected elements on the display interface are firstly determined, the sequence positions of the second element in all the selected elements are determined, the typesetting positions of the second element are determined according to the sequence occupied by the typesetting positions in the rest typesetting positions, and the typesetting effect diagram showing the typesetting positions of the second element on the display interface is generated based on the typesetting positions, so that the typesetting effect diagram showing the typesetting positions of the second element on the display interface is displayed on the selection interface of the second element. For example, when the positions of positions 1 and 4 are withdrawn, the typesetting positions of the remaining selected elements on the display interface are shown in fig. 17a, then there are 6 remaining typesetting positions, and when the second element is selected, the typesetting positions of the second element are determined according to the occupied sequence of the typesetting positions in the remaining typesetting positions, and the second element can be arranged in the original position 1, which is shown by 6 in fig. 17 b. The method provided by the embodiment can update the typesetting effect graphs of all the selected elements in time when the new elements are reselected after the elements are deselected, so that a user can perceive typesetting effects in time.
The typesetting display method of the elements provided by the embodiment of the invention can specifically further comprise the following steps: and displaying the typesetting effect diagram on the upper layer of the first element on the selection interface. After the typesetting effect diagram is generated, the typesetting effect diagram and the first element are displayed on the selection interface at the same time, the typesetting effect diagram is displayed on the upper layer of the current element, fig. 18 is a display schematic diagram of the typesetting effect diagram, the display element in the diagram is 1801, the typesetting effect diagram is 1802, the position of the typesetting effect diagram on the upper layer can be adjusted, the typesetting effect diagram in the diagram is displayed on the lower right corner of the element, the typesetting effect diagram is displayed on the upper layer of the first element on the display interface, the typesetting effect of the first element can be visually seen, and the user can adjust the display element according to the typesetting effect diagram.
The method provided by the embodiment of the invention applies a typesetting effect display diagram in practical application, as shown in fig. 19, 8 selected elements in the diagram are respectively an element P1, an element P2, an element P3, an element P4, an element P5, an element P6, an element P7 and an element P8, wherein the 8 elements are arranged according to the sequence of selection from 1 to 8, when each element is selected, the typesetting effect diagram corresponding to the element is displayed on the upper layer of the element, and when the element P1 is taken as an example, as shown in the typesetting effect diagram 1901 of the element P1 in fig. 19, a symbol 1902 in the typesetting effect diagram 1901 is the typesetting position of the element on an element display interface, and the typesetting effect diagram of the other elements is the same as the display method of the element P1.
The embodiment of the invention provides a typesetting display device of elements, the structural schematic diagram of the device is shown in fig. 19, and the typesetting display device comprises:
a first element determining module 2001 for determining the latest selected first element;
a first position determining module 2002 for determining a typesetting position of the first element on the display interface;
a first effect diagram generating module 2003, configured to generate a typesetting effect diagram that represents a typesetting position of the first element on the display interface based on the typesetting position;
a first display module 2004 for displaying the typesetting effect diagram on the selection interface of the first element.
Specifically, the first position determining module 2002 is specifically configured to determine an order position of the first element in all the selected elements according to the selection order;
and determining the typesetting position corresponding to the first element as the typesetting position on the display interface according to the corresponding relation between the preset sequence position and the typesetting position.
Specifically, the first position determining module 2002 is specifically configured to determine the number of elements of all the selected elements;
determining typesetting formats corresponding to the element numbers of all selected elements according to the corresponding relation between the preset element numbers and the typesetting formats;
And determining typesetting positions of the first elements on the display interface according to the determined typesetting format.
Specifically, the first position determining module 2002 is specifically configured to determine an order position of the first element in all the selected elements according to the selection order;
determining the number of elements of all selected elements;
determining typesetting formats corresponding to the element numbers of all selected elements according to the corresponding relation between the preset element numbers and the typesetting formats;
and determining the typesetting position corresponding to the sequence position of the first element arranged according to the selection sequence in all the selected elements according to the corresponding relation between the preset sequence position and the typesetting position, and taking the typesetting position as the typesetting position for typesetting according to the determined typesetting format on the display interface.
Specifically, the device further comprises:
the other element position determining module is used for determining typesetting positions of other elements in all selected elements on the display interface according to the determined typesetting format;
the other element effect diagram generating module is used for generating a new typesetting effect diagram which represents the typesetting position of other elements on the display interface according to the determined typesetting format based on the typesetting position of other elements;
And the other element display module is used for replacing the original typesetting effect diagram of the other elements displayed on the selection interface by using the new typesetting effect diagram of the other elements.
Specifically, the device further comprises:
the revocation element determining module is used for determining revoked elements in all selected elements;
the residual element position determining module is used for determining typesetting positions of the residual selected elements on the display interface;
the residual element effect diagram generating module is used for generating a new typesetting effect diagram which reflects the typesetting position of the residual selected elements on the display interface based on the typesetting position;
and the residual element display module is used for replacing the original typesetting effect diagram of the residual selected elements displayed on the selection interface by using the new typesetting effect diagram of the residual selected elements.
The residual element position determining module is specifically used for determining the number of elements of the residual selected elements;
determining the typesetting format corresponding to the number of the elements of the remaining selected elements according to the corresponding relation between the number of the preset elements and the typesetting format;
and determining typesetting positions of the rest selected elements on the display interface according to the determined typesetting format.
The device comprises a residual element position determining module, a residual element position determining module and a residual element position determining module, wherein the residual element position determining module is particularly used for determining the sequential positions of the residual selected elements before the elements are withdrawn;
And determining typesetting positions of the remaining selected elements according to the corresponding relation between the preset sequence positions and the typesetting positions.
Specifically, the device further comprises:
a second element determining module for determining the newly selected second element;
the second position determining module is used for determining the typesetting position of the second element on the display interface;
the second effect diagram generating module is used for generating a typesetting effect diagram which reflects the typesetting position of the second element on the display interface based on the typesetting position;
and the second display module is used for displaying the typesetting effect graph which represents the typesetting position of the second element on the display interface on the selection interface of the current element.
The second position determining module is specifically used for determining the rest typesetting positions except the typesetting positions of the rest selected elements on the display interface;
determining the sequential position of the second element in all selected elements;
and determining the typesetting position of the second element in the rest typesetting positions according to the occupied sequence of the typesetting positions according to the determined sequence positions.
The first display module is specifically configured to display the typesetting effect diagram on an upper layer of the first element on the selection interface.
An embodiment of the present invention provides an electronic device, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions capable of being executed by the processor, where the processor executes the machine-executable instructions to cause implementation of the steps of the typesetting display method of elements described in the embodiment of fig. 3, the embodiment of fig. 4, the embodiment of fig. 5, the embodiment of fig. 7, and the embodiment of fig. 8.
The electronic equipment provided by the embodiment of the invention can realize the typesetting effect of the real-time display elements after the elements are selected. Firstly, determining a current element selected by a user; determining the typesetting position of the current element on the display interface, generating a typesetting effect diagram capable of reflecting the current element on the display interface according to the typesetting position of the current element, wherein the typesetting effect diagram comprises the typesetting position of the current element on the display interface, and displaying the typesetting effect diagram on the display interface, so that a user can see the display element and can see the typesetting effect of the current element. The method provided by the embodiment of the invention can realize that the typesetting effect of the elements is displayed on the display interface of the elements after the elements are selected, so that a user can intuitively know the typesetting effect of the current elements through the typesetting effect diagram, and the user experience is improved.
The embodiment of the invention provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and when the computer program is executed by a processor, the typesetting display method steps of the elements are realized.
The computer readable storage medium provided by the embodiment of the invention can realize the typesetting effect of the real-time display elements after the elements are selected. Firstly, determining a current element selected by a user; determining the typesetting position of the current element on the display interface, generating a typesetting effect diagram capable of reflecting the current element on the display interface according to the typesetting position of the current element, wherein the typesetting effect diagram comprises the typesetting position of the current element on the display interface, and displaying the typesetting effect diagram on the display interface, so that a user can see the display element and can see the typesetting effect of the current element. The method provided by the embodiment of the invention can realize that the typesetting effect of the elements is displayed on the display interface of the elements after the elements are selected, so that a user can intuitively know the typesetting effect of the current elements through the typesetting effect diagram, and the user experience is improved.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
It should be noted that, the typesetting display device, the electronic device and the storage medium for the elements provided in the embodiments of the present invention are devices, electronic devices and storage media applying the typesetting display method for the elements respectively, so all embodiments of the typesetting display method for the elements are applicable to the devices, electronic devices and storage media, and the same or similar beneficial effects can be achieved.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (24)

1. A method for typesetting display of elements, the method comprising:
determining the latest selected element as a first element, wherein other selected elements exist on a selection interface of the first element;
determining typesetting positions of the first elements on a display interface;
generating a typesetting effect diagram showing the typesetting position of the first element on the display interface based on the typesetting position;
and displaying the typesetting effect diagram on a selection interface of the first element.
2. The method of claim 1, wherein the determining the typesetting position of the first element on the display interface comprises:
determining the sequence positions of the first elements in all selected elements according to the selection sequence;
and determining the typesetting position corresponding to the first element as the typesetting position on the display interface according to the corresponding relation between the preset sequence position and the typesetting position.
3. The method of claim 1, wherein the determining the typesetting position of the first element on the display interface comprises:
determining the number of elements of all selected elements;
determining typesetting formats corresponding to the element numbers of all selected elements according to the corresponding relation between the preset element numbers and the typesetting formats;
and determining typesetting positions of the first elements on a display interface according to the determined typesetting format.
4. The method of claim 1, wherein the determining the typesetting position of the first element on the display interface comprises:
determining the sequence positions of the first elements in all selected elements according to the selection sequence;
determining the number of elements of all selected elements;
Determining typesetting formats corresponding to the element numbers of all selected elements according to the corresponding relation between the preset element numbers and the typesetting formats;
and determining the typesetting position corresponding to the sequence position of the first element arranged according to the selection sequence in all the selected elements according to the corresponding relation between the preset sequence position and the typesetting position, and taking the typesetting position as the typesetting position for typesetting according to the determined typesetting format on the display interface.
5. A method according to claim 3, characterized in that the method further comprises:
determining typesetting positions of other elements in all selected elements on a display interface according to the determined typesetting format;
generating a new typesetting effect diagram showing typesetting positions of other elements on a display interface according to the determined typesetting format based on the typesetting positions of the other elements;
and replacing the original typesetting effect diagram of the other elements displayed on the selection interface by using the new typesetting effect diagram of the other elements.
6. The method according to any one of claims 2-5, further comprising:
determining revoked elements in all selected elements;
Determining typesetting positions of the remaining selected elements on a display interface;
generating a new typesetting effect diagram showing the typesetting positions of the remaining selected elements on the display interface based on the typesetting positions;
and replacing the original typesetting effect diagram of the remaining selected elements displayed on the selection interface by using the new typesetting effect diagram of the remaining selected elements.
7. The method of claim 6, wherein determining the layout position of the remaining selected elements on the display interface comprises:
determining the number of elements of the remaining selected elements;
determining the typesetting format corresponding to the number of the elements of the remaining selected elements according to the corresponding relation between the number of the preset elements and the typesetting format;
and determining typesetting positions of the rest selected elements on the display interface according to the determined typesetting format.
8. The method of claim 6, wherein determining the layout position of the remaining selected elements on the display interface comprises:
determining the sequential positions of the remaining selected elements before the elements are revoked;
and determining typesetting positions of the remaining selected elements according to the corresponding relation between the preset sequence positions and the typesetting positions.
9. The method of claim 6, wherein after determining the revoked elements among all selected elements, the method further comprises:
determining the newly selected second element;
determining typesetting positions of the second elements on a display interface;
generating a typesetting effect diagram showing the typesetting position of the second element on the display interface based on the typesetting position;
and displaying the typesetting effect graph showing the typesetting position of the second element on the display interface on a selection interface of the second element.
10. The method of claim 9, wherein the determining the typesetting position of the second element on the display interface comprises:
determining the rest typesetting positions except the typesetting positions of the rest selected elements on the display interface;
determining the sequence position of the second element in all selected elements;
and determining the typesetting position of the second element in the rest typesetting positions according to the occupied sequence of the typesetting positions according to the determined sequence positions.
11. The method according to claim 1, wherein displaying the typesetting effect diagram on the selection interface of the first element comprises:
And displaying the typesetting effect diagram on the upper layer of the first element on the selection interface of the first element.
12. A typesetting display apparatus of an element, the apparatus comprising:
the first element determining module is used for determining that one newly selected element is a first element, and other selected elements exist on a selection interface of the first element;
the first position determining module is used for determining typesetting positions of the first elements on the display interface;
the first effect diagram generating module is used for generating a typesetting effect diagram which reflects the typesetting position of the first element on the display interface based on the typesetting position;
and the first display module is used for displaying the typesetting effect diagram on the selection interface of the first element.
13. The apparatus of claim 12, wherein the first location determining module is specifically configured to determine a sequential location of the first element in the all selected elements in the selected order;
and determining the typesetting position corresponding to the first element as the typesetting position on the display interface according to the corresponding relation between the preset sequence position and the typesetting position.
14. The apparatus of claim 12, wherein the first location determining module is specifically configured to determine a number of elements of all selected elements;
determining typesetting formats corresponding to the element numbers of all selected elements according to the corresponding relation between the preset element numbers and the typesetting formats;
and determining typesetting positions of the first elements on a display interface according to the determined typesetting format.
15. The apparatus of claim 12, wherein the first location determining module is specifically configured to determine a sequential location of the first element in the all selected elements in the selected order;
determining the number of elements of all selected elements;
determining typesetting formats corresponding to the element numbers of all selected elements according to the corresponding relation between the preset element numbers and the typesetting formats;
and determining the typesetting position corresponding to the sequence position of the first element arranged according to the selection sequence in all the selected elements according to the corresponding relation between the preset sequence position and the typesetting position, and taking the typesetting position as the typesetting position for typesetting according to the determined typesetting format on the display interface.
16. The apparatus of claim 14, wherein the apparatus further comprises:
The other element position determining module is used for determining typesetting positions of other elements in all selected elements on the display interface according to the determined typesetting format;
the other element effect diagram generating module is used for generating a new typesetting effect diagram which reflects the typesetting position of the other elements typeset on the display interface according to the determined typesetting format based on the typesetting position of the other elements;
and the other element display module is used for replacing the original typesetting effect diagram of the other elements displayed on the selection interface by using the new typesetting effect diagram of the other elements.
17. The apparatus according to any one of claims 13-16, wherein the apparatus further comprises:
the revocation element determining module is used for determining revoked elements in all selected elements;
the residual element position determining module is used for determining typesetting positions of the residual selected elements on the display interface;
the residual element effect diagram generating module is used for generating a new typesetting effect diagram which reflects the typesetting position of the residual selected elements on the display interface based on the typesetting position;
and the residual element display module is used for replacing the original typesetting effect diagram of the residual selected element displayed on the selection interface by using the new typesetting effect diagram of the residual selected element.
18. The apparatus of claim 17, wherein the remaining element position determining module is specifically configured to determine a number of elements remaining selected elements;
determining the typesetting format corresponding to the number of the elements of the remaining selected elements according to the corresponding relation between the number of the preset elements and the typesetting format;
and determining typesetting positions of the rest selected elements on the display interface according to the determined typesetting format.
19. The apparatus of claim 17, wherein the remaining element position determination module is configured to determine a sequential position of the remaining selected element before the element is revoked;
and determining typesetting positions of the remaining selected elements according to the corresponding relation between the preset sequence positions and the typesetting positions.
20. The apparatus of claim 17, wherein the apparatus further comprises:
a second element determining module for determining the newly selected second element;
the second position determining module is used for determining the typesetting position of the second element on the display interface;
the second effect diagram generating module is used for generating a typesetting effect diagram which reflects the typesetting position of the second element on the display interface based on the typesetting position;
And the second display module is used for displaying the typesetting effect graph which represents the typesetting position of the second element on the display interface on the selection interface of the second element.
21. The apparatus according to claim 20, wherein the second position determining module is specifically configured to determine a remaining typesetting position other than the typesetting position of the remaining selected element on the display interface;
determining the sequence position of the second element in all selected elements;
and determining the typesetting position of the second element in the rest typesetting positions according to the occupied sequence of the typesetting positions according to the determined sequence positions.
22. The apparatus according to claim 12, wherein the first display module is specifically configured to display the typesetting effect diagram on the selection interface at an upper layer of the first element.
23. An electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, when executing the machine-executable instructions, performing the method steps of any one of claims 1-11.
24. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-11.
CN201710934763.7A 2017-10-10 2017-10-10 Typesetting display method and device for elements, electronic equipment and storage medium Active CN109657201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710934763.7A CN109657201B (en) 2017-10-10 2017-10-10 Typesetting display method and device for elements, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710934763.7A CN109657201B (en) 2017-10-10 2017-10-10 Typesetting display method and device for elements, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109657201A CN109657201A (en) 2019-04-19
CN109657201B true CN109657201B (en) 2023-07-04

Family

ID=66109308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710934763.7A Active CN109657201B (en) 2017-10-10 2017-10-10 Typesetting display method and device for elements, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109657201B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407365A (en) * 2016-09-08 2017-02-15 北京小米移动软件有限公司 Picture sharing method and apparatus
CN106557458A (en) * 2015-09-25 2017-04-05 北大方正集团有限公司 Electronic composition method and apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4771831B2 (en) * 2006-03-02 2011-09-14 富士通株式会社 Graphic display program and graphic display method
CN102446279B (en) * 2010-10-12 2016-05-18 深圳迈瑞生物医疗电子股份有限公司 The method and apparatus of a kind of picture browsing and typesetting
CN102650985B (en) * 2011-02-25 2014-09-10 易搜比控股公司 Dynamic typesetting method of display menu
TWI453658B (en) * 2011-02-25 2014-09-21 Esobi Inc A dynamic composing method for displayed screen
US20140289615A1 (en) * 2013-03-19 2014-09-25 Xiaomi Inc. Method and device for typesetting
CN106997264B (en) * 2016-01-26 2020-11-24 百度在线网络技术(北京)有限公司 Method and device for changing picture typesetting

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557458A (en) * 2015-09-25 2017-04-05 北大方正集团有限公司 Electronic composition method and apparatus
CN106407365A (en) * 2016-09-08 2017-02-15 北京小米移动软件有限公司 Picture sharing method and apparatus

Also Published As

Publication number Publication date
CN109657201A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
US10474317B2 (en) Dynamic node grouping in grid-based visualizations
US10146394B2 (en) Event listening integration in a collaborative electronic information system
US10528589B2 (en) Cross visualization interaction between data visualizations
CN104978317B (en) Webpage generation method and device, website generation method and website establishment server
US20140258849A1 (en) Automatic Alignment of a Multi-Dimensional Layout
US8972418B2 (en) Dynamic generation of relevant items
US20120266103A1 (en) Method and apparatus of scrolling a document displayed in a browser window
WO2016018681A2 (en) Presenting dataset of spreadsheet in form based view
US20140237357A1 (en) Two-dimensional document navigation
US11269950B2 (en) Analysis for framework assessment
US10565560B2 (en) Alternative people charting for organizational charts
JP2015153421A (en) Site management method and system for supporting production of site by using card of various form
CN110688829A (en) Table generation method, device, equipment and storage medium
US9360339B2 (en) Rendering maps with canvas elements
US20160018982A1 (en) Touch-Based Gesture Recognition and Application Navigation
CN109657201B (en) Typesetting display method and device for elements, electronic equipment and storage medium
JP2023014128A (en) Program, display control method, server device, and system
WO2021082652A1 (en) Information display method and apparatus, and computer-readable storage medium
JP5648971B2 (en) Portal server and portal page display method
CN108415957B (en) Method and device for self-defined navigation of webpage
JP2022029280A (en) Information processing apparatus, system, information processing method, and program
Thomas Data visualization with javascript
JP2017157100A (en) Message managing system, method, and program
US20140279255A1 (en) System and method for layered visualization of points of interest data
JP2017059067A (en) Client device, and data display program

Legal Events

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