Display control method and device, computer program product and terminal equipment
By folding the display object when zooming or moving in the display screen of the terminal device, the problem of the display object exceeding the screen boundary is solved, and the user's visual reading experience is improved.
Patent Information
- Application Number
- CN202411767596.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-03-25
AI Technical Summary
In the display screen of the terminal device, the display object may exceed the screen boundary when the screen is zoomed or moved, resulting in the inability to display in full, affecting the user's visual reading experience.
By determining the updated target display object when the screen is zoomed or moved, if the target display object exceeds the screen boundary, the folding position is determined based on its first overlap area of the screen, and the target display object is folded so that it is completely located in the screen.
By folding the display object, it ensures that it is fully displayed in the screen, improving the user's visual reading experience.
Smart Images

Figure CN119690309A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of display technology, and in particular, relates to a display control method, device, computer program product and terminal equipment. Background Art
[0002] In the display screen of the terminal device, various display objects (such as rectangular labels or circular labels) can usually be used to prompt the corresponding information of the location of the positioning point in the screen; for example, in the screen displaying the monitoring area (such as the application of a mobile phone or the display screen of the monitoring device), rectangular labels can be used to prompt the locations of audio, television and other equipment; for another example, in the screen displaying housing information (such as the display screen of a rental application), rectangular labels can be used to display the number of remaining houses in each community.
[0003] Since the content in the display object needs to be read by the user, the visual reading effect of the human eye needs to be considered. If the display object scales with the zoom of the screen, the visual effect of the content in the display object will be reduced. Therefore, the display object usually does not scale with the screen, but its position will change with the zoom or movement of the screen. After the position of the display object changes, the display object may exceed the screen, resulting in the display object cannot be fully displayed, thereby affecting the user's visual reading experience. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a display control method, apparatus, computer program product and terminal device to solve the problem that a display object cannot be fully displayed when it exceeds the screen, resulting in a poor visual reading experience for the user.
[0005] A first aspect of an embodiment of the present application provides a display control method, which may include:
[0006] When the screen is scaled or moved, determine the target display object after the position is updated; wherein the target display object is any display object in the screen;
[0007] If the target display object after the position update exceeds the boundary of the picture, then based on the first overlapping area between the target display object and the picture, determine the folding position of the target display object; wherein the folding position of the target display object is the position of the target display object after folding;
[0008] Based on the folding position of the target display object, the target display object is folded so that the target display object is completely located within the screen.
[0009] A second aspect of an embodiment of the present application provides a display control device, which may include:
[0010] A position update module, used to determine a target display object after position update when the picture is scaled or moved; wherein the target display object is any display object in the picture;
[0011] a position determination module, configured to determine the folding position of the target display object based on a first overlapping area between the target display object and the picture if the target display object exceeds the boundary of the picture after the position update; wherein the folding position of the target display object is the position of the target display object after the folding;
[0012] The object folding module is used to determine the folding position of the target display object and fold the target display object so that the target display object is completely located within the screen.
[0013] A third aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned display control methods are implemented.
[0014] The fourth aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the terminal device implements the steps of any one of the above-mentioned display control methods.
[0015] A fifth aspect of an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is run, any one of the above-mentioned display control methods is executed.
[0016] Compared with the prior art, the embodiments of the present application have the following beneficial effects: when the screen is scaled or moved, the embodiments of the present application determine the target display object after the position is updated; wherein the target display object is any display object in the screen; if the target display object after the position is updated exceeds the boundary of the screen, then based on the first overlapping area between the target display object and the screen, the folding position of the target display object is determined; wherein the folding position of the target display object is the position of the target display object after folding; based on the folding position of the target display object, the target display object is folded so that the target display object is completely within the screen. Through the embodiments of the present application, when the display object exceeds the boundary of the screen, the display object can be folded so that the display object can be completely displayed within the screen, which helps to improve the user's visual reading experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 A schematic diagram of an application scenario for displaying an object;
[0019] Figure 2 A schematic diagram of another application scenario of a display object;
[0020] Figure 3 A first schematic diagram showing that an object is beyond the screen;
[0021] Figure 4 A schematic diagram showing the positioning of an object based on a positioning point;
[0022] Figure 5 This is a flow chart of an embodiment of a display control method in an embodiment of the present application;
[0023] Figure 6 A second schematic diagram showing that the object is beyond the screen;
[0024] Figure 7 A third schematic diagram showing that the object is beyond the screen;
[0025] Figure 8 A schematic diagram showing the folding position of an object;
[0026] Fig. 9 A fourth schematic diagram showing that the object is beyond the screen;
[0027] Fig.10 A first schematic diagram showing a folded object;
[0028] Fig.11 A second schematic diagram showing an object;
[0029] Fig.12 A fifth schematic diagram showing that the object is beyond the screen;
[0030] Fig.13 A schematic diagram of the target rectangle and the candidate rectangle;
[0031] Fig.14 Another schematic diagram of the target rectangle and the candidate rectangle;
[0032] Fig.15 A schematic diagram of the second overlapping area and the non-overlapping rectangular boundary;
[0033] Fig.16is another schematic diagram of the second overlapping area and the non-overlapping rectangular boundary;
[0034] Fig.17 A schematic diagram for displaying object aggregation;
[0035] Fig.18 This is a structural diagram of an embodiment of a display control device in an embodiment of the present application;
[0036] Fig.19 This is a schematic block diagram of a terminal device in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0039] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0040] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0041] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0042] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0043] In the display screen of the terminal device, various display objects (such as rectangular labels or circular labels) can usually be used to indicate the corresponding information of the location of the positioning point in the screen; for example, see Figure 1 In the screen showing the monitoring area (such as the mobile phone application or the display screen of the monitoring device), rectangular labels can be used to indicate the location of equipment such as speakers and televisions; for example, see Figure 2 In a screen displaying house information (such as a display screen of a house rental application), rectangular labels can be used to display the number of remaining houses in each community.
[0044] Since the content in the display object needs to be read by the user, the visual reading effect of the human eye needs to be considered. If the display object scales with the zoom of the screen, the visual effect of the content in the display object will be reduced. Therefore, the display object usually does not scale with the screen, but its position will change with the zoom or movement of the screen. After the position of the display object changes, the display object may exceed the screen, such as Figure 3 As shown, the display object cannot be fully displayed in the screen, thereby affecting the user's visual reading experience.
[0045] In view of this, the embodiments of the present application provide a display control method, apparatus, computer program product and terminal device to solve the problem that a display object cannot be fully displayed when it exceeds the screen, resulting in a poor visual reading experience for the user.
[0046] It should be noted that the execution subject of the method of the present application is a terminal device, specifically, it can be a common computing device such as a desktop computer, a notebook, a PDA, a workstation, a mobile phone, etc., or it can be other computing devices.
[0047] The screen in the embodiment of the present application is specifically the displayable range of the display object on the display interface of the terminal device. The displayable range can be specific and situational according to actual needs, and the embodiment of the present application does not limit this. For example, the terminal device can be a mobile phone. When the mobile phone is in landscape mode, the displayable range can be set to the entire screen (display interface); when the mobile phone is in portrait mode, the displayable range can be set to the upper half of the screen.
[0048] The display object in the embodiment of the present application can be positioned according to its positioning point. Specifically, the position of the display object can be determined based on the relative position relationship between the display object and its positioning point. For the same display object, when the relative position relationship between the display object and its positioning point is different, the position of the display object may also be different; for example, see Figure 4 For the rectangular label 1, the positioning point 1 can be located at the lower left or upper right of the rectangular label 1. The positions of the rectangular label 1 in these two cases are different.
[0049] When the display object exceeds the boundary of the screen, you can try to fold the display object into the screen based on its positioning point, so as to display the complete content of the display object in the screen as much as possible.
[0050] Since there may be one or more display objects in the screen, for the convenience of description, the display control method in the embodiment of the present application will be introduced by taking any rectangular label in the screen (recorded as the target rectangle) as the target display object as an example; it should be noted that the rectangle referred to below can be the rectangular outline of the rectangular label itself, or it can be the rectangular outline of the rectangular label itself expanded to a certain range.
[0051] Specifically, see Figure 5 In the embodiment of the present application, an embodiment of a display control method may include:
[0052] Step S501: When the picture is scaled or moved, determine the target display object after the position is updated.
[0053] Specifically, when the picture is scaled, the updated target rectangle can be determined based on the scaling of the current picture relative to the initial picture; when the picture is moved, the updated target rectangle can be determined based on the movement of the current picture relative to the initial picture.
[0054] The initial screen referred to in the embodiment of the present application may specifically be a reference display screen, for example, may be a screen without any zooming or movement, that is, a screen with a zoom ratio of 1.
[0055] Specifically, the position of the target rectangle in the initial picture may be transformed according to the scaling or movement of the picture, so as to obtain the position of the target rectangle in the current picture.
[0056] In a specific implementation method of the embodiment of the present application, the original rectangle list and the separate rectangle list of coordinate conversion can be used to record the position of each rectangle in the initial screen and the position of the updated target rectangle; wherein the original rectangle list may include information about the rectangles in the initial screen, specifically including the unique identifier (ID) of the rectangle, the corresponding positioning point (position) of the rectangle in the initial screen, the folding information of each rectangle (i.e. the relative position relationship between the rectangle and the positioning point), and the boundary information of each rectangle (the starting coordinates and the ending coordinates of the four boundaries of the rectangle in the initial screen); the separate rectangle list of coordinate conversion may include information about the rectangles in the current screen (after coordinate conversion), specifically including the ID of each rectangle, the corresponding positioning point (position) of each rectangle in the current screen, the folding information of each rectangle, and the boundary information of each rectangle.
[0057] Step S502: If the target display object after the position update exceeds the boundary of the picture, determine the folding position of the target display object based on the first overlapping area between the target display object and the picture.
[0058] When the updated target rectangle exceeds the boundary of the screen, the overlapping area between the target rectangle and the screen (called the first overlapping area) can be determined, and based on the situation that the target rectangle exceeds the boundary of the screen, the position of the target rectangle is updated to try to move the target rectangle.
[0059] In the embodiment of the present application, the first overlap boundary can be determined based on the first overlap area; wherein the first overlap boundary is the common boundary between the first overlap area and the picture. Figure 6 As shown, for rectangular label 1, the first overlapping area between rectangular label 1 and the picture is overlapping area 1, and the common boundary between overlapping area 1 and the picture is the left boundary of the picture; for rectangular label 2, the first overlapping area between rectangular label 2 and the picture is overlapping area 2, and the common boundary between overlapping area 2 and the picture is the right boundary of the picture; for rectangular label 3, the first overlapping area between rectangular label 3 and the picture is overlapping area 3, and the common boundary between overlapping area 3 and the picture is the upper boundary of the picture; for rectangular label 4, the first overlapping area between rectangular label 4 and the picture is overlapping area 4, and the common boundary between overlapping area 4 and the picture is the upper boundary of the picture.
[0060] Afterwards, the folding position of the target display object (target rectangle) can be determined based on the first overlapping boundary and the target positioning point; here, the folding position of the target display object (target rectangle) is the position of the target display object (target rectangle) after folding. Specifically, the folding line at the target positioning point can be determined based on the direction of the first overlapping boundary; here, the direction of the first overlapping boundary can be horizontal or vertical; if the first overlapping boundary is the left boundary or the right boundary of the screen, the direction of the first overlapping boundary is the vertical direction; if the first overlapping boundary is the upper boundary or the lower boundary of the screen, the direction of the first overlapping boundary is the horizontal direction. After determining the direction of the first overlapping boundary, a straight line passing through the target point and having the same direction as the first overlapping boundary can be determined as the folding line. For example, refer to Figure 7 , the positioning point of rectangular label 1 is positioning point 1, the first overlapping area between rectangular label 1 and the picture is overlapping area 1, the corresponding first overlapping boundary is the lower boundary of the picture, and the direction of the lower boundary of the picture is the horizontal direction. Therefore, it can be determined that the folding line of rectangular label 1 is a horizontal straight line passing through positioning point 1, that is, straight line 1; the positioning point of rectangular label 2 is positioning point 2, the first overlapping area between rectangular label 2 and the picture is overlapping area 2, the corresponding first overlapping boundary is the right boundary of the picture, and the direction of the right boundary of the picture is the vertical direction. Therefore, it can be determined that the folding line of rectangular label 2 is a vertical straight line passing through positioning point 2, that is, straight line 2.
[0061] After determining the folding line and the target positioning point, the folding position of the target display object (target rectangle) can be determined. Specifically, the target display object (target rectangle) can be folded along the symmetry axis with the folding line as the symmetry axis, and the folded position can be determined as the folding position of the target display object (target rectangle).
[0062] Here we continue to use the above example to explain, for details, please refer to Figure 8 In the above example, after rectangular label 1 is folded along straight line 1, rectangular label 1 is located at position 1, and position 1 can be determined as the folding position of rectangular label 1; after rectangular label 2 is folded along straight line 2, rectangular label 2 is located at position 2, and position 2 can be determined as the folding position of rectangular label 2.
[0063] In a specific implementation method of an embodiment of the present application, the target display object is specifically a target rectangle; here, the area where the target rectangle exceeds the boundary of the screen can be referred to as an excess area; in addition, the relative position relationship between the excess area and the screen can be referred to as a first relative position relationship, and the relative position relationship between the target rectangle and the target positioning point can be referred to as a second relative position relationship; based on the first relative position relationship between the excess area and the screen, the second relative position relationship between the target rectangle and the target positioning point is updated.
[0064] The above implementation will be described in detail below.
[0065] In the above implementation, the target rectangle after the position update exceeds the boundary of the picture may include: the target rectangle exceeds the boundary of the picture in the vertical direction, and / or the target rectangle exceeds the boundary of the picture in the horizontal direction.
[0066] See also Fig. 9 For example, if the exceeding area is located above the picture, or the exceeding area is located below the picture, it can be considered that the target rectangle exceeds the boundary of the picture in the vertical direction; for another example, if the exceeding area is located on the left side of the picture, or the exceeding area is located on the right side of the picture, it can be considered that the target rectangle exceeds the boundary of the picture in the horizontal direction; for another example, if the exceeding area is located in the upper left side of the picture, it can be considered that the target rectangle exceeds the boundary of the picture in both the vertical and horizontal directions.
[0067] Specifically, the second relative position relationship between the target rectangle and the target positioning point in the vertical direction can be updated based on the first relative position relationship between the exceeding area and the picture in the vertical direction; the second relative position relationship between the target rectangle and the target positioning point in the horizontal direction can also be updated based on the first relative position relationship between the exceeding area and the picture in the horizontal direction.
[0068] If the exceeding area is located above the picture, the updated second relative position relationship in the vertical direction may be that the target positioning point is located above the target rectangle.
[0069] If the exceeding area is located at the bottom of the picture, the updated second relative position relationship in the vertical direction may be that the target positioning point is located below the target rectangle.
[0070] If the exceeding area is located on the left side of the picture, the updated second relative position relationship in the horizontal direction may be that the target positioning point is located on the left side of the target rectangle.
[0071] If the exceeding area is located on the right side of the picture, the updated second relative position relationship in the horizontal direction may be that the target positioning point is located on the right side of the target rectangle.
[0072] For example, if the exceeding area is located at the upper left side of the screen (that is, the exceeding area is located at the left and top side of the screen at the same time), then the updated second relative position relationship in the vertical direction can be that the target positioning point is located above the target rectangle, and the updated second relative position relationship in the horizontal direction can be that the target positioning point is located to the left side of the target rectangle, that is, the updated second relative position relationship can be that the target positioning point is located at the upper left side of the target rectangle.
[0073] In the embodiment of the present application, if the target rectangle after the position update exceeds the boundary of the screen only in a certain direction (vertical direction or horizontal direction), only the second relative position relationship between the target rectangle and the target positioning point in this direction may be updated.
[0074] For example, if the updated target rectangle exceeds the boundary of the screen only in the vertical direction, only the second relative position relationship between the target rectangle and the target positioning point in the vertical direction may be updated, while the second relative position relationship between the target rectangle and the target positioning point in the horizontal direction may remain unchanged.
[0075] For another example, if the updated target rectangle exceeds the boundary of the screen only in the horizontal direction, only the second relative position relationship between the target rectangle and the target positioning point in the horizontal direction may be updated, while the second relative position relationship between the target rectangle and the target positioning point in the vertical direction may remain unchanged.
[0076] Step S503: fold the target display object based on the folding position of the target display object, so that the target display object is completely located in the picture.
[0077] In the embodiment of the present application, the target display object can be folded based on the folding position of the target display object, so that the content of the target display object can be fully displayed in the screen. For example, the target rectangle is rectangular label 1. Before the rectangular label 1 is folded, its corresponding content cannot be fully displayed; after the rectangular label 1 is folded, its corresponding content "XXXY" can be fully displayed in the screen. Fig.10 shown.
[0078] Here, when displaying the folded target display object, the original display direction of the target display object needs to be maintained. For example, if the display direction of the content of the target rectangle before folding is from left to right, the display direction of the content of the folded target rectangle needs to be maintained from left to right to ensure the user's reading experience.
[0079] In a specific implementation method of an embodiment of the present application, the target display object is specifically a target rectangle; if the second relative position relationship is updated based on the first relative position relationship in the aforementioned process, the target rectangle can be moved here based on the updated second relative position relationship to achieve the effect of folding the target rectangle into the screen, thereby trying to place the target rectangle as completely as possible within the screen.
[0080] The above implementation will be introduced below with reference to the accompanying drawings.
[0081] For example, the second relative position relationship before updating is that the target positioning point is located at the lower right of the target rectangle, and the exceeding area is located at the upper left of the screen. Then, it can be determined that the second relative position relationship after updating is that the target positioning point is located at the upper left of the target rectangle. At this time, the target rectangle can be moved (folded) according to the updated second relative position relationship so that the target positioning point is located at the upper left of the target rectangle.
[0082] For another example, see Fig.11 , the target rectangle is rectangle label 1, the target positioning point is positioning point 1, the second relative position relationship before updating is that the target positioning point is located at the upper left of the target rectangle, and the exceeding area is located at the bottom of the screen, then it can be determined that the second relative position relationship after updating can be that the target positioning point is located at the lower left of the target rectangle; at this time, the target rectangle can be moved (folded) so that the target positioning point is located at the lower left of the target rectangle.
[0083] For another example, please continue to see Fig.11 , the target rectangle is rectangle label 2, the target positioning point is positioning point 2, the second relative position relationship before updating is that the target positioning point is located at the lower left of the target rectangle, and the exceeding area is located at the right of the screen, then it can be determined that the second relative position relationship after updating can be that the target positioning point is located at the lower right of the target rectangle; at this time, the target rectangle can be moved (folded) so that the target positioning point is located at the lower right of the target rectangle.
[0084] If the folded target display object still cannot be completely displayed in the picture, that is, the target display object still exceeds the boundary of the picture, or the target display object cannot be folded, the display effect of the target display object exceeding the boundary of the picture can be maintained.
[0085] For example, Fig.12 As shown, since the determined folding line exceeds the screen, after the target rectangle is folded based on the folding line, the target rectangle still cannot be completely displayed in the screen, it can be considered that the target rectangle cannot be folded. At this time, the target rectangle can be kept beyond the boundary of the screen and displayed based on this.
[0086] For example, the exceeded area is located on the right side of the screen, and the second relative position relationship before the update is that the target positioning point is located at the lower right side of the target rectangle. Please continue to refer to Fig.12 According to the corresponding implementation method above, the updated second relative position relationship is that the target positioning point is located at the lower right of the target rectangle, which is consistent with the second relative position relationship before the update. It can be considered that the target rectangle can no longer be folded, and the target rectangle can be kept beyond the boundary of the screen and displayed based on this.
[0087] In an embodiment of the present application, after the screen is zoomed out, the positions of the various display objects in the screen change, which may cause the distance between some display objects to be smaller or even to have overlapping areas, affecting the user's visual experience. At this time, in order to maintain a better display effect, the display objects with a smaller distance can be aggregated and the aggregated display objects can be displayed; after the screen is zoomed in, the positions of the various display objects in the screen change, which may cause the distance between the two display objects displayed by aggregation before the screen is zoomed in to become larger. At this time, the display objects with a larger distance can be displayed separately instead of being aggregated.
[0088] The following will take the target display object as a target rectangle as an example to describe in detail the process of aggregating rectangles and the process of separating rectangles in the embodiment of the present application.
[0089] Here, any display object except the target display object in the picture can be recorded as a candidate display object; specifically, in this example, any rectangle except the target rectangle in the picture can be recorded as a candidate rectangle.
[0090] When the screen is scaled, the position of the candidate display object (candidate rectangle) can also be updated. Specifically, the position of the candidate display object (candidate rectangle) in the initial screen can be transformed according to the scaling of the screen to determine the candidate display object (candidate rectangle) after the position is updated.
[0091] If the updated target display object (target rectangle) and the updated candidate display object (candidate rectangle) have an overlapping area (recorded as the second overlapping area), it can be determined whether the target display object (target rectangle) and the candidate display object (candidate rectangle) need to be aggregated.
[0092] Specifically, whether the target display object (target rectangle) and the candidate display objects (candidate rectangles) need to be aggregated may be determined based on the distance between the second overlap region and each non-overlapping display object boundary (non-overlapping rectangle boundary).
[0093] The non-overlapping display object boundary is the boundary of the target display object and the boundary of the candidate display object that does not overlap with the second overlapping area; that is, the non-overlapping rectangle boundary is the boundary of the target rectangle and the boundary of the candidate rectangle that does not overlap with the overlapping area.
[0094] For example, see Fig.13 , among the boundaries of the target rectangle and the boundaries of the candidate rectangle, boundary 1, boundary 2, boundary 3 and boundary 4 do not overlap with the overlapped area. Therefore, boundary 1, boundary 2, boundary 3 and boundary 4 are 4 non-overlapping rectangular boundaries.
[0095] For another example, see Fig.14 , among the boundaries of the target rectangle and the boundaries of the candidate rectangle, boundary 1, boundary 2, boundary 3 and boundary 4 do not overlap with the overlapped area. Therefore, boundary 1, boundary 2, boundary 3 and boundary 4 are 4 non-overlapping rectangular boundaries.
[0096] Specifically, each non-overlapping display object boundary may include a non-overlapping display object upper boundary, a non-overlapping display object lower boundary, a non-overlapping display object left boundary and a non-overlapping display object right boundary; that is, each non-overlapping rectangular boundary may include a non-overlapping rectangular upper boundary, a non-overlapping rectangular lower boundary, a non-overlapping rectangular left boundary and a non-overlapping rectangular right boundary.
[0097] The upper boundary of the non-overlapping display object is the uppermost boundary among the boundaries of each non-overlapping display object, that is, the upper boundary of the non-overlapping rectangle is the uppermost boundary among the boundaries of each non-overlapping rectangle, for example Fig.13 In the boundary 1, for example Fig.14 Boundary 1 in; the bottom boundary of the non-overlapping display object is the bottom boundary of each non-overlapping display object boundary, that is, the bottom boundary of the non-overlapping rectangle is the bottom boundary of each non-overlapping rectangle boundary, for example Fig.13 Boundary 3 in, for example Fig.14 Boundary 3 in the non-overlapping display object; the left boundary of the non-overlapping display object is the leftmost boundary among the boundaries of each non-overlapping display object, that is, the left boundary of the non-overlapping rectangle is the leftmost boundary among the boundaries of each non-overlapping rectangle, for example Fig.13 In the boundary 4, for example Fig.14 The right boundary of the non-overlapping display object is the rightmost boundary among the boundaries of the non-overlapping display objects, that is, the right boundary of the non-overlapping rectangle is the rightmost boundary among the boundaries of the non-overlapping rectangles, for example Fig.13 Boundary 2 in, for example Fig.14 The boundary 2 in.
[0098] If the distance between the second overlapping area and the boundaries of each non-overlapping display object meets the preset aggregation boundary condition, the target display object and the candidate display objects can be aggregated to obtain an aggregated display object; if the distance between the overlapping area and the boundaries of each non-overlapping display object does not meet the preset aggregation boundary condition, the target display object and the candidate display objects can be displayed separately.
[0099] In an embodiment of the present application, the aggregation boundary conditions may include: the distance between the upper boundary of the second overlapping area and the upper boundary of the non-overlapping display object is less than a first threshold, and / or the distance between the lower boundary of the second overlapping area and the lower boundary of the non-overlapping display object is less than the first threshold; and the distance between the left boundary of the second overlapping area and the left boundary of the non-overlapping display object is less than a second threshold, and / or the distance between the right boundary of the second overlapping area and the right boundary of the non-overlapping display object is less than the second threshold; wherein the specific values of the first threshold and the second threshold can be concretized and situationally set according to actual needs, and the present application does not limit this.
[0100] For example, see Fig.15 , the distance between the upper boundary of the second overlapping area and the upper boundary of the non-overlapping rectangle is d1, the distance between the lower boundary of the second overlapping area and the lower boundary of the non-overlapping rectangle is d2, the distance between the left boundary of the second overlapping area and the left boundary of the non-overlapping rectangle is d3, and the distance between the right boundary of the second overlapping area and the right boundary of the non-overlapping rectangle is d4; if at least one of the distances d1 and d2 is less than the first threshold, and at least one of the distances d3 and d4 is less than the second threshold, it can be considered that the distances between the second overlapping area and each non-overlapping rectangular boundary meet the preset aggregation boundary condition; otherwise, it can be considered that the distances between the second overlapping area and each non-overlapping rectangular boundary do not meet the preset aggregation boundary condition.
[0101] For another example, see Fig.16 , the distance between the upper boundary of the second overlapping area and the upper boundary of the non-overlapping rectangle is d1, the distance between the lower boundary of the second overlapping area and the lower boundary of the non-overlapping rectangle is d2, the distance between the left boundary of the second overlapping area and the left boundary of the non-overlapping rectangle is d3, and the distance between the right boundary of the second overlapping area and the right boundary of the non-overlapping rectangle is d4; if at least one of the distances d1 and d2 is less than the first threshold, and at least one of the distances d3 and d4 is less than the second threshold, it can be considered that the distances between the second overlapping area and each non-overlapping rectangular boundary meet the preset aggregation boundary condition; otherwise, it can be considered that the distances between the second overlapping area and each non-overlapping rectangular boundary do not meet the preset aggregation boundary condition.
[0102] If there is an overlapping area between the updated target display object and the updated candidate display object, and the distance between the overlapping area and the boundaries of each non-overlapping display object meets the aggregation boundary condition, the target display object and the candidate display object can be aggregated to obtain an aggregated display object.
[0103] Specifically, an aggregate shape may be determined based on the display content of the target display object and the display content of the candidate display objects; wherein the aggregate shape is the shape of the aggregate display object; usually, after the target display object and the candidate display object are aggregated, their display content may change, in which case the shape of the aggregate display object may be determined based on the content that needs to be displayed after the target display object and the candidate display object are aggregated; accordingly, the shape of the aggregate display object does not need to maintain the view features of the parent display object, but may determine the corresponding shape based on the content that actually needs to be displayed.
[0104] For example, in the screen displaying housing information, the display content of the target rectangle is the number of remaining housing sources in Community 1, which is 96 units, and the display content corresponding to the target rectangle is the text "96 units"; the display content of the candidate rectangle is the number of remaining housing sources in Community 2, which is 30 units, and the display content corresponding to the candidate rectangle is the text "30 units". After the target rectangle and the candidate rectangle are aggregated, the display content corresponding to the aggregated rectangle is the sum of the remaining housing sources in Community 1 and the remaining housing sources in Community 2, which is 126 units. Therefore, the aggregated shape can be determined based on the display range required for the text "126 units".
[0105] Here, the aggregated positioning point may also be determined based on the target positioning point and the candidate positioning points.
[0106] In a specific implementation of the embodiment of the present application, an aggregation anchor point may be determined from a line connecting a target anchor point and candidate anchor points; for example, if both the target display object and the candidate display object are display objects that have not been aggregated, the midpoint of the line connecting the target anchor point and the candidate anchor point may be determined as the aggregation anchor point; if at least one of the target display object and the candidate display objects is an aggregated display object, the average of the anchor points of each display object that has not been aggregated may be determined as the aggregation anchor point; here, the display objects that have not been aggregated include the target display object or the candidate display object that have not been aggregated, as well as each display object before being aggregated into the target display object or the candidate display object.
[0107] After the aggregate display object and the aggregate anchor point are determined, an aggregate rectangle may be determined based on the aggregate display object and the aggregate anchor point; then, the aggregate rectangle may be displayed; and there is no need to display the target rectangle and the candidate rectangle.
[0108] For example, the target rectangle is rectangle label 1, and the candidate rectangle is rectangle label 2, such as Fig.17As shown, after the screen is scaled, there is an overlapping area between rectangular label 1 and rectangular label 2, and the distance between the overlapping area and the boundaries of each non-overlapping rectangle meets the aggregation boundary condition. Therefore, rectangular label 1 and rectangular label 2 can be aggregated; wherein, the display content of rectangular label 1 is the text "96 sets", and the positioning point of rectangular label 1 is positioning point 1; the display content of rectangular label 2 is the text "30 sets", and the positioning point of rectangular label 2 is positioning point 2; after aggregating rectangular label 1 and rectangular label 2, an aggregated rectangle can be obtained, where the aggregated rectangle is rectangular label 3, and the content to be displayed in rectangular label 3 is the text "126 sets"; and the positioning point of rectangular label 3 can be the midpoint of the line connecting positioning point 1 and positioning point 2; thereafter, rectangular label 3 can be displayed, and there is no need to display rectangular label 1 and rectangular label 2 (the dotted line part in the figure is only a schematic diagram of rectangular label 1 and rectangular label 2, and is not the actual content displayed in the screen).
[0109] In an embodiment of the present application, if there is a second overlapping area between the target display object and the candidate display objects, but the distance between the second overlapping area and the boundaries of each non-overlapping display object does not meet the above-mentioned aggregation boundary condition, or there is no second overlapping area between the target display object and the candidate display objects, the target display object and the candidate display objects can be displayed separately.
[0110] It should be understood that if the target display object and the candidate display object were previously aggregated and displayed in the form of an aggregate display object, but are displayed separately after the screen is enlarged, it can be considered that the aggregate display object is separated. For example, the target rectangle and the candidate rectangle are aggregated at the first moment to obtain aggregate rectangle 1, and aggregate rectangle 1 is displayed; at the second moment (a moment after the first moment), the screen is enlarged, and it is determined according to the above process that the target rectangle and the candidate rectangle need to be displayed separately, then it can be considered that aggregate rectangle 1 is separated.
[0111] In a specific implementation method of an embodiment of the present application, the display object is specifically a rectangle. In addition to the original rectangle list and the separate rectangle list of coordinate transformation, an aggregated rectangle list can also be used to record the rectangles generated by aggregation. The aggregated rectangle list can include information of each aggregated rectangle. The information of the aggregated rectangle can at least include the ID of the parent rectangle of the aggregated rectangle, the corresponding positioning point (position) of the aggregated rectangle in the screen, the folding information of the aggregated rectangle, and the boundary information of the aggregated rectangle; for example, rectangle label 1 and rectangle label 2 are aggregated to obtain rectangle label 3, then the information of rectangle label 3 can be recorded in the aggregated rectangle list, and the information can specifically include the ID of the parent rectangle of rectangle label 3 (that is, rectangle label 1 and rectangle label 2) and the positioning point of rectangle label 3.
[0112] The aggregation process in the above implementation is introduced below.
[0113] In the above implementation, if the aggregated rectangle list is empty, it may indicate that the aggregation process has not been performed before, and in this case, the subsequent aggregation process may be performed directly based on the separate rectangle list of coordinate transformation.
[0114] If the aggregated rectangle list is not empty (i.e., there are aggregated rectangles in the aggregated rectangle list) and the screen is reduced, the rectangles in the aggregated rectangle list can be coordinate-converted based on the reduction of the screen to obtain the aggregated rectangle list after coordinate conversion, and the subsequent aggregation process can be performed based on the aggregated rectangle list after coordinate conversion.
[0115] If the aggregated rectangle list is not empty and the image is enlarged, the existing aggregated rectangles may be separated due to the enlargement of the image. Here, it can be first determined whether the parent rectangles of each aggregated rectangle in the aggregated rectangle list need to be aggregated after the image is enlarged, and the rectangle obtained after the parent rectangles are re-aggregated can be recorded in the original separated rectangle list; here, each aggregated rectangle in the aggregated rectangle list can correspond to an original separated rectangle list, and the original separated rectangle list can include information about the rectangle obtained after the parent rectangle of the aggregated rectangle is re-aggregated.
[0116] Specifically, after the picture is zoomed in, if the parent rectangle of the aggregated rectangle (called the original aggregated rectangle) can still be aggregated, the parent rectangle of the aggregated rectangle can be re-aggregated to obtain another aggregated rectangle (called the newly generated aggregated rectangle), and the newly generated aggregated rectangle can be recorded in the original separated rectangle list corresponding to the original aggregated rectangle; if the parent rectangle of the aggregated rectangle does not need to be aggregated after the picture is zoomed in, that is, the parent rectangle is separated, the parent rectangle can be directly recorded in the original separated rectangle list corresponding to the aggregated rectangle.
[0117] For example, rectangle label 1 and rectangle label 2 are aggregated to obtain aggregate rectangle 3; then, the picture is enlarged; if rectangle label 1 and rectangle label 2 do not need to be aggregated after the picture is enlarged, the original separated rectangle list corresponding to aggregate rectangle 3 may include information of rectangle label 1 and rectangle label 2; if rectangle label 1 and rectangle label 2 can still be aggregated after the picture is enlarged, and can specifically be aggregated into aggregate rectangle 4, the original separated rectangle list corresponding to aggregate rectangle 3 may include information of aggregate rectangle 4.
[0118] Afterwards, the union of the original separated rectangle lists may be determined as a final separated list, and a subsequent aggregation process may be performed based on the final separated list.
[0119] Here, the rectangle list for performing the aggregation process determined by the above process can be called the aggregation process rectangle list. Before performing the aggregation, it can be determined whether there are rectangles with the same positioning point in the aggregation process rectangle list. If there are rectangles with the same positioning point, the rectangles with the same positioning point can be merged, and only the difference information of the IDs of the rectangles is retained.
[0120] Afterwards, the rectangles in the aggregated process rectangle list can be sorted according to the coordinates of the positioning point to obtain a sorted aggregated process rectangle list; for example, the rectangles in the aggregated process rectangle list can be sorted in ascending order of the x-axis coordinates of the positioning point to obtain a sorted aggregated process rectangle list. Afterwards, any two rectangles can be determined from the sorted aggregated process rectangle list, and it can be determined whether the two rectangles need to be aggregated. If the two rectangles do not need to be aggregated, the two rectangles can be retained in the aggregated process rectangle list; if the two rectangles need to be aggregated, the two rectangles can be aggregated according to the above method to obtain an aggregated rectangle, and then the aggregated rectangle can be used to replace the two rectangles in the aggregated process rectangle list, and the above sorting process and aggregation process can be performed based on the aggregated process rectangle list after the rectangles are replaced; until all rectangles in the aggregated process rectangle list do not need to be aggregated.
[0121] When all rectangles in the aggregation process rectangle list do not need to be aggregated, the aggregation process can be ended, and the rectangles obtained by the aggregation process can be recorded in the aggregation rectangle list. Afterwards, each rectangle in the aggregation rectangle list can be displayed.
[0122] By aggregating or separating display objects based on the actual zooming of the screen, it is possible to more flexibly adapt to the display requirements of the display objects in the actual screen, providing users with a more stable visual experience.
[0123] In the embodiment of the present application, after the aggregated display object is determined, the aggregated display object may be determined as the target display object after the position is updated, and the display object obtained by the aggregation process may be determined to be folded according to the above method.
[0124] In a specific implementation method of an embodiment of the present application, the display object is specifically a rectangle; after two rectangles are aggregated, the obtained aggregated rectangle may exceed the boundary of the screen; or, after the previously aggregated (parent) rectangle is separated and displayed, the separately displayed (parent) rectangle may exceed the boundary of the screen. Therefore, after the above-mentioned aggregation process is triggered, it is also possible to determine whether the rectangle obtained by the aggregation process needs to be folded inward according to the above-mentioned method.
[0125] In another specific implementation method of the embodiment of the present application, the display object is specifically a rectangle; after a rectangle is folded inward, the position of the rectangle will move, and the folded rectangle may overlap with other rectangles. Therefore, after the inward folding process of the rectangle is triggered, it is also possible to determine whether it is necessary to aggregate the rectangles obtained by the inward folding process according to the above method.
[0126] In another specific implementation of the embodiment of the present application, the display object is specifically a rectangle; when the screen is zoomed, the rectangle can be folded inwards and then aggregated to ensure that the rectangle can be fully displayed to a greater extent.
[0127] In another specific implementation method of the embodiment of the present application, the display object is specifically a rectangle; because the aggregation process and the inward folding process are likely to cause changes in the label view, the parent view where the rectangular label is located needs to be size measured and calculated, which brings additional time. Therefore, for terminal devices on the Android platform, the label view size can be set to the display area size, and the rectangular label is drawn at a specific position therein to minimize the time consumed by measurement.
[0128] In summary, in the embodiment of the present application, when the screen is scaled or moved, the target display object after the position is updated is determined; wherein the target display object is any display object in the screen; if the target display object after the position is updated exceeds the boundary of the screen, the folding position of the target display object is determined based on the first overlapping area between the target display object and the screen; wherein the folding position of the target display object is the position of the target display object after folding; based on the folding position of the target display object, the target display object is folded so that the target display object is completely located in the screen. Through the embodiment of the present application, when the display object exceeds the boundary of the screen, the display object can be folded so that the display object can be completely displayed in the screen, which helps to improve the user's visual reading experience.
[0129] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0130] Corresponding to a display control method described in the above embodiment, Fig.18 A structural diagram of an embodiment of a display control device provided in an embodiment of the present application is shown.
[0131] In an embodiment of the present application, a display control device may include:
[0132] The position updating module 1801 is used to determine the target display object after the position is updated when the screen is scaled or moved; wherein the target display object is any display object in the screen;
[0133] The position determination module 1802 is used to determine the folding position of the target display object based on the first overlapping area between the target display object and the picture if the target display object exceeds the boundary of the picture after the position update; wherein the folding position of the target display object is the position of the target display object after folding;
[0134] The object folding module 1803 is used to determine the folding position of the target display object and fold the target display object so that the target display object is completely located within the screen.
[0135] In a specific implementation of the embodiment of the present application, the target display object is a target rectangle; wherein the target rectangle is any rectangle in the screen.
[0136] In a specific implementation of the embodiment of the present application, the location determination module includes:
[0137] A boundary determination submodule, configured to determine a first overlap boundary based on the first overlap area; wherein the first overlap boundary is a common boundary between the first overlap area and the picture;
[0138] The position determination submodule is used to determine the folding position of the target display object based on the first overlapping boundary and the target positioning point; wherein the target positioning point is the positioning point of the target display object.
[0139] In a specific implementation of the embodiment of the present application, the position determination submodule includes:
[0140] A fold line determining unit, configured to determine a fold line at the target positioning point based on the direction of the first coincident boundary;
[0141] A position determining unit is used to determine the folding position of the target display object based on the folding line and the target positioning point.
[0142] In a specific implementation of the embodiment of the present application, the device further includes:
[0143] The position updating module is also used to determine the candidate display object after the position is updated when the picture is zoomed; wherein the candidate display object is any display object in the picture except the target display object;
[0144] A display object aggregation module, configured to aggregate the target display object and the candidate display objects to obtain an aggregated display object if there is a second overlapped area between the target display object after the position update and the candidate display object after the position update, and the distance between the second overlapped area and the boundaries of each non-overlapped display object meets an aggregation boundary condition; wherein the candidate display object is a display object other than the target display object in any initial screen, and the non-overlapped display object boundary is a boundary between the boundary of the target display object and the boundary of the candidate display object that does not overlap with the second overlapped area;
[0145] An aggregate display module, used for displaying the aggregate display object;
[0146] The separate display module is used to separately display the target display object and the candidate display object if the second overlapping area exists and the distance between the overlapping area and the boundaries of each non-overlapping display object does not meet the aggregation boundary condition, or if the second overlapping area does not exist.
[0147] In a specific implementation of the embodiment of the present application, the aggregation boundary condition includes:
[0148] The distance between the upper boundary of the overlapped area and the upper boundary of the non-overlapped display object is less than a first threshold, and / or the distance between the lower boundary of the overlapped area and the lower boundary of the non-overlapped display object is less than the first threshold;
[0149] Furthermore, the distance between the left border of the overlapped area and the left border of the non-overlapped display object is less than a second threshold, and / or the distance between the right border of the overlapped area and the right border of the non-overlapped display object is less than the second threshold;
[0150] Among them, the upper boundary of the non-overlapping display object is the uppermost boundary among the non-overlapping display object boundaries, the lower boundary of the non-overlapping display object is the lowermost boundary among the non-overlapping display object boundaries, the left boundary of the non-overlapping display object is the leftmost boundary among the non-overlapping display object boundaries, and the right boundary of the non-overlapping display object is the rightmost boundary among the non-overlapping display object boundaries.
[0151] In a specific implementation of the embodiment of the present application, the display object aggregation module includes:
[0152] A shape determination submodule, configured to determine an aggregate shape based on the display content of the target display object and the display content of the candidate display object; wherein the aggregate shape is the shape of the aggregate display object;
[0153] A positioning point determination submodule, configured to determine an aggregate positioning point based on the target positioning point and the candidate positioning points; wherein the candidate positioning point is a positioning point of the candidate display object, and the aggregate positioning point is a positioning point of the aggregate display object;
[0154] A display object determination submodule, configured to determine the aggregate display object based on the aggregate shape and the aggregate positioning point;
[0155] The display object updating submodule is used to determine the aggregate display object as the target display object after the position is updated.
[0156] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0157] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0158] Fig.19 A schematic block diagram of a terminal device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0159] like Fig.19 As shown, the terminal device 19 of this embodiment includes: a processor 190, a memory 191, and a computer program 192 stored in the memory 191 and executable on the processor 190. When the processor 190 executes the computer program 192, the steps in the above-mentioned display control method embodiments are implemented, for example Figure 5 Alternatively, when the processor 190 executes the computer program 192, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Fig.18 The functions of modules 1801 to 1804 are shown.
[0160] Exemplarily, the computer program 192 may be divided into one or more modules / units, which are stored in the memory 191 and executed by the processor 190 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 192 in the terminal device 19.
[0161] Those skilled in the art will understand that Fig.19It is only an example of the terminal device 19 and does not constitute a limitation of the terminal device 19. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device 19 may also include input and output devices, network access devices, buses, etc.
[0162] The processor 190 may 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, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0163] The memory 191 may be an internal storage unit of the terminal device 19, such as a hard disk or memory of the terminal device 19. The memory 191 may also be an external storage device of the terminal device 19, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 19. Further, the memory 191 may also include both an internal storage unit of the terminal device 19 and an external storage device. The memory 191 is used to store the computer program and other programs and data required by the terminal device 19. The memory 191 may also be used to temporarily store data that has been output or is to be output.
[0164] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0165] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0166] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0167] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0168] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0169] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0170] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0171] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A display control method, characterized in that: include: When the screen is scaled or moved, determine the target display object after the position is updated; wherein the target display object is any display object in the screen; If the target display object after the position update exceeds the boundary of the picture, then based on the first overlapping area between the target display object and the picture, determine the folding position of the target display object; wherein the folding position of the target display object is the position of the target display object after folding; Based on the folding position of the target display object, the target display object is folded so that the target display object is completely located within the screen.
2. The display control method according to claim 1, characterized in that: The target display object is a target rectangle; wherein the target rectangle is any rectangle in the picture.
3. The display control method according to claim 2, characterized in that: If the target display object after the position update exceeds the boundary of the picture, determining the folding position of the target display object based on the first overlapping area between the target display object and the picture includes: Based on the first overlapping area, determining a first overlapping boundary; wherein the first overlapping boundary is a common boundary between the first overlapping area and the picture; Based on the first overlapping boundary and the target positioning point, the folding position of the target display object is determined; wherein the target positioning point is the positioning point of the target display object.
4. The display control method according to claim 3, characterized in that: The determining the folding position of the target display object based on each of the first overlapping boundaries and the target positioning point includes: Determining a fold line at the target positioning point based on the direction of the first coincident boundary; Based on the folding line and the target positioning point, a folding position of the target display object is determined.
5. The display control method according to claim 2, characterized in that: Also includes: In the case where the screen is zoomed, determining a candidate display object after the position is updated; wherein the candidate display object is any display object in the screen except the target display object; If there is a second overlapping area between the target display object after the position update and the candidate display object after the position update, and the distance between the second overlapping area and the boundaries of each non-overlapping display object meets the aggregation boundary condition, the target display object and the candidate display object are aggregated to obtain an aggregated display object; wherein the non-overlapping display object boundary is a boundary between the boundary of the target display object and the boundary of the candidate display object that does not overlap with the second overlapping area; Displaying the aggregate display object; If the overlapping area exists and the distance between the second overlapping area and the boundaries of each non-overlapping display object does not satisfy the aggregation boundary condition, or if the second overlapping area does not exist, the target display object and the candidate display object are displayed separately.
6. The display control method according to claim 5, characterized in that: The aggregation boundary conditions include: The distance between the upper boundary of the second overlapping area and the upper boundary of the non-overlapping display object is less than a first threshold, and / or the distance between the lower boundary of the second overlapping area and the lower boundary of the non-overlapping display object is less than the first threshold; Furthermore, the distance between the left border of the second overlapping area and the left border of the non-overlapping display object is less than a second threshold, and / or the distance between the right border of the second overlapping area and the right border of the non-overlapping display object is less than the second threshold; Among them, the upper boundary of the non-overlapping display object is the uppermost boundary among the non-overlapping display object boundaries, the lower boundary of the non-overlapping display object is the lowermost boundary among the non-overlapping display object boundaries, the left boundary of the non-overlapping display object is the leftmost boundary among the non-overlapping display object boundaries, and the right boundary of the non-overlapping display object is the rightmost boundary among the non-overlapping display object boundaries.
7. The display control method according to claim 5, characterized in that: If there is an overlapping area between the target display object after the position update and the candidate display object after the position update, and the distance between the overlapping area and the boundaries of each non-overlapping display object meets the aggregation boundary condition, the target display object and the candidate display object are aggregated to obtain an aggregated display object, including: Determine an aggregate shape based on the display content of the target display object and the display content of the candidate display object; wherein the aggregate shape is the shape of the aggregate display object; Based on the target positioning point and the candidate positioning point, determine the aggregate positioning point; wherein the candidate positioning point is the positioning point of the candidate display object, and the aggregate positioning point is the positioning point of the aggregate display object; Determining the aggregate display object based on the aggregate shape and the aggregate positioning point; The aggregate display object is determined as the target display object after the position is updated.
8. A display control device, characterized in that: include: A position update module, used to determine a target display object after position update when the picture is scaled or moved; wherein the target display object is any display object in the picture; a position determination module, configured to determine the folding position of the target display object based on a first overlapping area between the target display object and the picture if the target display object exceeds the boundary of the picture after the position update; wherein the folding position of the target display object is the position of the target display object after the folding; The object folding module is used to determine the folding position of the target display object and fold the target display object so that the target display object is completely located within the screen.
9. A computer program product, characterized in that The invention comprises a computer program, and when the computer program is executed, the display control method according to any one of claims 1 to 7 is executed.
10. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the terminal device implements the steps of the display control method according to any one of claims 1 to 7.