CN113342454A - Method and apparatus for locating detail cards - Google Patents

Method and apparatus for locating detail cards Download PDF

Info

Publication number
CN113342454A
CN113342454A CN202110894150.1A CN202110894150A CN113342454A CN 113342454 A CN113342454 A CN 113342454A CN 202110894150 A CN202110894150 A CN 202110894150A CN 113342454 A CN113342454 A CN 113342454A
Authority
CN
China
Prior art keywords
target node
main body
body area
area
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110894150.1A
Other languages
Chinese (zh)
Other versions
CN113342454B (en
Inventor
刘鑫磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jindi Technology Co Ltd
Original Assignee
Beijing Jindi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jindi Technology Co Ltd filed Critical Beijing Jindi Technology Co Ltd
Priority to CN202110894150.1A priority Critical patent/CN113342454B/en
Publication of CN113342454A publication Critical patent/CN113342454A/en
Application granted granted Critical
Publication of CN113342454B publication Critical patent/CN113342454B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • G06F16/316Indexing structures
    • G06F16/322Trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Computational Linguistics (AREA)
  • Economics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for determining the position of a detail card, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring area information of a main body area of a display interface, wherein the main body area is used for displaying main body information; acquiring target node position information of the position of a target node needing to display detailed information; determining initial position information of the position of the detail card corresponding to the target node according to the area information and the position information of the target node; acquiring the card height of the detail card; and determining final position information of the position of the detail card according to the initial position information and the card height. The embodiment of the invention provides convenience for determining the position of the detail card, and the detail card of the stock right structure diagram can be displayed at a more reasonable display position in a page through primary position calculation and secondary optimization of the card height of the detail card.

Description

Method and apparatus for locating detail cards
Technical Field
The invention relates to the technical field of computer information processing, in particular to a method and a device for determining the position of a detail card, a storage medium and electronic equipment.
Background
The equity structure diagram is a map showing investment and stockholder information of a company in the form of a tree structure. However, due to space limitation, the information of the target node can only show the company name and some simple information, and the detailed information of the target node is generally shown in a form that a mouse floats the target node to display a detailed card. Due to the uncertainty of the position of the target node, how to display the detail card at a proper position becomes a problem to be solved urgently at present.
Therefore, there is a need for a method and apparatus, and storage medium and electronic device for determining the location of a detail card.
Disclosure of Invention
The problem to be solved by the invention includes that the detail information of the target node is generally displayed in a form that the target node is floated by a mouse to display a detail card, but due to the uncertainty of the position of the target node, the proper position of the detail card cannot be determined.
The present invention has been made in order to solve the above-mentioned technical problems, such as how to determine the appropriate position of a detail card. Embodiments of the invention provide a method and apparatus for determining the location of a detail card, as well as a storage medium and an electronic device.
According to an aspect of an embodiment of the present invention, there is provided a method of determining the location of a detail card, the method comprising:
acquiring area information of a main body area of a display interface, wherein the main body area is used for displaying main body information;
acquiring target node position information of the position of a target node needing to display detailed information;
determining initial position information of the position of the detail card corresponding to the target node according to the area information and the position information of the target node;
acquiring the card height of the detail card;
and determining final position information of the position of the detail card according to the initial position information and the card height.
According to another aspect of an embodiment of the present invention there is provided apparatus for locating a detail card, the apparatus comprising:
the area information acquisition module is used for acquiring area information of a main body area of the display interface, which is used for displaying the main body information;
the target node position information acquisition module is used for acquiring target node position information of the position of a target node needing to display detailed information;
the initial position information determining module is used for determining the initial position information of the position of the detail card corresponding to the target node according to the area information and the target node position information;
the card height acquisition module is used for acquiring the card height of the detail card;
and the final position information determining module is used for determining final position information of the position of the detail card according to the initial position information and the card height.
According to yet another aspect of embodiments of the present invention, there is provided a computer-readable storage medium storing a computer program for executing the method of any of the embodiments of the present invention.
According to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus including: a memory and a processor; wherein the content of the first and second substances,
a memory for storing processor-executable instructions;
a processor for reading the executable instructions from the memory and executing the instructions to implement the method of any embodiment of the invention.
Based on the method and the device for determining the position of the detail card, the storage medium and the electronic equipment, provided by the embodiment of the invention, the area information of the main body area of the display interface for displaying the main body information is acquired; acquiring target node position information of the position of a target node needing to display detailed information; determining initial position information of the position of the detail card corresponding to the target node according to the area information and the position information of the target node; acquiring the card height of the detail card; and determining final position information of the position of the detail card according to the initial position information and the card height. Therefore, the embodiment of the invention provides convenience for determining the position of the detail card, and the proper position information for displaying the detail card is calculated through primary position calculation and secondary optimization of the card height of the detail card, so that the detail card of the stock right structure diagram can be displayed at a reasonable display position in a page.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings in which:
FIG. 1 is a flow chart of a method 100 for determining a location of a detail card provided in accordance with an exemplary embodiment of the present invention;
fig. 2 is a schematic diagram of a first sub-area of a body area where a target node is located according to an exemplary embodiment of the present invention;
fig. 3 is a schematic diagram of a second sub-area of the body area where the target node is located according to an exemplary embodiment of the present invention;
fig. 4 is a schematic diagram of a third sub-area of the body area where the target node is located according to an exemplary embodiment of the present invention;
fig. 5 is a schematic diagram of a fourth sub-area of the body area where the target node is located according to an exemplary embodiment of the present invention;
FIG. 6 is a schematic illustration of a location of a detail card provided in accordance with an exemplary embodiment of the present invention;
FIG. 7 is a schematic illustration of a location of a detail card provided in accordance with yet another exemplary embodiment of the present invention;
FIG. 8 is a block diagram of an apparatus 800 for locating a detail card according to an exemplary embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention.
Detailed Description
Hereinafter, exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a subset of embodiments of the invention and not all embodiments of the invention, with the understanding that the invention is not limited to the example embodiments described herein.
It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
It will be understood by those of skill in the art that the terms "first," "second," and the like in the embodiments of the present invention are used merely to distinguish one element, step, device, module, or the like from another element, and do not denote any particular technical or logical order therebetween.
It should also be understood that in embodiments of the present invention, "a plurality" may refer to two or more and "at least one" may refer to one, two or more.
It is also to be understood that any reference to any component, data, or structure in the embodiments of the invention may be generally understood as one or more, unless explicitly defined otherwise or stated to the contrary hereinafter.
In addition, the term "and/or" in the present invention is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In the present invention, the character "/" generally indicates that the preceding and following related objects are in an "or" relationship.
It should also be understood that the description of the embodiments of the present invention emphasizes the differences between the embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Embodiments of the invention are operational with numerous other general purpose or special purpose computing system environments or configurations, and with numerous other electronic devices, such as terminal devices, computer systems, servers, etc. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with electronic devices, such as terminal devices, computer systems, servers, and the like, include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set top boxes, programmable consumer electronics, network pcs, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above systems, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
Exemplary method
Fig. 1 is a flow chart of a method 100 for determining a location of a detail card provided in accordance with an exemplary embodiment of the present invention. The embodiment can be applied to an electronic device, as shown in fig. 1, and includes the following steps:
step 101, obtaining area information of a main body area of a display interface for displaying main body information.
In the embodiment of the present invention, the display interface may be an interface on an APP side or an interface on a browser side. Taking the browser as an example, the main area includes an area with the top operation bar, the blank areas on the left and right sides, and the lower scroll bar removed, which may also be referred to as a visible area. The information in the body region is body information. Taking the main body area as an example, the width (which may be denoted as clientrWidth) and the height (which may be denoted as clientHeight) of the main body area of the web page are obtained through an interface provided by the main body area.
And 102, acquiring the position information of the target node at which the target node needing to display the detailed information is located.
The target node location information may include: a first distance (which can be recorded as top) between an upper frame of the target node and an upper frame of the main body area, a second distance (which can be recorded as left) between a left frame of the target node and a left frame of the main body area, a width (which can be recorded as width) of the target node, and a height (which can be recorded as height) of the target node.
In the embodiment of the present invention, after determining a target node that needs to show detailed information, directly obtaining the target node location information of the location of the target node includes: the distance between the upper frame of the target node and the upper frame of the main body area is first, the distance between the left frame of the target node and the left frame of the main body area is second, the width of the target node is and the height of the target node is also first.
Taking the stock right structure diagram of the tree as an example, the position information of the target node at the position of the target node is already determined when the stock right structure diagram is determined. The invention only needs to acquire the position information of the target node, and the method for calculating and acquiring the position information of the target node does not belong to the invention point of the invention, and is not limited, and the technical personnel in the field can select the calculation method in the prior art to acquire the position information according to the actual requirement.
And 103, determining initial position information of the position of the detail card corresponding to the target node according to the area information and the position information of the target node.
Optionally, determining initial position information of a position of the detail card corresponding to the target node according to the area information and the position information of the target node, including: determining the relative position relation between the position of the target node and the main body area according to the area information and the position information of the target node; and determining initial position information of the position of the detail card corresponding to the target node according to the relative position relation between the position of the target node and the main body area.
Optionally, the relative position relationship between the position of the target node and the body region includes: the position of the target node is in one of a first sub-area, a second sub-area, a third sub-area and a fourth sub-area of the main body area; the body area is divided into a first sub-area, a second sub-area, a third sub-area and a fourth sub-area according to a horizontal center line and a vertical center line of the body area.
In the embodiment of the present invention, first, the body region is divided into a first sub-region, a second sub-region, a third sub-region and a fourth sub-region according to a horizontal center line and a vertical center line of the body region, where the first sub-region is an upper left region, the second sub-region is an upper right region, the third sub-region is a lower left region, and the fourth sub-region is a lower right region.
Then, according to the area information and the target node position information, determining the relative position relationship between the position of the target node and the main body area, namely determining in which sub-area of the main body area the position of the target node is.
For example, if the width of a certain subject region and the height of the subject region correspond to 30 cm and 20 cm, respectively, the coordinate of the center point of the subject region may be determined to be (15, 10); specific position information of the first sub-area, the second sub-area, the third sub-area and the fourth sub-area can be determined according to the coordinates of the central point.
And finally, determining initial position information of the position of the detail card corresponding to the target node according to the relative position relation between the position of the target node and the main body area.
Optionally, determining a relative position relationship between the position of the target node and the main body region according to the region information and the position information of the target node, including: when the position information of the target node meets the conditions that the first distance + the height/2 of the position of the target node is not more than the height/2 of the main body area, and the second distance + the width/2 of the position of the target node is not more than the width/2 of the main body area, determining that the relative position relation between the position of the target node and the main body area is that the position of the target node is in the first sub-area of the main body area.
Optionally, determining a relative position relationship between the position of the target node and the main body region according to the region information and the position information of the target node, including: when the position information of the target node meets the conditions that the first distance + the height/2 of the position of the target node is not more than the height/2 of the main body area, and the second distance + the width/2 of the position of the target node is more than the width/2 of the main body area, determining that the relative position relation between the position of the target node and the main body area is that the position of the target node is in the second sub-area of the main body area.
Optionally, determining a relative position relationship between the position of the target node and the main body region according to the region information and the position information of the target node, including: when the position information of the target node meets the condition that the first distance + the height/2 of the position of the target node is larger than the height/2 of the main body area, and the second distance + the width/2 of the position of the target node is smaller than or equal to the width/2 of the main body area, determining that the relative position relation between the position of the target node and the main body area is that the position of the target node is in the third sub-area of the main body area.
Optionally, determining a relative position relationship between the position of the target node and the main body region according to the region information and the position information of the target node, including: when the position information of the target node meets the conditions that the first distance + the height/2 of the position of the target node is larger than the height/2 of the main body area, and the second distance + the width/2 of the position of the target node is larger than the width/2 of the main body area, determining that the relative position relation between the position of the target node and the main body area is that the position of the target node is in the fourth sub-area of the main body area.
Specifically, for the relative position relationship of the target node in the main body area, taking the judgment of the left-right position relationship as an example, if left + width/2 is less than or equal to clientWidth/2, it can be determined that the target node is deviated to the left, the left space on the right can be obtained to be larger, and at this time, the detail card can be displayed on the right of the target node; if left + width/2 > clientWidth/2 is satisfied, it can be determined that the target node is right, it can be obtained that the left space of the target node is larger, and at this time, the detail card can be displayed on the left side of the target node.
For example, if left =10, width =2, and clientWidth =20, where left + width/2 > clientWidth/2 is satisfied, it may be determined that the target node is to the right, and thus the detail card may be disposed to the left of the location of the target node.
For example, if left =5, width =2, and clientWidth =20, where left + width/2 < clientWidth/2 is satisfied, it may be determined that the target node is off the left, and thus the detail card may be set to the right of the location of the target node.
Specifically, for the relative position relationship of the target node in the main body area, taking the judgment of the upper and lower position relationship as an example, if top + height/2 is not more than clientHeight/2, the upper part of the target node can be determined, the remaining space below the target node can be obtained to be larger, and at this time, the detail card can be displayed below the target node; if top + height/2 > clientHeight/2 is met, the target node is determined to be lower, the remaining space above can be obtained to be larger, and the detail card can be displayed on the target node.
For example, if top =5, height =2, and clientHeight =20, and top + height/2 < clientHeight/2 is satisfied at this time, it may be determined that the target node is on top, and thus the detail card may be displayed under the target node.
For example, if top =11, height =2, and clientHeight =20, and top + height/2 > clientHeight/2 is satisfied at this time, it may be determined that the target node is lower, and thus the detail card may be displayed on the target node.
In summary, on the basis that the main body area is divided into four sub-areas, when the target node position information satisfies that top + height/2 is less than or equal to clientHeight/2, and left + width/2 is less than or equal to clientWidth/2, the relative position relationship between the position of the target node and the main body area is determined as that the position of the target node is in the first sub-area of the main body area;
when the position information of the target node meets the conditions that top + height/2 is not more than clientHeight/2 and left + width/2 is more than clientWidth/2, determining the relative position relation between the position of the target node and the main body area as that the position of the target node is in the second sub-area of the main body area;
when the position information of the target node meets the conditions that top + height/2 is more than clientHeight/2 and left + width/2 is not more than clientWidth/2, determining the relative position relation between the position of the target node and the main body area as the third sub-area of the main body area;
and when the position information of the target node meets the conditions that top + height/2 > clientHeight/2 and left + width/2 > clientWidth/2, determining that the relative position relationship between the position of the target node and the main body area is that the position of the target node is in the fourth sub-area of the main body area.
Optionally, determining a relative position relationship between the position of the target node and the main body region according to the region information and the position information of the target node, including: calculating the coincidence area of the position of the target node and each sub-region of the main body region according to the region information and the position information of the target node; and determining the relative position relation between the position of the target node and the main body region according to the sub-region corresponding to the maximum overlapping area.
In the embodiment of the present invention, after the area information of the main body area and the target node position information of the position of the target node are determined, the relative position relationship between the position of the target node and the main body area may also be determined by calculating the overlapping area between the position of the target node and each sub-area of the main body area, and according to the sub-area corresponding to the largest overlapping area.
For example, if the width of a certain subject region and the height of the subject region are 30 cm and 20 cm, respectively, the coordinate of the center point of the subject region may be determined to be (15, 10); if top =5, height =2, left =10, and width =2 of the position of the target node, it may be determined that the areas of the position of the target node are all in the first sub-region, and the overlapping area of the target node and the first sub-region is the largest, so that it may be determined that the relative position relationship between the position of the target node and the main body region is that the position of the target node is in the first sub-region of the main body region.
Optionally, when the relative position relationship between the position of the target node and the main body region is that the position of the target node is in the first sub-region of the main body region, determining initial position information of the position of the detail card corresponding to the target node, including: and determining the distance between the upper frame of the position of the detail card and the upper frame of the main body area as a first distance, and determining the distance between the left frame of the position of the detail card and the left frame of the main body area as a second distance plus the width of the position of the target node.
Optionally, when the relative position relationship between the position of the target node and the main body region is that the position of the target node is in the second sub-region of the main body region, determining initial position information of the position of the detail card corresponding to the target node, including: and determining the distance between the upper frame of the position of the detail card and the upper frame of the main body area as a first distance, and determining the distance between the right frame of the position of the detail card and the right frame of the main body area as the width-second distance of the main body area.
Optionally, when the relative position relationship between the position of the target node and the main body region is that the position of the target node is in the third sub-region of the main body region, determining initial position information of the position of the detail card corresponding to the target node, including: and determining the distance between the lower frame of the position of the detail card and the lower frame of the main body area as the height of the main body area, the first distance and the height of the position of the target node, and determining the distance between the left frame of the position of the detail card and the left frame of the main body area as the second distance and the width of the position of the target node.
Optionally, when the relative position relationship between the position of the target node and the main body region is that the position of the target node is in the fourth sub-region of the main body region, determining initial position information of the position of the detail card corresponding to the target node, includes: and determining the distance between the lower frame of the position of the detail card and the lower frame of the main body area as the height of the main body area, the first distance and the height of the position of the target node, and determining the distance between the right frame of the position of the detail card and the right frame of the main body area as the width of the main body area, and the second distance.
In the embodiment of the invention, when the position of the target node meets the requirement of left + width/2 > clientWidth/2, the target node is inclined to the right, the left residual space is larger, the detail card needs to be displayed on the left side of the target node, and particularly the distance between the right frame of the detail card and the right frame of the main body area is clientWidth-left.
When the position of the target node meets the condition that the left + width/2 is not more than the clientWidth/2, the target node is deviated to the left, the left space on the right side is larger, the detail card needs to be displayed on the right side of the target node, and specifically, the distance between the left frame of the detail card and the left frame of the main body area is left + width.
When the position of the target node meets the condition that top + height/2 is larger than clientHeight/2, the target node is lower, the space above the target node is larger, the detail card needs to be displayed on the upper part of the target node, specifically, the distance between the lower frame of the detail card and the lower frame of the main body area is clientHeight-top-height, namely, the lower frame of the detail card is aligned with the lower frame of the target node.
When the position of the target node meets the condition that top + height/2 is not more than clientHeight/2, the target node is on the upper side, the space below the target node is larger, the detail card needs to be displayed on the lower side of the target node, specifically, the distance between the upper frame of the detail card and the upper frame of the main body area is top, namely, the upper frame of the detail card is aligned with the upper frame of the target node.
In summary, on the basis of dividing the main area into four sub-areas, as shown in fig. 2, the black solid frame is the main area, and when the relative position relationship between the position of the target node (node 1) and the main area is that the position of the target node is in the first sub-area of the main area, the initial position information of the position of the detail card corresponding to the target node is determined, which includes: and determining the distance between the upper frame of the position of the detail card and the upper frame of the main body area as top, and determining the distance between the left frame of the position of the detail card and the left frame of the main body area as left + width.
As shown in fig. 3, the black solid frame is a main area, and when the relative position relationship between the position of the target node (node 2) and the main area is that the position of the target node is in the second sub-area of the main area, the initial position information of the position of the detail card corresponding to the target node is determined, which includes: determining the distance between the upper frame of the position of the detail card and the upper frame of the main body area as top, and determining the distance between the right frame of the position of the detail card and the right frame of the main body area as clientWidth-left;
as shown in fig. 4, the black solid frame is a main area, and when the relative position relationship between the position of the target node (node 4) and the main area is that the position of the target node is in the third sub-area of the main area, the initial position information of the position of the detail card corresponding to the target node is determined, which includes: determining the distance between the lower frame of the position of the detail card and the lower frame of the main body area as clientHeight-top-height, and determining the distance between the left frame of the position of the detail card and the left frame of the main body area as left + width;
as shown in fig. 5, the black solid frame is a main area, and when the relative position relationship between the position of the target node (node 5) and the main area is that the position of the target node is in the fourth sub-area of the main area, the initial position information of the position of the detail card corresponding to the target node is determined, which includes: and determining the distance between the lower frame of the position of the detail card and the lower frame of the main body area as clientHeight-top-height, and determining the distance between the right frame of the position of the detail card and the right frame of the main body area as clientWidth-left.
At step 104, the card height (which may be noted as cardHeight) of the detail card is obtained.
And step 105, determining final position information of the position of the detail card according to the initial position information and the card height.
Optionally, determining final position information of the position of the detail card according to the initial position information and the card height includes:
when the height of the card is greater than the height of the main body area, adjusting initial position information of the position of the detail card, adjusting the distance between an upper frame of the detail card and the upper frame of the main body area to be 0, and adjusting the distance between a lower frame of the detail card and the lower frame of the main body area to be 0, so as to determine final position information of the position of the detail card;
when the height of the card is smaller than or equal to the height of the main body area, adjusting the initial position information of the position of the detail card according to a preset adjustment rule according to the relative position relation between the position of the target node and the main body area so as to determine the final position information of the position of the detail card.
Optionally, adjusting initial position information of the position of the detail card according to a preset adjustment rule according to a relative position relationship between the position of the target node and the main body region to determine final position information of the position of the detail card, including:
when the relative position relation between the position of the target node and the main body area is that the position of the target node is in the first sub-area or the second sub-area of the main body area, and the card height is larger than the height-first distance of the main body area, determining that the distance between the lower frame of the position of the detail card and the lower frame of the main body area is 0, and adjusting the distance between the upper frame of the position of the detail card in the initial position information and the upper frame of the main body area to be the height-card height of the main body area so as to determine the final position information of the position of the detail card;
when the relative position relationship between the position of the target node and the main body area is that the position of the target node is in the third sub area or the fourth sub area of the main body area, and the card height is greater than the height-first distance of the main body area, determining that the distance between the upper frame of the position of the detail card and the upper frame of the main body area is 0, and adjusting the distance between the lower frame of the position of the detail card in the initial position information and the lower frame of the main body area to be the height-card height of the main body area so as to determine the final position information of the position of the detail card.
Because the height of the card is uncertain due to inconsistent information displayed in the detail card, when the detail card is aligned, the lower frame exceeds the screen, or when the detail card is aligned, the upper frame exceeds the screen, and therefore final position information needs to be determined according to initial position information of the position of the detail card and the height of the card.
In the embodiment of the invention, firstly, the card height of the detail card is monitored, and then the card height and the height of the main body area are judged.
If the card height exceeds the height of the main body area (cardHeight > clientHeight), the card height is set as the height of the main body area, the distance between the upper frame of the detail card and the upper frame of the main body area is adjusted to be 0, the distance between the lower frame of the detail card and the lower frame of the main body area is adjusted to be 0 by utilizing scroll bar processing of the exceeding part, and therefore the final position information of the position of the detail card is determined.
For example, if the card height is 21 cm and the height of the main area is 20 cm, the card height is set to 20 cm, the distance between the upper frame of the adjustment detail card and the upper frame of the main area is 0, the distance between the lower frame of the adjustment detail card and the lower frame of the main area is 0, and the excess portion is processed by the scroll bar.
If the height of the card is smaller than or equal to the height of the main body area (cardHeight is smaller than or equal to the clientHeight), when the detail card and the target node are aligned (top + height/2 is smaller than or equal to the clientHeight/2), namely the relative position relationship is that the position of the target node is in the first sub-area or the second sub-area of the main body area, and the lower border of the detail card exceeds the lower border of the main body area (cardHeight > clientHeight-top), the distance between the lower border of the position of the detail card and the lower border of the main body area is determined to be 0, and meanwhile, the distance between the upper border of the position of the detail card in the initial position information and the upper border of the main body area is adjusted to be clientHeight-cardHeight to determine the final position information of the position of the detail card.
For example, if the card height is 18 centimeters and the height of the body area is 20 centimeters, since the target node (node 1) is located in the first sub-area on the upper side of the body area, and it is determined that the upper frame of the detail card is aligned with the top of the node 1 (i.e., the upper frame of the node 1) according to the foregoing method, the lower frame of the detail card may exceed the lower frame of the body area due to the fact that the card height of the detail card is too high, and therefore, the distance between the lower frame of the detail card and the lower frame of the body area is adjusted to be 0, and the display effect of the position of the detail card at this time is as shown in fig. 6, where the area in the thick solid frame represents the screen and the area in the thin solid frame is the body area.
If the height of the card is smaller than or equal to the height of the main body area (cardHeight is smaller than or equal to the clientHeight), when the detail card and the target node are aligned below (top + height/2 > clientHeight/2), namely the relative position relationship is that the position of the target node is in the first sub-area or the second sub-area of the main body area, and the upper frame of the detail card exceeds the upper frame of the main body area (cardHeight > top + height), the distance between the upper frame of the position of the detail card and the upper frame of the main body area is determined to be 0, and meanwhile, the distance between the lower frame of the position of the detail card in the initial position information and the lower frame of the main body area is adjusted to be clientHeight-cardHeight, so as to determine the final position information of the position of the detail card.
For example, if the card height is 18 centimeters and the height of the body area is 20 centimeters, since the target node (node 3) is located in the third sub-area below the body area, and it is determined that the lower border of the detail card is aligned with the bottom of the node 3 (i.e., the lower border of the node 3) according to the foregoing method, the upper border of the detail card may exceed the upper border of the body area due to the fact that the card height of the detail card is too high, and therefore, the distance between the upper border of the detail card and the upper border of the body area is adjusted to be 0, and the display effect of the position where the detail card is located at this time is as shown in fig. 7, where an area in a thick solid line frame represents the screen and an area in a thin solid line frame is the body area.
In the embodiment of the invention, when the relative position relationship between the position of the target node and the main body area is that the position of the target node is in the first sub-area or the second sub-area of the main body area, and the height of the card does not meet the condition that card height is greater than clientHeight-top, adjustment is not carried out, and the initial position information is directly determined to be the final position information of the position of the detail card;
when the relative position relation between the position of the target node and the main body area is that the position of the target node is in the third sub-area or the fourth sub-area of the main body area, and the height of the detail card does not meet the condition that the cardHeight is larger than the clientHeight-top, adjustment is not carried out, and the initial position information is directly determined to be the final position information of the position of the detail card.
Optionally, the method in the embodiment of the present invention further includes: and monitoring the scaling of the display interface in real time, and automatically updating the final position information of the position of the detail card according to the real-time scaling of the display interface.
In the embodiment of the invention, through the scheme, for the equity structure diagram, when displaying details, a more reasonable position can be determined to display the detail card of the target node. The invention can also automatically update the final position information of the position of the detail card according to the scaling when the target node is scaled, so that the detail card can automatically adjust the display position according to the scaling condition.
Exemplary devices
Fig. 8 is a schematic structural diagram of an apparatus 800 for determining a position of a detail card according to an exemplary embodiment of the present invention. As shown in fig. 8, the present embodiment includes:
the area information acquiring module 801 is configured to acquire area information of a main area of the display interface, where the main area is used for displaying the main information.
A target node location information obtaining module 802, configured to obtain location information of a target node where a target node that needs to display detail information is located.
Optionally, in the target node location information obtaining module 802, the target node location information of the location where the target node is located includes: the distance between the upper frame of the target node and the upper frame of the main body area is first, the distance between the left frame of the target node and the left frame of the main body area is second, the width of the target node is and the height of the target node is also first.
An initial position information determining module 803, configured to determine, according to the area information and the target node position information, initial position information of a position where the detail card corresponding to the target node is located.
Optionally, the initial position information determining module 803 determines, according to the area information and the target node position information, initial position information of a position where the detail card corresponding to the target node is located, including: a relative position relationship determining unit (not shown in the figure) configured to determine a relative position relationship between the position of the target node and the body region according to the region information and the target node position information; an initial position information determining unit (not shown in the figure) is configured to determine initial position information of the position of the detail card corresponding to the target node according to a relative position relationship between the position of the target node and the main body area.
Optionally, the relative position relationship between the position of the target node and the body region includes: the position of the target node is in one of a first sub-area, a second sub-area, a third sub-area and a fourth sub-area of the main body area; the body area is divided into a first sub-area, a second sub-area, a third sub-area and a fourth sub-area according to a horizontal center line and a vertical center line of the body area.
Optionally, the determining unit of relative position relationship determines the relative position relationship between the location of the target node and the main body region according to the region information and the location information of the target node, and includes: when the position information of the target node meets the conditions that the first distance + the height/2 of the position of the target node is not more than the height/2 of the main body area, and the second distance + the width/2 of the position of the target node is not more than the width/2 of the main body area, determining that the relative position relation between the position of the target node and the main body area is that the position of the target node is in the first sub-area of the main body area.
Optionally, the determining unit of relative position relationship determines the relative position relationship between the location of the target node and the main body region according to the region information and the location information of the target node, and includes: when the position information of the target node meets the conditions that the first distance + the height/2 of the position of the target node is not more than the height/2 of the main body area, and the second distance + the width/2 of the position of the target node is more than the width/2 of the main body area, determining that the relative position relation between the position of the target node and the main body area is that the position of the target node is in the second sub-area of the main body area.
Optionally, the determining unit of relative position relationship determines the relative position relationship between the location of the target node and the main body area according to the area information and the location information of the target node, and includes: when the position information of the target node meets the condition that the first distance + the height/2 of the position of the target node is larger than the height/2 of the main body area, and the second distance + the width/2 of the position of the target node is smaller than or equal to the width/2 of the main body area, determining that the relative position relation between the position of the target node and the main body area is that the position of the target node is in the third sub-area of the main body area.
Optionally, the determining unit of relative position relationship determines the relative position relationship between the location of the target node and the main body area according to the area information and the location information of the target node, and includes: when the position information of the target node meets the conditions that the first distance + the height/2 of the position of the target node is larger than the height/2 of the main body area, and the second distance + the width/2 of the position of the target node is larger than the width/2 of the main body area, determining that the relative position relation between the position of the target node and the main body area is that the position of the target node is in the fourth sub-area of the main body area.
Optionally, the determining unit of relative position relationship determines the relative position relationship between the location of the target node and the main body region according to the region information and the location information of the target node, and includes: calculating the coincidence area of the position of the target node and each sub-region of the main body region according to the region information and the position information of the target node; and determining the relative position relation between the position of the target node and the main body region according to the sub-region corresponding to the maximum overlapping area.
Optionally, when the relative position relationship between the position of the target node and the main body region is that the position of the target node is in the first sub-region of the main body region, the initial position information determining unit determines the initial position information of the position of the detail card corresponding to the target node, including: and determining the distance between the upper frame of the position of the detail card and the upper frame of the main body area as a first distance, and determining the distance between the left frame of the position of the detail card and the left frame of the main body area as a second distance plus the width of the position of the target node.
Optionally, when the relative position relationship between the position of the target node and the main body region is that the position of the target node is in the second sub-region of the main body region, the initial position information determining unit determines the initial position information of the position of the detail card corresponding to the target node, including: and determining the distance between the upper frame of the position of the detail card and the upper frame of the main body area as a first distance, and determining the distance between the right frame of the position of the detail card and the right frame of the main body area as the width-second distance of the main body area.
Optionally, when the relative position relationship between the position of the target node and the main body region is that the position of the target node is in the third sub-region of the main body region, the initial position information determining unit determines the initial position information of the position of the detail card corresponding to the target node, including: and determining the distance between the lower frame of the position of the detail card and the lower frame of the main body area as the height of the main body area, the first distance and the height of the position of the target node, and determining the distance between the left frame of the position of the detail card and the left frame of the main body area as the second distance and the width of the position of the target node.
Optionally, when the relative position relationship between the position of the target node and the main body region is that the position of the target node is in the fourth sub-region of the main body region, the initial position information determining unit determines the initial position information of the position of the detail card corresponding to the target node, including: and determining the distance between the lower frame of the position of the detail card and the lower frame of the main body area as the height of the main body area, the first distance and the height of the position of the target node, and determining the distance between the right frame of the position of the detail card and the right frame of the main body area as the width of the main body area, and the second distance.
A card height acquisition module 804 for acquiring the card height of the detail card.
And a final position information determining module 805, configured to determine final position information of the position where the detail card is located according to the initial position information and the card height.
Optionally, the final position information determining module 804 determines the final position information of the position of the detail card according to the initial position information and the card height, including:
a first adjusting unit (not shown in the figure), configured to adjust initial position information of a position where the detail card is located when the card height is greater than the height of the main body area, where a distance between an upper frame of the detail card and the upper frame of the main body area is adjusted to be 0, and a distance between a lower frame of the detail card and the lower frame of the main body area is adjusted to be 0, so as to determine final position information of the position where the detail card is located;
and a second adjusting unit (not shown in the figure), configured to, when the card height is less than or equal to the height of the main body area, adjust the initial position information of the position of the detail card according to a preset adjustment rule and a relative position relationship between the position of the target node and the main body area, so as to determine final position information of the position of the detail card.
Optionally, the second adjusting unit adjusts, according to a relative position relationship between the position of the target node and the main body region, the initial position information of the position of the detail card according to a preset adjustment rule to determine the final position information of the position of the detail card, and includes:
when the relative position relation between the position of the target node and the main body area is that the position of the target node is in the first sub-area or the second sub-area of the main body area, and the card height is larger than the height-first distance of the main body area, determining that the distance between the lower frame of the position of the detail card and the lower frame of the main body area is 0, and adjusting the distance between the upper frame of the position of the detail card in the initial position information and the upper frame of the main body area to be the height-card height of the main body area so as to determine the final position information of the position of the detail card;
when the relative position relationship between the position of the target node and the main body area is that the position of the target node is in the third sub area or the fourth sub area of the main body area, and the card height is greater than the height-first distance of the main body area, determining that the distance between the upper frame of the position of the detail card and the upper frame of the main body area is 0, and adjusting the distance between the lower frame of the position of the detail card in the initial position information and the lower frame of the main body area to be the height-card height of the main body area so as to determine the final position information of the position of the detail card.
Optionally, the system further comprises: and an automatic updating module (not shown in the figure) for monitoring the scaling of the display interface in real time and automatically updating the final position information of the position of the detail card according to the real-time scaling of the display interface.
The apparatus 800 for determining a location of a detail card according to an embodiment of the present invention corresponds to the method 100 for determining a location of a detail card according to an embodiment of the present invention, and will not be described herein.
Exemplary electronic device
Fig. 9 is a structure of an electronic device according to an exemplary embodiment of the present invention. The electronic device may be a stand-alone device independent of, or either one or both of the first device and the second device, which stand-alone device may communicate with the first device and the second device to receive the acquired input signals therefrom. FIG. 9 illustrates a block diagram of an electronic device in accordance with an embodiment of the disclosure. As shown in fig. 9, the electronic device 90 includes one or more processors 91 and memory 92.
The processor 91 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
Memory 92 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), a hard disk, flash memory, and the like. One or more computer program instructions may be stored on a computer-readable storage medium and executed by the processor 91 to implement the method of information mining of historical change records of the software program of the various embodiments of the present disclosure described above and/or other desired functions. In one example, the electronic device may further include: an input device 93 and an output device 94, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 93 may also include, for example, a keyboard, a mouse, and the like.
The output device 94 can output various information to the outside. The output devices 94 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for simplicity, only some of the components of the electronic device relevant to the present disclosure are shown in fig. 9, omitting components such as buses, input/output interfaces, and the like. In addition, the electronic device may include any other suitable components, depending on the particular application.
Exemplary computer program product and computer-readable storage Medium
In addition to the above-described methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the method of information mining of historical change records according to various embodiments of the present disclosure described in the "exemplary methods" section above of this specification.
The computer program product may write program code for carrying out operations for embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform steps in a method of information mining of historical change records according to various embodiments of the present disclosure described in the "exemplary methods" section above in this specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present disclosure in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present disclosure are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The block diagrams of devices, apparatuses, systems referred to in this disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
It is also noted that in the devices, apparatuses, and methods of the present disclosure, each component or step can be decomposed and/or recombined. These decompositions and/or recombinations are to be considered equivalents of the present disclosure. The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (19)

