CN115185621B - Scene arrangement method and device, electronic equipment and storage medium - Google Patents
Scene arrangement method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115185621B CN115185621B CN202210823567.3A CN202210823567A CN115185621B CN 115185621 B CN115185621 B CN 115185621B CN 202210823567 A CN202210823567 A CN 202210823567A CN 115185621 B CN115185621 B CN 115185621B
- Authority
- CN
- China
- Prior art keywords
- scene
- screen
- scenes
- arrangement
- occupied
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
Abstract
The embodiment of the application provides a scene arrangement method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining an underfull screen in response to a routing signal, the routing signal comprising: a plurality of scenes; determining scenes to be arranged in the plurality of scenes; judging whether the residual space of the screen which is not fully arranged can accommodate the arrangement scene or not according to the minimum occupied unit quantity of the scene to be arranged; if yes, traversing the equipment list corresponding to the non-full screen, and positioning to a first blank element in the equipment list, wherein the element of the equipment list identifies the scene type arranged at the screen position corresponding to the element currently; and judging the scene to be arranged according to the blank elements to be arranged. The embodiment occupies less computer resources and is suitable for serial port screens.
Description
Technical Field
The application relates to the technical field of screen control display, in particular to a scene arrangement method, a scene arrangement device, electronic equipment and a storage medium.
Background
In smart home applications, the demand for screen control displays and the day-to-day increases. In order to make the modes of displaying scenes and devices on the screen more diversified, the scenes need to be arranged, but in the prior art, in order to make the arrangement elements diversified, all scene sequences need to be enumerated, so that the logical operation, the cache size and the algorithm of the screen are very harsh
Disclosure of Invention
An object of the embodiment of the application is to provide a scene arrangement method, a device, electronic equipment and a storage medium, which can rapidly arrange scenes and reduce algorithm requirements.
In a first aspect, an embodiment of the present application provides a scene configuration method, which is applied to a serial port screen, where the method includes:
determining an underfull screen in response to a routing signal, the routing signal comprising: a plurality of scenes;
determining scenes to be arranged in the plurality of scenes;
judging whether the residual space of the screen which is not fully arranged can accommodate the arrangement scene or not according to the minimum occupied unit quantity of the scene to be arranged;
if yes, traversing the equipment list corresponding to the non-full screen, and positioning to a first blank element in the equipment list, wherein the element of the equipment list identifies the minimum occupied unit number required by the scene arranged at the screen position corresponding to the element currently;
and judging the scene to be arranged according to the blank elements to be arranged.
In the implementation process, the arrangement sequence of a plurality of scenes to be arranged is not required, and the main process is to traverse the equipment list corresponding to the screen which is not fully arranged, and arrange the scenes to be arranged according to the element points in the equipment list. Because all the arrangement sequences of a plurality of scenes to be arranged are not required to be listed, a large amount of computing resources and memories can be saved, and the method is suitable for equipment with low computing capacity and memory capacity such as a serial port screen.
Further, the step of arranging the scene to be arranged according to the blank element judgment includes:
acquiring the minimum occupied unit number of the scene to be arranged, wherein the occupied unit is the minimum occupied area of the arrangement scene on the serial port screen;
and arranging the scenes to be arranged according to the minimum occupied unit number of the scenes to be arranged and the element numerical values in front of the blank elements in the equipment list.
In the implementation process, as the number of the minimum occupied units of the scene to be arranged is different from that of the minimum occupied units of the scene to be arranged, the scene to be arranged is arranged according to the number of the minimum occupied units of the scene to be arranged and the element values in front of the white elements in the equipment list, so that the whole screen is tidier.
Further, the non-full screen is divided into a plurality of rows and two columns according to occupied units, and the position of each occupied unit corresponds to one element of the equipment list;
the step of arranging the to-be-arranged scenes according to the minimum occupied unit number of the to-be-arranged scenes and the element numerical values in front of the blank elements in the equipment list comprises the following steps:
and if the number of the minimum occupied units occupied by the scene to be arranged is 1, arranging the scene to be arranged at the screen position corresponding to the blank element.
In the implementation process, the whole screen is divided into a plurality of rows and two columns, and the effect of attractive appearance and space saving can be achieved only by arranging the scene to be arranged at the last blank position aiming at the scene to be arranged with the minimum occupied unit number of 1.
Further, the step of arranging the to-be-arranged scene according to the minimum occupied unit number of the to-be-arranged scene and the element numerical value in front of the blank element in the equipment list further includes:
and if the number of the minimum occupied units of the to-be-arranged scenes is 2 and the previous element of the blank element in the equipment list is 1, arranging the to-be-arranged scenes at the screen position corresponding to the next position of the blank element, and stretching the scenes corresponding to the previous position of the blank element on the screen.
In the implementation process, when the to-be-arranged scenes with the number of minimum occupied units being 2 are arranged, if the number of the minimum occupied units of the to-be-arranged scenes is 2 and the previous element of the blank element is 1, the current blank position is described as being in the second row, and at the moment, the to-be-arranged scenes are directly arranged to cause poor display effect, so that a user cannot directly observe the specific content of the to-be-arranged scenes, and therefore, firstly, the scenes arranged at the previous position of the blank position are stretched, and then the to-be-arranged scenes are arranged in the next row, so that the overall viewing effect is improved.
Further, the method further comprises: and if the residual space of the non-full-arranged screen cannot accommodate the arranged scene according to the minimum occupied unit quantity of the to-be-arranged scene, stretching the scene of the non-full-arranged screen, and arranging the to-be-arranged scene on the next screen.
In the implementation process, the situation that the scene to be arranged is arranged in a page-crossing mode can be avoided, and the watching effect of a user is improved.
Further, the method further comprises:
and stretching the scene of the last screen after the plurality of scenes to be arranged are arranged.
In the implementation process, all screens can be full-screen display, so that a user can more easily watch specific contents of a scene.
Further, the step of determining whether the remaining space of the non-full-arranged screen can accommodate the arrangement scene according to the minimum number of occupied units of the arrangement scene includes:
acquiring the minimum occupied unit number of the scene to be arranged;
acquiring the number of the residual occupied units of the screen which is not fully arranged;
judging whether the minimum occupied unit number is larger than the residual occupied unit number or not;
if yes, judging that the residual space of the screen which is not fully arranged cannot accommodate the arrangement scene;
if not, judging that the residual space of the screen which is not fully arranged can accommodate the arrangement scene.
In the implementation process, whether the screen is full or not can be judged according to the list.
In a second aspect, an embodiment of the present application provides a scene arrangement device, including:
the response module is used for responding to the arrangement signals and determining that the screen is not full, and the arrangement signals comprise: a plurality of scenes;
the determining module is used for determining a scene to be arranged in the plurality of scenes;
the judging module is used for judging whether the residual space of the screen which is not fully arranged can accommodate the arrangement scene according to the minimum occupied unit quantity of the scene to be arranged;
the arrangement module is used for traversing the equipment list corresponding to the non-full screen and positioning the first blank element in the list when the judging result of the judging module is yes, wherein the element of the equipment list identifies the minimum occupied unit number required by the scene arranged at the screen position corresponding to the current element; and judging the scene to be arranged according to the blank elements to be arranged.
In a third aspect, an electronic device provided in an embodiment of the present application includes: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to any one of the first aspects when the computer program is executed.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having instructions stored thereon, which when executed on a computer, cause the computer to perform the method according to any of the first aspects.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part will be obvious from the description, or may be learned by practice of the techniques disclosed herein.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a scenario arrangement method provided in an embodiment of the present application;
fig. 2 is a schematic layout diagram provided in an embodiment of the present application;
fig. 3 is a schematic flow chart of arrangement according to the minimum number of occupied units of a scene to be arranged according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a scene configuration device provided in an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Example 1
Referring to fig. 1, an embodiment of the present application provides a scene configuration method, which is applied to a serial port screen, and the method includes:
s1: in response to the arrangement signal, determining that the screen is not full, the arrangement signal comprising: a plurality of scenes;
s2: determining a scene to be arranged in a plurality of scenes;
s3: judging whether the residual space which is not fully arranged with the screen can accommodate the arrangement scene or not according to the minimum occupied unit quantity of the scene to be arranged; if yes, executing S4;
s4: traversing a device list corresponding to the screen which is not fully arranged, positioning a first blank element in the device list, and identifying the minimum occupied unit number of the scene occupied by the screen position corresponding to the current element by the element of the device list;
s5: and according to the blank element judgment, arranging the scene to be arranged.
In the implementation process, the arrangement sequence of a plurality of scenes to be arranged is not required, and the main process is to traverse the equipment list corresponding to the screen which is not fully arranged, and arrange the scenes to be arranged according to the element points in the equipment list. Because all the arrangement sequences of a plurality of scenes to be arranged are not required to be listed, a large amount of computing resources and memories can be saved, and the method is suitable for equipment with low computing capacity and memory capacity such as a serial port screen.
Referring to fig. 2, the boxes 1 and 2 in the figure are scenes to be arranged, and the minimum unit is one sixth of a screen. The minimum occupation unit of each scene to be arranged is 1. The list of devices corresponding to the screen is [1, 1].
Further, S5 includes: s51: acquiring the minimum occupied unit number of a scene to be arranged, wherein the occupied unit is the minimum occupied area of the arranged scene on a serial port screen;
s52: and arranging the scenes to be arranged according to the minimum occupied unit number of the scenes to be arranged and the element numerical values in front of the white elements in the equipment list.
In the implementation process, as the number of the minimum occupied units of the scene to be arranged is different from that of the minimum occupied units of the scene to be arranged, the scene to be arranged is arranged according to the number of the minimum occupied units of the scene to be arranged and the element values in front of the white elements in the equipment list, so that the whole screen is tidier.
In the implementation process, as the number of the minimum occupied units of the scene to be arranged is different from that of the minimum occupied units of the scene to be arranged, the scene to be arranged is arranged according to the number of the minimum occupied units of the scene to be arranged and the element values in front of the white elements in the equipment list, so that the whole screen is tidier.
It can be understood that the minimum occupied unit number in all the scenes to be arranged is 1, that is, there is no scene to be arranged with the minimum occupied unit number being half. Illustratively, the scenario for a device class is a minimum number of occupied units of 1.
In one possible implementation, the non-full screen is divided into a plurality of rows and two columns according to occupied units, and the position of each occupied unit corresponds to one element of the device list;
s52 includes:
and if the number of the minimum occupied units occupied by the scene to be arranged is 1, arranging the scene to be arranged at the screen position corresponding to the blank element.
For example, referring to fig. 3, the whole screen is divided into 6 occupied units according to occupied units, and six occupied units may be arranged in a 1-to-be-arranged scene of 6 minimum occupied units or in a 2-to-be-arranged scene of 3 minimum occupied units.
In the implementation process, the whole screen is divided into a plurality of rows and two columns, and the effect of attractive appearance and space saving can be achieved only by arranging the scene to be arranged at the last blank position aiming at the scene to be arranged with the minimum occupied unit number of 1.
In one possible implementation, S52 further includes:
and if the number of the minimum occupied units of the to-be-arranged scenes is 2 and the previous element of the blank element in the equipment list is 1, arranging the to-be-arranged scenes at the screen position corresponding to the next position of the blank element, and stretching the scenes corresponding to the previous position of the blank element on the screen.
It will be understood that stretching a scene refers to adjusting the number of occupied units of a scene with a minimum number of occupied units of 1 to 2. In the embodiment of the present application, if the number of occupied units of the scene to be arranged is not adjusted, the number of occupied units is the minimum number of occupied units.
In the implementation process, when the to-be-arranged scenes with the number of minimum occupied units being 2 are arranged, if the number of the minimum occupied units of the to-be-arranged scenes is 2 and the previous element of the blank element is 1, the current blank position is indicated to be in the second row, and the to-be-arranged scenes are directly arranged at the moment to cause poor display effect, so that the user cannot directly observe the specific content of the to-be-arranged scenes, the to-be-arranged scenes at the previous position of the blank position are stretched at first, and then the to-be-arranged scenes are arranged in the next row, so that the overall viewing effect is improved.
In one possible embodiment, the method further comprises: if the residual space of the screen which is not fully arranged cannot accommodate the arrangement scene according to the minimum occupied unit quantity of the scene to be arranged, stretching the scene which is not fully arranged, and arranging the scene to be arranged on the next screen.
In the above embodiment, the stretching of the scenes not fully arranged in the screen, and arranging the scenes to be arranged in the next screen may be to increase the number of occupied units of the last scene. It is also possible to increase the number of occupied units of one or more scenes in the screen until all scenes occupy the whole screen.
In the implementation process, the situation that the scene to be arranged is arranged in a page-crossing mode can be avoided, and the watching effect of a user is improved.
In one possible embodiment, the method further comprises:
and after the plurality of scenes to be arranged are arranged, stretching the scene of the last screen.
In the implementation process, all screens can be full-screen display, so that a user can more easily watch specific contents of a scene.
In the above embodiment, the stretching of the scenes not fully arranged in the screen, and arranging the scenes to be arranged in the next screen may be to increase the number of occupied units of the last scene. It is also possible to increase the number of occupied units of one or more scenes in the screen until all scenes occupy the whole screen.
In one possible implementation manner, the step of determining whether the remaining space of the screen which is not fully arranged can accommodate the arrangement scene according to the minimum number of occupied units of the arrangement scene includes:
acquiring the minimum occupied unit number of a scene to be arranged;
acquiring the number of residual occupied units of the screen which is not fully arranged;
judging whether the number of the minimum occupied units is larger than the number of the residual occupied units;
if yes, judging that the residual space which is not fully arranged with the screen cannot accommodate the arrangement scene;
if not, judging that the residual space which is not fully arranged with the screen can accommodate the arrangement scene.
In the implementation process, whether the screen is full or not can be judged according to the list.
It should be noted that, the arrangement in S5 may be direct arrangement, or may be arrangement according to the list after modifying the list according to a plurality of scenes to be arranged.
Example 2
Referring to fig. 4, an embodiment of the present application provides a scene arrangement device, including:
the response module 1 is configured to determine that the screen is not full in response to a configuration signal, where the configuration signal includes: a plurality of scenes;
a determining module 2, configured to determine a scene to be arranged in a plurality of scenes;
the judging module 3 is used for judging whether the residual space which is not fully arranged with the screen can accommodate the arrangement scene according to the minimum occupied unit quantity of the scene to be arranged;
the arrangement module 4 is used for traversing the equipment list corresponding to the screen which is not fully arranged when the judging result of the judging module is yes, positioning the first blank element in the equipment list, and identifying the scene type arranged at the screen position corresponding to the current element by the element of the equipment list; and according to the blank element judgment, arranging the scene to be arranged.
In a possible implementation manner, the configuration module 4 is further configured to obtain a minimum number of occupied units of the to-be-configured scene, where the occupied units are a minimum occupied area of the to-be-configured scene on the serial screen;
and arranging the scenes to be arranged according to the minimum occupied unit number of the scenes to be arranged and the element numerical values in front of the white elements in the equipment list.
In one possible implementation, the non-full screen is divided into a plurality of rows and two columns according to occupied units, and the position of each occupied unit corresponds to one element of the device list; the arrangement module 4 is further configured to arrange the scene to be arranged at a screen position corresponding to the blank element if the number of the minimum occupied units occupied by the scene to be arranged is 1.
In a possible implementation manner, the arrangement module 4 is further configured to, if the number of minimum occupied units of the to-be-arranged scene is 2 and a previous element of the blank element in the device list is 1, arrange the to-be-arranged scene at a screen position corresponding to a next position of the blank element, and stretch a scene corresponding to the previous position of the blank element on the screen.
In a possible implementation manner, the arrangement module 4 is further configured to, if it is determined that the remaining space of the screen that is not fully arranged cannot accommodate the arrangement scene according to the minimum number of occupied units of the scene to be arranged, stretch the scene that is not fully arranged, and arrange the scene to be arranged on the next screen.
In a possible embodiment, the arrangement module 4 is further configured to stretch the scene of the last screen after the plurality of scenes to be arranged are arranged.
In a possible implementation manner, the judging module 3 is further configured to obtain the minimum number of occupied units of the scene to be arranged; acquiring the number of residual occupied units of the screen which is not fully arranged; judging whether the number of the minimum occupied units is larger than the number of the residual occupied units;
the arrangement module 4 is further configured to determine that the remaining space that is not fully arranged with the screen cannot accommodate the arrangement scene when the determination result of the determination module 2 is yes; and when the judging result of the judging module 2 is negative, judging that the residual space which is not fully arranged on the screen can accommodate the arrangement scene.
The application further provides an electronic device, please refer to fig. 5, and fig. 5 is a block diagram of an electronic device according to an embodiment of the application. The electronic device may include a processor 51, a communication interface 52, a memory 53, and at least one communication bus 54. Wherein the communication bus 54 is used to enable direct connection communication of these components. The communication interface 52 of the electronic device in the embodiment of the present application is used for performing signaling or data communication with other node devices. The processor 51 may be an integrated circuit chip with signal processing capabilities.
The processor 51 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. The general purpose processor may be a microprocessor or the processor 51 may be any conventional processor or the like.
The Memory 53 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc. The memory 53 has stored therein computer readable instructions which, when executed by the processor 51, may cause the electronic device to perform the steps described above in relation to the method embodiments of fig. 1-2.
Optionally, the electronic device may further include a storage controller, an input-output unit.
The memory 53, the memory controller, the processor 51, the peripheral interface, and the input/output unit are electrically connected directly or indirectly to each other, so as to realize data transmission or interaction. For example, the components may be electrically coupled to each other via one or more communication buses 54. The processor 51 is adapted to execute executable modules stored in the memory 53, such as software functional modules or computer programs comprised by the electronic device.
The input-output unit is used for providing the user with the creation task and creating the starting selectable period or the preset execution time for the task so as to realize the interaction between the user and the server. The input/output unit may be, but is not limited to, a mouse, a keyboard, and the like.
It will be appreciated that the configuration shown in fig. 5 is merely illustrative, and that the electronic device may also include more or fewer components than shown in fig. 5, or have a different configuration than shown in fig. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
The embodiment of the application further provides a computer readable storage medium, on which instructions are stored, and when the instructions run on a computer, the computer program is executed by a processor to implement the method of the method embodiment, so that repetition is avoided, and no further description is given here.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above is only an example of the present application, and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
Claims (8)
1. The scene arrangement method is characterized by being applied to a serial port screen, and comprises the following steps:
determining an underfull screen in response to a routing signal, the routing signal comprising: a plurality of scenes;
determining scenes to be arranged in the plurality of scenes;
judging whether the residual space of the screen which is not fully arranged can accommodate the arrangement scene or not according to the minimum occupied unit quantity of the scene to be arranged;
if yes, traversing the equipment list corresponding to the non-full screen, and positioning to a first blank element in the equipment list, wherein the element of the equipment list identifies the minimum occupied unit number required by the scene arranged at the screen position corresponding to the element currently;
according to the blank element judgment, arranging the scene to be arranged;
the step of arranging the scene to be arranged according to the blank element judgment comprises the following steps:
acquiring the minimum occupied unit number of the scene to be arranged, wherein the occupied unit is the minimum occupied area of the arrangement scene on the serial port screen;
arranging the scenes to be arranged according to the minimum occupied unit number of the scenes to be arranged and element values in front of the blank elements in the equipment list;
the step of arranging the to-be-arranged scenes according to the minimum occupied unit number of the to-be-arranged scenes and the element numerical values in front of the blank elements in the equipment list comprises the following steps:
and if the number of the minimum occupied units of the to-be-arranged scenes is 2 and the previous element of the blank element in the equipment list is 1, arranging the to-be-arranged scenes at the screen position corresponding to the next position of the blank element, and stretching the scenes corresponding to the previous position of the blank element on the screen.
2. The scene layout method according to claim 1, wherein,
the non-full screen is divided into a plurality of rows and two columns according to occupied units, and the position of each occupied unit corresponds to one element of the equipment list;
the step of arranging the scene to be arranged according to the minimum occupied unit number of the scene to be arranged and the element numerical value in front of the blank element in the equipment list further comprises the following steps:
and if the number of the minimum occupied units occupied by the scene to be arranged is 1, arranging the scene to be arranged at the screen position corresponding to the blank element.
3. The scene layout method according to claim 1, characterized in that the method further comprises: and if the residual space of the non-full-arranged screen cannot accommodate the arranged scene according to the minimum occupied unit quantity of the to-be-arranged scene, stretching the scene of the non-full-arranged screen, and arranging the to-be-arranged scene on the next screen.
4. The scene layout method according to claim 1, characterized in that the method further comprises:
and stretching the scene of the last screen after the plurality of scenes are arranged.
5. The scene arranging method according to claim 1, wherein the step of judging whether the remaining space of the non-full screen can accommodate the arranging scene according to the minimum number of occupied units of the scene to be arranged comprises:
acquiring the minimum occupied unit number of the scene to be arranged;
acquiring the number of the residual occupied units of the screen which is not fully arranged;
judging whether the minimum occupied unit number is larger than the residual occupied unit number or not;
if yes, judging that the residual space of the screen which is not fully arranged cannot accommodate the arrangement scene;
if not, judging that the residual space of the screen which is not fully arranged can accommodate the arrangement scene.
6. A scene arranging apparatus, comprising:
the response module is used for responding to the arrangement signals and determining that the screen is not full, and the arrangement signals comprise: a plurality of scenes;
the determining module is used for determining a scene to be arranged in the plurality of scenes;
the judging module is used for judging whether the residual space of the screen which is not fully arranged can accommodate the arrangement scene according to the minimum occupied unit quantity of the scene to be arranged;
the arrangement module is used for traversing the equipment list corresponding to the non-full screen and positioning the first blank element in the equipment list when the judging result of the judging module is yes, wherein the element of the equipment list identifies the minimum occupied unit number required by the scene arranged at the screen position corresponding to the current element; according to the blank element judgment, arranging the scene to be arranged;
the arrangement module is also used for acquiring the minimum occupied unit number of the scene to be arranged, wherein the occupied unit is the minimum occupied area of the arrangement scene on the serial screen;
arranging the scenes to be arranged according to the minimum occupied unit number of the scenes to be arranged and element values in front of the white elements in the equipment list;
the arrangement module is further configured to, if the number of minimum occupied units of the to-be-arranged scene is 2 and a previous element of the blank element in the device list is 1, arrange the to-be-arranged scene at a screen position corresponding to a next position of the blank element, and stretch a scene corresponding to the previous position of the blank element on the screen.
7. An electronic device, comprising: memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to any one of claims 1-5 when the computer program is executed.
8. A computer readable storage medium having instructions stored thereon which, when run on a computer, cause the computer to perform the method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210823567.3A CN115185621B (en) | 2022-07-13 | 2022-07-13 | Scene arrangement method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210823567.3A CN115185621B (en) | 2022-07-13 | 2022-07-13 | Scene arrangement method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115185621A CN115185621A (en) | 2022-10-14 |
CN115185621B true CN115185621B (en) | 2023-05-23 |
Family
ID=83519260
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210823567.3A Active CN115185621B (en) | 2022-07-13 | 2022-07-13 | Scene arrangement method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115185621B (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7292142B2 (en) * | 2004-10-20 | 2007-11-06 | Honeywell International, Inc. | Method and apparatus for interfacing security systems by periodic check in with remote facility |
CN112306618B (en) * | 2020-12-02 | 2024-03-19 | 四川酷比通信设备有限公司 | Dynamic adjustment method for desktop icons and terminal equipment |
CN112558838B (en) * | 2020-12-24 | 2022-06-28 | 维沃移动通信有限公司 | Application icon layout method and device, electronic equipment and readable storage medium |
-
2022
- 2022-07-13 CN CN202210823567.3A patent/CN115185621B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN115185621A (en) | 2022-10-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109509461B (en) | Brightness adjusting method and device of display panel | |
CN112055244B (en) | Image acquisition method and device, server and electronic equipment | |
CN106940722B (en) | Picture display method and device | |
CN111476852A (en) | Reader refresh method, computing device, and computer storage medium | |
CN107506483A (en) | Page loading method, device, electronic equipment and storage medium | |
CN113282392A (en) | Interface service calling method and device, electronic equipment and storage medium | |
CN115185621B (en) | Scene arrangement method and device, electronic equipment and storage medium | |
CN106610828B (en) | Android system-based GIF animation playing method and device | |
CN116185545A (en) | Page rendering method and device | |
CN105447839A (en) | Rectangular frame merging method and system | |
CN113391779B (en) | Parameter adjusting method, device and equipment for paper-like screen | |
US20210390123A1 (en) | Event display method and device | |
CN111294635A (en) | Method and device for arranging desktop layout and server | |
CN112766256B (en) | Grating phase diagram processing method and device, electronic equipment and storage medium | |
CN112261242B (en) | Image data processing method and device | |
CN114527980A (en) | Display rendering method and device, electronic equipment and readable storage medium | |
US20170123629A1 (en) | Icon sequencing method and device for intelligent television desktop | |
CN111079390B (en) | Method and device for determining selection state of check box list | |
CN112035767A (en) | Method and device for displaying prompt information | |
CN108958929B (en) | Method and device for applying algorithm library, storage medium and electronic equipment | |
CN112286607B (en) | View control method and device | |
CN107871305B (en) | Picture quality rating method and device and terminal equipment | |
CN111862894A (en) | Backlight brightness adjusting method, device, terminal and readable storage medium | |
JP6496044B2 (en) | Method and apparatus for displaying text input of a terminal device and terminal device | |
CN108073594B (en) | Method and device for generating thermodynamic diagram |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |