Key definition displacement display method and device, electronic equipment and storage medium
By dividing the display interface of the communication terminal into two parts, and combining the displacement offset and various display effects, the problem of unintuitive display of the key-defined displacement state in the existing technology is solved, and the usage efficiency of the communication terminal equipment is improved.
Patent Information
- Application Number
- CN202411361668.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-21
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the prior art solves the problem of displacement presentation when the button definition is displayed on multiple screens, it cannot meet the situation where the user freely slides to select the button definition, resulting in the presentation of the displacement state and the recognition is not high enough, which affects the efficiency of the communication terminal equipment. .
By dividing the display interface of the ship's communication terminal into two parts, one of which shows the defined keys of the preset number, and the other part shows the definition of the global button. When the user slides the screen , Intuitively present the key definition and displacement of the current page.
It improves the recognition of the defined displacement state of the communication terminal keys and improves the usage efficiency of the communication terminal equipment.
Smart Images

Figure CN119336225A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of human-machine interface presentation of communication terminal equipment, and more specifically, to a key definition displacement display method, device, electronic device and storage medium. Background Art
[0002] When solving the problem of displacement presentation when button definitions are displayed on multiple screens in the prior art, the usual method is to page the button definitions issued by the system according to the limit on the number of buttons displayed on one screen, and provide the user with a page-turning function button. The user realizes the software definition of the physical button by turning the pages up and down, and dynamically presents the current page number and the total page number information in the interface, so as to present the displacement state of the current button definition to the user. However, this method cannot solve the situation where the user freely slides to select the button definition, that is, the user does not slide by the whole page, and the page number is presented in digital form. The presentation of the displacement state is not intuitive enough and the recognition is not high, which affects the use efficiency of the communication terminal equipment. Summary of the invention
[0003] In view of the defects of the prior art, the purpose of this application is to provide a key definition displacement display method, device, electronic device and storage medium, aiming to solve the problem that the prior art performs paging processing on key definitions, resulting in the displacement status presentation being not intuitive enough and the recognition being not high, thereby affecting the use efficiency of communication terminal equipment.
[0004] To achieve the above objectives, in a first aspect, the present application provides a key definition displacement display method, comprising:
[0005] Acquire currently configured button definitions, and display a preset number of configured button definitions in order in the first display area;
[0006] The form of the second display area and the maximum capacity of the button definitions that can be displayed are set, the form of the second display area corresponds to the form of the first display area, the maximum capacity is greater than or equal to the number of the configured button definitions, and the second display area includes one or more of the following: the button definitions currently displayed in the first display area of the first display effect, the configured button definitions that are not currently displayed in the first display area of the second display effect, and the number of button definitions that is the difference between the maximum capacity of the button definitions of the third display effect and the configured button definitions;
[0007] receiving a sliding operation of a user on the first display area;
[0008] In response to the sliding operation, controlling the key definitions in the first display area to move, and obtaining a displacement offset;
[0009] Based on the displacement offset, the button definition display effect in the second display area is adjusted so that the button definition display effect currently displayed in the first display area is the first display effect.
[0010] The present application divides the display interface of the ship communication terminal into two parts, one part displays a preset number of configured button definitions, and the other part displays the global button definition. When the user slides the screen, the button definition and displacement status of the current page are intuitively presented in combination with the displacement offset and a variety of display effects, thereby improving the recognition of the displacement status of the communication terminal button definition, thereby improving the use efficiency of the communication terminal equipment.
[0011] According to the key definition displacement display method provided by the present invention, adjusting the key definition display effect in the second display area based on the displacement offset includes:
[0012] Based on the sliding direction, obtain the length of a row of keys or the length of a column of keys;
[0013] Based on the width length and the displacement offset, a starting key definition and an offset margin for displaying the first display effect in the second display area after the displacement are calculated;
[0014] Based on the initial key definition and the offset margin of the first display effect displayed in the second display area after the displacement, the key definition display effect in the second display area is adjusted.
[0015] The present application calculates the initial key definition and the offset margin after displacement through the width length and the displacement offset, and can accurately adjust the key definition display effect in the second display area.
[0016] According to the key definition displacement display method provided by the present invention, the calculation of the starting key definition and the offset margin for displaying the first display effect in the second display area after displacement based on the width length and the displacement offset includes:
[0017] The displacement offset is divided by the width, and based on the integer part of the obtained result, the definition of the starting key for displaying the first display effect in the second display area after the displacement is determined, and the decimal part of the obtained result is used as the offset margin.
[0018] According to the key definition displacement display method provided by the present invention, the key definition display effect in the second display area is adjusted based on the initial key definition and the offset margin of the first display effect displayed in the second display area after the displacement, including:
[0019] If the offset margin is greater than a preset threshold, the display effects of the head key definition and the tail key definition currently displayed in the first display area in the second display area are adjusted to the fourth display effect, and the display effects of other key definitions currently displayed in the first display area in the second display area are adjusted to the first display effect;
[0020] If the offset margin is less than or equal to the preset threshold, the display effect of the key definition currently displayed in the first display area in the second display area is adjusted to the first display effect.
[0021] When the offset margin is greater than a preset threshold, the present application progressively processes the head and tail of the key definition, that is, adjusts them to the fourth display effect to reflect the moving transition state, making the presentation of the displacement state more intuitive.
[0022] According to the key definition displacement display method provided by the present invention, obtaining the displacement offset includes:
[0023] Before receiving a sliding operation from the user, randomly selecting a point in the first display area as a coordinate origin;
[0024] After responding to the sliding operation, obtaining the relative coordinates of the point;
[0025] Based on the relative coordinates, the displacement offset is obtained.
[0026] This application determines the displacement offset by setting coordinates to make the calculation result more accurate.
[0027] According to the key definition displacement display method provided by the present invention, before sequentially displaying a preset number of configured key definitions in the first display area, the method further includes:
[0028] The number of button definitions that can be displayed in the first display area is set.
[0029] In a second aspect, the present application provides a key definition displacement display device, comprising:
[0030] An acquisition module, used for acquiring currently configured button definitions, and displaying a preset number of configured button definitions in order in the first display area;
[0031] a setting module, used to set the form of the second display area and the maximum capacity of button definitions that can be displayed, wherein the form of the second display area corresponds to the form of the first display area, the maximum capacity is greater than or equal to the number of configured button definitions, and the second display area includes one or more of the following: the button definitions currently displayed in the first display area of the first display effect, the configured button definitions that are not currently displayed in the first display area of the second display effect, and the number of button definitions that is the difference between the maximum capacity of button definitions of the third display effect and the configured button definitions;
[0032] A receiving module, configured to receive a sliding operation of a user on the first display area;
[0033] A response module, configured to respond to the sliding operation, control the key definitions in the first display area to move, and obtain a displacement offset;
[0034] The adjustment module is used to adjust the key definition display effect in the second display area based on the displacement offset so that the display effect of the key definition currently displayed in the first display area is the first display effect.
[0035] In a third aspect, the present application provides an electronic device comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory. When the programs stored in the memory are executed, the processor is used to execute the key definition displacement display method described in the first aspect or any possible implementation of the first aspect.
[0036] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the key definition displacement display method described in the first aspect or any possible implementation of the first aspect.
[0037] In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the key definition displacement display method described in the first aspect or any possible implementation of the first aspect.
[0038] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0039] In general, the above technical solutions conceived by this application have the following beneficial effects compared with the prior art:
[0040] (1) The display interface of the ship communication terminal is divided into two parts, one part displays a preset number of configured button definitions, and the other part displays the global button definitions. When the user slides the screen, the button definitions and displacement states of the current page are intuitively presented in combination with displacement offsets and a variety of display effects, thereby improving the recognition of the displacement states of the button definitions of the communication terminal and improving the use efficiency of the communication terminal equipment.
[0041] (2) The initial key definition and the offset margin after displacement are calculated by the width length and the displacement offset, so that the key definition display effect in the second display area can be accurately adjusted. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 It is a flowchart of a method for displaying key-defined displacement provided in an embodiment of the present application;
[0044] Figure 2 It is one of the displacement state presentation schematic diagrams provided in the embodiments of the present application;
[0045] Figure 3 This is the second schematic diagram of the displacement state provided in the embodiment of the present application;
[0046] Figure 4 This is the third schematic diagram of the displacement state provided in the embodiment of the present application;
[0047] Figure 5 is a structural schematic diagram of a key definition displacement display device provided in an embodiment of the present application;
[0048] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] The term "and / or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol " / " in this article indicates that the associated objects are in an or relationship, for example, A / B means A or B.
[0051] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0052] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.
[0053] First, the following contents are introduced:
[0054] Ship communication terminal equipment is an important part of the ship communication system to complete various predefined internal and external voice communication services. The key definition of the ship communication terminal is a table of numbers with command relationships between the terminal and other terminals and other communication equipment on the ship. The communication terminal obtains the number and name of the call object by reading the key definition file issued by the system, and realizes the voice communication function by calling the number.
[0055] With the development of larger ships and the improvement of the level of refined organizational management, the hierarchical and flat relationships of command relationships are intertwined, and the role of each communication terminal node in the entire organizational management has become more complex. The design of communication terminals has evolved from physical buttons that meet simple and small command relationships to software-defined physical buttons for more complex command relationships, and then to the current software buttons for complex command relationships through touch. Whether it is through the method of software-defined physical buttons or the method of touch software buttons, when users select button definitions, especially when the button definitions are displayed on multiple screens, they must face the problem of how to intuitively present the current button definition displacement status to users.
[0056] When solving the problem of displacement presentation when button definitions are displayed on multiple screens in the prior art, the usual method is to page the button definitions issued by the system according to the limit on the number of buttons displayed on one screen, and provide the user with a page-turning function button. The user realizes the software definition of the physical button by turning the pages up and down, and dynamically presents the current page number and the total page number information in the interface, so as to present the displacement state of the current button definition to the user. However, this method cannot solve the situation where the user freely slides to select the button definition, that is, the user does not slide by the whole page, and the page number is presented in digital form. The presentation of the displacement state is not intuitive enough and the recognition is not high, which affects the use efficiency of the communication terminal equipment.
[0057] In view of the defects of the prior art, the purpose of this application is to provide a key definition displacement display method, device, electronic device and storage medium, aiming to solve the problem that the prior art performs paging processing on key definitions, resulting in the displacement status presentation being not intuitive enough and the recognition being not high, thereby affecting the use efficiency of communication terminal equipment.
[0058] Next, combine Figure 1-Figure 4 The key definition displacement display method provided in the embodiment of the present application is introduced.
[0059] Figure 1 is a flow chart of a method for displaying key-defined displacement provided in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0060] Step 100, obtaining currently configured button definitions, and displaying a preset number of configured button definitions in order in the first display area;
[0061] In order to intuitively present the button definitions and displacement status of the current page, this application divides the display interface of the ship communication terminal into two parts, namely the first display area and the second display area, where the first display area displays some configured button definitions, and the second display area displays global button definitions.
[0062] Optionally, the button definitions can be configured in advance and saved in the ship communication system. The ship communication terminal can obtain the currently configured button definitions by reading the button definition configuration file in the communication system, and display a preset number of button definitions in sequence in the first display area.
[0063] Optionally, the present application does not limit the arrangement of the button definitions in the first display area, which may be from top to bottom or from left to right.
[0064] Step 110, setting the form of the second display area and the maximum capacity of the button definitions that can be displayed, the form of the second display area corresponds to the form of the first display area, the maximum capacity is greater than or equal to the number of configured button definitions, and the second display area includes one or more of the following: the button definitions currently displayed in the first display area of the first display effect, the configured button definitions that are not currently displayed in the first display area of the second display effect, and the number of button definitions that is the difference between the maximum capacity of the button definitions of the third display effect and the configured button definitions;
[0065] The second display area displays global button definitions, including the button definitions currently displayed in the first display area, the configured button definitions that are not currently displayed in the first display area, and the number of button definitions that is the difference between the maximum capacity of the button definitions and the configured button definitions. The display effects of these three button definitions are different to intuitively present the button definitions currently displayed in the first display area.
[0066] Optionally, different display effects can be distinguished by one or more of easily distinguishable colors, shapes, or grayscales according to the design style.
[0067] Optionally, the maximum capacity of the displayable key definition may be set by receiving the maximum capacity of the displayable key definition input by the user.
[0068] Optionally, the arrangement of the second display area can be freely set, such as horizontal arrangement or vertical arrangement, but it should be noted that there is a corresponding relationship between the shape of the second display area and the shape of the first display area. For example, if the first display area is defined as 2 columns of keys arranged vertically, then the second display area needs to be 2 columns arranged vertically or 2 rows arranged horizontally.
[0069] Figure 2 is one of the displacement state presentation schematic diagrams provided in the embodiment of the present application, such as Figure 2 As shown, in one embodiment of the present application, the key definition layout of the first display area is arranged vertically in 2 columns according to the key row and column layout, the total number of configured key definitions is 63, and the second display area, i.e., the displacement status bar, has a basic form of 2 rows × 40 columns, the maximum capacity of key definitions is set to 80, and in the second display area, the key definitions currently displayed in the first display area are displayed in black, the configured key definitions that are not currently displayed in the first display area are displayed in gray, and the difference between the maximum capacity of key definitions and the number of configured key definitions is displayed in white.
[0070] Step 120, receiving a sliding operation of the user on the first display area;
[0071] The user can slide on the first display area, either vertically or horizontally.
[0072] Step 130, in response to the sliding operation, controlling the key definitions in the first display area to move, and obtaining the displacement offset;
[0073] The communication terminal can respond to the user's sliding operation, control the key definitions in the first display area to shift, and obtain the displacement offset.
[0074] Step 140: Based on the displacement offset, the display effect of the key definition in the second display area is adjusted so that the display effect of the key definition currently displayed in the first display area is the first display effect.
[0075] Figure 3 This is the second schematic diagram of the displacement state provided in the embodiment of the present application. Figure 3 As shown, Figure 3 What is displayed is the state during the displacement process of the key definition, which is the state at a certain moment in the displacement process, and does not mean that the state is in this state at any moment in the displacement process. During the displacement process, the communication terminal adjusts the display effect of the key definition in the second display area based on the displacement offset, so that the display effect of the key definition currently displayed in the first display area is the first display effect. In one embodiment of the present application, during displacement, the second display area adjusts the key definition currently displayed in the first display area to black in real time, and adjusts the configured key definition that is not currently displayed in the first display area to gray.
[0076] Figure 4 This is the third schematic diagram of the displacement state provided in the embodiment of the present application. Figure 4 As shown, when the first display area is shifted to the bottom layer, the key definitions currently displayed in the first display area in the second display area are adjusted to black, and the configured key definitions not currently displayed in the first display area are adjusted to gray.
[0077] The button definition displacement display method provided in the present application divides the display interface of the ship communication terminal into two parts, one part displays a preset number of configured button definitions, and the other part displays the global button definition. When the user slides the screen, the button definition and displacement status of the current page are intuitively presented in combination with the displacement offset and a variety of display effects, thereby improving the recognition of the button definition displacement status of the communication terminal and improving the use efficiency of the communication terminal equipment.
[0078] In some embodiments, step 140 specifically includes:
[0079] Step 1401, based on the sliding direction, obtaining the length of a row of keys or the length of a column of keys;
[0080] Step 1402, based on the width and the displacement offset, calculating the starting key definition and the offset margin for displaying the first display effect in the second display area after the displacement;
[0081] Step 1403: Adjust the button definition display effect in the second display area based on the initial button definition and the offset margin of the first display effect displayed in the second display area after the displacement.
[0082] The user's sliding direction is related to the arrangement of the first display area. If the arrangement of the first display area is vertical, the user can only slide vertically. If the arrangement of the first display area is horizontal, the user can only slide horizontally.
[0083] If the user slides vertically, you need to get the length defined by a row of buttons. If the user slides horizontally, you need to get the length defined by a column of buttons.
[0084] According to the width and displacement offset, the initial key definition and the offset margin for displaying the first display effect in the second display area after the displacement can be calculated, and then the key definition display effect in the second display area can be adjusted.
[0085] In some embodiments, step 1402 specifically includes:
[0086] The displacement offset is divided by the width length, and the starting key definition for displaying the first display effect in the second display area after the displacement is determined based on the integer part of the result, and the decimal part of the result is used as the offset margin.
[0087] like Figure 2 and Figure 3 As shown, in one embodiment of the present application, the length of a row of key definition display is calculated: △h = 180 pixels. After the displacement, the displacement offset is 1470 pixels. According to the movement offset and the length of a row of key definition display, the starting position point of the current key definition in the displacement status bar and the offset margin are calculated: 1470 / 180≈8.17, that is, anchoring the 8th column (starting counting from column 0) in the second display area, or anchoring the 8th×2=16th block (starting counting from 0), and the offset margin is 0.17.
[0088] In some embodiments, step 1403 specifically includes:
[0089] If the offset margin is greater than a preset threshold, the display effects of the head key definition and the tail key definition currently displayed in the first display area in the second display area are adjusted to the fourth display effect, and the display effects of other key definitions currently displayed in the first display area in the second display area are adjusted to the first display effect;
[0090] If the offset margin is less than or equal to the preset threshold, the display effect of the key definition currently displayed in the first display area in the second display area is adjusted to the first display effect.
[0091] Optionally, the preset threshold can be set according to actual needs or experience.
[0092] like Figure 3 As shown, in one embodiment of the present application, the offset margin is 0.17, the preset threshold is 0, and the offset margin is greater than the set threshold, that is, when the top of the button definition presentation bar overlaps with the button definition, the number in the button definition displacement state is corrected, that is, the display effect of the blocks with displacement state numbers 16, 17, 28, and 29 is corrected.
[0093] Optionally, the fourth display effect can be a progressive processing to reflect the moving transition state, such as setting the displacement state numbers 16 and 17 blocks to dark gray with a transparency of (1-0.17), and setting the displacement state numbers 28 and 29 blocks to dark gray with a transparency of (0.17).
[0094] In some embodiments, obtaining the displacement offset in step 130 includes:
[0095] Step 1301, before receiving a sliding operation from a user, select any point in the first display area as a coordinate origin;
[0096] Step 1302, after responding to the sliding operation, obtaining the relative coordinates of the point;
[0097] Step 1303, obtaining the displacement offset based on the relative coordinates.
[0098] In one embodiment of the present application, the upper left point of the first key definition button is selected as the coordinate origin (0, 0).
[0099] After the key definition movement in the first display area, the relative coordinate position of the selected point is obtained again: (0, -1470), and then the movement offset is calculated: 0-(-1470)=1470.
[0100] In some embodiments, before step 100, the method further includes:
[0101] Set the number of button definitions that can be displayed in the first display area.
[0102] Optionally, the communication terminal may receive the number of displayable key definitions input by the user to set the number of displayable key definitions in the first display area, such as 12.
[0103] Combine the following Figure 5The key definition displacement display device provided by the present invention is described. The key definition displacement display device described below and the key definition displacement display method described above can be referred to each other.
[0104] Figure 5 is a structural diagram of a key definition displacement display device provided in an embodiment of the present application, such as Figure 5 As shown, the device includes an acquisition module 510, a setting module 520, a receiving module 530, a response module 540 and a printing module 550, wherein:
[0105] An acquisition module 510 is used to acquire currently configured button definitions and display a preset number of configured button definitions in order in the first display area;
[0106] The setting module 520 is used to set the form of the second display area and the maximum capacity of the button definitions that can be displayed. The form of the second display area corresponds to the form of the first display area. The maximum capacity is greater than or equal to the number of configured button definitions. The second display area includes one or more of the following: the button definitions currently displayed in the first display area of the first display effect, the configured button definitions that are not currently displayed in the first display area of the second display effect, and the number of button definitions that is the difference between the maximum capacity of the button definitions of the third display effect and the configured button definitions;
[0107] A receiving module 530, configured to receive a sliding operation of a user on the first display area;
[0108] A response module 540 is used to respond to the sliding operation, control the key definition in the first display area to move, and obtain the displacement offset;
[0109] The adjustment module 550 is used to adjust the display effect of the key definition in the second display area based on the displacement offset, so that the display effect of the key definition currently displayed in the first display area is the first display effect.
[0110] It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method, which will not be repeated here.
[0111] Based on the method in the above embodiment, Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, an embodiment of the present application provides an electronic device, which may include: a processor (processor) 610, a communication interface (CommunicationsInterface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 can call the logic instructions in the memory 630 to execute the key definition displacement display method in the above embodiment.
[0112] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the key definition displacement display method described in each embodiment of the present application.
[0113] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the key definition displacement display method in the above embodiment.
[0114] Based on the method in the above embodiment, an embodiment of the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the key definition displacement display method in the above embodiment.
[0115] It is understandable that the processor in the embodiment of the present application can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor.
[0116] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0117] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0118] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.
[0119] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for displaying key definition displacement, characterized in that: Applied to a ship communication terminal, the display interface of the ship communication terminal includes a first display area and a second display area, and the method includes: Acquire currently configured button definitions, and display a preset number of configured button definitions in order in the first display area; The form of the second display area and the maximum capacity of the button definitions that can be displayed are set, the form of the second display area corresponds to the form of the first display area, the maximum capacity is greater than or equal to the number of the configured button definitions, and the second display area includes one or more of the following: the button definitions currently displayed in the first display area of the first display effect, the configured button definitions that are not currently displayed in the first display area of the second display effect, and the number of button definitions that is the difference between the maximum capacity of the button definitions of the third display effect and the configured button definitions; receiving a sliding operation of a user on the first display area; In response to the sliding operation, controlling the key definitions in the first display area to move, and obtaining a displacement offset; Based on the displacement offset, the button definition display effect in the second display area is adjusted so that the button definition display effect currently displayed in the first display area is the first display effect.
2. The key definition displacement display method according to claim 1, characterized in that: The adjusting the button definition display effect in the second display area based on the displacement offset includes: Based on the sliding direction, obtain the length of a row of keys or the length of a column of keys; Based on the width and the displacement offset, a starting key definition and an offset margin for displaying the first display effect in the second display area after the displacement are calculated; Based on the initial key definition and the offset margin of the first display effect displayed in the second display area after the displacement, the key definition display effect in the second display area is adjusted.
3. The key definition displacement display method according to claim 2, characterized in that: The calculating, based on the width and the displacement offset, the definition of the starting key and the offset margin for displaying the first display effect in the second display area after the displacement, comprises: The displacement offset is divided by the width, and based on the integer part of the obtained result, the definition of the starting key for displaying the first display effect in the second display area after the displacement is determined, and the decimal part of the obtained result is used as the offset margin.
4. The key definition displacement display method according to claim 2, characterized in that: The adjusting the key definition display effect in the second display area based on the initial key definition and the offset margin of the first display effect displayed in the second display area after the displacement includes: If the offset margin is greater than a preset threshold, the display effects of the head key definition and the tail key definition currently displayed in the first display area in the second display area are adjusted to the fourth display effect, and the display effects of other key definitions currently displayed in the first display area in the second display area are adjusted to the first display effect; If the offset margin is less than or equal to the preset threshold, the display effect of the key definition currently displayed in the first display area in the second display area is adjusted to the first display effect.
5. The key definition displacement display method according to claim 1, characterized in that: The obtaining of the displacement offset comprises: Before receiving a sliding operation from the user, any point in the first display area is selected as a coordinate origin; After responding to the sliding operation, obtaining the relative coordinates of the point; Based on the relative coordinates, the displacement offset is obtained.
6. The key definition displacement display method according to claim 1, characterized in that: Before sequentially displaying a preset number of configured key definitions in the first display area, the method further includes: The number of button definitions that can be displayed in the first display area is set.
7. A key definition displacement display device, characterized in that: include: An acquisition module, used for acquiring currently configured button definitions, and displaying a preset number of configured button definitions in order in the first display area; a setting module, used to set the form of the second display area and the maximum capacity of button definitions that can be displayed, wherein the form of the second display area corresponds to the form of the first display area, the maximum capacity is greater than or equal to the number of configured button definitions, and the second display area includes one or more of the following: the button definitions currently displayed in the first display area of the first display effect, the configured button definitions that are not currently displayed in the first display area of the second display effect, and the number of button definitions that is the difference between the maximum capacity of button definitions of the third display effect and the configured button definitions; A receiving module, configured to receive a sliding operation of a user on the first display area; A response module, configured to respond to the sliding operation, control the key definitions in the first display area to move, and obtain a displacement offset; The adjustment module is used to adjust the key definition display effect in the second display area based on the displacement offset so that the display effect of the key definition currently displayed in the first display area is the first display effect.
8. An electronic device, characterized in that: include: at least one memory for storing a computer program; At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the key definition displacement display method as described in any one of claims 1-6.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program runs on a processor, the processor is enabled to execute the key definition displacement display method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that When the computer program product runs on a processor, the processor executes the key definition displacement display method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Linkage display method for page display area, electronic device and storage medium
CN109542295A
Display control method and device in game
CN111841005A
Train surface defect checking system and method
CN114371805A
Dynamic display method of Tab bar and three-dimensional display equipment
CN114385052A
Calendar display method and device, computing equipment and storage medium
CN114879871A