1. A method for determining the location of a detail card, the method comprising:
acquiring area information of a main body area of a display interface, wherein the main body area is used for displaying main body information;
acquiring target node position information of the position of a target node needing to display detailed information;
determining initial position information of the position of the detail card corresponding to the target node according to the area information and the position information of the target node;
acquiring the card height of the detail card;
and determining final position information of the position of the detail card according to the initial position information and the card height.
2. The method according to claim 1, wherein the determining initial position information of a position of a detail card corresponding to the target node according to the area information and the target node position information comprises:
determining the relative position relation between the position of the target node and the main body area according to the area information and the position information of the target node;
and determining initial position information of the position of the detail card corresponding to the target node according to the relative position relation between the position of the target node and the main body area.
3. The method of claim 2, wherein the target node location information comprises: the distance between the upper frame of the target node and the upper frame of the main body area is first, the distance between the left frame of the target node and the left frame of the main body area is second, the width of the target node and the height of the target node.
4. The method of claim 3, wherein the subject region is divided into a first sub-region, a second sub-region, a third sub-region, and a fourth sub-region according to a horizontal centerline and a vertical centerline of the subject region;
the relative position relationship between the position of the target node and the main body area comprises the following steps: the position of the target node is located in one of a first sub-area, a second sub-area, a third sub-area and a fourth sub-area of the main body area.
5. The method according to claim 4, wherein the determining the relative position relationship between the position of the target node and the main body region according to the region information and the position information of the target node comprises:
when the target node position information meets the conditions that the first distance + the height/2 of the position of the target node is not more than the height/2 of the main body area, and the second distance + the width/2 of the position of the target node is not more than the width/2 of the main body area, determining that the relative position relation between the position of the target node and the main body area is that the position of the target node is in the first sub-area of the main body area.
6. The method according to claim 4, wherein the determining the relative position relationship between the position of the target node and the main body region according to the region information and the position information of the target node comprises:
when the target node position information meets the conditions that the first distance + the height/2 of the position of the target node is not more than the height/2 of the main body area, and the second distance + the width/2 of the position of the target node is more than the width/2 of the main body area, determining that the relative position relationship between the position of the target node and the main body area is that the position of the target node is in the second sub-area of the main body area.
7. The method according to claim 4, wherein the determining the relative position relationship between the position of the target node and the main body region according to the region information and the position information of the target node comprises:
when the target node position information meets the condition that the first distance + the height/2 of the position of the target node is larger than the height/2 of the main body area, and the second distance + the width/2 of the position of the target node is not larger than the width/2 of the main body area, determining that the relative position relation between the position of the target node and the main body area is that the position of the target node is in a third sub-area of the main body area.
8. The method according to claim 4, wherein the determining the relative position relationship between the position of the target node and the main body region according to the region information and the position information of the target node comprises:
when the target node position information meets the conditions that the first distance + the height/2 of the position of the target node is larger than the height/2 of the main body area, and the second distance + the width/2 of the position of the target node is larger than the width/2 of the main body area, determining that the relative position relation between the position of the target node and the main body area is that the position of the target node is in the fourth sub-area of the main body area.
9. The method according to claim 4, wherein the determining the relative position relationship between the position of the target node and the main body region according to the region information and the position information of the target node comprises:
calculating the coincidence area of the position of the target node and each sub-region of the main body region according to the region information and the position information of the target node;
and determining the relative position relation between the position of the target node and the main body region according to the sub-region corresponding to the maximum overlapping area.
10. The method according to claim 4, wherein when the relative positional relationship between the position of the target node and the main body area is that the position of the target node is in the first sub-area of the main body area, determining initial positional information of the position of the detail card corresponding to the target node comprises:
determining that the distance between the upper frame of the position of the detail card and the upper frame of the main body area is a first distance, and determining that the distance between the left frame of the position of the detail card and the left frame of the main body area is a second distance plus the width of the position of the target node.
11. The method according to claim 4, wherein when the relative positional relationship between the position of the target node and the main body area is that the position of the target node is in the second sub-area of the main body area, determining initial positional information of the position of the detail card corresponding to the target node comprises:
and determining that the distance between the upper frame of the position of the detail card and the upper frame of the main body area is a first distance, and determining that the distance between the right frame of the position of the detail card and the right frame of the main body area is the width of the main body area-a second distance.
12. The method according to claim 4, wherein when the relative positional relationship between the position of the target node and the main body area is that the position of the target node is in a third sub-area of the main body area, determining initial positional information of the position of the detail card corresponding to the target node comprises:
determining the distance between the lower frame of the position of the detail card and the lower frame of the main body area as the height of the main body area, the first distance and the height of the position of the target node, and determining the distance between the left frame of the position of the detail card and the left frame of the main body area as the second distance and the width of the position of the target node.
13. The method according to claim 4, wherein when the relative positional relationship between the position of the target node and the main body area is that the position of the target node is in a fourth sub-area of the main body area, determining initial positional information of the position of the detail card corresponding to the target node comprises:
determining the distance between the lower frame of the position of the detail card and the lower frame of the main body area as the height of the main body area, the first distance and the height of the position of the target node, and determining the distance between the right frame of the position of the detail card and the right frame of the main body area as the width of the main body area and the second distance.
14. The method according to any one of claims 2 to 13, wherein determining final position information of the location of the detail card based on the initial position information and the card height comprises:
when the height of the card is greater than the height of the main body area, adjusting initial position information of the position of the detail card, adjusting the distance between an upper frame of the detail card and the upper frame of the main body area to be 0, and adjusting the distance between a lower frame of the detail card and the lower frame of the main body area to be 0, so as to determine final position information of the position of the detail card;
when the card height is smaller than or equal to the height of the main body area, adjusting the initial position information of the position of the detail card according to a preset adjustment rule and a relative position relation between the position of the target node and the main body area so as to determine the final position information of the position of the detail card.
15. The method according to claim 14, wherein the adjusting initial position information of the position of the detail card according to a preset adjustment rule according to a relative position relationship between the position of the target node and the main body area to determine final position information of the position of the detail card comprises:
when the relative position relationship between the position of the target node and the main body area is that the position of the target node is in the first sub-area or the second sub-area of the main body area, and the card height is greater than the height of the main body area and the height of the position of the target node, determining that the distance between the lower frame of the position of the detail card and the lower frame of the main body area is 0, and adjusting the distance between the upper frame of the position of the detail card in the initial position information and the upper frame of the main body area to be the height of the main body area and the card height so as to determine the final position information of the position of the detail card;
when the relative position relationship between the position of the target node and the main body area is that the position of the target node is in the third sub-area or the fourth sub-area of the main body area, and the card height is greater than the height of the main body area and the height of the position of the target node, determining that the distance between the upper frame of the position of the detail card and the upper frame of the main body area is 0, and adjusting the distance between the lower frame of the position of the detail card in the initial position information and the lower frame of the main body area to be the height of the main body area and the card height so as to determine the final position information of the position of the detail card.
16. The method of claim 1, further comprising: and monitoring the scaling of the display interface in real time, and automatically updating the final position information of the position of the detail card according to the real-time scaling of the display interface.
17. An apparatus for locating a detail card, the apparatus comprising:
the area information acquisition module is used for acquiring area information of a main body area of the display interface, which is used for displaying the main body information;
the target node position information acquisition module is used for acquiring target node position information of the position of a target node needing to display detailed information;
the initial position information determining module is used for determining the initial position information of the position of the detail card corresponding to the target node according to the area information and the target node position information;
the card height acquisition module is used for acquiring the card height of the detail card;
and the final position information determining module is used for determining final position information of the position of the detail card according to the initial position information and the card height.
18. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for performing the method of any of the preceding claims 1-16.
19. An electronic device, characterized in that the electronic device comprises: a memory and a processor; wherein the content of the first and second substances,
the memory to store the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method of any one of claims 1-16.
CN202110894150.1A 2021-08-05 2021-08-05 Method and apparatus for locating detail cards Active CN113342454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110894150.1A CN113342454B (en) 2021-08-05 2021-08-05 Method and apparatus for locating detail cards

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110894150.1A CN113342454B (en) 2021-08-05 2021-08-05 Method and apparatus for locating detail cards

