Window control method, device and system, storage medium and processor
By automatically selecting the arrangement with the largest total area from the preset arrangements, arranging the windows on the splicing screen solves the problem that window adjustments on the splicing screen cannot make full use of the display space, and improves the utilization rate of the display space.
Patent Information
- Application Number
- CN202011630746.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-05-16
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2037-05-16
AI Technical Summary
The adjustment of multiple windows on the splicing screen in the prior art cannot make full use of the display space, resulting in a waste of display space.
By determining the arrangement with the largest total area from multiple preset arrangements, the windows on the splicing screen are automatically arranged to ensure that the windows are aligned and the display space is fully utilized.
It realizes the alignment of all windows on the splicing screen, improves the utilization of display space, and reduces the waste of display space.
Smart Images

Figure CN112612440B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of spliced screens, and in particular to a window control method, device and system, storage medium and processor. Background Art
[0002] There are often multiple windows on the spliced screen, and each window can be freely moved and enlarged and reduced, and the arrangement of the windows will appear very chaotic. In order to arrange the multiple windows displayed on the spliced screen, each window can be manually enlarged, reduced and arranged in the prior art, but manual enlargement, scaling and arrangement is very time-consuming, and may not be able to arrange all the windows neatly, and the display space of the spliced screen is not fully utilized, resulting in a waste of display space.
[0003] With respect to the problem in the prior art that the display space of the spliced screen cannot be fully utilized by adjusting multiple windows on the spliced screen, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a window control method, device and system, storage medium and processor to at least solve the technical problem in the prior art that multiple windows on a spliced screen cannot be fully utilized when adjusting the display space of the spliced screen.
[0005] According to one aspect of an embodiment of the present invention, a window control method is provided, comprising: determining a first arrangement method from a plurality of preset arrangement methods; arranging a plurality of windows displayed on a spliced screen according to the first arrangement method to obtain a plurality of arranged windows; and controlling the spliced screen to display the plurality of arranged windows.
[0006] Furthermore, determining a first arrangement method from a plurality of preset arrangement methods includes: obtaining a plurality of arrangement methods; calculating a total area of a plurality of windows arranged according to each arrangement method; comparing the total areas of the plurality of windows arranged according to each arrangement method to obtain an arrangement method corresponding to a maximum total area; and using the arrangement method corresponding to the maximum total area as the first arrangement method.
[0007] Furthermore, multiple arrangement modes are obtained, including: obtaining the size of the spliced screen, the minimum size of each window, the spacing between any two windows and the number of multiple windows; obtaining multiple display sizes according to the size of the spliced screen, the minimum size of each window, the spacing between any two windows and the number of multiple windows; judging whether each display size meets a preset condition; if it is judged that any display size meets the preset condition, then storing any display size, a first horizontal arrangement number and a first vertical arrangement number corresponding to any display size, to obtain multiple arrangement modes.
[0008] Furthermore, according to the size of the spliced screen, the minimum size of each window, the spacing between any two windows and the number of multiple windows, multiple display sizes are obtained, including: according to the size of the spliced screen, the minimum size of each window and the spacing between any two windows, multiple first horizontal arrangement numbers are obtained; according to the number of multiple windows and the multiple first horizontal arrangement numbers, multiple first vertical arrangement numbers are obtained; according to the multiple first vertical arrangement numbers, the size of the spliced screen and the spacing between any two windows, multiple display sizes are obtained.
[0009] Further, determining whether each display size satisfies a preset condition includes: determining whether each display size is greater than or equal to a minimum size of each window, and determining whether the display size of at least one window arranged horizontally is less than or equal to the size of the spliced screen; if the first display size is greater than or equal to the minimum size of each window, and the display size of at least one window arranged horizontally is less than or equal to the size of the spliced screen, determining that the first display size satisfies the preset condition; if the second display size is less than the minimum size of each window, or the display size of at least one window arranged horizontally is greater than the size of the spliced screen, determining that the second display size does not satisfy the preset condition.
[0010] Furthermore, determining a first arrangement from a plurality of preset arrangements includes: obtaining the size of the spliced screen, the minimum size of each window and the spacing between any two windows; and obtaining the first arrangement by a preset method according to the size of the spliced screen, the minimum size of each window and the spacing between any two windows.
[0011] Furthermore, arranging the multiple windows according to the first arrangement method to obtain the arranged multiple windows includes: determining display parameters of the multiple windows according to the first arrangement method, wherein the display parameters include: display size and display position; arranging the multiple windows according to the display parameters of the multiple windows to obtain the arranged multiple windows.
[0012] Furthermore, display parameters of the multiple windows are determined according to the first arrangement method, including: obtaining the display size of the multiple windows according to the display size corresponding to the first arrangement method; obtaining the display position of the multiple windows according to the first horizontal arrangement number and the first vertical arrangement number corresponding to the first arrangement method and the spacing between any two windows.
[0013] Furthermore, before determining the first arrangement mode from the preset multiple arrangement modes, the above method also includes: determining whether a window arrangement instruction sent by the control device is received; if it is determined that the window arrangement instruction is received, determining the first arrangement mode from the preset multiple arrangement modes.
[0014] Furthermore, before determining the first arrangement mode from the preset multiple arrangement modes, the above method also includes: obtaining a second horizontal arrangement number and a second vertical arrangement number of the multiple windows according to the size of the spliced screen, the minimum size of each window and the spacing between any two windows; judging whether the number of the multiple windows exceeds the product of the second horizontal arrangement number and the second vertical arrangement number; if the number of the multiple windows does not exceed the product of the second horizontal arrangement number and the second vertical arrangement number, determining the first arrangement mode from the preset multiple arrangement modes.
[0015] Furthermore, if the number of the plurality of windows exceeds the product of the second horizontal arrangement number and the second vertical arrangement number, the method further includes: generating prompt information and displaying the prompt information, wherein the prompt information is used to prompt closing of the window.
[0016] According to another aspect of an embodiment of the present invention, a window control device is also provided, including: a determination unit, used to determine a first arrangement method from multiple preset arrangement methods; an arrangement unit, used to arrange multiple windows displayed on a spliced screen according to the first arrangement method to obtain multiple arranged windows; and a control unit, used to control the spliced screen to display the multiple arranged windows.
[0017] According to another aspect of an embodiment of the present invention, a window control system is also provided, including: a server, used to determine a first arrangement method from multiple preset arrangement methods, and arrange multiple windows displayed on a spliced screen according to the first arrangement method to obtain multiple arranged windows; a spliced screen, connected to the server, and used to display the multiple arranged windows.
[0018] Furthermore, the above system also includes: a control device connected to the server and used to send a window arrangement instruction; the server is also used to determine a first arrangement method from multiple preset arrangement methods if it determines that a window arrangement instruction has been received.
[0019] According to another aspect of an embodiment of the present invention, a storage medium is further provided. The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the window control method in the above embodiment.
[0020] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein the window control method in the above embodiment is executed when the program is run.
[0021] In an embodiment of the present invention, a first arrangement mode is determined from a plurality of preset arrangement modes, a plurality of windows are arranged according to the first arrangement mode to obtain a plurality of arranged windows, and the spliced screen is controlled to display the plurality of arranged windows, thereby achieving the purpose of aligning and arranging all windows displayed on the spliced screen. It is easy to notice that, since the plurality of windows displayed on the spliced screen are arranged by the preset first arrangement mode, there is no need for manual arrangement, and compared with manual arrangement, the preset arrangement mode can make more full use of the display space of the spliced screen, thereby solving the technical problem in the prior art that the display space of the spliced screen cannot be fully utilized by adjusting the plurality of windows on the spliced screen. Therefore, the solution provided by the above-mentioned embodiment of the present invention can achieve the technical effect of improving the utilization rate of the display space of the spliced screen and reducing the waste of the display space. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0023] Figure 1 is a flow chart of a window control method according to an embodiment of the present invention;
[0024] Figure 2 is a flow chart of an optional calculation window arrangement, size and coordinates according to an embodiment of the present invention;
[0025] Figure 3 is a flow chart of an optional window control method according to an embodiment of the present invention;
[0026] Figure 4 is a flow chart of an optional method for obtaining a first arrangement according to an embodiment of the present invention;
[0027] Figure 5 is a schematic diagram of a window control device according to an embodiment of the present invention;
[0028] Figure 6 is a schematic diagram of a control system of a window according to an embodiment of the present invention; and
[0029] Figure 7 It is a schematic diagram of an optional window control system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Example 1
[0033] According to an embodiment of the present invention, an embodiment of a window control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] Figure 1 is a flow chart of a window control method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0035] Step S102: determining a first arrangement from a plurality of preset arrangements.
[0036] Specifically, the above-mentioned multiple preset arrangement modes are pre-acquired arrangement modes corresponding to multiple windows, that is, the number of arrangement modes corresponds to the number of windows, and the arrangement modes may include: the number of windows arranged horizontally and the number of windows arranged vertically.
[0037] It should be noted that there are multiple arrangements of different numbers of multiple windows, and the arrangement of the same number of multiple windows can constitute an arrangement combination. The set includes multiple arrangements, and the sizes of windows in different arrangements are different. The first arrangement can be the arrangement with the largest total area of multiple windows in the arrangement set, thereby ensuring that the display space can be used to the greatest extent and reducing the waste of display space.
[0038] Step S104: Arrange the multiple windows displayed on the spliced screen according to the first arrangement mode to obtain multiple arranged windows.
[0039] Step S106, controlling the spliced screen to display the arranged multiple windows.
[0040] In an optional solution, the server of the splicing screen (for example, a graphics workstation that controls the splicing screen) can obtain an arrangement with the largest total area of all windows, i.e., a first arrangement, from multiple arrangement corresponding to all the windows displayed on the splicing screen, arrange all the windows according to the first arrangement to obtain multiple arranged windows, and send the multiple arranged windows to the splicing screen for display.
[0041] According to the above embodiment of the present invention, a first arrangement mode is determined from a plurality of preset arrangement modes, a plurality of windows are arranged according to the first arrangement mode to obtain a plurality of arranged windows, and the spliced screen is controlled to display the plurality of arranged windows, thereby achieving the purpose of aligning and arranging all windows displayed on the spliced screen. It is easy to notice that, since the plurality of windows displayed on the spliced screen are arranged by the preset first arrangement mode, there is no need for manual arrangement, and compared with manual arrangement, the preset arrangement mode can make more full use of the display space of the spliced screen, thereby solving the technical problem in the prior art that the display space of the spliced screen cannot be fully utilized by adjusting the plurality of windows on the spliced screen. Therefore, the solution provided by the above embodiment of the present invention can achieve the technical effect of improving the utilization rate of the display space of the spliced screen and reducing the waste of the display space.
[0042] Optionally, in the above embodiment of the present invention, step S102, determining a first arrangement from a plurality of preset arrangements, includes:
[0043] Step S1022, obtaining multiple arrangements.
[0044] Step S1024, calculating the total area of the plurality of windows arranged in each arrangement manner.
[0045] Step S1026, comparing the total areas of the multiple windows arranged in each arrangement mode, and obtaining the arrangement mode corresponding to the maximum total area.
[0046] Step S1028: taking the arrangement corresponding to the largest total area as the first arrangement.
[0047] In an optional solution, the server can enumerate all possible arrangements based on the number of multiple windows displayed on the spliced screen, that is, obtain multiple arrangement sets, and calculate the total area of the windows under each arrangement based on the current window settings (including the minimum window size and window spacing) and select the arrangement corresponding to the largest area as the first arrangement.
[0048] Optionally, in the above embodiment of the present invention, step S1022, obtaining multiple arrangements, includes:
[0049] Step S108, obtaining the size of the spliced screen, the minimum size of each window, the distance between any two windows and the number of multiple windows.
[0050] Specifically, the size of the spliced screen may include the length W and height H of the spliced screen; the minimum size may include the minimum length W of the window. min and minimum height H min ; The spacing between any two windows mentioned above may include the left and right spacing W g And the upper and lower spacing H g .
[0051] Step S110, obtaining multiple display sizes according to the size of the spliced screen, the minimum size of each window, the distance between any two windows and the number of multiple windows.
[0052] Specifically, the size of each window displayed on the spliced screen is the same, which is the above-mentioned display size, and may include the display length w and display height g of the window.
[0053] In an alternative approach, Figure 2 As shown, the length W and height H of the spliced screen can be obtained, and the minimum length W of the window min and minimum height H min , the left and right spacing between any two windows is W g And the upper and lower spacing H g , and the number of multiple windows N, and calculate multiple display lengths w and display heights h based on the acquired data.
[0054] Step S112, determining whether each display size meets a preset condition.
[0055] Specifically, the above-mentioned preset condition may be a pre-set condition for determining whether the display size meets the display requirement.
[0056] Step S114: if it is determined that any display size meets the preset condition, any display size, the first horizontal arrangement quantity and the first vertical arrangement quantity corresponding to the any display size are stored to obtain multiple arrangement modes.
[0057] In an alternative approach, Figure 2 As shown, after calculating multiple display lengths and display heights, it can be determined whether each calculated display length and display height meets the preset conditions. If a certain display length and display height meets the preset conditions, it is determined that the display length and display height meet the display requirements, and the display length and display height, as well as the corresponding horizontal arrangement number and vertical arrangement number, can be stored as an arrangement method; if a certain display length and display height does not meet the preset conditions, it is determined that the display length and display height do not meet the display requirements and are directly discarded.
[0058] Optionally, in the above embodiment of the present invention, step S110, according to the size of the spliced screen, the minimum size of each window, the spacing between any two windows and the number of multiple windows, obtains multiple display sizes, including:
[0059] Step S1102: obtaining a plurality of first horizontal arrangement numbers according to the size of the spliced screen, the minimum size of each window and the distance between any two windows.
[0060] In an alternative approach, Figure 2 As shown, the length and height of the spliced screen, the minimum length and minimum height of the window, and the left-right spacing and the top-bottom spacing between any two windows can be obtained, and the maximum horizontal arrangement number m and the maximum vertical arrangement number n can be calculated based on the obtained data. The first horizontal arrangement number i can be any value from 1 to m. Each time the cycle is repeated, the first horizontal arrangement number increases by 1, that is, in the first cycle, i=1, in the second cycle, i=2, and so on.
[0061] Step S1104, obtaining a plurality of first vertical arrangement numbers according to the plurality of window numbers and the plurality of first horizontal arrangement numbers.
[0062] In an alternative approach, Figure 2 As shown, after determining the first horizontal arrangement number i, first determine whether i is greater than the number N of multiple windows. If not, calculate the ratio of the number N of multiple windows to the first horizontal arrangement number i, and round it up to obtain the first vertical arrangement number, that is, j=N / i rounded up.
[0063] It should be noted that, if during the loop process, it is determined that i is greater than N, the entire loop process is terminated to obtain multiple arrangement modes corresponding to multiple windows.
[0064] Step S1106, obtaining a plurality of display sizes according to the plurality of first longitudinal arrangement quantities, the size of the spliced screen and the distance between any two windows.
[0065] In an alternative approach, Figure 2 As shown, the display length and height of each window can be calculated by the following formula: w = (W-(j-1)W g ) / j, h=w / c, where c is the preset aspect ratio of the window, and it is determined whether the calculated display length w and display height h meet the preset conditions. If so, i, j, w and h are stored as an arrangement; if not, the next cycle is performed, and the first horizontal arrangement number i is increased by 1.
[0066] Optionally, in the above embodiment of the present invention, step S112, determining whether each display size meets a preset condition, includes:
[0067] Step S1122, determining whether each display size is greater than or equal to the minimum size of each window, and determining whether the display size of at least one window arranged horizontally is less than or equal to the size of the spliced screen.
[0068] Step S1124: if the first display size is greater than or equal to the minimum size of each window, and the display size of at least one window arranged horizontally is less than or equal to the size of the spliced screen, it is determined that the first display size meets the preset condition.
[0069] Step S1126: If the second display size is smaller than the minimum size of each window, or the display size of at least one window arranged horizontally is larger than the size of the spliced screen, it is determined that the second display size does not meet the preset condition.
[0070] In an alternative approach, Figure 2 As shown, after calculating the display length w and display height g of each window, it can be determined whether w is greater than W min , whether h is greater than H min , and whether the display size of at least one window arranged horizontally is less than or equal to the size of the splicing screen, that is, Hi*h-(i-1)*H g Is it greater than 0? If w>W min , h>H min , and Hi*h-(i-1)*H g >0, it is determined that each display size meets the preset condition, and i and j can be stored in the arrangement mode set; otherwise, the next cycle can be performed and the first horizontal arrangement quantity can be increased by 1.
[0071] Optionally, in the above embodiment of the present invention, step S102, determining a first arrangement from a plurality of preset arrangements, includes:
[0072] Step S116, obtaining the size of the spliced screen, the minimum size of each window and the distance between any two windows.
[0073] Step S118, obtaining a first arrangement by a preset method according to the size of the spliced screen, the minimum size of each window and the distance between any two windows.
[0074] Specifically, the above-mentioned preset method can be a method for optimizing the objective function, and the first arrangement method can be calculated in advance based on the length and height of the spliced screen, the minimum length and minimum height of the window, and the left and right spacing and the upper and lower spacing between any two windows when calculating different numbers of windows.
[0075] In an optional solution, after receiving the window arrangement instruction, the server obtains the length and height of the spliced screen, the minimum length and minimum height of the window, and the left and right spacing and the top and bottom spacing between any two windows, and calculates the first arrangement method based on the obtained data.
[0076] Through the above solution, the first arrangement method can be directly determined by a preset algorithm, avoiding enumerating all possible arrangements, reducing the amount of calculation, and improving control efficiency.
[0077] Optionally, in the above embodiment of the present invention, step S104, arranging the multiple windows according to the first arrangement mode to obtain the multiple arranged windows, includes:
[0078] Step S1042: determining display parameters of the plurality of windows according to the first arrangement mode, wherein the display parameters include: display size and display position.
[0079] Specifically, the above display position may be the coordinates of the upper left corner of each window.
[0080] Step S1044, arranging the multiple windows according to the display parameters of the multiple windows to obtain a plurality of arranged windows.
[0081] In an optional solution, after calculating the first arrangement, that is, obtaining the horizontal window arrangement number i and the vertical window arrangement number j, the server can calculate the display height w, display length h and upper left corner coordinates of each window. The server can arrange the multiple windows according to the calculated display parameters to obtain the arranged multiple windows, and send the arranged multiple windows to the splicing screen for display.
[0082] It should be noted that after calculating the display parameters of each window, the server can directly send the display parameters of each window to the splicing screen, and the splicing screen displays multiple windows according to the display parameters of each window.
[0083] Optionally, in the above embodiment of the present invention, step S1042, determining display parameters of the plurality of windows according to the first arrangement, includes:
[0084] Step S120, obtaining display sizes of the multiple windows according to the display sizes corresponding to the first arrangement mode.
[0085] Step S122, obtaining display positions of the plurality of windows according to the first horizontal arrangement number and the first vertical arrangement number corresponding to the first arrangement mode and the distance between any two windows.
[0086] In an optional solution, the display length w and display height h can be calculated by the above formula, and the display length w and display height h obtained by calculation are used as the display length and display height of each display window, and the upper left corner coordinate of the window in the kth row and the lth column is calculated by the following formula (l*(w+W g ), k*(h+H g )), that is, get the display position of each window.
[0087] Optionally, in the above embodiment of the present invention, before determining the first arrangement from the preset multiple arrangements in step S102, the method further includes the following steps:
[0088] Step S124, determining whether a window arrangement instruction sent by the control device is received.
[0089] Specifically, the above-mentioned control device can be a smart phone (including: Android phone and IOS phone), IPAD, tablet computer, touch-screen all-in-one machine, laptop computer, computer terminal, etc., and the present invention does not make specific limitations on this; the above-mentioned window arrangement instructions can be instructions generated by clicking a button, clicking a link, gesture operation, etc.
[0090] Step S126: If it is determined that a window arrangement instruction is received, a first arrangement mode is determined from a plurality of preset arrangement modes.
[0091] In an optional solution, a "window arrangement" function can be added to the control program installed on the control device. The user generates a window arrangement instruction by clicking the "window arrangement" button and sends it to the server. After receiving the window arrangement instruction, the server can determine the arrangement method with the largest window area among all possible arrangements, that is, the first arrangement method.
[0092] Optionally, in the above embodiment of the present invention, before determining the first arrangement from the preset multiple arrangements in step S102, the method further includes the following steps:
[0093] Step S128, obtaining a second horizontal arrangement number and a second vertical arrangement number of the plurality of windows according to the size of the spliced screen, the minimum size of each window and the distance between any two windows.
[0094] Specifically, the second transverse arrangement number and the second longitudinal arrangement number mentioned above may be the maximum transverse arrangement number and the maximum longitudinal arrangement number.
[0095] In an optional solution, the length and height of the spliced screen, the minimum length and minimum height of the window, and the left-right spacing and the top-bottom spacing between any two windows can be obtained, and the maximum horizontal arrangement number m and the maximum vertical arrangement number n can be calculated according to the obtained data by the following formula: Round down, Round down.
[0096] Step S130, determining whether the number of the plurality of windows exceeds the product of the second horizontal arrangement number and the second vertical arrangement number.
[0097] Step S132: if the number of the plurality of windows does not exceed the product of the second horizontal arrangement number and the second vertical arrangement number, determine a first arrangement from a plurality of preset arrangement methods.
[0098] In an optional scheme, after calculating the maximum number of horizontal arrangements m and the maximum number of vertical arrangements n, the product of m and n can be calculated to obtain the maximum number of windows that can be arranged on the spliced screen. After receiving the window arrangement instruction sent by the control device, the server can first determine whether the number of windows displayed on the spliced screen exceeds the maximum number of windows that can be arranged on the spliced screen. If not, the first arrangement method can be calculated by enumeration or by using the method of optimizing the objective function.
[0099] Optionally, in the above embodiment of the present invention, if the number of the plurality of windows exceeds the product of the second horizontal arrangement number and the second vertical arrangement number, the method further comprises the following steps:
[0100] Step S134, generating prompt information and displaying the prompt information, wherein the prompt information is used to prompt closing the window.
[0101] In an optional solution, if yes, a prompt message may be generated to prompt the user to close the unnecessary windows.
[0102] Figure 3 is a flowchart of an optional window control method according to an embodiment of the present invention, Figure 4 is a flowchart of an optional first arrangement method according to an embodiment of the present invention. Figure 3 and Figure 4A preferred embodiment of the present invention is described in detail.
[0103] like Figure 3 As shown, the method may include the following steps:
[0104] Step S31: The control device issues a window arrangement instruction.
[0105] Optionally, the operator may trigger the window arrangement instruction on the control device by clicking a button, clicking a link, performing a gesture operation, or the like.
[0106] Step S32, determining whether the current window exceeds the maximum number of arrangable windows.
[0107] Optionally, assuming that there are N windows on the splicing screen and the current number of windows is N, the windows can be arranged into at most m rows and n columns, and the maximum number of windows that can be arranged is m*n. After receiving the window arrangement instruction issued by the control device, the server can first determine whether N exceeds m*n. If not, go to step S33; if yes, go to step S35.
[0108] Step S33, calculating the window arrangement, window size and the coordinates of the upper left corner of the window.
[0109] Optionally, if N≤m*n, the server determines that all windows can be fully displayed on the spliced screen, calculates the window size under each window arrangement, selects the window arrangement with the largest total area of all windows, and calculates the coordinates of the upper left corner of each window under this window arrangement.
[0110] Step S34, scaling the window and arranging it.
[0111] Optionally, the server may scale each window according to the size of each window, and arrange the multiple windows according to the coordinates of the upper left corner of each window to obtain arranged windows, and control the spliced screen to display the arranged windows.
[0112] Step S35, prompting the user to close unnecessary windows.
[0113] Optionally, if N>m*n, the server determines that all windows cannot be displayed on the spliced screen, and prompts the user to close unnecessary windows.
[0114] like Figure 4 As shown, the method for obtaining the first arrangement may include the following steps:
[0115] Step S41, enumerate all window arrangements.
[0116] Optionally, after receiving the window arrangement instruction, the server may first enumerate all possible window arrangements according to the number of currently opened windows.
[0117] Step S42, calculating the window length, width and area according to the current settings and window arrangement mode.
[0118] Optionally, the length, width and area of the window in each arrangement mode may be calculated for all window arrangements and current window settings (window minimum size, window spacing).
[0119] Step S43, selecting an arrangement with the largest window area among all the arrangement.
[0120] Step S44, calculating the position of each window in the arrangement mode.
[0121] Optionally, an arrangement with the largest window area may be selected, and the position of each window in the arrangement, that is, the coordinate of the upper left corner of each window, may be calculated.
[0122] Through the above steps, after receiving the window arrangement instruction, the first arrangement mode can be obtained, and the length, width and position of the window can be automatically adjusted, while ensuring that the display space of the spliced screen is fully utilized.
[0123] Example 2
[0124] According to an embodiment of the present invention, an embodiment of a window control device is provided.
[0125] Figure 5 is a schematic diagram of a window control device according to an embodiment of the present invention. Figure 5 As shown, the device comprises:
[0126] The determining unit 51 is configured to determine a first arrangement from a plurality of preset arrangements.
[0127] Specifically, the above-mentioned multiple preset arrangement modes are pre-acquired arrangement modes corresponding to multiple windows, that is, the number of arrangement modes corresponds to the number of windows, and the arrangement modes may include: the number of windows arranged horizontally and the number of windows arranged vertically.
[0128] It should be noted that there are multiple arrangements of different numbers of multiple windows, and the arrangement of the same number of multiple windows can constitute an arrangement combination. The set includes multiple arrangements, and the sizes of windows in different arrangements are different. The first arrangement can be the arrangement with the largest total area of multiple windows in the arrangement set, thereby ensuring that the display space can be used to the greatest extent and reducing the waste of display space.
[0129] The arranging unit 53 is used to arrange the multiple windows displayed on the spliced screen according to the first arrangement mode to obtain the multiple arranged windows.
[0130] The control unit 55 is used to control the spliced screen to display the arranged multiple windows.
[0131] In an optional solution, the server of the splicing screen (for example, a graphics workstation that controls the splicing screen) can obtain an arrangement with the largest total area of all windows, i.e., a first arrangement, from multiple arrangement corresponding to all the windows displayed on the splicing screen, arrange all the windows according to the first arrangement to obtain multiple arranged windows, and send the multiple arranged windows to the splicing screen for display.
[0132] According to the above embodiment of the present invention, a first arrangement mode is determined from a plurality of preset arrangement modes, a plurality of windows are arranged according to the first arrangement mode to obtain a plurality of arranged windows, and the spliced screen is controlled to display the plurality of arranged windows, thereby achieving the purpose of aligning and arranging all windows displayed on the spliced screen. It is easy to notice that, since the plurality of windows displayed on the spliced screen are arranged by the preset first arrangement mode, there is no need for manual arrangement, and compared with manual arrangement, the preset arrangement mode can make more full use of the display space of the spliced screen, thereby solving the technical problem in the prior art that the display space of the spliced screen cannot be fully utilized by adjusting the plurality of windows on the spliced screen. Therefore, the solution provided by the above embodiment of the present invention can achieve the technical effect of improving the utilization rate of the display space of the spliced screen and reducing the waste of the display space.
[0133] Optionally, in the above embodiment of the present invention, the determining unit 51 includes:
[0134] The first acquisition module is used to acquire multiple arrangements.
[0135] The calculation module is used to calculate the total area of the multiple windows arranged in each arrangement mode.
[0136] The second acquisition module is used to compare the total areas of the multiple windows arranged according to each arrangement mode, and obtain the arrangement mode corresponding to the maximum total area.
[0137] The first processing module is used to use the arrangement corresponding to the maximum total area as the first arrangement.
[0138] Optionally, in the above embodiment of the present invention, the first acquisition module includes:
[0139] The acquisition submodule is used to obtain the size of the spliced screen, the minimum size of each window and the distance between any two windows.
[0140] The first processing submodule is used to obtain multiple display sizes according to the size of the spliced screen, the minimum size of each window, the distance between any two windows and the number of multiple windows.
[0141] The judging submodule is used to judge whether each display size meets the preset conditions.
[0142] The storage submodule is used to store any display size, the first horizontal arrangement quantity and the first vertical arrangement quantity corresponding to any display size if it is determined that any display size meets the preset condition, so as to obtain multiple arrangement modes.
[0143] Optionally, in the above embodiment of the present invention, the first processing submodule includes:
[0144] The first processing submodule is used to obtain a plurality of first horizontal arrangement quantities according to the size of the spliced screen, the minimum size of each window and the distance between any two windows.
[0145] The second processing submodule is used to obtain a plurality of first longitudinal arrangement quantities according to the plurality of window quantities and the plurality of first transverse arrangement quantities.
[0146] The third processing submodule is used to obtain multiple display sizes according to the multiple first longitudinal arrangement numbers, the size of the spliced screen and the distance between any two windows.
[0147] Optionally, in the above embodiment of the present invention, the judging submodule includes:
[0148] The judgment submodule is used to judge whether each display size is greater than or equal to the minimum size of each window, and to judge whether the display size of at least one window arranged horizontally is less than or equal to the size of the spliced screen.
[0149] The first determination submodule is used to determine that the first display size meets a preset condition if the first display size is greater than or equal to the minimum size of each window and the display size of at least one window arranged horizontally is less than or equal to the size of the spliced screen.
[0150] The second determination submodule is used to determine that the second display size does not meet the preset condition if the second display size is smaller than the minimum size of each window, or the display size of at least one window arranged horizontally is larger than the size of the spliced screen.
[0151] Optionally, in the above embodiment of the present invention, the determining unit 51 includes:
[0152] The third acquisition module is used to acquire the size of the spliced screen, the minimum size of each window and the distance between any two windows.
[0153] The second processing module is used to obtain the first arrangement mode by a preset method according to the size of the spliced screen, the minimum size of each window and the distance between any two windows.
[0154] Optionally, in the above embodiment of the present invention, the arrangement unit 53 includes:
[0155] The determination module is used to determine display parameters of the plurality of windows according to the first arrangement mode, wherein the display parameters include: display size and display position.
[0156] The arrangement module is used to arrange the multiple windows according to the display parameters of the multiple windows to obtain the multiple arranged windows.
[0157] Optionally, in the above embodiment of the present invention, the determining module includes:
[0158] The second processing submodule is used to obtain the display sizes of the multiple windows according to the display sizes corresponding to the first arrangement mode.
[0159] The third processing submodule is used to obtain display positions of the multiple windows according to the first horizontal arrangement number and the first vertical arrangement number corresponding to the first arrangement mode and the distance between any two windows.
[0160] Optionally, in the above embodiment of the present invention, the device further includes:
[0161] The first determination unit is used to determine whether a window arrangement instruction sent by a control device is received.
[0162] The determining unit 51 is further configured to determine a first arrangement mode from a plurality of preset arrangement modes if it is determined that a window arrangement instruction is received.
[0163] Optionally, in the above embodiment of the present invention, the device further includes:
[0164] The processing unit is used to obtain a second horizontal arrangement number and a second vertical arrangement number of the plurality of windows according to the size of the spliced screen, the minimum size of each window and the distance between any two windows.
[0165] The second judging unit is used to judge whether the number of the plurality of windows exceeds the product of the second horizontal arrangement number and the second vertical arrangement number.
[0166] The determining unit 51 is further configured to determine a first arrangement from among a plurality of preset arrangement modes if the number of the plurality of windows does not exceed the product of the second horizontal arrangement number and the second vertical arrangement number.
[0167] Optionally, in the above embodiment of the present invention, if the number of the plurality of windows exceeds the product of the second horizontal arrangement number and the second vertical arrangement number, the apparatus further includes:
[0168] The generating unit is used to generate prompt information and display the prompt information, wherein the prompt information is used to prompt to close the window.
[0169] It should be noted that the preferred implementation manner in this embodiment can refer to the relevant description in Example 1, which will not be repeated here.
[0170] Example 3
[0171] According to an embodiment of the present invention, an embodiment of a window control system is provided.
[0172] Figure 6 is a schematic diagram of a control system of a window according to an embodiment of the present invention, such as Figure 6 As shown, the method comprises the following steps:
[0173] The server 61 is used to determine a first arrangement mode from a plurality of preset arrangement modes, and arrange a plurality of windows displayed on the spliced screen according to the first arrangement mode to obtain a plurality of arranged windows.
[0174] Specifically, the server mentioned above may be a graphic workstation that controls the spliced screen; the arrangement mentioned above may include: the number of windows arranged horizontally and the number of windows arranged vertically.
[0175] It should be noted that there are multiple arrangements of different numbers of multiple windows, and the arrangement of the same number of multiple windows can constitute an arrangement combination. The set includes multiple arrangements, and the sizes of windows in different arrangements are different. The first arrangement can be the arrangement with the largest total area of multiple windows in the arrangement set, thereby ensuring that the display space can be used to the greatest extent and reducing the waste of display space.
[0176] The splicing screen 63 is connected to the server and is used to display the arranged multiple windows.
[0177] In an optional solution, the server of the splicing screen can obtain the arrangement of all windows with the largest total area from the multiple arrangement methods corresponding to all the windows displayed on the splicing screen, that is, the first arrangement method, arrange all the windows according to the first arrangement method to obtain multiple arranged windows, and send the multiple arranged windows to the splicing screen for display by the splicing screen.
[0178] According to the above embodiment of the present invention, the server determines a first arrangement method from a plurality of preset arrangement methods, arranges a plurality of windows according to the first arrangement method to obtain a plurality of arranged windows, and controls the spliced screen to display the plurality of arranged windows, thereby achieving the purpose of aligning and arranging all windows displayed on the spliced screen. It is easy to notice that, since the plurality of windows displayed on the spliced screen are arranged by the preset first arrangement method, there is no need for manual arrangement, and compared with manual arrangement, the preset arrangement method can make more full use of the display space of the spliced screen, thereby solving the technical problem in the prior art that the display space of the spliced screen cannot be fully utilized by adjusting the plurality of windows on the spliced screen. Therefore, through the scheme provided by the above embodiment of the present invention, the technical effect of improving the utilization rate of the display space of the spliced screen and reducing the waste of the display space can be achieved.
[0179] Optionally, in the above embodiment of the present invention, the server is also used to obtain multiple arrangement methods, calculate the total area of the multiple windows arranged according to each arrangement method, compare the total area of the multiple windows arranged according to each arrangement method, obtain the arrangement method corresponding to the maximum total area, and use the arrangement method corresponding to the maximum total area as the first arrangement method.
[0180] Optionally, in the above embodiment of the present invention, the server is also used to obtain the size of the spliced screen, the minimum size of each window, the spacing between any two windows and the number of multiple windows, and obtain multiple display sizes according to the size of the spliced screen, the minimum size of each window, the spacing between any two windows and the number of multiple windows, and determine whether each display size meets a preset condition. If it is determined that any display size meets the preset condition, then any display size, the first horizontal arrangement number and the first vertical arrangement number corresponding to the any display size are stored to obtain multiple arrangement methods.
[0181] Optionally, in the above embodiment of the present invention, the server is also used to obtain multiple first horizontal arrangement numbers according to the size of the splicing screen, the minimum size of each window and the spacing between any two windows, obtain multiple first vertical arrangement numbers according to the number of multiple windows and the multiple first horizontal arrangement numbers, and obtain multiple display sizes according to the multiple first vertical arrangement numbers, the size of the splicing screen and the spacing between any two windows.
[0182] Optionally, in the above embodiment of the present invention, if it is determined that the display size of each window does not meet the preset conditions, the server is further used to redetermine the first horizontal arrangement quantity based on the size of the spliced screen, the minimum size of each window and the distance between any two windows.
[0183] Optionally, in the above embodiment of the present invention, the server is also used to determine whether each display size is greater than or equal to the minimum size of each window, and to determine whether the display size of at least one window arranged horizontally is less than or equal to the size of the spliced screen. If the first display size is greater than or equal to the minimum size of each window, and the display size of at least one window arranged horizontally is less than or equal to the size of the spliced screen, it is determined that the first display size meets the preset conditions; if the second display size is smaller than the minimum size of each window, or the display size of at least one window arranged horizontally is larger than the size of the spliced screen, it is determined that the second display size does not meet the preset conditions.
[0184] Optionally, in the above embodiment of the present invention, the server is also used to obtain the size of the splicing screen, the minimum size of each window and the spacing between any two windows, and obtain the first arrangement method through a preset method based on the size of the splicing screen, the minimum size of each window and the spacing between any two windows.
[0185] Optionally, in the above embodiment of the present invention, the server is also used to determine display parameters of multiple windows according to the first arrangement method, and arrange the multiple windows according to the display parameters of the multiple windows to obtain multiple arranged windows, wherein the display parameters include: display size and display position.
[0186] Optionally, in the above embodiment of the present invention, the server is also used to obtain the display size of multiple windows according to the display size corresponding to the first arrangement method, and obtain the display position of multiple windows according to the first horizontal arrangement number and the first vertical arrangement number corresponding to the first arrangement method and the spacing between any two windows.
[0187] Optionally, in the above embodiment of the present invention, Figure 7 is a schematic diagram of an optional window control system according to an embodiment of the present invention, such as Figure 7 As shown, the system also includes:
[0188] The control device 71 is connected to the server 61 and is used to send window arrangement instructions.
[0189] Specifically, the above-mentioned control device can be a smart phone (including: Android phone and IOS phone), IPAD, tablet computer, touch-screen all-in-one machine, laptop computer, computer terminal, etc., and the present invention does not make specific limitations on this; the above-mentioned window arrangement instructions can be instructions generated by clicking a button, clicking a link, gesture operation, etc.
[0190] The server 61 is further configured to determine a first arrangement mode from a plurality of preset arrangement modes if it determines that the window arrangement instruction is received.
[0191] In an optional solution, a "window arrangement" function can be added to the control program installed on the control device. The user generates a window arrangement instruction by clicking the "window arrangement" button and sends it to the server. After receiving the window arrangement instruction, the server can determine the arrangement method with the largest window area among all possible arrangements, that is, the first arrangement method.
[0192] Optionally, in the above embodiment of the present invention, the server is also used to obtain a second horizontal arrangement number and a second vertical arrangement number of the multiple windows according to the size of the spliced screen, the minimum size of each window and the spacing between any two windows, and to determine whether the number of the multiple windows exceeds the product of the second horizontal arrangement number and the second vertical arrangement number; if the number of the multiple windows does not exceed the product of the second horizontal arrangement number and the second vertical arrangement number, then determine a first arrangement mode from the preset multiple arrangement modes.
[0193] Optionally, in the above embodiment of the present invention, if the number of the multiple windows exceeds the product of the second horizontal arrangement number and the second vertical arrangement number, the server is further used to generate prompt information and display the prompt information, wherein the prompt information is used to prompt to close the window.
[0194] It should be noted that the preferred implementation manner in this embodiment can refer to the relevant description in Example 1, which will not be repeated here.
[0195] Example 4
[0196] According to an embodiment of the present invention, an embodiment of a storage medium is provided, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the window control method in the above-mentioned embodiment 1.
[0197] Example 5
[0198] According to an embodiment of the present invention, an embodiment of a processor is provided. The processor is used to run a program. When the program is run, the window control method in the above-mentioned embodiment 1 is executed.
[0199] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0200] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0201] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0202] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0203] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0204] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0205] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for controlling a window, It is characterized in that include: Determine a first arrangement from a plurality of preset arrangement, wherein the number of the arrangement corresponds to the number of windows, the arrangement includes: the number of windows arranged horizontally and the number of windows arranged vertically, and the first arrangement is an arrangement that maximizes the total area of the windows on the spliced screen; Arranging the multiple windows displayed on the spliced screen according to the first arrangement mode to obtain multiple arranged windows; Controlling the spliced screen to display the arranged multiple windows; Wherein, the method further comprises: Obtain the size of the spliced screen, the minimum size of each window, the distance between any two windows and the number of the multiple windows; Obtaining multiple display sizes according to the size of the spliced screen, the minimum size of each window, the spacing between any two windows and the number of the multiple windows; Determine whether each display size meets the preset conditions; If it is determined that any one of the display sizes meets the preset condition, the any one of the display sizes, the first horizontal arrangement quantity and the first vertical arrangement quantity corresponding to the any one of the display sizes are stored to obtain the multiple arrangement modes.
2. The method according to claim 1, It is characterized in that Determining a first arrangement from a plurality of preset arrangements includes: Obtaining the multiple arrangements; Calculate the total area of multiple windows arranged in each arrangement mode; Compare the total areas of the multiple windows arranged according to each arrangement mode to obtain the arrangement mode corresponding to the maximum total area; The arrangement corresponding to the maximum total area is used as the first arrangement.
3. The method according to claim 1, It is characterized in that According to the size of the spliced screen, the minimum size of each window, the spacing between any two windows and the number of the multiple windows, multiple display sizes are obtained, including: According to the size of the spliced screen, the minimum size of each window and the distance between any two windows, a plurality of first horizontal arrangement numbers are obtained; According to the number of the plurality of windows and the plurality of first horizontal arrangement numbers, a plurality of first vertical arrangement numbers are obtained; The multiple display sizes are obtained according to the multiple first longitudinal arrangement numbers, the size of the spliced screen and the distance between any two windows.
4. The method according to claim 1, It is characterized in that Determining whether each display size meets a preset condition includes: Determining whether each display size is greater than or equal to the minimum size of each window, and determining whether the display size of at least one window arranged horizontally is less than or equal to the size of the spliced screen; If the first display size is greater than or equal to the minimum size of each window, and the display size of at least one window arranged horizontally is less than or equal to the size of the spliced screen, it is determined that the first display size meets the preset condition; If the second display size is smaller than the minimum size of each window, or the display size of at least one window arranged horizontally is larger than the size of the spliced screen, it is determined that the second display size does not meet the preset condition.
5. The method according to claim 1, It is characterized in that Determining a first arrangement from a plurality of preset arrangements includes: Obtain the size of the spliced screen, the minimum size of each window and the distance between any two windows; The first arrangement is obtained by a preset method according to the size of the spliced screen, the minimum size of each window and the distance between any two windows.
6. A window control device, It is characterized in that include: a determining unit, configured to determine a first arrangement from a plurality of preset arrangement, wherein the number of the arrangement corresponds to the number of windows, the arrangement comprising: the number of windows arranged horizontally and the number of windows arranged vertically, and the first arrangement is an arrangement that maximizes the total area of the windows on the spliced screen; an arranging unit, configured to arrange the plurality of windows displayed on the spliced screen according to the first arrangement mode to obtain the plurality of arranged windows; A control unit, used for controlling the spliced screen to display the arranged multiple windows; The determination unit is also used to obtain the size of the spliced screen, the minimum size of each window, the spacing between any two windows and the number of the multiple windows; obtain multiple display sizes according to the size of the spliced screen, the minimum size of each window, the spacing between any two windows and the number of the multiple windows; determine whether each display size meets a preset condition; if it is determined that any display size meets the preset condition, store the first horizontal arrangement number and the first vertical arrangement number corresponding to the any display size to obtain the multiple arrangement modes.
7. A window control system, It is characterized in that include: The server is configured to determine a first arrangement mode from a plurality of preset arrangement modes, wherein the number of the arrangement modes corresponds to the number of windows, and the arrangement modes include: the number of windows arranged horizontally and the number of windows arranged vertically, and the first arrangement mode is an arrangement mode that maximizes the total area of the windows on the spliced screen, and the plurality of windows displayed on the spliced screen are arranged according to the first arrangement mode to obtain the plurality of arranged windows; A splicing screen, connected to the server, and used for displaying the arranged multiple windows; The server is further used to obtain the size of the splicing screen, the minimum size of each window, the spacing between any two windows and the number of the multiple windows; obtain multiple display sizes according to the size of the splicing screen, the minimum size of each window, the spacing between any two windows and the number of the multiple windows; determine whether each display size meets a preset condition; if it is determined that any display size meets the preset condition, store the first horizontal arrangement number and the first vertical arrangement number corresponding to the any display size to obtain the multiple arrangement methods.
8. The system according to claim 7, It is characterized in that The system further comprises: A control device, connected to the server, for sending a window arrangement instruction; The server is further configured to determine a first arrangement mode from a plurality of preset arrangement modes if it determines that the window arrangement instruction is received.
9. A storage medium, It is characterized in that The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the window control method according to any one of claims 1 to 5.
10. A processor, It is characterized in that The processor is used to run a program, wherein the program executes the window control method according to any one of claims 1 to 5 when running.
