Summary of the invention
The application's is designed to provide a kind of method and apparatus that bullet frame is shown, by adjusting related to current text frame
The position of the bullet frame of connection makes the information shown in the bullet frame position and the second bullet frame of the first bullet frame associated with Text Entry
The position of element be not overlapped, to ensure that the correctness of user's input content, improves the working efficiency of user.
The technical solution of the application is as follows:
A method of it playing frame and shows, which comprises
It is shown in the bullet frame position of device end acquisition the first bullet frame associated with Text Entry and the second bullet frame
The position of information element;
The device end is according to the information element shown in the bullet frame position of the first bullet frame and the second bullet frame
Position, judge in the bullets frame and the second bullet frame of the first bullet frame the information element that shows with the presence or absence of being overlapped;
If it does, the device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame
It sets, so that the information element shown in the bullet frame of the first bullet frame and the second bullet frame is no longer overlapped.
The information element shown in the second bullet frame is that the information inputted in the Text Entry according to user produces
Raw recommending terms, described second plays the display area that frame is the recommending terms;The first bullet frame is the user in institute
State the prompt input display area of used input method when inputting information in Text Entry.
The device end obtains the bullet frame position that associated with current text frame first plays frame and shows in the second bullet frame
The position of the information element shown, specifically:
The device end obtains the coordinate set for the bullet frame position that associated with current text frame described first plays frame
With the coordinate set of the position of the information element shown in the second bullet frame;
The device end is according to the information element shown in the bullet frame position of the first bullet frame and the second bullet frame
Position, judge that the information element that shows is with the presence or absence of being overlapped in the bullets frame and the second bullet frame of the first bullet frame, specifically
Are as follows:
The device end is shown according in the coordinate set and the second bullet frame of the bullet frame position of the first bullet frame
Information element position coordinate set whether there is intersection, judge it is described first play frame bullet frame and it is described second bullet frame in
Information element with the presence or absence of overlapping.
The device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame, so that institute
The information element shown in the bullet frame and the second bullet frame of the first bullet frame is stated no longer to be overlapped, specifically:
The device end is shown according in the coordinate set and the second bullet frame of the bullet frame position of the first bullet frame
Information element position coordinate set generate the first adjustment distance;
The device end adjusts the described first bullet frame position or described second for playing frame according to the first adjustment distance
The bullet frame position of frame is played, so that described first plays the information element in the coordinate set and the second bullet frame of the bullet frame position of frame
The coordinate set of position there is no intersections.
The device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame, so that institute
It states the information element shown in the bullet frame and the second bullet frame of the first bullet frame to be no longer overlapped, also specifically:
The device end obtains the coordinate set for the bullet frame position that described second plays frame;
The bullet frame of the coordinate set for the bullet frame position that the device end plays frame according to described first and the second bullet frame
Coordinate set generates second adjustment distance;
The device end adjusts the described first bullet frame position or described second for playing frame according to the second adjustment distance
The bullet frame position of frame is played, so that the bullet frame position that the described first coordinate set for playing the bullet frame position of frame plays frame with described second
There is no intersections for coordinate set.
A kind of device end, the device end include:
Module is obtained, is shown for obtaining in the bullet frame position and the second bullet frame that associated with Text Entry first plays frame
The position of the information element shown;
Judgment module, for according to the information element shown in the bullet frame position of the first bullet frame and the second bullet frame
Position, judge in the bullets frame and the second bullet frame of the first bullet frame the information element that shows with the presence or absence of being overlapped;
Module is adjusted, if the information element shown in the bullet frame of the first bullet frame and the second bullet frame has weight
It is folded, for adjusting the described first bullet frame position for playing frame position or the second bullet frame for playing frame, so that described first plays frame
The information element shown in frame and the second bullet frame is played no longer to be overlapped.
The information element shown in the second bullet frame is that the information inputted in the Text Entry according to user produces
Raw recommending terms, described second plays the display area that frame is the recommending terms;The first bullet frame is the user in institute
State the prompt input display area of used input method when inputting information in Text Entry.
The acquisition module, is specifically used for:
The coordinate set and second for obtaining the bullet frame position that associated with current text frame described first plays frame plays in frame
The coordinate set of the position of the information element of display;
The judgment module, is specifically used for:
According to the information element shown in the coordinate set of the bullet frame position of the first bullet frame and the second bullet frame
The coordinate set of position whether there is intersection, judge that the information element in the bullet frame and the second bullet frame of the first bullet frame is
It is no to there is overlapping.
The adjustment module, is specifically used for:
According to the information element shown in the coordinate set of the bullet frame position of the first bullet frame and the second bullet frame
The coordinate set of position generates the first adjustment distance;
The described first bullet frame position for playing frame position or the second bullet frame for playing frame is adjusted according to the first adjustment distance
It sets, so that described first plays the coordinate of the coordinate set of the bullet frame position of frame and the position of the information element in the second bullet frame
There is no intersections for set.
The adjustment module, also particularly useful for:
Obtain the coordinate set for the bullet frame position that described second plays frame;
The bullet frame coordinate set of the coordinate set for the bullet frame position for playing frame according to described first and the second bullet frame generates
Second adjustment distance;
The described first bullet frame position for playing frame position or the second bullet frame for playing frame is adjusted according to the second adjustment distance
It sets, so that the coordinate set for the bullet frame position that the described first coordinate set for playing the bullet frame position of frame plays frame with described second is no longer
There is intersection.
A method of it playing frame and shows, which comprises
Device end obtains the frame position and second that plays that associated with Text Entry first plays frame and plays the bullet frame position of frame
It sets;
The frame position and described second that plays that the device end plays frame according to described first plays the bullet frame position of frame, judges institute
The frame and described second that plays for stating the first bullet frame plays the bullet frame of frame with the presence or absence of overlapping;
If it does, the device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame
It sets, so that the bullet frame of the bullet frame of the first bullet frame and the second bullet frame is no longer overlapped.
Described second plays the display area that frame is recommending terms;The first bullet frame is the user in the text input
The prompt of used input method inputs display area when inputting information in frame.
Device end obtains the frame position and second that plays that associated with Text Entry first plays frame and plays the bullet frame position of frame
It sets, specifically:
The device end obtains the coordinate set for the bullet frame position that associated with current text frame described first plays frame
The coordinate set for the bullet frame position for playing frame with second;
The frame position and described second that plays that the device end plays frame according to described first plays the bullet frame position of frame, judges institute
The bullet frame of the bullet frame and the second bullet frame of stating the first bullet frame whether there is overlapping, specifically:
The bullet frame of the coordinate set for the bullet frame position that the device end plays frame according to described first and the second bullet frame
The coordinate set of position whether there is intersection, and the bullet frame of the bullet frame and the second bullet frame that judge the first bullet frame whether there is
Overlapping.
The device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame, so that institute
The bullet frame of the bullet frame and the second bullet frame of stating the first bullet frame is no longer overlapped, specifically:
The bullet frame of the coordinate set for the bullet frame position that the device end plays frame according to described first and the second bullet frame
The coordinate set of position generates third and adjusts distance;
The device end adjusts distance according to the third and adjusts the described first bullet frame position or described second for playing frame
The bullet frame position of frame is played, so that the bullet frame position that the described first coordinate set for playing the bullet frame position of frame plays frame with described second
There is no intersections for coordinate set.
A kind of device end, the device end include:
Module is obtained, plays the bullet of frame for obtaining the frame position and second that plays that associated with Text Entry first plays frame
Frame position;
Judgment module, the frame position and described second that plays for playing frame according to described first play the bullet frame position of frame, judgement
Described first frame and described second that plays for playing frame plays the bullet frame of frame with the presence or absence of overlapping;
Module is adjusted, if described first plays the bullet frame for playing frame and the second bullet frame of frame in the presence of overlapping, for adjusting
Described first plays playing frame position or described second playing the bullet frame position of frame for frame, so that described first plays the bullet frame and described the of frame
The bullet frame of two bullet frames is no longer overlapped.
Described second plays the display area that frame is recommending terms;The first bullet frame is the user in the text input
The prompt of used input method inputs display area when inputting information in frame.
The acquisition module, is specifically used for:
The coordinate set and second for obtaining the bullet frame position that associated with current text frame described first plays frame plays frame
Play the coordinate set of frame position;
The judgment module, is specifically used for:
The coordinate set of the bullet frame position of the coordinate set for the bullet frame position for playing frame according to described first and the second bullet frame
It closes and whether there is intersection, the frame and described second that plays for judging that described first plays frame plays the bullet frame of frame with the presence or absence of overlapping.
The adjustment module, is specifically used for:
The coordinate set of the bullet frame position of the coordinate set for the bullet frame position for playing frame according to described first and the second bullet frame
Symphysis adjusts distance at third;
The bullet frame position that frame is played apart from the bullet frame position or described second for adjusting the first bullet frame is adjusted according to the third
It sets, so that the coordinate set for the bullet frame position that the described first coordinate set for playing the bullet frame position of frame plays frame with described second is no longer
There is intersection.
The application is shown in the bullet frame position and the second bullet frame by obtaining the first bullet frame associated with Text Entry
The position of information element judge that the bullets frame of the first bullet frame and described second plays the information element that shows in frame and whether there is
Overlapping, if it does, the device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame,
So that the information element shown in the bullet frame of the first bullet frame and the second bullet frame is no longer overlapped, to ensure that user is defeated
The correctness for entering content, improves the working efficiency of user, and user experience is good.
Specific embodiment
Below in conjunction with the attached drawing in the application, clear, complete description is carried out to the technical solution in the application, is shown
So, described embodiment is a part of the embodiment of the application, instead of all the embodiments.Based on the implementation in the application
Example, the other embodiments that those of ordinary skill in the art obtain, shall fall in the protection scope of this application.
As shown in Fig. 2, the described method comprises the following steps for a kind of flow chart for playing frame and showing of the application:
Step 201, the bullet frame position and second that device end obtains that associated with Text Entry first plays frame plays frame
The position of the information element of middle display.
Used input method mentions when the first bullet frame inputs information for the user in the Text Entry
Show input display area, can also for user current text frame input when generate can be formed on device end cover
Display area, specific described first play frame it is as shown in Figure 13, the information element shown in the second bullet frame be according to
The recommending terms that the information that family inputs in the Text Entry generates, described second plays the display that frame is the recommending terms
Region, specific described second play frame it is as shown in Figure 12, the information element shown in the second bullet frame be specifically as follows as
Shown in FIG. 1 second plays the text in frame.
Wherein, on the display layer that the described first display layer for playing frame plays frame described second.
Indicate existing in case of frame overlapping is played on the display layer that described first display layer for playing frame plays frame described second
As then the first bullet frame is covered on the second bullet frame, a kind of bullet frame display schematic diagram as shown in Figure 1,1 is ought be above
This input frame, 2 and 3 be bullet frame associated with current text frame, specifically, 2 be the display area of recommending terms, i.e. the second bullet
The display area of frame, text therein are the information element shown in the second bullet frame, and 3 is in Text Entry input information
The prompt of the input method of Shi Caiyong inputs display area, i.e., first plays the display area of frame.
The device end obtains the bullet frame position that associated with current text frame first plays frame and shows in the second bullet frame
The position of the information element shown, specifically:
The device end obtains the coordinate set for the bullet frame position that associated with current text frame described first plays frame
With the coordinate set of the position of the information element shown in the second bullet frame.
The display screen of device end has corresponding coordinate system, and playing frame is shown on the screen according to the coordinate system
's.One plays what frame was made of information element, and information element constitutes the content for playing and showing in frame, plays the information element in frame
And shown on the screen according to the coordinate system.One bullet frame covers a part in screen, plays the position of frame
A coordinate set has been corresponded to, the corresponding coordinate set of frame has been played and is able to reflect the position for playing frame, play the information element in frame
A part in screen is equally covered, the information element in frame is played and has also corresponded to a coordinate set, play the information word in frame
The coordinate set of element is able to reflect the position of the information element in the bullet frame.
Step 202, the device end is played in frame according to the bullets frame position of the first bullet frame and described second and is shown
The position of information element judges the information element shown in the bullet frame and the second bullet frame of the first bullet frame with the presence or absence of weight
It is folded, if it does, executing step 203;If it does not exist, then terminating process.
The device end is according to the information element shown in the bullet frame position of the first bullet frame and the second bullet frame
Position, judge that the information element that shows is with the presence or absence of being overlapped in the bullets frame and the second bullet frame of the first bullet frame, specifically
Are as follows:
The device end is shown according in the coordinate set and the second bullet frame of the bullet frame position of the first bullet frame
Information element position coordinate set whether there is intersection, judge it is described first play frame bullet frame and it is described second bullet frame in
Information element with the presence or absence of overlapping.
Described first plays the position of the information element of the coordinate set of the position of frame and the display in the second bullet frame
Coordinate set there are intersection show the first bullet frame with second play the information word that shows in frame and be known as overlapping part, can make
User can not see the information element shown in the second bullet frame clearly.
Specifically as shown in Figure 1, since the content on the page is that (Hypertext Markup Language surpasses based on html
Text mark up language) generate, the first bullet frame and the second bullet frame in the page are based on a kind of div (html label, for text
Shelves segmentation be independent, different parts) or iframe (a kind of html label, effect are the document shown in document, Huo Zhefu
Dynamic frame) generate, therefore, with the presence or absence of except institute in the frame region that detection first plays frame after the first bullet frame is formed
Other for stating except the html element of the first bullet frame play the html element of frames it may determine that described first playing frame to described the out
The two html elements for playing in frame form covering and overlapping, i.e., the bullet frame of the described first bullet frame is to the letter shown in the second bullet frame
Breath element stroke blocks.
Step 203, the device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame
It sets, so that the information element shown in the bullet frame of the first bullet frame and the second bullet frame is no longer overlapped.
The device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame, so that institute
The information element shown in the bullet frame and the second bullet frame of the first bullet frame is stated no longer to be overlapped, specifically:
The device end is shown according in the coordinate set and the second bullet frame of the bullet frame position of the first bullet frame
Information element position coordinate set generate the first adjustment distance;
The device end adjusts the described first bullet frame position or described second for playing frame according to the first adjustment distance
The bullet frame position of frame is played, so that described first plays the information element in the coordinate set and the second bullet frame of the bullet frame position of frame
The coordinate set of position there is no intersections.
Wherein, the bullet frame position and described second that the first adjustment distance is specifically as follows that described first plays frame plays in frame
The whole distance of most minor that is no longer overlapped of information element, the bullet that certain the first adjustment distance can also play frame for described first
Other adjustment distances that information element in frame position and the second bullet frame is no longer overlapped, specific adjustment distance can basis
Actual conditions and it needs to be determined that, but it is all make it is described first play frame play frame position and it is described second play frame in information element
The adjustment distance being no longer overlapped belongs to the protection scope of the application.
Specifically, the boundary coordinate set for the position that the device end plays frame according to described first and described second plays frame
The boundary coordinate set of the position of the information element of middle display generates an adjustment vector, and the device end is according to the adjustment
Vector adjusts the position of the position that described first plays frame or the second bullet frame, so that described first plays the coordinate set of the position of frame
There is no intersections for the position coordinates set of the information element shown in conjunction and the second bullet frame.
The device end can individually adjust one of bullet frame when being adjusted to bullet frame, can also be to two
Frame is played to be adjusted simultaneously.
After being adjusted according to the first adjustment distance, due to what is shown in the bullet frame position of the first bullet frame and the second bullet frame
Information element can change with the content inputted in text box, and the first overlay area for playing the bullet frame position of frame may
The information element shown in the second bullet of covering frame again, the coordinate set for the bullet frame position that device end plays frame again according to first
The bullet frame position or second of the first bullet frame is constantly adjusted with the coordinate set of the position of information element shown in the second bullet frame
The bullet frame position for playing frame can play frame in guarantee first by above-mentioned method of adjustment and not cover the information shown in the second bullet frame
Under the premise of element, described first gross area for playing frame and the second bullet frame occupancy device end display screen is minimized.
The bullet frame position and second for needing to play frame according to first by the method that the first adjustment distance is adjusted play in frame
The position of the information element of display being adjusted constantly, can generate a large amount of calculating in this way, and equipment end can be occupied when calculating
The resource at end, therefore, the application, which also proposed through the method for adjustment of second adjustment distance, adjusts the first bullet frame or institute
State the second bullet frame so that the first bullet frame or the second bullet frame only carries out primary adjustment can be to avoid a bullet occurs again
What the position of the information element shown in the bullet frame position of frame and the second bullet frame overlapped shows, and the specific method is as follows:
The device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame, so that institute
It states the information element shown in the bullet frame and the second bullet frame of the first bullet frame to be no longer overlapped, also specifically:
The device end obtains the coordinate set for the bullet frame position that described second plays frame;
The bullet frame of the coordinate set for the bullet frame position that the device end plays frame according to described first and the second bullet frame
Coordinate set generates second adjustment distance;
The device end adjusts the described first bullet frame position or described second for playing frame according to the second adjustment distance
The bullet frame position of frame is played, so that the bullet frame position that the described first coordinate set for playing the bullet frame position of frame plays frame with described second
There is no intersections for coordinate set.
Wherein, the bullet played in frame position and the second bullet frame that the second adjustment distance can play frame for described first
The whole distance of most minor that frame is no longer overlapped, bullet frame position that certain second adjustment distance can also play frame for described first and
Other adjustment distances that the bullets frame position of the second bullet frame is no longer overlapped, it is specific adjust distance can according to the actual situation with
It needs to be determined that but all bullets frame positions for making the first bullet frame and described second play frame the tune that is no longer overlapped of bullet frame position
Whole distance belongs to the protection scope of the application.
Specifically, the boundary coordinate set and described second for the bullet frame position that the device end plays frame according to described first
The boundary coordinate set for playing the bullet frame position of frame generates an adjustment vector, and the device end is adjusted according to the adjustment vector
Described first plays the bullet frame position for playing frame position or the second bullet frame of frame, so that described first plays the seat of the bullet frame position of frame
There is no intersections for mark set and the bullet frame position coordinates set of the second bullet frame.
Which kind of variation occurs by the information no matter above method inputs in text box, first, which plays frame and second, plays frame not
There can be covering phenomenon again, need to only carry out primary adjustment to the first bullet frame or the second bullet frame and just be avoided that the first bullet frame and second plays frame
Occur covering, overlapping phenomenon again, therefore does not need to judge again after the position of the first bullet frame and the second bullet frame changes
First plays the position coordinates of frame and the second bullet frame with the presence or absence of intersection, and device end can be made to avoid becoming due to playing frame position
It is a large amount of brought by changing to calculate.
The application is shown in the bullet frame position and the second bullet frame by obtaining the first bullet frame associated with Text Entry
The position of information element judge that the bullets frame of the first bullet frame and described second plays the information element that shows in frame and whether there is
Overlapping, if it does, the device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame,
So that the information element shown in the bullet frame of the first bullet frame and the second bullet frame is no longer overlapped, to ensure that user is defeated
The correctness for entering content, improves the working efficiency of user, and user experience is good.
When the first bullet frame associated with Text Entry and the second bullet outline now, described first plays the bullet frame position of frame
It is to have overlapping, covering phenomenon with the bullet frame position of the second bullet frame, but described first plays the bullet frame position of frame not
There is overlapping, covering phenomenon with the position of the information element shown in the second bullet frame, but with defeated in Text Entry
The variation of the text entered, second, which plays position shared by the information element shown in frame, can also change, and play in frame and show second
After position shared by the information element shown can change, the described first bullet frame position for playing frame may play frame to described second
The information element of middle display generates overlapping, covering phenomenon, and in order to avoid the generation of this case, the application also proposed a kind of bullet
Frame display methods, the described method comprises the following steps:
Step 301, the bullet frame position and second that device end obtains that associated with Text Entry first plays frame plays frame
Bullet frame position.
Device end obtains the frame position and second that plays that associated with Text Entry first plays frame and plays the bullet frame position of frame
It sets, specifically:
The device end obtains the coordinate set for the bullet frame position that associated with current text frame described first plays frame
The coordinate set for the bullet frame position for playing frame with second.
Wherein, described second the display area that frame is recommending terms is played;The first bullet frame is the user in the text
The prompt of used input method inputs display area when inputting information in this input frame, and described first plays the display layer of frame in institute
On the display layer for stating the second bullet frame.
Step 302, the frame position and described second that plays that the device end plays frame according to described first plays the bullet frame position of frame
It sets, the frame and described second that plays for judging that described first plays frame plays the bullet frame of frame with the presence or absence of overlapping.
The frame position and described second that plays that the device end plays frame according to described first plays the bullet frame position of frame, judges institute
The bullet frame of the bullet frame and the second bullet frame of stating the first bullet frame whether there is overlapping, specifically:
The bullet frame of the coordinate set for the bullet frame position that the device end plays frame according to described first and the second bullet frame
The coordinate set of position whether there is intersection, and the bullet frame of the bullet frame and the second bullet frame that judge the first bullet frame whether there is
Overlapping.If it does, the bullet frame position for showing that the bullets frame position of the first bullet frame plays frame to described second produces covering, again
Folded phenomenon, in order to avoid being changed due to the information inputted in Text Entry, first plays the bullet frame position of frame and the second bullet
The information element position shown in frame also change caused by first play frame bullet frame position may to second play frame in show
Show information element position stroke covering, overlapping phenomenon, then follow the steps 303;If it does not exist, then terminating process.
Step 303, the device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame
It sets, so that the bullet frame of the bullet frame of the first bullet frame and the second bullet frame is no longer overlapped.
The device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame, so that institute
The bullet frame of the bullet frame and the second bullet frame of stating the first bullet frame is no longer overlapped, specifically:
The bullet frame of the coordinate set for the bullet frame position that the device end plays frame according to described first and the second bullet frame
The coordinate set of position generates third and adjusts distance;
The device end adjusts distance according to the third and adjusts the described first bullet frame position or described second for playing frame
The bullet frame position of frame is played, so that the bullet frame position that the described first coordinate set for playing the bullet frame position of frame plays frame with described second
There is no intersections for coordinate set.
Wherein, the frame position and described second that plays that the third adjustment distance is specifically as follows that described first plays frame plays frame
The whole distance of most minor that frame position is no longer overlapped is played, the bullet frame that the certainly described third adjustment distance can also play frame for described first
Other adjustment distances that position and the bullet frame position of the second bullet frame are no longer overlapped, specific adjustment distance can be according to reality
Situation and it needs to be determined that, but it is all make described first play frame play frame position and described second play frame bullet frame position it is no longer heavy
Folded adjustment distance belongs to the protection scope of the application.
Specifically, the boundary coordinate set and described second for the bullet frame position that the device end plays frame according to described first
The boundary coordinate set for playing the bullet frame position in frame generates an adjustment vector, and the device end is according to the adjustment vector tune
Whole described first plays the position of the position of frame or the second bullet frame, so that described first plays coordinate set and the institute of the position of frame
Stating the coordinate set of the bullet frame position of the second bullet frame, there is no intersections.
The device end can individually adjust one of bullet frame when being adjusted to bullet frame, can also be to two
Frame is played to be adjusted simultaneously.
Since the information element that shows plays without departing from second the bullet frame display area of frame in the second bullet frame, according to upper method
After being adjusted, the bullet frame position generation that the described first bullet frame position for playing frame would not play frame with described second again is covered, again
The information element shown in the second bullet frame, above-mentioned side are blocked in folded phenomenon, the bullet frame position that the first bullet frame would not also occur
Method is avoided after the information element shown in there is blocking the second bullet frame in adjustment by the means that pre-adjust
Situation.
In order to which the technical idea of the application is further described, now in conjunction with specific application scenarios, to the technical side of the application
Case is illustrated.
As shown in Figure 1, device end passes through input method bullet frame 3 when text box 1 inputs information, recommendation information bullet frame 2 is
User provides corresponding recommendation information, and device end obtains the coordinate set and recommendation information bullet that input method bullet frame 3 is occupied
The coordinate set that the information element of frame 2 is occupied, the coordinate set to be occupied by the input method bullet frame 3 of acquisition and recommendation
There are intersections for the coordinate set that the information element of information bullet frame 2 is occupied, and provide at this time in recommendation information bullet frame 2 for user
Part recommendation information can be entered method bullet frame 3 and cover, and make user that can not see the portion provided in recommendation information bullet frame 2 for user
Divide recommendation information.
If the information of user's input is text, and the length of a text is unit 1, and device end is inputted according to acquisition
The coordinate set that the information element of coordinate set and recommendation information bullet frame 2 that method bullet frame 3 is occupied is occupied is judged to need
Move right 2 units or the recommendation information bullet frame 2 of input method bullet frame 3 to 2 unit distances of left can be made into input method
It plays frame 3 and is not blocking the information element in recommendation information bullet frame 2, the device end is by the input method bullet frame 3 to right translation 2
A unit (as shown in Figure 4), or by recommendation information bullet frame 2 to two unit distances of left.
When the information that text box 1 inputs changes, device end obtains current 3 occupy-places of input method bullet frame again
The coordinate set that the information element of the coordinate set and recommendation information bullet frame 2 set is occupied, and intersection is judged whether there is, such as
There are intersections for fruit, i.e., when input method bullet frame 3 or recommendation information bullet frame 2 occur to cover phenomenon again, device end is according to input method
The coordinate set that the information element of coordinate set and recommendation information bullet frame 2 that bullet frame 3 is occupied is occupied determines input method
The most short motion-vector of frame 3 or recommendation information bullet frame 2 is played, the device end is according to the most short mobile input method of motion-vector
Play frame 3 or recommendation information bullet frame 2 so that the information element of input method bullet frame 3 and recommendation information bullet frame 2 there is no covering phenomenons.
The device end can also obtain the position coordinates set of recommendation information bullet frame 2 and the position of input method bullet frame 3
Coordinate set exists in the position coordinates set for the position coordinates set and input method bullet frame 3 for judging recommendation information bullet frame 2 and hands over
When collection, the device end is according to the position coordinates set of recommendation information bullet frame 2 and the position coordinates set tune of input method bullet frame 3
The position of whole recommendation information bullet frame 2 or input method bullet frame 3, so that the position of the recommendation information bullet frame 2 and input method bullet frame 3 is sat
There is no intersections for mark set.
After the device end is adjusted according to the coordinate of the position of the recommendation information bullet frame 2 and input method bullet frame 3,
Which kind of variation occurs for the information no matter inputted in text box 1, and the recommendation information bullet frame 2 and input method bullet frame 3 all be there will be no
Cover phenomenon, it is only necessary to according to recommendation information bullet described in the coordinate pair of the position of the recommendation information bullet frame 2 and input method bullet frame 3
Frame 2 and input method bullet frame 3, which adjust, is once just avoided that covering occurs again for the recommendation information bullet frame 2 and input method bullet frame 3 now
As, therefore corresponding position seat is not being reacquired when the position of recommendation information bullet frame 2 and input method bullet frame 3 changes
Mark, and coordinate is judged with the presence or absence of intersection, it avoids due to judging coordinate with the presence or absence of intersection, and determining motion-vector again
The a large amount of calculating generated.
Based on similarly applying conceiving with the above method, present applicant proposes a kind of device ends, and as described in Figure 5, this sets
Include: for terminal
Module 51 is obtained, is played in frame for obtaining the bullet frame position and second that associated with Text Entry first plays frame
The position of the information element of display;
Judgment module 52, for according to the information word shown in the bullet frame position of the first bullet frame and the second bullet frame
The position of element judges the information element shown in the bullet frame and the second bullet frame of the first bullet frame with the presence or absence of overlapping;
Module 53 is adjusted, if the information element shown in the bullet frame of the first bullet frame and the second bullet frame has weight
It is folded, for adjusting the described first bullet frame position for playing frame position or the second bullet frame for playing frame, so that described first plays frame
The information element shown in frame and the second bullet frame is played no longer to be overlapped.
The information element shown in the second bullet frame is that the information inputted in the Text Entry according to user produces
Raw recommending terms, described second plays the display area that frame is the recommending terms;The first bullet frame is the user in institute
State the prompt input display area of used input method when inputting information in Text Entry.
The acquisition module, is specifically used for:
The coordinate set and second for obtaining the bullet frame position that associated with current text frame described first plays frame plays in frame
The coordinate set of the position of the information element of display;
The judgment module, is specifically used for:
According to the information element shown in the coordinate set of the bullet frame position of the first bullet frame and the second bullet frame
The coordinate set of position whether there is intersection, judge that the information element in the bullet frame and the second bullet frame of the first bullet frame is
It is no to there is overlapping.
The adjustment module, is specifically used for:
According to the information element shown in the coordinate set of the bullet frame position of the first bullet frame and the second bullet frame
The coordinate set of position generates the first adjustment distance;
The described first bullet frame position for playing frame position or the second bullet frame for playing frame is adjusted according to the first adjustment distance
It sets, so that described first plays the coordinate of the coordinate set of the bullet frame position of frame and the position of the information element in the second bullet frame
There is no intersections for set.
The adjustment module, also particularly useful for:
Obtain the coordinate set for the bullet frame position that described second plays frame;
The bullet frame coordinate set of the coordinate set for the bullet frame position for playing frame according to described first and the second bullet frame generates
Second adjustment distance;
The described first bullet frame position for playing frame position or the second bullet frame for playing frame is adjusted according to the second adjustment distance
It sets, so that the coordinate set for the bullet frame position that the described first coordinate set for playing the bullet frame position of frame plays frame with described second is no longer
There is intersection.
The application is shown in the bullet frame position and the second bullet frame by obtaining the first bullet frame associated with Text Entry
The position of information element judge that the bullets frame of the first bullet frame and described second plays the information element that shows in frame and whether there is
Overlapping, if it does, the device end adjusts the described first bullet frame position for playing frame position or the second bullet frame for playing frame,
So that the information element shown in the bullet frame of the first bullet frame and the second bullet frame is no longer overlapped, to ensure that user is defeated
The correctness for entering content, improves the working efficiency of user, and user experience is good.
Based on similarly applying conceiving with the above method, the application also proposed a kind of device end, as described in Figure 6, should
Device end includes:
Module 61 is obtained, plays frame for obtaining the frame position and second that plays that associated with Text Entry first plays frame
Play frame position;
Judgment module 62, the frame position and described second that plays for playing frame according to described first play the bullet frame position of frame, sentence
The frame and described second that plays that described first plays frame that breaks plays the bullet frame of frame with the presence or absence of overlapping;
Module 63 is adjusted, if described first plays the bullet frame for playing frame and the second bullet frame of frame in the presence of overlapping, for adjusting
Whole described first plays playing frame position or described second playing the bullet frame position of frame for frame, so that described first plays the bullet frame of frame and described
The bullet frame of second bullet frame is no longer overlapped.
Described second plays the display area that frame is recommending terms;The first bullet frame is the user in the text input
The prompt of used input method inputs display area when inputting information in frame.
The acquisition module, is specifically used for:
The coordinate set and second for obtaining the bullet frame position that associated with current text frame described first plays frame plays frame
Play the coordinate set of frame position;
The judgment module, is specifically used for:
The coordinate set of the bullet frame position of the coordinate set for the bullet frame position for playing frame according to described first and the second bullet frame
It closes and whether there is intersection, the frame and described second that plays for judging that described first plays frame plays the bullet frame of frame with the presence or absence of overlapping.
The adjustment module, is specifically used for:
The coordinate set of the bullet frame position of the coordinate set for the bullet frame position for playing frame according to described first and the second bullet frame
Symphysis adjusts distance at third;
The bullet frame position that frame is played apart from the bullet frame position or described second for adjusting the first bullet frame is adjusted according to the third
It sets, so that the coordinate set for the bullet frame position that the described first coordinate set for playing the bullet frame position of frame plays frame with described second is no longer
There is intersection.
Through the above description of the embodiments, those skilled in the art can be understood that the application can be by
Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more
Good embodiment.Based on this understanding, the technical solution of the application substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which is stored in a storage medium, if including
Dry instruction is used so that a device end (can be mobile phone, personal computer, server or the network equipment etc.) executes sheet
Apply for method described in each embodiment.
The above is only the preferred embodiment of the application, it is noted that for the ordinary skill people of the art
For member, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications are also answered
Depending on the protection scope of the application.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment
It is distributed in the device of embodiment, corresponding change can also be carried out and be located in one or more devices different from the present embodiment.On
The module for stating embodiment can integrate in one, can also be deployed separately;It can be merged into a module, can also further tear open
It is divided into multiple submodule.Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
The above disclosure is just a few specific examples of the present application, still, the application is not limited to this, any ability
What the technical staff in domain can think variation should all fall into the protection scope of the application.