CN110780958A - Method, device and equipment for processing theme domain - Google Patents

Method, device and equipment for processing theme domain Download PDF

Info

Publication number
CN110780958A
CN110780958A CN201910904334.4A CN201910904334A CN110780958A CN 110780958 A CN110780958 A CN 110780958A CN 201910904334 A CN201910904334 A CN 201910904334A CN 110780958 A CN110780958 A CN 110780958A
Authority
CN
China
Prior art keywords
moved
target
domain
theme
subject
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.)
Pending
Application number
CN201910904334.4A
Other languages
Chinese (zh)
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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN201910904334.4A priority Critical patent/CN110780958A/en
Publication of CN110780958A publication Critical patent/CN110780958A/en
Pending legal-status Critical Current

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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the specification provides a method, a device and equipment for processing a subject domain. In one embodiment, the method comprises: in response to the dragging operation aiming at the target subject field in the subject field display interface, determining a subject field to be moved which is overlapped with the target subject field in the subject field display interface; calculating the distance to be moved of the subject domain to be moved along the specified direction; and based on the distance to be moved, moving the theme zone to be moved along the specified direction so as to ensure that the moved theme zone to be moved is not overlapped with the target theme zone.

Description

Method, device and equipment for processing theme domain
Technical Field
One or more embodiments of the present specification relate to the field of data processing, and in particular, to a method, an apparatus, and a device for processing a theme domain.
Background
A data warehouse is a theme-oriented, integrated, relatively stable data collection that reflects historical changes used to support administrative decisions. One topic corresponds to one macroscopic analysis domain. In a logical sense, it is an analysis object involved in a certain macro analysis field in the corresponding enterprise. When designing a data warehouse, dimensional modeling is required. Among these, the fusion of business dimensions into data models is called dimensional modeling. The dimension modeling map is used for displaying and managing a large map of a subject domain and entity relations under the subject domain, and a user has the capability of customizing the large map. A topic domain is typically a collection of more closely related data topics. The subject field is typically represented using a rectangle, and the name of the subject field is marked within the rectangle.
A user can meet the requirement of a user-defined dimension modeling map by dragging a subject domain in the map. In the process of dragging the theme zone by the user, the moved theme zone can be overlapped with other theme zones existing in the map. At present, two overlapped subject domain rectangles need to be pulled apart manually, the time consumption is high, and the processing efficiency of the subject domain is low. Therefore, it is desirable to provide a theme zone processing method with high processing efficiency.
Disclosure of Invention
The embodiment of the specification provides a method, a device and equipment for processing a theme zone, so that the processing efficiency of the theme zone is improved.
The technical scheme provided by one or more embodiments of the specification is as follows:
in a first aspect, a method for processing a theme domain is provided, including:
in response to a dragging operation aiming at a target subject field in a subject field display interface, determining a subject field to be moved which is overlapped with the target subject field in the subject field display interface;
calculating the distance to be moved of the subject domain to be moved along the specified direction;
and moving the subject domain to be moved along the specified direction based on the distance to be moved so as to ensure that the moved subject domain to be moved and the target subject domain are not overlapped.
In a second aspect, a theme domain processing apparatus is provided, including:
the theme zone to be moved determining module is used for responding to the dragging operation aiming at the target theme zone in the theme zone display interface and determining the theme zone to be moved which is overlapped with the target theme zone in the theme zone display interface;
the distance to be moved calculation module is used for calculating the distance to be moved of the theme zone to be moved along the specified direction;
and the moving module is used for moving the theme zone to be moved along the specified direction based on the distance to be moved so as to ensure that the moved theme zone to be moved is not overlapped with the target theme zone.
In a third aspect, a theme domain processing apparatus is provided, including: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the subject domain processing method as provided by the embodiments of the present specification.
The theme zone processing method, device and equipment provided by the embodiment of the specification can automatically detect the theme zone to be moved overlapped with the moved target theme zone, and can calculate the distance to be moved of the theme zone to be moved along the specified direction. And automatically moving the theme zone to be moved along the specified direction based on the distance to be moved, so that the moved theme zone to be moved and the target theme zone are not overlapped. For the two overlapped theme domains, the two overlapped theme domains do not need to be pulled apart manually, the automatic moving of the theme domain to be moved is realized, and the processing efficiency of the theme domain is improved.
Drawings
In order to more clearly illustrate the technical solutions of one or more embodiments of the present disclosure, the drawings needed to be used in one or more embodiments of the present disclosure will be briefly described below, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram illustrating a theme zone display interface provided by an embodiment of the present description;
fig. 2 is a flowchart illustrating a theme domain processing method provided in an embodiment of the present specification;
FIG. 3 is a schematic diagram illustrating a theme zone display interface provided by another embodiment of the present description;
FIG. 4 illustrates a schematic diagram of a theme zone display interface provided by yet another embodiment of the present description;
FIG. 5 is a flow chart illustrating a topic domain processing method provided by another example of the present specification;
fig. 6 is a schematic structural diagram of a subject domain processing apparatus provided in an embodiment of the present specification;
fig. 7 is a schematic structural diagram of a subject domain processing device of an embodiment of the present specification.
Detailed Description
Features and exemplary embodiments of various aspects of the present specification will be described in detail below, and in order to make objects, technical solutions and advantages of the specification more apparent, the specification will be further described in detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are merely configured to explain the present specification and are not configured to limit the present specification. It will be apparent to one skilled in the art that the present description may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present specification by illustrating examples thereof.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Fig. 1 is a schematic diagram illustrating a theme zone display interface provided in an embodiment of the present specification. Referring to fig. 1, the theme zone display interface includes a customer theme zone, a business theme zone, a product theme zone, a marketing theme zone, a service theme zone, and a resource theme zone. Wherein data related to its business features is stored under each topic domain. Wherein the subject domain is generally characterized by a rectangle. The straight lines between the subject domains represent the relationships between the subject domains.
The user can customize the position of the theme zone in the theme zone display interface. When a user selects a theme zone in the theme zone display interface and drags the theme zone, the dragged (i.e., moved) theme zone may overlap with other theme zones displayed in the theme zone display interface. By using the theme zone processing method provided by the embodiment of the specification, the overlapped theme zones can be automatically pulled apart, and the processing efficiency of the theme zones is improved.
Fig. 2 is a flowchart illustrating a theme domain processing method 200 provided in an embodiment of the present specification. As shown in fig. 2, a theme domain processing method 200 provided in this specification includes:
s210, in response to the dragging operation aiming at the target subject field in the subject field display interface, determining the subject field to be moved which is overlapped with the target subject field in the subject field display interface.
As an example, referring to fig. 3, if the user selects the client topic field in fig. 1 and drags the client topic field, the client topic field is the target topic field. With continued reference to fig. 3, since the position of the dragged target subject field in the subject field display interface is changed, the target subject field may overlap (i.e., collide) with other subject fields. Referring to fig. 3, the target subject area (i.e., the customer subject area) overlaps with both the business subject area and the product subject area.
S220, calculating the distance to be moved of the subject domain to be moved along the specified direction.
And S230, based on the distance to be moved, moving the theme zone to be moved along the specified direction, so that the moved theme zone to be moved and the target theme zone are not overlapped.
The theme zone processing method provided in the embodiment of the present specification can automatically detect the theme zone to be moved that overlaps with the moved target theme zone, and can calculate the distance to be moved of the theme zone to be moved along the specified direction. And automatically moving the theme zone to be moved along the specified direction based on the distance to be moved, so that the moved theme zone to be moved and the target theme zone are not overlapped. For the two overlapped theme domains, the two overlapped theme domains do not need to be pulled apart manually, but the automatic moving of the theme domains to be moved is realized, the collision between the theme domains is avoided, and the processing efficiency of the theme domains is improved.
In some embodiments of the present description, step S210 includes the steps of:
for each non-target subject area in the subject area display interface except the target subject area, performing the following steps:
s2101, based on the moved first position coordinate of the target subject field and the second position coordinate of the non-target subject field, calculate a target distance between the target subject field and the non-target subject field along the designated direction.
It should be noted that all the subject domains in the embodiments of the present specification are characterized by rectangles. For each rectangle in the theme zone display interface, the rectangle includes a first side in a first direction and a second side in a second direction. Wherein the first direction and the second direction are perpendicular.
That is, for any two rectangles in the theme zone display interface, any side of one rectangle is perpendicular or parallel to any side of the other rectangle.
As an example, referring to FIG. 3, the long side of each rectangle in the subject area display interface is the first side of the rectangle and the second side of each rectangle is the short side of the rectangle.
In one or more embodiments of the present specification, the theme zone display interface has a predetermined coordinate system therein, a positive direction of an x-axis of the coordinate system is parallel to the first direction or the second direction, and a y-axis of the coordinate system is perpendicular to the x-axis.
As an example, a first side in the first direction is a long side of a rectangle, a second side in the second direction is a short side of the rectangle, and a positive direction of an x-axis of the coordinate system is parallel to the first direction. The long side of each rectangle of the subject field display interface is parallel to the x-axis and the short side of each rectangle is parallel to the y-axis.
As another example, a first side in the first direction is a short side of a rectangle, a second side in the second direction is a long side of the rectangle, and a positive direction of an x-axis of the coordinate system is parallel to the first direction. The short side of each rectangle of the subject field display interface is parallel to the x-axis and the long side of each rectangle is parallel to the y-axis.
In one or more embodiments of the present specification, in response to a drag operation for a target subject field, position change information of the target subject field may be acquired. It is worth mentioning that the correspondence between the identifier of each rectangle and the position coordinates of the rectangle corresponding to the identifier may be recorded.
In an embodiment of the present specification, the first position coordinates of the dragged (i.e., moved) target subject field may be obtained based on the initial position coordinates of the target subject field and the position change information of the target subject field. Then, the correspondence is updated using the first position coordinates.
Based on the moved first position coordinates of the target subject field and the second position coordinates of the non-target subject field (i.e., the current position coordinates of the non-target subject field), a target distance between the target subject field and the non-target subject field along the specified direction may be calculated.
Specifically, a first distance between the first position coordinates and the second position coordinates is first calculated. Then, based on the first position coordinate and the second position coordinate, an included angle between a first direction and the specified direction is determined, wherein the first direction is a direction in which a straight line is located and is determined based on the first position coordinate and the second position coordinate. And finally, multiplying the first distance by the cosine value of the included angle to obtain the target distance.
It should be noted that the position coordinates mentioned in the embodiments of the present specification may be the center coordinates of a rectangle.
As an example, the designated direction may be a direction parallel to the first direction, or may be a direction parallel to the second direction.
S2102, obtaining a side length sum value according to the first side length of the target subject domain and the second side length of the non-target subject domain.
In some embodiments of the present description, if the specified direction is parallel to the first direction, the first side is the length of the first side of the target subject area, and the second side is the length of the first side of the non-target subject area.
As an example, a first side in the first direction is a long side of a rectangle, a second side in the second direction is a short side of the rectangle, and a positive direction of an x-axis of the coordinate system is parallel to the first direction. The long side of each rectangle of the subject field display interface is parallel to the x-axis and the short side of each rectangle is parallel to the y-axis.
If the specified direction is parallel to the first direction, the first side length is the length of the target subject domain rectangle, the second side length is the length of the non-target subject domain, and the sum of the side lengths is the sum of the length of the target subject domain rectangle and the length of the non-target subject domain.
In other embodiments of the present description, if the specified direction is parallel to the second direction, the first side length is a length of a second side of the target subject area, and the second side length is a length of a second side of the non-target subject area.
In the above example, the second side along the second direction is a short side of the rectangle, and if the specified direction is parallel to the second direction, the first side is as long as the width of the target subject area rectangle, and the second side is as long as the width of the non-target subject area. I.e. the sum of the side lengths is the sum of the width of the target subject field rectangle and the width of the non-target subject field.
That is, the subject field to be moved may be moved in the direction of the long side of the rectangle or the direction of the short side of the rectangle.
S2103, if the sum of the side lengths is greater than the target distance, determining that the non-target subject domain is a subject domain to be moved which is overlapped with the target subject domain.
In one or more embodiments of the present specification, in step S220, a difference value obtained by subtracting the target distance from a sum of side lengths is calculated, and the difference value is taken as the distance to be moved.
Then, the rectangle to be moved is moved along the specified direction according to the distance to be moved, so that the target theme zone and the moved theme zone to be moved are not overlapped, even if the moved theme zone to be moved is automatically moved away.
It should be noted that, in order to enable the subject area to be moved, which overlaps with the target subject area, to be moved quickly in time in the process of dragging the target subject area, in the process of dragging the target subject area from the starting position to the ending position, the steps S210 to S230 are performed once at preset time intervals.
In one or more embodiments of the present specification, after the to-be-moved subject field overlapped with the target subject field is moved according to the to-be-moved distance, the moved to-be-moved subject field may also be overlapped with other subject fields in the subject field display interface. As an example, referring to FIG. 4, the moved business and product subject domains do not overlap with the customer subject domain. However, the moved business topic domain overlaps with the service topic domain.
In order to realize that any two theme zone rectangles in the theme zone display interface are not overlapped in the process of customizing the theme zone display interface by a user, the method provided by the embodiment of the specification further comprises the following steps:
s240, judging whether other theme domains overlapped with the moved theme domain to be moved exist in the theme domain display interface to obtain a judgment result.
And S250, taking the moved subject domain to be moved as a target subject domain under the condition that the judgment result is yes, and returning to the step of determining the subject domain to be moved which is overlapped with the target subject domain in the subject domain display interface in the step S210.
In S240, a method of determining whether there is another theme zone overlapping with the moved theme zone to be moved in the theme zone display interface is similar to the method of determining the theme zone to be moved overlapping with the target theme zone in step S210, and details are not repeated here.
In S250, by returning to the step of determining the to-be-moved subject field overlapped with the target subject field in the subject field display interface, a recursive idea is utilized, and any one of the collided subject field rectangles can be automatically moved away, thereby further improving the processing efficiency of the subject field.
The following describes a specific implementation procedure of the subject domain processing method provided in the embodiment of the present specification in detail with reference to fig. 5.
Referring to fig. 5, in response to the drag operation for the target topic domain in the topic domain display interface, the dragged target topic domain is placed as the 1 st target topic domain into the newly created moving array b. And placing the dragged target theme domain into a newly-built moving array b represents that the identification and the position coordinate of the target theme domain are recorded in the array b.
It is worth mentioning that the dragged target subject field may overlap with other subject fields in the subject field display interface. If the to-be-moved subject field overlapped with the target subject field is moved according to the to-be-moved distance, the moved to-be-moved subject field may be overlapped with other subject fields in the subject field display interface. Therefore, for each moved subject field, the influence of the subject field on all subject fields in the subject field display interface is calculated. Therefore, an array a is established for each theme zone in the theme zone display interface, and is used for storing the current position coordinates and the side length information of each theme zone.
With continued reference to fig. 5, when i is 1, i.e., for the 1 st target subject field in the moving array b, it is detected whether the 1 st target subject field in the array b overlaps (i.e., whether a collision occurs) with each subject field in the array a, i.e., each subject field in the array a is traversed. And i is an integer which is more than or equal to 1 and less than or equal to M, and M is the total number of the moved theme domains in the theme domain display interface.
In the process of traversing the array a, for the jth subject field being traversed in the array a, S2101 to S2103 are executed to detect whether the 1 st target subject field in the array b collides with the jth subject field in the array a. J is a positive integer which is greater than or equal to 1 and less than or equal to N, and N is the total number of all theme domains in the theme domain display interface.
By using the current position coordinate and the side length information of the jth subject field in the array a and the position coordinate and the side length information of the 1 st target subject field in the moving array b, whether the jth subject field in the array a overlaps with the 1 st target subject field in the moving array b can be judged, that is, whether the jth subject field in the array a collides with the 1 st target subject field in the moving array b is detected.
If the jth theme zone in the array a does not collide with the 1 st target theme zone in the moving array b, j ═ j +1 is additionally detected, that is, whether the 1 st target theme zone collides with the j +1 th theme zone in the array a is detected.
If the jth theme zone in the array a collides with the 1 st target theme zone in the moving array b, step S220 is executed to calculate the distance to be moved of the jth theme zone in the array a. And then, moving the jth theme zone in the array a based on the distance to be moved, and putting the moved jth theme zone into the moving array b as a target theme zone.
It should be noted that, the step of putting the moved jth theme zone as the target theme zone into the moving array b is to put the position coordinate and the theme zone identifier of the moved jth theme zone into the array b. The position coordinate of the jth subject field after the movement can be calculated based on the position coordinate of the jth subject field before the movement and the distance to be moved, which are stored in the array a. It should be noted that the position coordinate of the subject field, which is originally stored in the array a, needs to be updated by using the moved position coordinate of the jth subject field.
Continuing to refer to fig. 5, next, it is determined whether the traversal of the subject domain in the array a is completed, and if the traversal of the subject domain in the array a is completed, the 1 st target subject domain in the array is deleted from the array b. Since the topic domain colliding with the 1 st target topic domain is placed in the array b, it needs to be determined whether the target topic domain in the array b has been traversed.
And if each target theme domain in the array b is traversed, completing the layout of the theme domain display interface. If the target subject field of the moving array b is not completely traversed, i is equal to i +1, that is, whether the (i + 1) th target subject field in the array b collides with other subject fields in the subject field display interface is detected.
By utilizing the recursive idea, the influence of each moved theme domain on each other theme domain in the theme domain display interface can be determined, so that any collided theme domain rectangle can be automatically moved away, and the processing efficiency of the theme domain is further improved.
Fig. 6 shows a schematic structural diagram of a subject domain processing apparatus 600 provided in an embodiment of the present specification. As shown in fig. 6, the topic domain processing apparatus 600 includes:
a to-be-moved subject field determining module 610, configured to determine, in response to a dragging operation for a target subject field in a subject field display interface, a to-be-moved subject field that overlaps with the target subject field in the subject field display interface.
A to-be-moved distance calculating module 620, configured to calculate a to-be-moved distance of the to-be-moved subject field along a specified direction.
A moving module 630, configured to move the to-be-moved subject area along the specified direction based on the to-be-moved distance, so that the moved to-be-moved subject area does not overlap with the target subject area.
In the illustrated embodiment, the topic domain processing apparatus 600 further includes:
and the judging module is used for judging whether other theme domains overlapped with the moved theme domain to be moved exist in the theme domain display interface to obtain a judging result.
And a returning module, configured to, if the determination result is yes, take the moved subject area to be moved as a target subject area, and return the subject area to be moved determined to be overlapped with the target subject area in the subject area display interface.
In this illustrated embodiment, the to-be-moved subject area determining module 610 is configured to, for each non-target subject area except for the target subject area in the subject area display interface, perform the following steps:
calculating a target distance between the target subject field and the non-target subject field along the specified direction based on the moved first position coordinates of the target subject field and the second position coordinates of the non-target subject field;
obtaining a side length sum value according to the first side length of the target subject domain and the second side length of the non-target subject domain;
and if the sum of the side lengths is greater than the target distance, determining that the non-target subject domain is a subject domain to be moved which is overlapped with the target subject domain.
In the illustrated embodiment, the to-be-moved theme zone determination module 610 is configured to calculate a first distance between the first location coordinate and the second location coordinate; determining an included angle between a first direction and the specified direction based on the first position coordinate and the second position coordinate, wherein the first direction is a direction in which a straight line is located and is determined based on the first position coordinate and the second position coordinate; and multiplying the first distance by the cosine value of the included angle to obtain the target distance.
In the illustrated embodiment, the rectangle includes a first side along a first direction and a second side along a second direction, the first direction and the second direction being perpendicular.
If the specified direction is parallel to the first direction, the first side length is the length of the first side of the target subject area, and the second side length is the length of the first side of the non-target subject area.
If the specified direction is parallel to the second direction, the first side length is the length of a second side of the target subject area, and the second side length is the length of a second side of the non-target subject area.
In the illustrated embodiment, the location coordinates are the center coordinates of the subject field.
In this embodiment, the to-be-moved distance calculating module 620 is configured to calculate a difference value obtained by subtracting the target distance from the sum of the side lengths, and use the difference value as the to-be-moved distance.
The theme zone processing apparatus provided in the embodiment of the present specification may calculate a distance to be moved of the theme zone to be moved, and automatically move the theme zone to be moved along a specified direction, so that the moved theme zone to be moved and the target theme zone are not overlapped. For the two overlapped theme domains, the two overlapped theme domains do not need to be pulled apart manually, but the automatic moving of the theme domains to be moved is realized, the collision between the theme domains is avoided, and the processing efficiency of the theme domains is improved.
Other details of the subject domain processing apparatus according to the embodiment of the present specification are similar to the subject domain processing method provided according to the embodiment of the present specification described above with reference to fig. 2 to 6, and are not repeated herein.
The theme domain processing method and apparatus according to the embodiment of the present specification described in conjunction with fig. 2 to 6 may be implemented by a theme domain processing device. Fig. 7 shows a schematic diagram of a hardware architecture 700 of a subject domain processing device according to an illustrative embodiment.
As shown in fig. 7, the subject field processing device 700 includes an input device 701, an input interface 702, a central processor 703, a memory 704, an output interface 705, and an output device 706. The input interface 702, the central processing unit 703, the memory 704, and the output interface 705 are connected to each other via a bus 710, and the input device 701 and the output device 706 are connected to the bus 710 via the input interface 702 and the output interface 705, respectively, and further connected to other components of the theme zone processing apparatus 700.
Specifically, the input device 701 receives input information from the outside, and transmits the input information to the central processor 703 through the input interface 702; the central processor 703 processes input information based on computer-executable instructions stored in the memory 704 to generate output information, stores the output information temporarily or permanently in the memory 704, and then transmits the output information to the output device 706 through the output interface 705; the output device 706 outputs the output information to the outside of the subject domain processing device 700 for use by the user.
That is, the theme zone processing apparatus shown in fig. 7 may also be implemented to include: a memory storing computer-executable instructions; and a processor which, when executing computer executable instructions, may implement the subject domain processing methods and apparatus described in connection with fig. 2-6.
It should also be noted that the exemplary embodiments mentioned in this specification describe some methods or systems based on a series of steps or devices. However, the present specification is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
Above, only the specific implementation manner of the present specification is provided, and it is clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present disclosure, and these modifications or substitutions should be covered within the scope of the present disclosure.