Publications (2)

Publication Number Publication Date
CN113342454A true CN113342454A (en) 2021-09-03
CN113342454B CN113342454B (en) 2021-11-16

Family

ID=77480881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110894150.1A Active CN113342454B (en) 2021-08-05 2021-08-05 Method and apparatus for locating detail cards

Country Status (1)

Country Link
CN (1) CN113342454B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115576634B (en) * 2022-09-20 2023-04-28 北京城市网邻信息技术有限公司 Information display method, device, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201518A (en) * 2016-07-12 2016-12-07 腾讯科技(深圳)有限公司 A kind of method for information display and electronic equipment
CN106330814A (en) * 2015-06-16 2017-01-11 阿里巴巴集团控股有限公司 Method and device for displaying detail information of target object
US20180122045A1 (en) * 2015-06-23 2018-05-03 Alibaba Group Holding Limited Method and Apparatus for Complete Size Adaptation of Object to be Displayed
WO2018103218A1 (en) * 2016-12-08 2018-06-14 武汉斗鱼网络科技有限公司 Display processing method and device for ui interface
CN108319418A (en) * 2018-01-24 2018-07-24 维沃移动通信有限公司 A kind of interface display control method and mobile terminal
CN109062480A (en) * 2018-07-12 2018-12-21 北京猫眼文化传媒有限公司 A kind of information display method and device
CN109144385A (en) * 2018-07-27 2019-01-04 北京小米移动软件有限公司 The moving method and device of suspension ball
CN109918001A (en) * 2019-03-28 2019-06-21 北京小米移动软件有限公司 Interface display method, device and storage medium
CN110865865A (en) * 2019-11-22 2020-03-06 科大讯飞股份有限公司 Popup window position determining method, device, equipment and storage medium
CN111125466A (en) * 2018-11-01 2020-05-08 百度在线网络技术(北京)有限公司 Instrument panel layout method and device
CN112346617A (en) * 2020-11-09 2021-02-09 北京小米移动软件有限公司 Information display method, information display device, terminal, and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330814A (en) * 2015-06-16 2017-01-11 阿里巴巴集团控股有限公司 Method and device for displaying detail information of target object
US20180122045A1 (en) * 2015-06-23 2018-05-03 Alibaba Group Holding Limited Method and Apparatus for Complete Size Adaptation of Object to be Displayed
CN106201518A (en) * 2016-07-12 2016-12-07 腾讯科技(深圳)有限公司 A kind of method for information display and electronic equipment
WO2018103218A1 (en) * 2016-12-08 2018-06-14 武汉斗鱼网络科技有限公司 Display processing method and device for ui interface
CN108319418A (en) * 2018-01-24 2018-07-24 维沃移动通信有限公司 A kind of interface display control method and mobile terminal
CN109062480A (en) * 2018-07-12 2018-12-21 北京猫眼文化传媒有限公司 A kind of information display method and device
CN109144385A (en) * 2018-07-27 2019-01-04 北京小米移动软件有限公司 The moving method and device of suspension ball
CN111125466A (en) * 2018-11-01 2020-05-08 百度在线网络技术(北京)有限公司 Instrument panel layout method and device
CN109918001A (en) * 2019-03-28 2019-06-21 北京小米移动软件有限公司 Interface display method, device and storage medium
CN110865865A (en) * 2019-11-22 2020-03-06 科大讯飞股份有限公司 Popup window position determining method, device, equipment and storage medium
CN112346617A (en) * 2020-11-09 2021-02-09 北京小米移动软件有限公司 Information display method, information display device, terminal, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115576634B (en) * 2022-09-20 2023-04-28 北京城市网邻信息技术有限公司 Information display method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113342454B (en) 2021-11-16

