WO2020168791A1 - 界面显示方法、装置、计算机设备和存储介质 - Google Patents
界面显示方法、装置、计算机设备和存储介质 Download PDFInfo
- Publication number
- WO2020168791A1 WO2020168791A1 PCT/CN2019/124817 CN2019124817W WO2020168791A1 WO 2020168791 A1 WO2020168791 A1 WO 2020168791A1 CN 2019124817 W CN2019124817 W CN 2019124817W WO 2020168791 A1 WO2020168791 A1 WO 2020168791A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- interface
- container
- page container
- page
- area
- Prior art date
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
Definitions
- the present disclosure relates to the technical field of graphical user interfaces, for example, to interface display methods, interface display devices, computer equipment, and storage media.
- the page in the editing state included in the common graphical user interface for page editing (also called "page editing interface”).
- This page is also called a page container.
- Users can add text, pictures, and multimedia to the page container.
- Elements such as files, such as the PPT editing interface; after saving, the page container and all the elements added to the page container can be displayed as a whole image.
- the inventor of this application found the following problems in related technologies: In the page editing interface, when the user adds elements such as text to the page container or moves the cursor element, if the added element or the moved If the cursor exceeds the visible area of the interface, the user will not be able to see the newly added element or the moved cursor; for this situation, the current solution is that the user moves the page container through the scroll bar in the operation interface to add the latest addition The element or the moved cursor is displayed in the visual area of the interface, but this method has the problem of low editing efficiency of the page container.
- an interface display method including:
- the visual area of the display interface includes a page container for accommodating elements, and the shape of the page container is fixed;
- a target element is determined; the target element is an element operated by the operation instruction;
- the method further includes: moving a first target control during the movement of the page container; the first target control is a control for controlling the movement of the page container.
- the method further includes:
- the first target control includes a horizontal scroll bar and/or a vertical scroll bar
- the horizontal scroll bar is used to control the page container to move in the horizontal direction of the viewable area of the interface; the vertical scroll bar is used to control the vertical movement of the page container in the viewable area of the interface. Move in the direction.
- the step of moving the page container includes:
- the step of moving the page container horizontally/vertically includes:
- the page container is moved horizontally/vertically; the displacement of the page container by the horizontal/vertical movement corresponds to the distance.
- the visible area of the interface, the page container, and the element hot area are all rectangular.
- the method further includes: judging whether the horizontal movement condition/vertical movement condition is satisfied according to the relative position of the element hot zone and the visible area of the interface; if the horizontal movement condition is satisfied, the horizontal movement The page container; if the vertical movement condition is met, the page container is moved vertically.
- the horizontal movement condition is that in the horizontal direction, the left or right side of the element hot zone exceeds the visible area of the interface;
- the vertical movement condition is that In the vertical direction, the upper side or the lower side of the element hot zone exceeds the visible area of the interface.
- the method further includes: after the first target control moves to the boundary, if the target element still exceeds the visible area of the interface, acquiring the lower container of the page container;
- the method further includes: moving a second target control during the movement of the lower container; the second target control is a control for controlling the movement of the lower container.
- it further includes: when the target element is completely displayed in the visual area of the interface, or when the second target control moves to the boundary, stopping moving the lower container and the first Two target controls.
- the method further includes: after the target element is completely displayed in the visual area of the interface, acquiring the bottommost page container in the interface as the bottom container;
- the interface hot zone is the smallest outer rectangular area containing the bottom container and all the elements that have been added to the bottom container;
- the method further includes: displaying the hot zone of the interface in a centered manner in the visible area of the interface.
- the element operation instruction in the page container includes at least one of an operation instruction to add an element to the page container and an operation to edit an existing element in the page container.
- the display color of the page container is different from the display color of the visual area of the interface.
- the target element includes at least one of cursor, text, table, graph, multimedia file, mind map, and upper container.
- an interface display device including:
- a display module for displaying the visual area of the interface includes a page container for accommodating elements, and the shape of the page container is fixed;
- the instruction receiving module is used to receive element operation instructions
- An element determination module configured to determine a target element in response to the operation instruction; the target element is an element operated by the operation instruction;
- the container moving module is used to move the page container when the target element exceeds the visual area of the interface so that the target element approaches the center of the visual area of the interface; the page container is the target element Where the page container is located, during the movement of the page container, the position of the target element in the page container remains unchanged.
- it further includes: a control moving module, configured to move a first target control during the movement of the page container; the first target control is a control used to control the movement of the page container.
- it further includes: a movement control module, configured to stop moving the target element when the target element is completely displayed in the visual area of the interface, or when the first target control moves to the boundary Page container.
- a movement control module configured to stop moving the target element when the target element is completely displayed in the visual area of the interface, or when the first target control moves to the boundary Page container.
- it further includes:
- a lower container acquisition module configured to acquire the lower container of the page container if the target element still exceeds the visible area of the interface after the first target control moves to the boundary;
- the lower container judging module is used to judge whether the lower container is the bottom canvas
- the lower container moving module is used to move the lower container if not in a direction such that the target element approaches the center of the visible area of the interface; during the movement of the lower container, the page container and the The relative position of the lower container remains unchanged.
- an embodiment of the present disclosure provides a computer device including a display, a memory, and a processor, wherein the display is used to display a page editing interface; the memory stores a computer program; the processor executes the program When realizing the steps of the interface display method of any of the above embodiments.
- embodiments of the present disclosure provide a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the above interface display method is implemented.
- One of the above technical solutions has the following advantages or beneficial effects: when the user edits the page container, he manipulates the elements in the page container, and if the area of the operated element exceeds the visible area of the interface, the page container where the element is located can be automatically moved , By automatically moving the page container, the elements currently operated by the user are moved to the visual area of the interface for display, without the user operating the scroll bar, which is beneficial to improve the editing efficiency of the page container.
- FIG. 1A is a schematic diagram of a page editing interface in an embodiment
- FIG. 1B is a schematic diagram of a page editing interface in another embodiment
- FIG. 1C is a schematic diagram of a page editing interface in another embodiment
- Figure 1D is a schematic diagram of the display effect after adding and saving the ancient poetry subject tool in the page container;
- FIG. 1E is a schematic diagram of the display effect of the page container in the page editing interface of FIG. 1A after being saved;
- FIG. 2 is a schematic flowchart of an interface display method of an embodiment
- 3A is a schematic diagram of a page editing interface before operating on the text of the page container in an embodiment
- FIG. 3B is a schematic diagram after operating on the page container text in FIG. 3A;
- FIG. 3C is a schematic diagram after moving the page container to the interface in FIG. 3B;
- FIG. 4A is a schematic diagram of a page editing interface before graphics operations on a page container in an embodiment
- FIG. 4B is a schematic diagram after operating the page container graphics in FIG. 4A;
- FIG. 4C is a schematic diagram after moving the page container to the interface in FIG. 4B;
- 5A is a schematic diagram of a page editing interface before operating on a page container window in an embodiment
- FIG. 5B is a schematic diagram after operating the page container window in FIG. 5A;
- FIG. 5C is a schematic diagram after moving the page container to the interface in FIG. 5B;
- 6A is a schematic diagram of the position of the element hot zone relative to the visible zone in the X direction in an embodiment
- 6B is a schematic diagram of the position of the element hot zone relative to the visible zone in the X direction in another embodiment
- 6C is a schematic diagram of the position of the element hot zone relative to the visible zone in the X direction in another embodiment
- 6D is a schematic diagram of the position of the element hot zone relative to the visible zone in the X direction in another embodiment
- Fig. 7A is a schematic diagram of the position of the element hot zone relative to the visible zone in the Y direction in an embodiment
- 7B is a schematic diagram of the position of the element hot zone relative to the visible zone in the Y direction in another embodiment
- 7C is a schematic diagram of the position of the element hot zone relative to the visible zone in the Y direction in another embodiment
- 7D is a schematic diagram of the position of the element hot zone relative to the visible zone in the Y direction in another embodiment
- FIG. 8A is a schematic diagram of an upper container added to a page container in an embodiment
- FIG. 8B is a schematic diagram of the upper container in FIG. 8A after being operated
- FIG. 8C is a schematic diagram of the page container in the interface in FIG. 8B after being moved;
- Figure 9A is a schematic diagram of the interface hot zone in an embodiment
- Figure 9B is a schematic diagram of the interface hot zone in Figure 9A after moving
- FIG. 9C is a schematic diagram of the interface hot zone in FIG. 9B after being displayed in the center;
- FIG. 10 is a schematic structural diagram of an interface display device according to an embodiment
- Figure 11 is an internal structure diagram of a computer device in an embodiment.
- the interface display method provided in this application can be applied to the page editing interface 100 as shown in FIG. 1A.
- the visual area 200 of the interface is as shown in FIG. 1A, and the page container 300 in the editing state is displayed in the visual area 200;
- the shape of the page container 300 is fixed, for example, the page container 300 can be a rectangle; in addition, the page container 300 is movable relative to the viewing area 200, for example, as shown in FIG. 1B, the page container 300 can move to the left relative to the viewing area 200; Alternatively, as shown in FIG. 1C, the page container 300 may move upward relative to the viewing area 200.
- the page editing interface 100 further includes an optional element type 201.
- the optional element type 201 may include text, shape, multimedia, table, mind map, and other tools. Among them, other tools can be set according to specific application scenarios.
- the corresponding type of element can be added to the page container 300.
- the user selects an optional element of the text type, and then can add text to the page container 300; the user selects the multimedia type Optional elements, and then choose to add multimedia files based on the pop-up file selection window, which can add multimedia files in the page container 300; the user selects other tools, and then based on the pop-up subject tool options, you can select the subject tools that need to be added, for example If the user chooses to add ancient poems, an upper container (that is, ancient poems) can be added to the page container 300, and the user can input the content of the ancient poems in the upper container. After the editing of the page container 300 is completed, the display of the content in the ancient poem container is independent of the display of other elements in the page container 300, for example, as shown in FIG. 1D.
- the elements added to the page container 300 include not only the elements 301 displayed in the effective area of the page container 300, but also the effective elements displayed in the page container 300.
- the element 302 outside the area also includes the element 303 that is partially displayed in the effective area of the page container 300 and partially displayed outside the effective area of the page container 300; for the computer, the element 301, element 302, and element 303 are all Elements that have been added to the page container 300.
- the display effect of the page container 300 is shown in FIG. 1E.
- the element part in the effective area of the page container 300 will be displayed together with the effective area of the page container, and the effective area of the page container 300 The elements inside and outside cannot be displayed.
- elements operated by the user include, but are not limited to, cursor, text, table, graph, multimedia file, mind map, and upper container.
- the text can be text or symbols;
- the graphics can be flowcharts, geometric figures, or ordinary pictures.
- the page editing interface 100 also includes controls such as a new page container (ie, "New Page” in Figure 1A) and "Start Playing"; when the user clicks on the control of "New Page", A blank page container is displayed in the visual area 200 of the interface; when the user clicks the "start playing" control, the currently edited page container 300 is automatically saved, and the page container 300 and elements are displayed as a whole.
- a new page container ie, "New Page” in Figure 1A
- Start Playing when the user clicks on the control of "New Page"
- a blank page container is displayed in the visual area 200 of the interface
- start playing the currently edited page container 300 is automatically saved, and the page container 300 and elements are displayed as a whole.
- an interface display method which includes the following steps:
- S100 Display the visual area of the interface; the visual area of the interface includes a page container for accommodating elements, and the shape of the page container is fixed.
- the element operation instruction in the page container may be an operation instruction for adding an element to the page container, or an operation instruction for editing an existing element in the page container.
- the operation instructions for adding elements to the page container may be operation instructions such as inputting text into the page container, typing a cursor, inserting graphics, inserting multimedia files, adding tables, and adding upper-level containers.
- the operation instruction for editing the existing elements in the page container can be an operation instruction for editing the text, cursor, table, graphics, multimedia file, and upper container that have been added to the page container, for example: The operation instruction for adjusting the format of the text in the page container, the operation instruction for expanding and displaying the mind map that has been added to the page container, or the operation instruction for moving the position of the upper container that has been added to the page container.
- S120 In response to the operation instruction, determine a target element; the target element is an element operated by the operation instruction.
- the target element refers to the element after being operated by the operation instruction.
- the corresponding target element is the adjusted text
- the corresponding target element is the expanded mind map
- the corresponding target element is the moved ancient poetry window. Poetry window.
- the target element may include at least one of cursor, text, table, graph, multimedia file, mind map, and upper container.
- the page container where the target element is located is automatically moved.
- the page container where the target element is located is automatically moved.
- the interface before adjustment is shown in Figure 3A; the interface after adjustment is shown in Figure 3B, it can be seen that the "target element 123123 is invisible” beyond the visual area 200 of the interface; now to the left
- the page container 300 is moved so that the "target element 123123 is invisible” can be completely displayed in the visual area 200 of the interface, and the effect is shown in FIG. 3C.
- the interface before enlargement is displayed as shown in FIG. 5A; the enlarged upper container 401 exceeds the viewable area 200 of the interface, as shown in FIG. 5B As shown; at this time, the page container 300 is automatically moved upward, so that the enlarged upper container 400 can be completely displayed to the visual area 200 of the interface, and the effect after the movement is shown in FIG. 5C.
- the first target control in the mobile interface is also synchronized; the first target control is a control used to control the movement of the page container.
- the page editing interface there are also controls for controlling the movement of the page container, such as the horizontal scroll bar 102 and the vertical scroll bar 101 in FIGS. 1A to 1C.
- the process of moving the page container 300 it also moves synchronously.
- the horizontal scroll bar 102 and/or the vertical scroll bar 101 in the interface In the traditional way, the user moves the horizontal scroll bar 102 and/or the vertical scroll bar 101 to make the page container 300 move accordingly.
- the user does not need to operate the horizontal scroll bar 102 and/or the vertical scroll bar 101.
- the vertical scroll bar 101 moves up; when the page container 300 moves to the left , The horizontal scroll bar 102 moves to the right.
- the horizontal scroll bar 102 is used to control the page container 300 to move in the horizontal direction of the viewable area 200 of the interface; the vertical scroll bar 101 is used to control the vertical movement of the page container 300 in the viewable area 200 of the interface. Move in the direction.
- the page container 300 automatically moves during the user's element operation, and at the same time the horizontal scroll bar 102 in the interface is adaptively moved, so that the user can see the complete element content in the visual area 200.
- the page container where the target element is located and the first target control corresponding to the page container are stopped. That is, during the movement of the page container, when the element that the user pays attention to has been completely displayed in the visual area 200 of the interface, or the scroll bar corresponding to the page container has moved to the border of the scroll area, the page movement is suspended.
- the situation of moving the page container includes: moving the page container in the horizontal direction of the interface, moving the page container in the vertical direction of the interface, or moving the page in both the horizontal and vertical directions of the interface
- Three situations of container Specifically: in the horizontal direction of the interface, if the corresponding area of the target element has a visible area 200 beyond the interface, move the page container horizontally and move the horizontal controls (such as horizontal scroll bars) synchronously; in the vertical direction of the interface Above, if the target element has a viewable area 200 beyond the interface, move the page container vertically and move the vertical controls (such as vertical scroll bars) simultaneously; in the horizontal and vertical directions of the interface, if the target element If there is a visual area 200 beyond the interface, the page container is moved horizontally and the page container vertically, and the horizontal control/vertical control are moved synchronously.
- the overall moving direction of the page container and the overall moving distance in this direction can be calculated according to the distance of the horizontal and vertical movement of the page container. Then move the page container without moving the page container in two steps, which improves the efficiency of page container adjustment.
- the area where the user is currently paying attention to the element is defined as the element hot zone, and the element hot zone and the visual area 200 of the interface are calculated in the horizontal/vertical direction.
- the upper distance according to the distance to move the page container horizontally/vertically.
- the element that the user currently pays attention to includes the content input by the user, a moving cursor, or an element obtained by performing a deformation operation on an element.
- the visual area 200, the page container, and the element hot area of the interface are assumed to be rectangular, and the implementation of the mobile page container is described.
- the right-hand coordinate system is established with the vertex of the upper left corner of the visual area 200 of the interface as the origin. Based on this coordinate system, after the user performs an element operation, the element hot zone 301 is obtained.
- the situation of the element hot zone 301 may be: the element hot zone 301 is not completely displayed in the visual area 200 of the interface in the X-axis direction (as shown in Figure 6A ⁇ 6C), the element hot zone 301 is not completely displayed in the visual area 200 of the interface in the Y-axis direction (as shown in FIGS. 7A to 7C).
- the element hot zone 301 When the element hot zone 301 is not completely displayed in the viewable area 200 of the interface in the X-axis direction, calculate the distance between the left and right edges of the element hot zone 301 and the left and right edges of the visual area 200 of the interface respectively, and use the element hot zone for distance calculation
- the abscissas of the left and right sides of 301 are subtracted from the abscissas of the left and right sides of the visual area 200 of the interface. For example: as shown in FIG.
- the distance that the page container 300 moves to the right in the X-axis direction can be set to be equal to the absolute value of the distance on the left; when the calculated distance on the right is greater than When zero is set, the distance that the page container 300 moves to the left in the X-axis direction is equal to the distance on the right.
- the movement of the page container 300 in the X-axis direction is performed only when only one of the two conditions is satisfied, the distance on the left is less than zero and the distance on the right is greater than zero.
- the page container where the target element is located is moved horizontally, that is, in the X-axis direction. If the left or right side of the element hot zone 301 exceeds the visible area of the interface, then the Move the page container 300 where the target element is located in the direction.
- the element hot zone 301 When in the page container 300, the element hot zone 301 is not completely displayed in the visual area of the interface in the Y-axis direction, calculate the distance between the upper and lower edges of the element hot zone 301 and the upper and lower edges of the visual area 200 of the interface. Calculate and use the vertical coordinates of the upper and lower sides of the element hot zone 301, and subtract the vertical coordinates of the upper and lower sides of the visual area 200 of the interface. For example, in FIG. Coordinate, subtract the ordinate of the lower side of the visual area 200 of the interface to obtain the distance between the element hot zone 301 and the lower side of the visual area 200 of the interface; in Fig. 7B, the upper side of the element hot zone 301 is used The ordinate is subtracted from the ordinate of the upper side of the visual area 200 of the interface to obtain the distance between the element hot zone 301 and the upper side of the visual area 200 of the interface.
- the vertical downward movement distance of the page container 300 can be set to be equal to the absolute value of the upper distance; when the calculated lower distance is greater than zero , The vertical upward movement distance of the page container 300 is set equal to the distance from the lower side. The vertical movement of the page container 300 is performed only when only one of the two conditions of the distance on the upper side is less than zero and the distance on the lower side is greater than zero is satisfied.
- the element hot zone 301 is in the visual area 200 of the interface, so there is no need to move the page container 300.
- the page container 300 where the target element is located is moved vertically, that is, in the Y-axis direction, the upper or lower side of the element hot zone 301 exceeds the visible area 200 of the interface, then Move the page container 300 where the target element is located in the Y-axis direction.
- the bottom canvas of the page editing interface 100 includes multiple layers of containers, specifically including the edited page container 300 and the ancient poetry container 400 added to the page.
- the page container 300 is the lower container of the ancient poetry container 400
- the ancient poetry container 400 is the upper container of the page container 300;
- the target controls corresponding to the lower container are the control 101 and the control 102;
- the target control corresponding to the upper container is the control 401.
- the user operates the elements in the ancient poem container 400 to obtain the element hot zone 402, and the element hot zone 402 exceeds the visual area 200 of the interface, first move the ancient poem container 400 (in the scene of FIG. 8A, the moving direction is vertical Move up), and move the control 401 synchronously.
- the interface effect is as shown in FIG. 8B. Since the element hot zone 402 is still beyond the visual area 200 of the interface at this time, the lower container of the ancient poem container 400, that is, the page container 300, is obtained. Since the page container 300 is not the bottom canvas, the page container 300 can be moved further, and the direction To make the element hot zone 402 approach the center of the visual area 200 of the interface (in the scene of FIG. 8B, the moving direction is vertical upward movement). During the movement of the page container 300, the relative positions of the ancient poem container 400 and the page container 300 remain unchanged. During the movement of the page container 300, the control 101 and the control 102 can also be moved synchronously.
- the multi-layer containers in the interface can be linked when necessary to further ensure that the page elements that the user pays attention to are displayed in the visual area of the page. It is understandable that in the process of multi-layer container linkage, when the control of the upper container moves to the boundary, the lower container is triggered to move. For the user, the process can be smooth from time to time without obvious lag; of course, also It can be that when the control of the upper container moves to the boundary, the set duration is paused, and then the movement of the lower container is triggered, so that the user can observe the movement effect of different page containers.
- the method further includes the step of recalculating the compressed space.
- the compressed space refers to the gap between the bottom container and the visual area 200 of the interface.
- the blank space of is compressed to allow the bottom container to be displayed in the visual area 200 of the interface as much as possible.
- the bottom page container in the interface is obtained, as the bottom container, all elements that have been added to the bottom container are obtained; to determine the interface hot zone, first determine A rectangle containing all the elements added to the bottom container is obtained, and a large rectangle is obtained, and the large rectangle is superimposed with the rectangle corresponding to the bottom container itself to determine a rectangular area and record it as the interface hot zone.
- the rectangle R0 corresponding to all elements is obtained through the following algorithm:
- the rectangle R of the interface hot zone can be obtained as:
- R ((min(R0.x1,R s .x1),min(R0.y1,R s .y1)),
- the element hot zone 301 of the bottom container 300 in the interface is completely displayed in the visible area 200.
- the rectangle of the interface hot zone can be obtained. It can be seen that the rectangle of the interface hot zone is not completely displayed on the interface.
- the visual area 200 of referring to the above-mentioned condition determination for moving the element hot area, it can be determined that the rectangle of the interface hot area needs to move horizontally to the right, and the bottom container 300 needs to be moved horizontally to the right.
- FIG. 9B after the bottom container 300 moves horizontally to the right, when the interface hot zone is completely displayed in the visual area 200 of the interface, the bottom container 300 stops moving.
- the movement of the bottom-layer container 300 is used to drive the movement of the elements on the bottom-layer container 300 to achieve the effect of moving the interface hot zone.
- the method further includes: displaying the hot area of the interface in a centered manner in the visual area 200 of the interface. That is, in FIG. 9B, although the interface hot zone can be completely displayed in the visual area 200 of the interface, it is not displayed in the center. For this situation, the bottom container 300 is further moved until the interface hot zone is displayed in the center in the visual area 200 of the interface.
- the display effect is shown in Figure 9C.
- steps in the flowchart are displayed in sequence as indicated by the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart of the method embodiment may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps Or the execution order of the stages is not necessarily carried out sequentially, but may be executed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
- this article also provides an embodiment of the interface display device; in the embodiment of the present disclosure, the visual area of the interface includes a page container for accommodating elements, the page container The shape is fixed.
- the interface display device includes:
- the display module 501 is configured to display the visual area of the interface; the visual area of the interface includes a page container for accommodating elements, and the shape of the page container is fixed.
- the instruction receiving module 502 is used to receive element operation instructions
- the element determination module 503 is configured to determine a target element in response to the operation instruction; the target element is an element operated by the operation instruction;
- the container moving module 504 is configured to move the page container when the target element exceeds the visual area of the interface so that the target element approaches the center of the visual area of the interface; the page container is the target In the page container where the element is located, during the movement of the page container, the position of the target element in the page container remains unchanged.
- the interface display device further includes: a control moving module, configured to move a first target control during the movement of the page container; the first target control is used to control the movement of the page container Controls.
- the interface display device further includes: a movement control module for when the target element is completely displayed in the visual area of the interface, or when the first target control moves to the boundary , Stop moving the page container and the first target control.
- the first target control includes a horizontal scroll bar and/or a vertical scroll bar; the horizontal scroll bar is used to control the page container to move in the horizontal direction of the visual area of the interface; The vertical scroll bar is used to control the page container to move in the vertical direction of the visible area of the interface.
- the container moving module 504 specifically includes:
- the first moving unit is configured to move the page container horizontally in the horizontal direction if the target element exceeds the visible area of the interface
- the second moving unit is configured to move the page container vertically if the target element exceeds the visible area of the interface in the vertical direction.
- the first moving unit is specifically configured to determine the area where the target element is located as an element hot zone; obtain that the element hot zone and the visible area of the interface are in the horizontal direction Move the page container horizontally; the displacement of the page container being moved horizontally corresponds to the first distance.
- the second moving unit is specifically configured to determine the area where the target element is located as an element hot zone; acquire that the element hot zone and the visible area of the interface are in the vertical direction Move the page container vertically; the displacement of the page container being moved vertically corresponds to the second distance.
- the visible area of the interface, the page container, and the element hot area are all rectangular.
- the interface display device further includes: a movement judgment module for judging whether the horizontal movement condition/vertical movement condition is satisfied according to the relative position of the element hot zone and the visible area of the interface; If the horizontal movement condition is satisfied, the first moving unit is notified to move the page container horizontally; if the vertical movement condition is satisfied, the second moving unit is notified to move the page container vertically.
- the horizontal movement condition is that in the horizontal direction, the left or right side of the element hot zone exceeds the visible area of the interface;
- the vertical movement condition is that In the vertical direction, the upper side or the lower side of the element hot zone exceeds the visible area of the interface.
- the interface display device further includes:
- a lower container acquisition module configured to acquire the lower container of the page container if the target element still exceeds the visible area of the interface after the first target control moves to the boundary;
- the lower container judging module is used to judge whether the lower container is the bottom canvas
- the lower container moving module is used to move the lower container if not in a direction such that the target element approaches the center of the visible area of the interface; during the movement of the lower container, the page container and the The relative position of the lower container remains unchanged.
- the various modules in the device for tracking and shooting by the smart terminal can be implemented in whole or in part by software, hardware and a combination thereof.
- the above modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
- the logical division of each program module is only an example. In actual applications, it can be based on needs, for example, due to the configuration requirements of the corresponding hardware or the convenience of software implementation.
- the above function allocation is completed by different program modules, that is, the internal structure of the device for tracking and shooting by the smart terminal is divided into different program modules to complete all or part of the functions described above.
- a computer device is provided.
- the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 11.
- the computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus.
- the processor of the computer device is used to provide calculation and control capabilities.
- the memory of the computer device includes a non-volatile storage medium and an internal memory.
- the non-volatile storage medium stores an operating system and a computer program.
- the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
- the network interface of the computer device is used to communicate with an external terminal through a network connection.
- the display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen
- the input device of the computer equipment can be a touch layer covered on the display screen, or it can be a button, a trackball or a touchpad set on the computer equipment shell , It can also be an external keyboard, touchpad, or mouse.
- FIG. 11 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
- the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
- a computer device including a display, a memory, and a processor.
- the display is used for displaying page editing and editing;
- the memory stores a computer program, and the processor implements the following steps when the computer program is executed:
- the visual area of the interface includes a page container for accommodating elements, the shape of the page container is fixed; receiving an element operation instruction in the page container; responding to the operation instruction, Determine the target element; the target element is the element operated by the operation instruction; when the target element exceeds the visual area of the interface, move the page container in a direction such that the target element faces the The center of the visual area of the interface is close; during the movement of the page container, the position of the target element in the page container remains unchanged.
- the processor further implements the following steps when executing the computer program: during the movement of the page container, the first target control is moved; the first target control is a control for controlling the movement of the page container.
- the processor further implements the following steps when executing the computer program: after moving the page container, when the target element is completely displayed in the visual area of the interface, or the first target control moves When reaching the boundary, stop moving the page container and the first target control.
- the first target control includes a horizontal scroll bar and/or a vertical scroll bar; the horizontal scroll bar is used to control the page container to move in the horizontal direction of the visual area of the interface; The vertical scroll bar is used to control the page container to move in the vertical direction of the visible area of the interface.
- the processor further implements the following steps when executing the computer program: in the horizontal direction, if the target element exceeds the visible area of the interface, move the page container horizontally, and move the page container horizontally. Horizontal control; in the vertical direction, if the target element exceeds the visible area of the interface, move the page container vertically and move the vertical control vertically.
- the processor further implements the following steps when executing the computer program: determining the area where the target element is located as the element hot zone; acquiring that the element hot zone and the visible area of the interface are in the horizontal direction /Distance in the vertical direction; horizontally/vertically move the page container; the displacement of the page container by the horizontal/vertical movement corresponds to the distance.
- the visible area of the interface, the page container, and the element hot area are all rectangular.
- the processor further implements the following steps when executing the computer program: judging whether the horizontal movement condition/vertical movement condition is satisfied according to the relative position of the element hot zone and the visible area of the interface; The horizontal movement condition moves the page container horizontally; if the vertical movement condition is satisfied, the page container moves vertically.
- the horizontal movement condition is that in the horizontal direction, the left or right side of the element hot zone exceeds the visible area of the interface;
- the vertical movement condition is that In the vertical direction, the upper side or the lower side of the element hot zone exceeds the visible area of the interface.
- the processor further implements the following steps when executing the computer program: after the first target control moves to the boundary, if the target element still exceeds the visible area of the interface, obtain the page container Lower container; judge whether the lower container is the bottom canvas; if not, move the lower container in a direction such that the target element approaches the center of the visible area of the interface; during the movement of the lower container, The relative position of the page container and the lower container remains unchanged.
- the processor further implements the following steps when executing the computer program: during the movement of the lower container, a second target control is moved; the second target control is a control for controlling the movement of the lower container.
- the processor further implements the following steps when executing the computer program: when the target element is completely displayed in the visual area of the interface, or when the second target control moves to the boundary, stop moving The lower container and the second target control.
- the processor further implements the following steps when executing the computer program: after the target element is completely displayed in the visual area of the interface, acquiring the bottommost page container in the interface as the bottom container; Determine the interface hot zone; the interface hot zone is the smallest outer rectangular area that contains the bottom container and all the elements that have been added to the bottom container; if the interface hot zone exceeds the visible area of the interface, move The moving direction of the bottom container is such that the interface hot zone approaches the center of the visual area of the interface.
- the processor executes the computer program, the following steps are further implemented: in the visible area of the interface, the hot area of the interface is displayed in a centered manner.
- the element operation instruction in the page container includes at least one of an operation instruction to add an element to the page container and an operation to edit an existing element in the page container.
- the processor further implements the following steps when executing the computer program: making the display color of the page container different from the display color of the visual area of the interface.
- the target element includes at least one of cursor, text, table, graph, multimedia file, mind map, and upper container.
- a computer-readable storage medium is provided, and a computer program is stored thereon.
- the computer program is executed by a processor, the following steps are implemented: the visual area of the interface is displayed; the visual area of the interface includes A page container for accommodating elements, the shape of the page container is fixed; the element operation instruction in the page container is received; the target element is determined in response to the operation instruction; the target element is the element operated by the operation instruction; when When the target element exceeds the visual area of the interface, move the page container in a direction such that the target element approaches the center of the visual area of the interface; during the movement of the page container, The position of the target element in the page container remains unchanged.
- the visual area of the interface includes a page container for accommodating elements, and the shape of the page container is fixed.
- the element operation instruction in the page container includes at least one of an operation instruction to add an element to the page container and an operation to edit an existing element in the page container.
- the display color of the page container is different from the display color of the visual area of the interface.
- the target element includes at least one of cursor, text, table, graph, multimedia file, mind map, and upper container.
- Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory may include random access memory (RAM) or external cache memory.
- RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
- the "plurality” mentioned herein means two or more.
- “And/or” describes the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone.
- the text "/" generally indicates that the associated objects are in an "or” relationship.
- first ⁇ second mentioned in this article only distinguishes similar objects, and does not represent a specific order for the objects. Understandably, “first ⁇ second” can be interchanged with specific Order or precedence. It should be understood that the objects distinguished by “first ⁇ second” can be interchanged under appropriate circumstances, so that the embodiments described herein can be implemented in an order other than those illustrated or described herein.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
Claims (23)
- 一种界面显示方法,包括:显示界面的可视区;所述界面的可视区中包括用于容纳元素的页面容器,所述页面容器的形状固定;接收所述页面容器中的元素操作指令;响应所述操作指令,确定目标元素;所述目标元素为被所述操作指令操作的元素;当所述目标元素超出所述界面的可视区时,移动所述页面容器,移动方向为使得所述目标元素向所述界面的可视区的中心靠近;在所述页面容器移动过程中,所述目标元素在所述页面容器中的位置保持不变。
- 根据权利要求1所述的方法,还包括:在所述页面容器移动过程中,移动第一目标控件;所述第一目标控件为用于控制所述页面容器移动的控件。
- 根据权利要求2所述的方法,所述移动所述页面容器的步骤之后,还包括:当所述目标元素完全显示在所述界面的可视区中时,或者所述第一目标控件移动到边界处时,停止移动所述页面容器。
- 根据权利要求2所述的方法,其中,所述第一目标控件包括水平滚动条和/或竖直滚动条;所述水平滚动条用于控制所述页面容器在所述界面的可视区的水平方向上移动;所述竖直滚动条用于控制所述页面容器在所述界面的可视区的竖直方向上移动。
- 根据权利要求4所述的方法,其中,所述移动所述页面容器的步骤,包括:在所述水平方向上,若所述目标元素超出所述界面的可视区,水平移动所述页面容器,并水平移动所述水平控件;在所述竖直方向上,若所述目标元素超出所述界面的可视区,竖直移动所述页面容器,并竖直移动所述竖直控件。
- 根据权利要求5所述的方法,其中,所述水平/竖直移动所述页面容器的步骤,包括:将所述目标元素所在区域,确定为元素热区;获取所述元素热区与所述界面的可视区在所述水平方向/竖直方向上的距离;水平/竖直移动所述页面容器;所述页面容器被水平/竖直移动的位移与所述距离相应。
- 根据权利要求6所述的方法,其中,所述界面的可视区、所述页面容器、所述元素热区均为矩形。
- 根据权利要求7所述的方法,还包括:根据所述元素热区的矩形与所述界面的可视区的矩形相对位置,判断是否满足水平移动条件/竖直移动条件;若满足所述水平移动条件,水平移动所述页面容器;若满足所述竖直移动条件,竖直移动所述页面容器。
- 根据权利要求8所述的方法,其中,所述水平移动条件为,在所述水平方向上,所述元素热区的左侧或者右侧超出所述界面的可视区;所述竖直移动条件为,在所述竖直方向上,所述元素热区的上侧或者下侧超出所述界面 的可视区。
- 根据权利要求3所述的方法,还包括:在所述第一目标控件移动到边界之后,若所述目标元素仍超出所述界面的可视区,获取所述页面容器的下层容器;判断所述下层容器是否为底层画布;若否,移动所述下层容器,移动方向为使得所述目标元素向所述界面的可视区中心靠近;所述下层容器移动过程中,所述页面容器与所述下层容器的相对位置保持不变。
- 根据权利要求10所述的方法,还包括:在所述下层容器移动过程中,移动第二目标控件;所述第二目标控件为用于控制所述下层容器移动的控件。
- 根据权利要求11所述的方法,还包括:当所述目标元素完全显示在所述界面的可视区中时,或者所述第二目标控件移动到边界处时,停止移动所述下层容器。
- 根据权利要求1至12任一所述的方法,还包括:当所述目标元素完全显示在所述界面的可视区中之后,获取所述界面中最底层的页面容器,作为底层容器;确定界面热区;所述界面热区为包含所述底层容器以及已添加到所述底层容器中的全部元素的最小外包矩形区域;若所述界面热区超出所述界面的可视区,移动所述底层容器,移动方向为使得所述界面热区向着所述界面的可视区的中心靠近的方向。
- 根据权利要求13所述的方法,所述移动所述底层容器的步骤之后,还包括:在所述界面的可视区中,将所述界面热区以居中方式显示。
- 根据权利要求1所述的方法,其中,所述页面容器中的元素操作指令包括:向所述页面容器中新增元素的操作指令、编辑所述页面容器中已有元素的操作中的至少一种。
- 根据权利要求1所述的方法,其中,所述页面容器的显示颜色不同于所述界面的可视区的显示颜色。
- 根据权利要求1所述的方法,其中,所述目标元素包括:光标、文本、表格、图形、多媒体文件、思维导图、上层容器中的至少一种。
- 一种界面显示装置,包括:显示模块,用于显示界面的可视区;所述界面的可视区中包括用于容纳元素的页面容器,所述页面容器的形状固定;指令接收模块,用于接收元素操作指令;元素确定模块,用于响应所述操作指令,确定目标元素;所述目标元素为被所述操作指令操作的元素;容器移动模块,用于当所述目标元素超出所述界面的可视区时,移动页面容器,使得所述目标元素向所述界面的可视区中心靠近;所述页面容器为所述目标元素所在的页面容器,在所述页面容器移动过程中,所述目标元素在所述页面容器中的位置保持不变。
- 根据权利要求18所述的装置,还包括:控件移动模块,用于在所述页面容器移动过程中,移动第一目标控件;所述第一目标控件为用于控制所述页面容器移动的控件。
- 根据权利要求19所述的装置,还包括:移动控制模块,用于当所述目标元素完全显示在所述界面的可视区中时,或者所述第一目标控件移动到边界处时,停止移动所述页面容器。
- 根据权利要求20所述的装置,还包括:下层容器获取模块,用于在所述第一目标控件移动到边界之后,若所述目标元素仍然超出所述界面的可视区,获取所述页面容器的下层容器;下层容器判断模块,用于判断所述下层容器是否为底层画布;下层容器移动模块,用于若否,移动所述下层容器,移动方向为使得所述目标元素向所述界面的可视区中心靠近;所述下层容器移动过程中,所述页面容器与所述下层容器的相对位置保持不变。
- 一种计算机设备,包括显示器、存储器和处理器,其中,所述显示器用于显示页面编辑界面;所述存储器存储有计算机程序;所述处理器执行所述程序时实现权利要求1至17任一所述方法的步骤。
- 一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现权利要求1至17任一所述方法的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910121000.X | 2019-02-19 | ||
CN201910121000.XA CN109901902B (zh) | 2019-02-19 | 2019-02-19 | 界面显示方法、装置、计算机设备和存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020168791A1 true WO2020168791A1 (zh) | 2020-08-27 |
Family
ID=66944920
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/124817 WO2020168791A1 (zh) | 2019-02-19 | 2019-12-12 | 界面显示方法、装置、计算机设备和存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109901902B (zh) |
WO (1) | WO2020168791A1 (zh) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109901902B (zh) * | 2019-02-19 | 2020-09-01 | 广州视源电子科技股份有限公司 | 界面显示方法、装置、计算机设备和存储介质 |
CN110737380B (zh) * | 2019-09-05 | 2021-09-07 | 广州视源电子科技股份有限公司 | 思维导图展示方法、装置、存储介质及电子设备 |
CN112287917A (zh) * | 2020-12-30 | 2021-01-29 | 卡斯柯信号(北京)有限公司 | 目标设备的查找方法及装置 |
CN112379817A (zh) * | 2021-01-13 | 2021-02-19 | 湖南新云网科技有限公司 | 图元变换方法、装置、终端设备及计算机可读存储介质 |
CN113805746B (zh) * | 2021-08-12 | 2022-09-23 | 荣耀终端有限公司 | 显示光标的方法和装置 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103677496A (zh) * | 2012-09-07 | 2014-03-26 | 腾讯科技(深圳)有限公司 | 界面控制方法及控制装置 |
US10019146B2 (en) * | 2014-09-04 | 2018-07-10 | Home Box Office, Inc. | Snap points including ranges |
CN109117051A (zh) * | 2018-09-05 | 2019-01-01 | 广州视源电子科技股份有限公司 | 思维导图的展示方法、装置、设备及存储介质 |
CN109901902A (zh) * | 2019-02-19 | 2019-06-18 | 广州视源电子科技股份有限公司 | 界面显示方法、装置、计算机设备和存储介质 |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5574836A (en) * | 1996-01-22 | 1996-11-12 | Broemmelsiek; Raymond M. | Interactive display apparatus and method with viewer position compensation |
US8245153B2 (en) * | 2008-01-24 | 2012-08-14 | International Business Machines Coporation | System and method for displaying gantt charts with other project management tools |
CN104050184B (zh) * | 2013-03-13 | 2017-08-22 | 阿里巴巴集团控股有限公司 | 显示页面内容的方法及装置 |
CN103546818B (zh) * | 2013-10-31 | 2017-01-04 | 乐视致新电子科技(天津)有限公司 | 智能电视的列表显示界面的焦点控制方法和装置 |
CN106155454B (zh) * | 2015-03-30 | 2020-06-16 | 阿里巴巴集团控股有限公司 | 一种界面显示方法、装置及电子设备 |
CN105549934A (zh) * | 2015-12-16 | 2016-05-04 | 广东威创视讯科技股份有限公司 | 显示界面控制方法和系统 |
CN106873854B (zh) * | 2017-01-20 | 2019-12-13 | 北京安云世纪科技有限公司 | 终端及界面交互控制方法、联系人对象创建方法及装置 |
CN107608668B (zh) * | 2017-09-22 | 2021-02-05 | 网易(杭州)网络有限公司 | H5页面制作兼容显示的方法、装置、终端设备及存储介质 |
-
2019
- 2019-02-19 CN CN201910121000.XA patent/CN109901902B/zh active Active
- 2019-12-12 WO PCT/CN2019/124817 patent/WO2020168791A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103677496A (zh) * | 2012-09-07 | 2014-03-26 | 腾讯科技(深圳)有限公司 | 界面控制方法及控制装置 |
US10019146B2 (en) * | 2014-09-04 | 2018-07-10 | Home Box Office, Inc. | Snap points including ranges |
CN109117051A (zh) * | 2018-09-05 | 2019-01-01 | 广州视源电子科技股份有限公司 | 思维导图的展示方法、装置、设备及存储介质 |
CN109901902A (zh) * | 2019-02-19 | 2019-06-18 | 广州视源电子科技股份有限公司 | 界面显示方法、装置、计算机设备和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN109901902B (zh) | 2020-09-01 |
CN109901902A (zh) | 2019-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020168791A1 (zh) | 界面显示方法、装置、计算机设备和存储介质 | |
US10782844B2 (en) | Smart whiteboard interactions | |
US9582142B2 (en) | System and method for collaborative computing | |
US20160132223A1 (en) | Method and apparatus for dynamically resizing windows | |
US20160147432A1 (en) | Automatically returning to an active window during a meeting | |
US20110181521A1 (en) | Techniques for controlling z-ordering in a user interface | |
KR101932718B1 (ko) | 화면 상의 디스플레이창의 크기를 변경하는 디바이스 및 방법 | |
WO2012154258A1 (en) | User-aided image segmentation | |
US9953447B2 (en) | Making a computer display more expressive | |
US8773468B1 (en) | System and method for intuitive manipulation of the layering order of graphics objects | |
KR20150032066A (ko) | 화면 미러링 방법 및 그에 따른 소스 기기 | |
AU2019457052B2 (en) | Table processing method and apparatus, and intelligent interactive tablet and storage medium | |
CN109324722B (zh) | 思维导图的节点添加方法、装置、设备及存储介质 | |
US20210090330A1 (en) | Virtual exhibition space providing method for efficient data management | |
US11024257B2 (en) | Android platform based display device and image display method thereof | |
US11039196B2 (en) | Method and device for displaying a screen shot | |
WO2015184736A1 (zh) | 一种触屏设备背景图变换的方法及终端 | |
TWI780497B (zh) | 顯示系統、顯示方法及顯示器 | |
JP5907196B2 (ja) | 画像処理装置、画像処理方法、画像処理システムおよびプログラム | |
CN114168238A (zh) | 通过计算设备实现的方法、系统和计算机可读存储介质 | |
CN105094586A (zh) | 一种显示窗口的调节方法及电子设备 | |
TWI267774B (en) | Image display system | |
JP6161290B2 (ja) | 表示制御装置、表示制御方法及びそのプログラム | |
US20220083208A1 (en) | Non-proportionally transforming and interacting with objects in a zoomable user interface | |
CN104731451A (zh) | 信息处理方法及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19916244 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19916244 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19916244 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 24/02/2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19916244 Country of ref document: EP Kind code of ref document: A1 |