Claims (15)

1. A method for processing a theme domain, the method comprising:
in response to a dragging operation aiming at a target subject field in a subject field display interface, determining a subject field to be moved which is overlapped with the target subject field in the subject field display interface;
calculating the distance to be moved of the subject domain to be moved along the specified direction;
and moving the subject domain to be moved along the specified direction based on the distance to be moved so as to ensure that the moved subject domain to be moved and the target subject domain are not overlapped.
2. The method of claim 1, further comprising:
judging whether other theme domains overlapped with the moved theme domain to be moved exist in the theme domain display interface to obtain a judgment result;
and if the judgment result is yes, taking the moved theme domain to be moved as a target theme domain, and returning to the theme domain to be moved which is determined to be overlapped with the target theme domain in the theme domain display interface.
3. The method of claim 1, wherein the subject area is characterized by a rectangle, and wherein the determining the subject area to be moved that overlaps the target subject area in the subject area display interface comprises:
for each non-target subject area in the subject area display interface except the target subject area, performing the following steps:
calculating a target distance between the target subject field and the non-target subject field along the specified direction based on the moved first position coordinates of the target subject field and the second position coordinates of the non-target subject field;
obtaining a side length sum value according to the first side length of the target subject domain and the second side length of the non-target subject domain;
and if the sum of the side lengths is greater than the target distance, determining that the non-target subject domain is a subject domain to be moved which is overlapped with the target subject domain.
4. The method of claim 3, wherein calculating the target distance between the target subject area and the non-target subject area along the specified direction based on the moved first location coordinate of the target subject area and the moved second location coordinate of the non-target subject area comprises:
calculating a first distance between the first position coordinate and the second position coordinate;
determining an included angle between a first direction and the specified direction based on the first position coordinate and the second position coordinate, wherein the first direction is a direction in which a straight line is located and is determined based on the first position coordinate and the second position coordinate;
and multiplying the first distance by the cosine value of the included angle to obtain the target distance.
5. The method of claim 4, wherein the rectangle comprises a first side in a first direction and a second side in a second direction, the first direction and the second direction being perpendicular;
if the specified direction is parallel to the first direction, the first side length is the length of the first side of the target subject domain, and the second side length is the length of the first side of the non-target subject domain;
if the specified direction is parallel to the second direction, the first side length is the length of a second side of the target subject area, and the second side length is the length of a second side of the non-target subject area.
6. The method of claim 3, wherein the location coordinates are center coordinates of a subject field.
7. The method according to claim 3, wherein the calculating the distance to be moved of the subject field to be moved in a specified direction comprises:
and calculating the difference value of subtracting the target distance from the side length sum value, and taking the difference value as the distance to be moved.
8. A subject domain processing apparatus, characterized in that the apparatus comprises:
the theme zone to be moved determining module is used for responding to the dragging operation aiming at the target theme zone in the theme zone display interface and determining the theme zone to be moved which is overlapped with the target theme zone in the theme zone display interface;
the distance to be moved calculation module is used for calculating the distance to be moved of the theme zone to be moved along the specified direction;
and the moving module is used for moving the theme zone to be moved along the specified direction based on the distance to be moved so as to ensure that the moved theme zone to be moved is not overlapped with the target theme zone.
9. The apparatus of claim 8, further comprising:
the judging module is used for judging whether other theme domains overlapped with the moved theme domain to be moved exist in the theme domain display interface or not to obtain a judging result;
and a returning module, configured to, if the determination result is yes, take the moved subject area to be moved as a target subject area, and return the subject area to be moved determined to be overlapped with the target subject area in the subject area display interface.
10. The apparatus of claim 8, wherein the theme zone is characterized by a rectangle, and wherein the to-be-moved theme zone determining module is configured to perform the following steps for each non-target theme zone in the theme zone display interface except for the target theme zone:
calculating a target distance between the target subject field and the non-target subject field along the specified direction based on the moved first position coordinates of the target subject field and the second position coordinates of the non-target subject field;
obtaining a side length sum value according to the first side length of the target subject domain and the second side length of the non-target subject domain;
and if the sum of the side lengths is greater than the target distance, determining that the non-target subject domain is a subject domain to be moved which is overlapped with the target subject domain.
11. The apparatus according to claim 10, wherein the to-be-moved subject domain determining module is specifically configured to:
calculating a first distance between the first position coordinate and the second position coordinate;
determining an included angle between a first direction and the specified direction based on the first position coordinate and the second position coordinate, wherein the first direction is a direction in which a straight line is located and is determined based on the first position coordinate and the second position coordinate;
and multiplying the first distance by the cosine value of the included angle to obtain the target distance.
12. The apparatus of claim 10, wherein the rectangle comprises a first side in a first direction and a second side in a second direction, the first direction and the second direction being perpendicular;
if the specified direction is parallel to the first direction, the first side length is the length of the first side of the target subject domain, and the second side length is the length of the first side of the non-target subject domain;
if the specified direction is parallel to the second direction, the first side length is the length of a second side of the target subject area, and the second side length is the length of a second side of the non-target subject area.
13. The apparatus of claim 10, wherein the location coordinates are center coordinates of a subject field.
14. The apparatus of claim 10, wherein the to-be-moved distance calculating module is configured to calculate a difference between the sum of the side lengths and the target distance, and use the difference as the to-be-moved distance.
15. A subject domain processing apparatus, characterized in that the apparatus comprises: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the subject domain processing method of any of claims 1-7.
CN201910904334.4A 2019-09-24 2019-09-24 Method, device and equipment for processing theme domain Pending CN110780958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910904334.4A CN110780958A (en) 2019-09-24 2019-09-24 Method, device and equipment for processing theme domain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910904334.4A CN110780958A (en) 2019-09-24 2019-09-24 Method, device and equipment for processing theme domain