Similar Documents

Publication Publication Date Title
US10620816B2 (en) System for displaying elements of a scrollable list
US9898708B2 (en) Uplifting of computer resources
EP2693382A2 (en) Scalable zoom calendars
US9658672B2 (en) Business object representations and detail boxes display
CN110597583B (en) Method and device for ceiling of modal frame, storage medium and electronic equipment
US11995606B2 (en) Method for determine distribution positions of commodities and apparatus, electronic device, and storage medium
KR20160044486A (en) Presenting fixed format documents in reflowed format
US10319129B2 (en) Snapping line generation
CN113849848B (en) Data permission configuration method and system
CN113342454B (en) Method and apparatus for locating detail cards
CN110866008A (en) Data processing method, device and system
US20220165070A1 (en) Method for determining correct scanning distance using augmented reality and machine learning models
CN107977342B (en) Document comparison method and device
CN115578486A (en) Image generation method and device, electronic equipment and storage medium
EP3869398A2 (en) Method and apparatus for processing image, device and storage medium
US20190187667A1 (en) Development support apparatus, program development support method, and program development support program
WO2019095569A1 (en) Financial analysis method based on financial and economic event on microblog, application server, and computer readable storage medium
CN113780912A (en) Method and device for determining safety stock
US20160247283A1 (en) System and method for directionality based row detection
CN108363814B (en) Label setting method, server and label setting system
CN110796551A (en) Automatic control method, device and system for fund management
CN112950687B (en) Method and device for determining tracking state, storage medium and electronic equipment
CN113010046A (en) Method for adapting signal source in multi-window mode, electronic equipment and storage medium
WO2019041149A1 (en) Topic image flows
CN109657205B (en) Text line height adjusting method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant