Control method, device and system, storage medium and the processor of window
Technical field
The present invention relates to mosaic screen field, in particular to a kind of control method of window, device and system, storage
Medium and processor.
Background technology
Multiple windows often occur on mosaic screen, and each window can be moved freely and zoom, window
Arrangement can seem very chaotic.In order to arrange the multiple windows for splicing screen display, it can pass through in the prior art
Manually zoom and each window is arranged, but scaled by amplification by hand and arrangement expends the time very much, and not
Necessarily can be neat by all window arrangements, and the display space of mosaic screen is not made full use of, cause display space wave
Take.
For being adjusted in the prior art to multiple windows on mosaic screen, it is impossible to make full use of the display of mosaic screen empty
Between the problem of, effective solution is not yet proposed at present.
The content of the invention
The embodiments of the invention provide a kind of control method of window, device and system, storage medium and processor, so that
It is few to solve in the prior art to be adjusted multiple windows on mosaic screen, it is impossible to make full use of the skill of the display space of mosaic screen
Art problem.
One side according to embodiments of the present invention there is provided a kind of control method of window, including:From default multiple
First order mode is determined in arrangement mode, wherein, first order mode is used to carry out the multiple windows for splicing screen display
Arrangement, and multiple windows obtained by being arranged according to first order mode the gross area more than according to second order mode
The gross area of multiple windows obtained by being arranged, second order mode be multiple arrangement modes in except first order mode it
Any one outer arrangement mode;Multiple windows are arranged according to first order mode, multiple windows after being arranged;
Control multiple windows after mosaic screen display arrangement.
Further, first order mode is determined from default multiple arrangement modes, including:Obtain multiple arrangement sides
Formula;Calculate the gross area of multiple windows obtained by being arranged according to each arrangement mode;It will enter according to each arrangement mode
The gross area of multiple windows obtained by row arrangement is compared, and obtains the corresponding arrangement mode of the maximum gross area;Will be maximum total
The corresponding arrangement mode of area is used as first order mode.
Further, multiple arrangement modes are obtained, including:The size of mosaic screen is obtained, the minimum dimension of each window is appointed
The quantity of spacing and multiple windows between two windows of meaning;According to the size of mosaic screen, the minimum dimension of each window, arbitrarily
The quantity of spacing and multiple windows between two windows, obtains multiple display sizes;Judge whether each display size meets
Preparatory condition;It is if it is judged that any one display size meets preparatory condition, then and any one by any one display size
Corresponding first transversely arranged quantity and the first longitudinal direction number of the arrangement of individual display size is stored, and obtains multiple arrangement modes.
Further, according to the size of mosaic screen, the minimum dimension of each window, spacing between any two window and
The quantity of multiple windows, obtains multiple display sizes, including:According to the size of mosaic screen, the minimum dimension of each window and appoint
Spacing between two windows of meaning, obtains the multiple first transversely arranged quantity;According to the quantity of multiple windows and multiple first horizontal strokes
To number of the arrangement, multiple first longitudinal direction number of the arrangement are obtained;According to multiple first longitudinal direction number of the arrangement, the size of mosaic screen and appoint
Spacing between two windows of meaning, obtains multiple display sizes.
Further, judge whether each display size meets preparatory condition, including:Judge whether each display size is big
In the minimum dimension equal to each window, also, judge at least one transversely arranged window display size whether be less than etc.
In the size of mosaic screen;If the first display size is more than or equal to the minimum dimension of each window, and transversely arranged at least one
The display size of individual window is less than or equal to the size of mosaic screen, it is determined that the first display size meets preparatory condition;If second
Display size is less than the minimum dimension of each window, or the display size of at least one transversely arranged window is more than mosaic screen
Size, it is determined that the second display size is unsatisfactory for preparatory condition.
Further, first order mode is determined from default multiple arrangement modes, including:Obtain the chi of mosaic screen
It is very little, the spacing between the minimum dimension and any two window of each window;According to the size of mosaic screen, the minimum of each window
Spacing between size and any two window, first order mode is obtained by presetting method.
Further, multiple windows are arranged according to first order mode, multiple windows after being arranged, wrapped
Include:According to first order mode, the display parameters of multiple windows are determined, wherein, display parameters include:Display size and display position
Put;According to the display parameters of multiple windows, multiple windows are arranged, multiple windows after being arranged.
Further, according to first order mode, the display parameters of multiple windows are determined, including:According to first order side
The corresponding display size of formula, obtains the display size of multiple windows;According to the corresponding first transversely arranged number of first order mode
Amount and the spacing between first longitudinal direction number of the arrangement and any two window, obtain the display location of multiple windows.
Further, before first order mode is determined from default multiple arrangement modes, the above method also includes:
Judge whether that the window arrangement for receiving control device transmission is instructed;If it is judged that receiving window arrangement instruction, then from pre-
If multiple arrangement modes in determine first order mode.
Further, before first order mode is determined from default multiple arrangement modes, the above method also includes:
According to the size of mosaic screen, the spacing between the minimum dimension and any two window of each window obtains the of multiple windows
Two transversely arranged quantity and second longitudinal direction number of the arrangement;Judge multiple windows quantity whether more than the second transversely arranged quantity and
The product of second longitudinal direction number of the arrangement;If the quantity of multiple windows is arranged not less than the second transversely arranged quantity and second longitudinal direction
The product of quantity, then determine first order mode from default multiple arrangement modes.
Further, if the quantity of multiple windows multiplying more than the second transversely arranged quantity and second longitudinal direction number of the arrangement
Product, the above method also includes:Prompt message is generated, and prompt message is shown, wherein, prompt message is used to point out to close
Window.
Other side according to embodiments of the present invention, additionally provides a kind of control device of window, including:It is determined that single
Member, for determining first order mode from default multiple arrangement modes, wherein, first order mode is used for mosaic screen
Multiple windows of display are arranged, and the gross area of multiple windows obtained by being arranged according to first order mode is big
The gross area of multiple windows obtained by being arranged according to second order mode, second order mode is multiple arrangement modes
In any one arrangement mode in addition to first order mode;Arrangement units, for the arrangement mode pair according to multiple windows
Multiple windows are arranged, multiple windows after being arranged;Control unit, it is multiple after mosaic screen display arrangement for controlling
Window.
Other side according to embodiments of the present invention, additionally provides a kind of control system of window, including:Server,
For determining first order mode from default multiple arrangement modes, according to first order mode to many of splicing screen display
Individual window is arranged, multiple windows after being arranged, wherein, first order mode is used to arrange multiple windows,
And the gross area of multiple windows obtained by being arranged according to first order mode is more than to be carried out according to second order mode
Arrangement obtained by multiple windows the gross area, second order mode be multiple arrangement modes in addition to first order mode
Any one arrangement mode;Mosaic screen, is connected with server, for showing multiple windows after arrangement.
Further, said system also includes:Control device, is connected with server, for sending window arrangement instruction;Clothes
Business device is additionally operable to instruct if it is judged that receiving window arrangement, then first order side is determined from default multiple arrangement modes
Formula.
Other side according to embodiments of the present invention, additionally provides a kind of storage medium, and storage medium includes storage
Program, wherein, equipment where controlling storage medium when program is run performs the control method of the window in above-described embodiment.
Other side according to embodiments of the present invention, additionally provides a kind of processor, and processor is used for operation program, its
In, program performs the control method of the window in above-described embodiment when running.
In embodiments of the present invention, first order mode is determined from default multiple arrangement modes, according to first order
Mode is arranged multiple windows, multiple windows after being arranged, multiple windows after control mosaic screen display arrangement, from
And realize the purpose that all windows shown in mosaic screen are carried out with alignment.It is easily noted that, due to according to first row
Row mode arranged obtained by multiple windows the gross area be more than carried out according to other arrangement modes in multiple arrangement modes
The gross area of multiple windows obtained by arrangement, i.e., after being arranged according to first order mode multiple windows, after arrangement
Multiple windows the gross area it is maximum, multiple windows on mosaic screen are adjusted in the prior art so as to solve, it is impossible to
Make full use of the technical problem of the display space of mosaic screen.Therefore, the scheme provided by the above embodiment of the present invention, Ke Yida
To the utilization rate for the display space for improving mosaic screen, the technique effect of the waste of display space is reduced.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the control method of window according to embodiments of the present invention;
Fig. 2 is the flow chart of a kind of optional calculation window arrangement mode according to embodiments of the present invention, size and coordinate;
Fig. 3 is a kind of flow chart of the control method of optional window according to embodiments of the present invention;
Fig. 4 is a kind of optional flow chart for obtaining first order mode according to embodiments of the present invention;
Fig. 5 is a kind of schematic diagram of the control device of window according to embodiments of the present invention;
Fig. 6 is a kind of schematic diagram of the control system of window according to embodiments of the present invention;And
Fig. 7 is a kind of schematic diagram of the control system of optional window according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Lid is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention there is provided a kind of embodiment of the control method of window, it is necessary to illustrate, in accompanying drawing
Flow can be performed in the computer system of such as one group computer executable instructions the step of illustrate, and, although
Show logical order in flow charts, but in some cases, can with different from order herein perform it is shown or
The step of description.
Fig. 1 is a kind of flow chart of the control method of window according to embodiments of the present invention, as shown in figure 1, this method bag
Include following steps:
Step S102, determines first order mode from default multiple arrangement modes, wherein, first order mode is used for
The multiple windows for splicing screen display are arranged, and multiple windows obtained by being arranged according to first order mode
The gross area be more than arranged according to second order mode obtained by multiple windows the gross area, second order mode is many
Any one arrangement mode in individual arrangement mode in addition to first order mode.
Specifically, above-mentioned default multiple arrangement modes are the sides of arrangement corresponding with multiple windows got in advance
The quantity of formula, i.e. arrangement mode is corresponding with the quantity of window, and arrangement mode can include:The quantity of transversely arranged window and vertical
To the quantity of arrangement window.
It should be noted that the arrangement mode of multiple windows of varying number has a variety of, same amount of multiple windows
Arrangement mode may be constructed an arrangement mode combination, and the window under multiple arrangement modes, different arrangement modes is included in set
Mouthful size it is different, during first order mode can be the arrangement mode set, the maximum arrangement side of the gross areas of multiple windows
Formula, so as to guarantee farthest to use display space, reduces display space and wastes.
Multiple windows are arranged by step S104 according to first order mode, multiple windows after being arranged.
Step S106, multiple windows after control mosaic screen display arrangement.
In a kind of optional scheme, the server of mosaic screen (for example, graphics workstation of control mosaic screen) can be from
In the corresponding multiple arrangement modes of all windows shown in mosaic screen, the maximum arrangement of the gross area of all windows is obtained
Mode, i.e. first order mode, are arranged all windows according to first order mode, multiple windows after being arranged
Mouthful, and multiple windows after arrangement are sent to mosaic screen, shown by mosaic screen.
According to the above embodiment of the present invention, first order mode is determined from default multiple arrangement modes, according to first
Arrangement mode is arranged multiple windows, multiple windows after being arranged, multiple windows after control mosaic screen display arrangement
Mouthful, so as to realize the purpose that all windows shown in mosaic screen are carried out with alignment.It is easily noted that, due to according to
One arrangement mode arranged obtained by multiple windows the gross area be more than according to other arrangement modes in multiple arrangement modes
The gross area of multiple windows obtained by being arranged, i.e., after being arranged according to first order mode multiple windows, row
The gross area of multiple windows after row is maximum, and multiple windows on mosaic screen are adjusted in the prior art so as to solve,
The technical problem of the display space of mosaic screen can not be made full use of.Therefore, the scheme provided by the above embodiment of the present invention, can
To reach the utilization rate for the display space for improving mosaic screen, the technique effect of the waste of display space is reduced.
Alternatively, in the above embodiment of the present invention, step S102 determines first row from default multiple arrangement modes
Row mode, including:
Step S1022, obtains multiple arrangement modes.
Step S1024, calculates the gross area of multiple windows obtained by being arranged according to each arrangement mode.
Step S1026, the gross area of multiple windows obtained by being arranged according to each arrangement mode is compared,
Obtain the corresponding arrangement mode of the maximum gross area.
Step S1028, regard the corresponding arrangement mode of the maximum gross area as first order mode.
In a kind of optional scheme, server can be enumerated according to the quantity of the multiple windows shown in mosaic screen
All possible arrangement mode, that is, get multiple arrangement mode set, can be according to currently to the setting of window (including window
Minimum dimension, window spacing), calculating obtains under every kind of arrangement mode the gross area of window and chooses the corresponding row of maximum area
Row mode is used as first order mode.
Alternatively, in the above embodiment of the present invention, step S1022 obtains multiple arrangement modes, including:
Step S108, obtains the size of mosaic screen, the minimum dimension of each window, spacing between any two window and
The quantity of multiple windows.
Specifically, the size of above-mentioned mosaic screen can include the long W and high H of mosaic screen;Above-mentioned minimum dimension can be with
Minimum long W including windowminWith minimum high Hmin;Spacing between above-mentioned any two window can include between left and right away from Wg
Between the upper and lower away from Hg。
Step S110, according to the size of mosaic screen, the minimum dimension of each window, spacing between any two window and
The quantity of multiple windows, obtains multiple display sizes.
Specifically, the size all same of each window of splicing screen display, is above-mentioned display size, can include
The long w of display and the high g of display of window.
In a kind of optional scheme, as shown in Fig. 2 the long W and high H of mosaic screen can be obtained, the minimum long W of windowmin
With minimum high Hmin, between any two window between left and right away from WgBetween the upper and lower away from Hg, and multiple windows quantity N, and root
Calculated according to the data got and obtain multiple long w of display and show high h.
Step S112, judges whether each display size meets preparatory condition.
Specifically, above-mentioned preparatory condition can be that the determination display size pre-set meets the condition that display is required.
Step S114, if it is judged that any one display size meets preparatory condition, then by any one display size,
The first transversely arranged quantity and first longitudinal direction number of the arrangement corresponding with any one display size is stored, and obtains multiple rows
Row mode.
In a kind of optional scheme, as shown in Fig. 2 after calculating obtains multiple display length and display height, can sentence
It is disconnected to calculate obtained each display length and show whether height meets preparatory condition, if some display is long and display height meets default
Condition, it is determined that the display length and display height meet display and required, can grow the display and show height, and corresponding transverse direction
Number of the arrangement and longitudinal arrangement quantity are stored, and are used as an arrangement mode;If some display is long and display height is unsatisfactory for
Preparatory condition, it is determined that the display length and display height do not meet display and required, directly give up.
Alternatively, in the above embodiment of the present invention, step S110, according to the size of mosaic screen, the minimum of each window
The quantity of spacing and multiple windows between size, any two window, obtains multiple display sizes, including:
Step S1102, according to the size of mosaic screen, between the minimum dimension and any two window of each window between
Away from obtaining the multiple first transversely arranged quantity.
In a kind of optional scheme, as shown in Fig. 2 the length and height of mosaic screen can be obtained, the minimum of window is long and most
Between small height, and any two window between left and right away from between the upper and lower away from and being calculated according to the data that get and obtain maximum
Transversely arranged quantity m and maximum longitudinal arrangement quantity n, the first transversely arranged quantity i can be 1 to any one value in m, often
Circulation primary, the first transversely arranged quantity increase by 1, i.e., in first time is circulated, i=1, in second circulates, i=2, with this
Analogize.
Step S1104, according to the quantity of multiple windows and multiple first transversely arranged quantity, obtains multiple first longitudinal direction rows
Number of columns.
In a kind of optional scheme, as shown in Fig. 2 it is determined that after the first transversely arranged quantity i, first determining whether that i is
The no quantity N more than multiple windows, if it is not, then the transversely arranged quantity i of the quantity N and first for calculating multiple windows ratio,
And round up, obtain first longitudinal direction number of the arrangement, i.e. j=N/i and round up.
If it should be noted that in cyclic process, judging that i is more than N, then terminating whole cyclic process, obtain many
The corresponding multiple arrangement modes of individual window.
Step S1106, according to multiple first longitudinal direction number of the arrangement, between the size and any two window of mosaic screen between
Away from obtaining multiple display sizes.
In a kind of optional scheme, as shown in Fig. 2 the display that each window can be obtained by equation below calculating is long
It is high with display:W=(W- (j-1) Wg)/j, h=w/c, wherein, c is the length to height ratio of the window pre-set, and judges to calculate
To the long w of display and show whether high h meets preparatory condition, if it is satisfied, then i, j and w and h are stored, be used as one
Individual arrangement mode;If be unsatisfactory for, circulated next time, by the first transversely arranged quantity i increases by 1.
Alternatively, in the above embodiment of the present invention, step S112 judges whether each display size meets default bar
Part, including:
Step S1122, judges whether each display size is more than or equal to the minimum dimension of each window, also, judge horizontal
Whether it is less than or equal to the size of mosaic screen to the display size of at least one window of arrangement.
Step S1124, if the first display size be more than or equal to each window minimum dimension, and it is transversely arranged at least
The display size of one window is less than or equal to the size of mosaic screen, it is determined that the first display size meets preparatory condition.
Step S1126, if the second display size is less than the minimum dimension of each window, or at least one transversely arranged
The display size of window is more than the size of mosaic screen, it is determined that the second display size is unsatisfactory for preparatory condition.
In a kind of optional scheme, as shown in Fig. 2 calculate the long w of display for obtaining each window and show high g it
Afterwards, it can be determined that whether w is more than Wmin, whether h is more than Hmin, and transversely arranged at least one window display size whether
Less than or equal to the size of mosaic screen, i.e. H-i*h- (i-1) * HgWhether 0 is more than, if w>Wmin, h>Hmin, and H-i*h- (i-1) *
Hg>0, it is determined that each display size meets preparatory condition, and i and j can be stored in arrangement mode set;Otherwise, can be with
Circulated next time, by the first transversely arranged quantity increase by 1.
Alternatively, in the above embodiment of the present invention, step S102 determines first row from default multiple arrangement modes
Row mode, including:
Step S116, obtains the size of mosaic screen, the spacing between the minimum dimension and any two window of each window.
Step S118, according to the size of mosaic screen, the spacing between the minimum dimension and any two window of each window,
First order mode is obtained by presetting method.
Specifically, above-mentioned presetting method can be the method for optimization object function, can be previously according to calculating different window
In the case of mouth quantity, according to the length and height of mosaic screen, the minimum length and minimum of window are high, and between any two window
Between left and right away from between the upper and lower away from, calculating obtain first order mode.
In a kind of optional scheme, server obtains the length and height of mosaic screen after window arrangement instruction is received,
The minimum length and minimum of window is high, and between any two window between left and right away from between the upper and lower away from and according to getting
Data calculate and obtain first order mode.
By such scheme, first order mode can be determined by preset algorithm with directly, it is to avoid enumerate all possible
Arrangement mode, reduces operand, improves control efficiency.
Alternatively, in the above embodiment of the present invention, step S104 is arranged multiple windows according to first order mode
Row, multiple windows after being arranged, including:
Step S1042, according to first order mode, determines the display parameters of multiple windows, wherein, display parameters include:
Display size and display location.
Specifically, above-mentioned display location can be the top left co-ordinate of each window.
Multiple windows, according to the display parameters of multiple windows, are arranged by step S1044, multiple after being arranged
Window.
In a kind of optional scheme, server obtains first order mode in calculating, that is, obtains the horizontal window number of permutations
Measure after i and longitudinal window number of the arrangement j, can calculate and obtain the high w of display of each window, show long h and top left co-ordinate,
The display parameters that server can be obtained according to calculating are arranged multiple windows, multiple windows after being arranged, and will
Multiple windows after arrangement are sent to mosaic screen, are shown by mosaic screen.
It should be noted that server is after calculating obtains the display parameters of each window, can be directly by each window
The display parameters of mouth are sent to mosaic screen, and mosaic screen shows multiple windows according to the display parameters of each window.
Alternatively, in the above embodiment of the present invention, step S1042, according to first order mode, determines multiple windows
Display parameters, including:
Step S120, according to the corresponding display size of first order mode, obtains the display size of multiple windows.
Step S122, according to corresponding first transversely arranged quantity and the first longitudinal direction number of the arrangement of first order mode and
Spacing between any two window, obtains the display location of multiple windows.
In a kind of optional scheme, it can be calculated by above-mentioned formula and obtain showing long w and show high h, energy will be calculated
What is obtained shows that long w and the high h of display are high as the display length of each display window and display, and is obtained by equation below calculating
Top left co-ordinate (l* (the w+W of the window of row k l rowg), k* (h+Hg)), that is, obtain the display location of each window.
Alternatively, in the above embodiment of the present invention, in step S102, first is determined from default multiple arrangement modes
Before arrangement mode, this method also comprises the following steps:
Step S124, judges whether to receive the window arrangement instruction of control device transmission.
Specifically, above-mentioned control device can be smart mobile phone (including:Android phone and IOS mobile phones), IPAD,
Tablet personal computer, touch-control all-in-one machine, notebook computer, terminal etc., the present invention are not especially limited to this;Above-mentioned window
Arrangement instruction can be the instruction generated by modes such as click keys, clickthrough, gesture operations.
Step S126, if it is judged that receiving window arrangement instruction, then determines the from default multiple arrangement modes
One arrangement mode.
In a kind of optional scheme, increase " window arrangement " work(in the control program that can be installed on the control device
Can, user is sent to server by clicking on " window arrangement " button, generation window arrangement instruction, and server is being received
After window arrangement instruction, it may be determined that the maximum arrangement mode of all window areas in all possible arrangement mode, i.e., the
One arrangement mode.
Alternatively, in the above embodiment of the present invention, in step S102, first is determined from default multiple arrangement modes
Before arrangement mode, this method also comprises the following steps:
Step S128, according to the size of mosaic screen, the spacing between the minimum dimension and any two window of each window,
Obtain the second transversely arranged quantity and second longitudinal direction number of the arrangement of multiple windows.
Specifically, the second above-mentioned transversely arranged quantity and second longitudinal direction number of the arrangement can be maximum transversal number of the arrangement
With maximum longitudinal arrangement quantity.
In a kind of optional scheme, the length and height of mosaic screen can be obtained, the minimum length and minimum of window are high, Yi Jiren
Anticipate two windows between left and right away from between the upper and lower away from, and according to the data got by equation below calculate obtain maximum
Transversely arranged quantity m and maximum longitudinal arrangement quantity n:Round downwards,Round downwards.
Whether step S130, judge the quantity of multiple windows more than the second transversely arranged quantity and second longitudinal direction number of the arrangement
Product.
Step S132, if the quantity of multiple windows is not less than the second transversely arranged quantity and second longitudinal direction number of the arrangement
Product, then determine first order mode from default multiple arrangement modes.
In a kind of optional scheme, calculating obtain maximum transversal number of the arrangement m and maximum longitudinal arrangement quantity n it
Afterwards, m and n product can be calculated, obtains at most arranging the quantity of window on mosaic screen, server is receiving control device
After the window arrangement instruction of transmission, it can first determine whether whether the quantity for splicing the window of screen display exceedes on mosaic screen most
The quantity of window can be arranged more, if it is not, then can be obtained by enumerative technique or using the method calculating of optimization object function
First order mode.
Alternatively, in the above embodiment of the present invention, if the quantity of multiple windows more than the second transversely arranged quantity and
The product of second longitudinal direction number of the arrangement, this method also comprises the following steps:
Step S134, generates prompt message, and prompt message is shown, wherein, prompt message is used to point out to close
Window.
In a kind of optional scheme, if it is, prompt message can be generated, user is pointed out to need closing to make
Window.
Fig. 3 is a kind of flow chart of the control method of optional window according to embodiments of the present invention, and Fig. 4 is according to this hair
A kind of optional flow chart for obtaining first order mode of bright embodiment, with reference to Fig. 3 and Fig. 4 to of the invention a kind of preferred
Embodiment be described in detail.
As described in Figure 3, this method may include steps of:
Step S31, control device sends window arrangement instruction.
Alternatively, operator can on the control device be triggered by modes such as click keys, clickthrough, gesture operations
Window arrangement is instructed.
Step S32, window can at most be arranged by judging whether current window exceedes.
Alternatively, it is assumed that N number of window is had on mosaic screen, and the quantity of current window is N, window can at most be arranged as m
Row and n row, the quantity that can at most arrange window is m*n, and server instructs it receiving the window arrangement that control device sends
Afterwards, N can be first determined whether whether more than m*n, if it is not, then into step S33;If it is, into step S35.
Step S33, calculation window arrangement mode, window size and window top left co-ordinate.
Alternatively, if N≤m*n, server determines that all windows can be shown on mosaic screen completely, calculates each
Window size under window arrangement mode, and therefrom select the maximum window arrangement mode of the gross area of all windows, and
Under the window arrangement mode, the coordinate in each window upper left corner is calculated.
Step S34, resize-window is simultaneously arranged.
Alternatively, server can be zoomed in and out according to the size of each window to each window, and according to each window
Multiple windows are arranged by the coordinate in the upper left corner, the window after being arranged, and control the window after mosaic screen display arrangement
Mouthful.
Step S35, points out user to close unwanted window.
Alternatively, if N>M*n, then server determine that all windows can not be shown on mosaic screen, point out user need
Close unwanted window.
As shown in figure 4, the method for obtaining first order mode may include steps of:
Step S41, enumerates all window arrangement modes.
Alternatively, server receive window arrangement instruction after, can first according to work as front opening window quantity,
Enumerate all possible window arrangement mode.
Step S42, according to current setting and window arrangement mode calculation window length and width and area.
It is alternatively possible to for all window arrangement modes and current setting (window minimum dimension, window to window
Spacing), calculate the length and width and area of window under every kind of arrangement mode.
Step S43, selects the maximum a kind of arrangement mode of window area in all arrangement modes.
Step S44, calculates the position of each window under the arrangement mode.
It is alternatively possible to a kind of maximum arrangement mode of selected window area, and calculate each window under the arrangement mode
The top left co-ordinate of the position, i.e. each window of mouth.
By above-mentioned steps, after window arrangement instruction is received, first order mode, adjust automatically window can be obtained
The length and width of mouth and position, simultaneously, it is ensured that make full use of the display space of mosaic screen.
Embodiment 2
There is provided a kind of embodiment of the control device of window according to embodiments of the present invention.
Fig. 5 is a kind of schematic diagram of the control device of window according to embodiments of the present invention, as shown in figure 5, the device bag
Include:
Determining unit 51, for determining first order mode from default multiple arrangement modes, wherein, first order side
Formula is used to arrange the multiple windows for splicing screen display, and many obtained by being arranged according to first order mode
The gross area of individual window is more than the gross area of multiple windows obtained by being arranged according to second order mode, second order side
Formula is any one arrangement mode in multiple arrangement modes in addition to first order mode.
Specifically, above-mentioned default multiple arrangement modes are the sides of arrangement corresponding with multiple windows got in advance
The quantity of formula, i.e. arrangement mode is corresponding with the quantity of window, and arrangement mode can include:The quantity of transversely arranged window and vertical
To the quantity of arrangement window.
It should be noted that the arrangement mode of multiple windows of varying number has a variety of, same amount of multiple windows
Arrangement mode may be constructed an arrangement mode combination, and the window under multiple arrangement modes, different arrangement modes is included in set
Mouthful size it is different, during first order mode can be the arrangement mode set, the maximum arrangement side of the gross areas of multiple windows
Formula, so as to guarantee farthest to use display space, reduces display space and wastes.
Arrangement units 53, for being arranged according to first order mode multiple windows, multiple windows after being arranged
Mouthful.
Control unit 55, for controlling multiple windows after mosaic screen display arrangement.
In a kind of optional scheme, the server of mosaic screen (for example, graphics workstation of control mosaic screen) can be from
In the corresponding multiple arrangement modes of all windows shown in mosaic screen, the maximum arrangement of the gross area of all windows is obtained
Mode, i.e. first order mode, are arranged all windows according to first order mode, multiple windows after being arranged
Mouthful, and multiple windows after arrangement are sent to mosaic screen, shown by mosaic screen.
According to the above embodiment of the present invention, first order mode is determined from default multiple arrangement modes, according to first
Arrangement mode is arranged multiple windows, multiple windows after being arranged, multiple windows after control mosaic screen display arrangement
Mouthful, so as to realize the purpose that all windows shown in mosaic screen are carried out with alignment.It is easily noted that, due to according to
One arrangement mode arranged obtained by multiple windows the gross area be more than according to other arrangement modes in multiple arrangement modes
The gross area of multiple windows obtained by being arranged, i.e., after being arranged according to first order mode multiple windows, row
The gross area of multiple windows after row is maximum, and multiple windows on mosaic screen are adjusted in the prior art so as to solve,
The technical problem of the display space of mosaic screen can not be made full use of.Therefore, the scheme provided by the above embodiment of the present invention, can
To reach the utilization rate for the display space for improving mosaic screen, the technique effect of the waste of display space is reduced.
Alternatively, in the above embodiment of the present invention, determining unit 51 includes:
First acquisition module, for obtaining multiple arrangement modes.
Computing module, the gross area for calculating multiple windows obtained by being arranged according to each arrangement mode.
Second acquisition module, for the gross area of multiple windows obtained by being arranged according to each arrangement mode to be entered
Row compares, and obtains the corresponding arrangement mode of the maximum gross area.
First processing module, for regarding the corresponding arrangement mode of the maximum gross area as first order mode.
Alternatively, in the above embodiment of the present invention, the first acquisition module includes:
Acquisition submodule, the size for obtaining mosaic screen, between the minimum dimension and any two window of each window
Spacing.
First processing submodule, for the size according to mosaic screen, the minimum dimension of each window, any two window it
Between spacing and multiple windows quantity, obtain multiple display sizes.
Judging submodule, for judging whether each display size meets preparatory condition.
Sub-module stored, for if it is judged that any one display size meets preparatory condition, then showing any one
Show size, the first transversely arranged quantity and first longitudinal direction number of the arrangement corresponding with any one display size is stored, and is obtained
To multiple arrangement modes.
Alternatively, in the above embodiment of the present invention, the first processing submodule includes:
First processing baryon module, for the size according to mosaic screen, the minimum dimension and any two window of each window
Spacing between mouthful, obtains the multiple first transversely arranged quantity.
Second processing baryon module, for the quantity according to multiple windows and multiple first transversely arranged quantity, obtains many
Individual first longitudinal direction number of the arrangement.
3rd processing baryon module, for according to multiple first longitudinal direction number of the arrangement, the size and any two of mosaic screen
Spacing between window, obtains multiple display sizes.
Alternatively, in the above embodiment of the present invention, judging submodule includes:
Judge baryon module, for judging whether each display size is more than or equal to the minimum dimension of each window, also,
Judge whether the display size of at least one transversely arranged window is less than or equal to the size of mosaic screen.
First determines baryon module, if it is more than or equal to the minimum dimension of each window for the first display size, and it is horizontal
It is less than or equal to the size of mosaic screen to the display size of at least one window of arrangement, it is determined that the first display size meets default
Condition.
Second determines baryon module, and the minimum dimension of each window is less than for the second display size, or transversely arranged
The display size of at least one window is more than the size of mosaic screen, it is determined that the second display size is unsatisfactory for preparatory condition.
Alternatively, in the above embodiment of the present invention, determining unit 51 includes:
3rd acquisition module, the size for obtaining mosaic screen, the minimum dimension and any two window of each window it
Between spacing.
Second processing module, for the size according to mosaic screen, the minimum dimension and any two window of each window it
Between spacing, first order mode is obtained by presetting method.
Alternatively, in the above embodiment of the present invention, arrangement units 53 include:
Determining module, for according to first order mode, determining the display parameters of multiple windows, wherein, display parameters bag
Include:Display size and display location.
Module is arranged, for the display parameters according to multiple windows, multiple windows are arranged, it is many after being arranged
Individual window.
Alternatively, in the above embodiment of the present invention, determining module includes:
Second processing submodule, for according to the corresponding display size of first order mode, obtaining the display of multiple windows
Size.
3rd processing submodule, for being arranged according to first order mode corresponding first transversely arranged quantity and first longitudinal direction
Spacing between number of columns and any two window, obtains the display location of multiple windows.
Alternatively, in the above embodiment of the present invention, the device also includes:
First judging unit, the window arrangement for judging whether to receive control device transmission is instructed.
Determining unit 51 is additionally operable to if it is judged that receiving window arrangement instruction, then from default multiple arrangement modes
Determine first order mode.
Alternatively, in the above embodiment of the present invention, the device also includes:
Processing unit, for the size according to mosaic screen, between the minimum dimension and any two window of each window
Spacing, obtains the second transversely arranged quantity and second longitudinal direction number of the arrangement of multiple windows.
Second judging unit, for judging the quantity of multiple windows whether more than the second transversely arranged quantity and second longitudinal direction
The product of number of the arrangement.
If determining unit 51 is additionally operable to the quantity of multiple windows not less than the second transversely arranged quantity and second longitudinal direction row
The product of number of columns, then determine first order mode from default multiple arrangement modes.
Alternatively, in the above embodiment of the present invention, if the quantity of multiple windows more than the second transversely arranged quantity and
The product of second longitudinal direction number of the arrangement, the device also includes:
Generation unit, shows for generating prompt message, and to prompt message, wherein, prompt message is used to point out
Close window.
It should be noted that the preferred embodiment in the present embodiment may refer to the associated description in embodiment 1, herein
Repeat no more.
Embodiment 3
There is provided a kind of embodiment of the control system of window according to embodiments of the present invention.
Fig. 6 is a kind of schematic diagram of the control system of window according to embodiments of the present invention, as shown in fig. 6, this method bag
Include following steps:
Server 61, for determining first order mode from default multiple arrangement modes, and according to first order side
Formula is arranged multiple windows, multiple windows after being arranged, wherein, first order mode is used for splicing screen display
Multiple windows arranged, and the gross area of multiple windows obtained by being arranged according to first order mode is more than and pressed
The gross area of multiple windows obtained by being arranged according to second order mode, second order mode be multiple arrangement modes in remove
Any one arrangement mode outside first order mode.
Specifically, above-mentioned server can be the graphics workstation for controlling mosaic screen;Above-mentioned arrangement mode can be wrapped
Include:The quantity of transversely arranged window and the quantity of longitudinal arrangement window.
It should be noted that the arrangement mode of multiple windows of varying number has a variety of, same amount of multiple windows
Arrangement mode may be constructed an arrangement mode combination, and the window under multiple arrangement modes, different arrangement modes is included in set
Mouthful size it is different, during first order mode can be the arrangement mode set, the maximum arrangement side of the gross areas of multiple windows
Formula, so as to guarantee farthest to use display space, reduces display space and wastes.
Mosaic screen 63, is connected with server, for showing multiple windows after arrangement.
In a kind of optional scheme, all windows that the server of mosaic screen can be shown from mosaic screen are corresponding
In multiple arrangement modes, the maximum arrangement mode of the gross area of all windows, i.e. first order mode are obtained, according to first row
Row mode is arranged all windows, multiple windows after being arranged, and multiple windows after arrangement are sent into spelling
Screen is connect, is shown by mosaic screen.
According to the above embodiment of the present invention, server determines first order mode, root from default multiple arrangement modes
Multiple windows are arranged according to first order mode, multiple windows after being arranged, and controlled after mosaic screen display arrangement
Multiple windows, so as to realize the purpose that all windows for being shown in mosaic screen are carried out with alignment.It is easily noted that, by
In multiple windows obtained by being arranged according to first order mode the gross area be more than according to multiple arrangement modes in other
Arrangement mode arranged obtained by multiple windows the gross area, i.e., multiple windows are arranged according to first order mode
Afterwards, the gross area of multiple windows after arrangement is maximum, and multiple windows on mosaic screen are entered in the prior art so as to solve
Row adjustment, it is impossible to make full use of the technical problem of the display space of mosaic screen.Therefore, provided by the above embodiment of the present invention
Scheme, can reach the utilization rate for the display space for improving mosaic screen, reduce the technique effect of the waste of display space.
Alternatively, in the above embodiment of the present invention, server is additionally operable to obtain multiple arrangement modes, calculates according to each
Arrangement mode arranged obtained by multiple windows the gross area, it is many obtained by being arranged according to each arrangement mode
The gross area of individual window is compared, and obtains the corresponding arrangement mode of the maximum gross area, and by the corresponding arrangement of the maximum gross area
Mode is used as first order mode.
Alternatively, in the above embodiment of the present invention, server is additionally operable to obtain the size of mosaic screen, and each window is most
The quantity of spacing and multiple windows between small size, any two window, according to the size of mosaic screen, the minimum of each window
The quantity of spacing and multiple windows between size, any two window, obtains multiple display sizes, and judge each display chi
It is very little whether to meet preparatory condition, if it is judged that any one display size meets preparatory condition, then by any one display chi
Very little, the first transversely arranged quantity and first longitudinal direction number of the arrangement corresponding with any one display size is stored, and obtains many
Individual arrangement mode.
Alternatively, in the above embodiment of the present invention, server is additionally operable to the size according to mosaic screen, and each window is most
Spacing between small size and any two window, obtains the multiple first transversely arranged quantity, according to the quantity of multiple windows and
Multiple first transversely arranged quantity, obtain multiple first longitudinal direction number of the arrangement, according to multiple first longitudinal direction number of the arrangement, mosaic screen
Size and any two window between spacing, obtain multiple display sizes.
Alternatively, in the above embodiment of the present invention, if it is judged that the display size of each window is unsatisfactory for default bar
Part, then server be additionally operable to the size according to mosaic screen, the spacing between the minimum dimension and any two window of each window,
Redefine the first transversely arranged quantity.
Alternatively, in the above embodiment of the present invention, server is additionally operable to judge whether each display size is more than or equal to
The minimum dimension of each window, also, judge whether the display size of at least one transversely arranged window is less than or equal to splicing
The size of screen, if the first display size is more than or equal to the minimum dimension of each window, and at least one transversely arranged window
Display size be less than or equal to mosaic screen size, it is determined that the first display size meets preparatory condition;If the second display chi
The very little minimum dimension less than each window, or the display size of transversely arranged at least one window are more than the size of mosaic screen,
Then determine that the second display size is unsatisfactory for preparatory condition.
Alternatively, in the above embodiment of the present invention, server is additionally operable to obtain the size of mosaic screen, and each window is most
Spacing between small size and any two window, according to the size of mosaic screen, the minimum dimension and any two of each window
Spacing between window, first order mode is obtained by presetting method.
Alternatively, in the above embodiment of the present invention, server is additionally operable to, according to first order mode, determine multiple windows
Display parameters, and according to the display parameters of multiple windows, multiple windows are arranged, multiple windows after being arranged,
Wherein, display parameters include:Display size and display location.
Alternatively, in the above embodiment of the present invention, server is additionally operable to according to the corresponding display chi of first order mode
It is very little, the display size of multiple windows is obtained, and according to first order mode corresponding first transversely arranged quantity and first longitudinal direction
Spacing between number of the arrangement and any two window, obtains the display location of multiple windows.
Alternatively, in the above embodiment of the present invention, Fig. 7 is a kind of control of optional window according to embodiments of the present invention
The schematic diagram of system processed, as shown in fig. 7, the system also includes:
Control device 71, is connected with server 61, for sending window arrangement instruction.
Specifically, above-mentioned control device can be smart mobile phone (including:Android phone and IOS mobile phones), IPAD,
Tablet personal computer, touch-control all-in-one machine, notebook computer, terminal etc., the present invention are not especially limited to this;Above-mentioned window
Arrangement instruction can be the instruction generated by modes such as click keys, clickthrough, gesture operations.
Server 61 is additionally operable to if it is judged that receiving the window arrangement instruction, then from default multiple arrangement modes
Middle determination first order mode.
In a kind of optional scheme, increase " window arrangement " work(in the control program that can be installed on the control device
Can, user is sent to server by clicking on " window arrangement " button, generation window arrangement instruction, and server is being received
After window arrangement instruction, it may be determined that the maximum arrangement mode of all window areas in all possible arrangement mode, i.e., the
One arrangement mode.
Alternatively, in the above embodiment of the present invention, server is additionally operable to the size according to mosaic screen, and each window is most
Spacing between small size and any two window, obtains second transversely arranged quantity and the second longitudinal direction number of permutations of multiple windows
Amount, and judge multiple windows quantity whether more than the second transversely arranged quantity and second longitudinal direction number of the arrangement product, if
The quantity of multiple windows not less than the second transversely arranged quantity and second longitudinal direction number of the arrangement product, then from default multiple rows
First order mode is determined in row mode.
Alternatively, in the above embodiment of the present invention, if the quantity of multiple windows more than the second transversely arranged quantity and
The product of second longitudinal direction number of the arrangement, server is additionally operable to generate prompt message, and prompt message is shown, wherein, carry
Show information be used for point out closing window.
It should be noted that the preferred embodiment in the present embodiment may refer to the associated description in embodiment 1, herein
Repeat no more.
Embodiment 4
According to embodiments of the present invention there is provided a kind of embodiment of storage medium, storage medium includes the program of storage, its
In, equipment where controlling storage medium when program is run performs the control method of the window in above-described embodiment 1.
Embodiment 5
According to embodiments of the present invention there is provided a kind of embodiment of processor, processor is used for operation program, wherein, journey
The control method of the window in above-described embodiment 1 is performed during sort run.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment
The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, others can be passed through
Mode is realized.Wherein, device embodiment described above is only schematical, such as division of described unit, Ke Yiwei
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of unit or module by some interfaces
Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially
The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can for personal computer, server or network equipment etc.) perform each embodiment methods described of the invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.