Publications (1)

Publication Number Publication Date
CN110780958A true CN110780958A (en) 2020-02-11

Family

ID=69383785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910904334.4A Pending CN110780958A (en) 2019-09-24 2019-09-24 Method, device and equipment for processing theme domain

Country Status (1)

Country Link
CN (1) CN110780958A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140101581A1 (en) * 2012-10-08 2014-04-10 Huawei Device Co., Ltd Touchscreen Apparatus User Interface Processing Method and Touchscreen Apparatus
CN106708477A (en) * 2015-07-20 2017-05-24 鸿合科技有限公司 Inductive control moving method and apparatus
CN107168696A (en) * 2017-04-18 2017-09-15 华南理工大学 The automatic optimization method of graphic programming control layout

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140101581A1 (en) * 2012-10-08 2014-04-10 Huawei Device Co., Ltd Touchscreen Apparatus User Interface Processing Method and Touchscreen Apparatus
CN106708477A (en) * 2015-07-20 2017-05-24 鸿合科技有限公司 Inductive control moving method and apparatus
CN107168696A (en) * 2017-04-18 2017-09-15 华南理工大学 The automatic optimization method of graphic programming control layout

Similar Documents

Publication Publication Date Title
CN104574282B (en) Point cloud noise spot removes system and method
CN108920342B (en) Method and device for realizing data acquisition of application
CN106092085B (en) Air navigation aid and device
CN110231026A (en) In conjunction with the shop route recommendation method and device of location information
CN110221600A (en) Paths planning method, device, computer equipment and storage medium
CN105900121A (en) Methods for generating an activity stream
JP6869258B2 (en) Road name display method, device and storage medium
JP6995843B2 (en) Work management system and work management method
CN112790669A (en) Sweeping method and device of sweeper and storage medium
CN104809751A (en) Method and device for generating event group evolution diagram
CN113454640A (en) Method and system for object tracking using online learning
CN112561859A (en) Monocular vision-based steel belt drilling and anchor net identification method and device for anchoring and protecting
CN103034866B (en) A kind of target identification method, Apparatus and system
WO2012126230A1 (en) Method and device for positioning traffic event information
CN106096899A (en) A kind of Logistics Distribution Method, mobile terminal and system
CN110780958A (en) Method, device and equipment for processing theme domain
CN113159457A (en) Intelligent path planning method and system and electronic equipment
CN103809954A (en) Method and device for realizing interface element selection
CN110287394B (en) Website resource crawling method and device, computer equipment and storage medium
CN108920343B (en) Data processing method and device
CN112001987B (en) Polygonal clipping method and device, electronic equipment and storage medium
US20160275088A1 (en) Packaged searching system and method
CN111240622A (en) Drawing method and device
CN111736748B (en) Data processing method and device based on map information and electronic equipment
CN109685414A (en) Order information confirmation method, device, electronic equipment and readable storage medium storing program for executing

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200211