CN106371834A - Method and device for displaying bullet screen data - Google Patents

Method and device for displaying bullet screen data Download PDF

Info

Publication number
CN106371834A
CN106371834A CN201610772277.5A CN201610772277A CN106371834A CN 106371834 A CN106371834 A CN 106371834A CN 201610772277 A CN201610772277 A CN 201610772277A CN 106371834 A CN106371834 A CN 106371834A
Authority
CN
China
Prior art keywords
window
data
display
barrage data
barrage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610772277.5A
Other languages
Chinese (zh)
Other versions
CN106371834B (en
Inventor
徐晓明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou New Patio Network Information Technology Co Ltd
Original Assignee
Guangzhou New Patio Network 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 Guangzhou New Patio Network Information Technology Co Ltd filed Critical Guangzhou New Patio Network Information Technology Co Ltd
Priority to CN201610772277.5A priority Critical patent/CN106371834B/en
Publication of CN106371834A publication Critical patent/CN106371834A/en
Application granted granted Critical
Publication of CN106371834B publication Critical patent/CN106371834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a method and device for displaying bullet screen data. The method comprises the following steps: acquiring source data of multiple business objects; storing the source data of the multiple business objects into bullet screen data of a uniform format; generating a display window on a business window according to the window state of the business window; and displaying the bullet screen data on the display window. The content exhibition and other operations of the business window are not influenced by the displaying of the bullet screen data, so that the displaying and processing of each type of data in one window are avoided; and a user does not need to open multiple windows, so that the number of the windows is reduced, the coverage of a screen is avoided, and the other operations are not influenced.

Description

A kind of display packing of barrage data and device
Technical field
The present invention relates to the technical field of computer disposal, more particularly to a kind of display packing of barrage data and one kind The display device of barrage data.
Background technology
In some business scopes, in order to specification provides the provider of business object, the recipient of object of accepting business to exist Business Processing during processing business object, often specifies to be processed in some platform.
In this platform, due to various factors, such as national policy, process behavior etc., the business datum of business object is produced Raw impact, therefore, the business datum of platform meeting real-time processing business object.
Because the classification of business object is a lot, in each class, quantity now is also a lot, and its business datum is real-time Change, the recipient of the object that can lead to accept business can receive multiple source datas, and every kind of data is carried out in a window Display, process, so that user needs to open multiple windows, the quantity excessively easy cover screen of window, affect other operations.
Content of the invention
In view of the above problems, in order to solve the problems, such as easily other operations of impact during above-mentioned multiple source data display, this Bright embodiment proposes a kind of display packing of barrage data and a kind of display device of barrage data accordingly.
In order to solve the above problems, the embodiment of the invention discloses a kind of display packing of barrage data, comprising:
Obtain the source data of multiple business object;
The source data of described multiple business object is saved as the barrage data of consolidation form;
According to the Window state of vocational window, generate display window on described vocational window;
Show described barrage data in described display window.
Preferably, the step saving as the barrage data of consolidation form in the described source data by described multiple business object Afterwards, methods described also includes:
Judge whether the quantity of described barrage data exceedes default amount threshold;If so, then clear up sequentially in time Described barrage data, until quantity is down to described amount threshold.
Preferably, when described business object is stock certificate data, the source data of described business object includes structure number of selecting stocks According to, stock transaction data;
Described structured data of selecting stocks includes one or more following information:
Select stocks classification, the long code of stock, stock code, policy name, policing type, the selected time, selected pricing information, Rise speed;
Described stock transaction data includes one or more following information:
Unusual fluctuation type, unusual fluctuation time, unusual fluctuation numerical value, association stock certificate data;
The step of the described barrage data that described multiple source datas save as consolidation form includes:
Extract from described structured data of selecting stocks stock name, person's time, selected pricing information, in policy name one Plant or much information, save as barrage data;
Extract from described stock transaction data the association stock name of stock certificate data, unusual fluctuation classification, in unusual fluctuation numerical value One or more information, saves as barrage data.
Preferably, the described Window state according to vocational window, generates on described window and shows that the step of window includes:
Judge whether the Window state of vocational window meets default target window state;If so, then calculate described business Window can show the region of barrage data;
Generate display window according to described region on described vocational window;
Wherein, described target window state includes following one or more:
Window activation, the window of specified type, window maximized.
Preferably, the described step showing described barrage data in described display window includes:
Inquire about the window parameter of described display window;
According to described window parameter calculate display barrage data upper once refresh when target display location;
When refreshing described display window, show described barrage data in described target display location.
Preferably, described window parameter includes coordinate on the left of window, coordinate on the right side of window;
Described target display location includes coordinate on the left of target, coordinate on the right side of target, coordinate on the upside of target, sits on the downside of target Mark;
Described according to described window parameter calculate display barrage data upper once refresh when target display location Step include:
When the barrage data of display moves from left to right in a line or multirow, calculate the corresponding unit of described row and move Product between distance and the mobile number of times next time refreshing, obtains the displacement next time showing;
Add described displacement on the basis of coordinate on the left of described window, obtain coordinate on the left of target;
Add the display length of the barrage data of described display on the basis of coordinate on the left of described target, obtain target Right side coordinate;
Coordinate on the downside of coordinate on the upside of target, target is kept with current display position when front upper side coordinate, current downside Coordinate is equal.
Preferably, described according to described window parameter calculate display barrage data upper once refresh when target show Show that the step of position includes:
When described target display location exceedes described display window in moving direction part, forbid being showed more than described showing Show the part barrage data of window;
And/or,
When described target display location in moving direction well beyond described display window when, remove described barrage data;
And/or,
When described target display location exceedes described display window in the direction in addition to moving direction, by display Barrage data saves as barrage data to be shown.
Preferably, the described step showing described barrage data in described display window also includes:
Judge whether the data volume of the barrage data of described display window display shows less than the maximum of described display window Registration amount;
If so, then extract barrage data to be shown;
Described barrage data to be shown is added in described display window.
Preferably, the described step extracting barrage data to be shown includes:
Calculate the time difference between the joining day of barrage data to be shown and current time;
Judge that described time difference exceedes default time threshold;
If so, then abandon described barrage data to be shown;
If it is not, then extracting described barrage data to be shown.
Preferably, described described barrage data to be shown is added the step in described display window to include:
When the barrage data of display moves in the horizontal direction in a line or multirow, inquire about in described a line or multirow White space;
When described white space can accommodate described barrage data to be shown, described barrage data to be shown is added Carry out refreshing display to described row.
Preferably, also include:
When the trigger action for the barrage data of described display in display window is detected, in described vocational window The middle business datum showing described business object.
The embodiment of the invention also discloses a kind of display device of barrage data, comprising:
Source data acquisition module, for obtaining the source data of multiple business object;
Barrage data storage module, for saving as the barrage number of consolidation form by the source data of described multiple business object According to;
Display window generation module, for the Window state according to vocational window, generates aobvious on described vocational window Show window;
Barrage data disaply moudle, for showing described barrage data in described display window.
Preferably, also include:
Amount threshold judge module, whether the quantity for judging described barrage data exceedes default amount threshold;If It is then to call barrage data scrubbing module;
Barrage data scrubbing module, for clearing up described barrage data sequentially in time, until quantity is down to described number Amount threshold value.
Preferably, when described business object is stock certificate data, the source data of described business object includes structure number of selecting stocks According to, stock transaction data;
Described structured data of selecting stocks includes one or more following information:
Select stocks classification, the long code of stock, stock code, policy name, policing type, the selected time, selected pricing information, Rise speed;
Described stock transaction data includes one or more following information:
Unusual fluctuation type, unusual fluctuation time, unusual fluctuation numerical value, association stock certificate data;
Described barrage data storage module includes:
First preservation submodule, for extracting stock name, person's time, selected price from described structured data of selecting stocks One or more of information, policy name information, saves as barrage data;
Second preservation submodule, for extracting the stock name, different of association stock certificate data from described stock transaction data One or more of dynamic classification, unusual fluctuation numerical value information, saves as barrage data.
Preferably, described display window generation module includes:
Target window condition adjudgement submodule, whether the Window state for judging vocational window meets default target window Mouth state;If so, then call region calculating sub module;
Region calculating sub module, can show the region of barrage data for calculating described vocational window;
Generate submodule, for generating display window on described vocational window according to described region;
Wherein, described target window state includes following one or more:
Window activation, the window of specified type, window maximized.
Preferably, described barrage data disaply moudle includes:
Window parameter inquires about submodule, for inquiring about the window parameter of described display window;
Target display location calculating sub module, for calculating the barrage data of display at next according to described window parameter Target display location during secondary refreshing;
Refresh display sub-module, for when refreshing described display window, showing described bullet in described target display location Curtain data.
Preferably, described window parameter includes coordinate on the left of window, coordinate on the right side of window;
Described target display location includes coordinate on the left of target, coordinate on the right side of target, coordinate on the upside of target, sits on the downside of target Mark;
Described target display location calculating sub module includes as lower unit:
Displacement computing unit, for when the barrage data of display moves from left to right in a line or multirow, counting Calculate the product between described row corresponding unit displacement and the mobile number of times next time refreshing, obtain the shifting next time showing Dynamic distance;
Coordinate calculating unit on the left of target, for adding described displacement on the basis of coordinate on the left of described window, Obtain coordinate on the left of target;
Coordinate calculating unit on the right side of target, for adding the bullet of described display on the basis of coordinate on the left of described target The display length of curtain data, obtains coordinate on the right side of target;
Coordinate holding unit, for keeping current with current display position by coordinate on the downside of coordinate on the upside of target, target Upside coordinate, current downside coordinate are equal.
Preferably, described target display location calculating sub module includes:
Forbid display unit, for when described target display location exceedes described display window in moving direction part, Forbid being showed more than the part barrage data of described display window;
And/or,
Barrage data dump unit, in described target display location in moving direction well beyond described display window When, remove described barrage data;
And/or,
Barrage data resets unit, described for exceeding in the direction in addition to moving direction in described target display location During display window, the barrage data of display is saved as barrage data to be shown.
Preferably, described barrage data disaply moudle also includes:
Display number judging submodule, whether the data volume for judging the barrage data of described display window display is little Maximum display number in described display window;If so, then call barrage data extracting sub-module;
Barrage data extracting sub-module, for extracting barrage data to be shown;
Barrage data adds submodule, for adding described barrage data to be shown in described display window.
Preferably, described barrage data extracting sub-module includes:
Time difference calculating unit, for calculating the time between the joining day of barrage data to be shown and current time Difference;
Time threshold judging unit, for judging that described time difference exceedes default time threshold;If so, then call barrage Data discarding unit, if it is not, then call data extracting unit;
Barrage data discarding unit, for abandoning described barrage data to be shown;
Data extracting unit, for extracting described barrage data to be shown.
Preferably, described barrage data adds submodule to include:
White space query unit, for when the barrage data of display moves in the horizontal direction in a line or multirow, Inquire about the white space in described a line or multirow;
Row adding device, for when described white space can accommodate described barrage data to be shown, waiting to show by described The barrage data shown is added to described row and carries out refreshing display.
Preferably, also include:
Business datum display unit, for the triggering in the barrage data detecting for described display in display window In described vocational window, during operation, show the business datum of described business object.
The embodiment of the present invention includes advantages below:
The source data of multiple business object is saved as the barrage data of consolidation form by the embodiment of the present invention, simultaneously according to industry The Window state of business window, generates display window on vocational window, and shows barrage data in display window, due to adopting Demixing technology, barrage data display is in an independent transparent window, and be attached to above vocational window, therefore, The display of barrage data do not interfere with the content displaying of vocational window and other operations, it is to avoid every kind of data is in a window In carry out showing, process, user need not open multiple windows, decreases the quantity of window, it is to avoid cover screen, affects other behaviour Make.
Brief description
Fig. 1 is a kind of flow chart of steps of the display packing embodiment of barrage data of the present invention;
Fig. 2 is a kind of exemplary plot of barrage data of the embodiment of the present invention;
Fig. 3 is a kind of structured flowchart of the display device embodiment of barrage data of the present invention.
Specific embodiment
Understandable for enabling the above objects, features and advantages of the present invention to become apparent from, below in conjunction with the accompanying drawings and specifically real The present invention is further detailed explanation to apply mode.
With reference to Fig. 1, show a kind of flow chart of steps of the display packing embodiment of barrage data of the present invention, specifically may be used To comprise the steps:
Step 101, obtains the source data of multiple business object.
In actual applications, the embodiment of the present invention can apply in client, and this client can be with third-party clothes Business device or server cluster are connected, such as distributed system, and it can capture the business datum of business object in the network platform, network Platform is independent server or server cluster, for carrying out Business Processing to business object.
Can have different business objects in different business scopes, that is, embody the data of this domain feature.
For example, in the field of communications, business object can be communication data;In news media field, business object can Think news data;In search field, business object can be webpage;In financial field, business object can be stock Data, etc..
Although business object carries domain feature and different in different business scopes, but its essence is all several According to, for example, text data, view data, voice data, video data etc., relatively, and process to business object, essence It is all the process to data.
For making those skilled in the art more fully understand the embodiment of the present invention, in embodiments of the present invention, by stock certificate data A kind of example as business object illustrates.
In one example, for stock certificate data, the source data of business object can include selecting stocks structured data, stock is different Dynamic data etc..
Wherein, structured data of selecting stocks includes server and selects stocks structured data and structured data of locally selecting stocks in real time, both The data form of structured data of selecting stocks is consistent, and server structured data of selecting stocks is that server selects, and re-sends to client End, and structured data of locally selecting stocks in real time is then to specify, by user, formula of selecting stocks, and is then carried out according to the market data receiving Select stocks.
In this example, structured data of selecting stocks can include one or more following information:
1st, select stocks classification, including selecting stocks in real time, regularly select stocks, freely strategy is selected stocks, customized strategy is selected stocks, early warning etc..
2nd, the long code of stock, retention.
3rd, stock code, for example, sh600000.
4th, policy name, indicates it is the stock which strategy is elected.
5th, policing type, indicates it is the stock that strategy publicity where comes, for example, subscribes to strategy, local policy etc..
6th, it is selected in the time, indicate the time that this stock is chosen by strategy, for example, 10:32:15.
7th, it is selected in pricing information, including selected price character string, be selected in price value, price when indicating that this stock is selected in, Selected price character string is used for showing, is worth for participating in calculating.
8th, rise speed, the speed that rises when indicating that this stock is selected.
Additionally, stock transaction data can include one or more following information:
1st, unusual fluctuation type, indicates the classification of this unusual fluctuation, and for example, rocket launching (short time amount of increase is very big), high platform diving are (short Time drop range is very big), envelope limit-up, envelope limit down etc..
2nd, the unusual fluctuation time, indicate the time that this unusual fluctuation occurs, display format is " 08 10:20 ", wherein, " 08 " represents day Phase, " 10:20 " represents at 10 points 20 minutes.
3rd, unusual fluctuation numerical value, numerical value when indicating that this unusual fluctuation occurs, for example: classification is rocket launching, then value code rocket The amplitude of transmitting, for example: 2%
4th, stock certificate data, the stock certificate data associating with this unusual fluctuation are associated.
Certainly, the source data of above-mentioned business object is intended only as example, when implementing the embodiment of the present invention, can be according to reality Border situation arranges the source data of other business objects, and the embodiment of the present invention is not any limitation as to this.In addition, except above-mentioned business pair Outside the source data of elephant, those skilled in the art can also adopt the source data of other business objects, the present invention according to actual needs Embodiment is not also any limitation as to this.
Step 102, the source data of described multiple business object is saved as the barrage data of consolidation form.
In embodiments of the present invention, the source data of business object is converted to the barrage data of consolidation form, is saved in slow Rush in queue, then directly barrage data display out can be equivalent to once to be changed and just can repeatedly show, and without The time is spent to go to change into row format again, it is to avoid to carry out conversion in display and cause interim card.
Furthermore, it is possible to extract key message from source data, as barrage data display to user, it is possible to reduce displaying Data volume, it is to avoid user is interfered.
In implementing, barrage data can include following structure:
1st, the joining day, it is added to the time of buffering list as barrage data.
2nd, barrage content, is shown in the content of screen.
3rd, the business object of association, for example, stock certificate data.
In one example, for structured data of selecting stocks, stock name, Ren Xuanshi can be extracted from structured data of selecting stocks Between, selected one or more of pricing information, policy name information, save as barrage data.
Furthermore, current time can be recorded as the joining day;Stock name, person's time, selected valency will be taken One or more of lattice information, policy name information, between each field with separators such as spaces separately, forms a character String, as barrage content;Find out the stock certificate data of association according to stock code.
In another example, for stock mobile data, association stock certificate data can be extracted from stock transaction data Stock name, unusual fluctuation classification, one or more of unusual fluctuation numerical value information, save as barrage data.
Furthermore, current time can be recorded as the joining day;By stock name, unusual fluctuation classification, unusual fluctuation numerical value One or more of information, between each field with separators such as spaces separately, form a character string, as in barrage Hold;Find out the stock certificate data of association according to stock code.
For example, as shown in Fig. 2 " northern rare earth rocket launching 1.1% ", " Lanzhou the Yellow River rocket launching 2% " etc. are bullet Curtain data.
Certainly, the preserving type of above-mentioned barrage data is intended only as example, when implementing the embodiment of the present invention, can basis Practical situation arranges the preserving type of other barrage data, and the embodiment of the present invention is not any limitation as to this.In addition, except above-mentioned bullet Outside the preserving type of curtain data, those skilled in the art can also adopt the preservation side of other barrage data according to actual needs Formula, the embodiment of the present invention is not also any limitation as to this.
In one embodiment of the invention, after step 102 it can be determined that the quantity of barrage data whether exceed pre- If amount threshold;If so, then clear up described barrage data sequentially in time, until quantity is down to amount threshold.
For example, originally there are 100 barrage data inside buffering list, maximum quantity is set to 150, adds again now Article 100, barrage data, altogether just has 200 records, exceedes the maximum quantity 150 of setting, therefore, it can original the inside Article 100, in barrage data, after 50 barrage data being initially charged are fallen clearly so that adding new barrage data, buffering list is hit by a bullet The quantity of curtain data is 150.
Step 103, according to the Window state of vocational window, generates display window on described vocational window.
In implementing, client can provide the switch option of a barrage data, if this switch of user setup Option is open mode, then can Window state based on vocational window, generate display window on vocational window, conversely, If this switch option of user setup is closed mode, do not show barrage data.
It should be noted that this display window is generally transparent, its transparency (as 20%, 30%, 50% etc.) can be Default or user is adjusted, and the embodiment of the present invention is not any limitation as to this.
In one embodiment of the invention, step 103 can include following sub-step:
Sub-step s11, judges whether the Window state of vocational window meets default target window state;If so, then hold Row sub-step s12;
In embodiments of the present invention, target window state includes following one or more:
Window activation, the window of specified type, window maximized.
Wherein, window activation obtains focus also known as windows active, i.e. this window.
For stock certificate data, as shown in Fig. 2 the window of specified type can be analysis window, i.e. the k to stock certificate data The window that line, transaction data etc. are analyzed.
Sub-step s12, calculates the region that vocational window can show barrage data;
Sub-step s13, generates display window according to region on vocational window.
In order to avoid causing to block to vocational window, therefore, vocational window can be based on the division of teaching contents showing except permissible The region of display barrage data, Blocked portion as shown in Figure 2.
If not generating display window on vocational window, a display window can be generated, this display window covers Cover on vocational window, and be transparent, will not the content of vocational window below be caused to block, can be normally to rear Face-port mouth is operated.
Additionally, the size of this display window, position and this vocational window can show the size in region of barrage data, position Put identical, Blocked portion as shown in Figure 2.
If having generated display window on vocational window, this vocational window can be shown the area of barrage data The parameters such as the size in domain, position send and are adjusted to this display window.
Step 104, shows described barrage data in described display window.
The source data of multiple business object is saved as the barrage data of consolidation form by the embodiment of the present invention, simultaneously according to industry The Window state of business window, generates display window on vocational window, and shows barrage data in display window, due to adopting Demixing technology, barrage data display is in an independent transparent window, and be attached to above vocational window, therefore, The display of barrage data do not interfere with the content displaying of vocational window and other operations, it is to avoid every kind of data is in a window In carry out showing, process, user need not open multiple windows, decreases the quantity of window, it is to avoid cover screen, affects other behaviour Make.
In one embodiment of the invention, step 104 can include following sub-step:
Sub-step s21, inquires about the window parameter of described display window;
Sub-step s22, according to described window parameter calculate display barrage data upper once refresh when target show Show position;
Sub-step s23, when refreshing described display window, shows described barrage data in described target display location.
In implementing, display window, the viewing area of barrage data are rectangle, then can with left side coordinate (l), Right side coordinate (r), upside coordinate (t), downside coordinate (b) represent the scope of this rectangle.
For vocational window (wr), window parameter includes coordinate on the left of window (wr.l), coordinate on the right side of window (wr.r), coordinate (wr.t) on the upside of window, coordinate (wr.b) on the downside of window.
For the barrage data (nr) next time refreshing, target display location include coordinate on the left of target (nr.l), Coordinate (nr.b) on the downside of coordinate (nr.t) on the upside of coordinate (nr.r) on the right side of target, target, target.
Therefore, in one example, display window can divide a line or multirow, and barrage data is in every row along from left-hand Move right, when refreshing each time, mobile a certain distance.
In order to avoid posterior barrage data cover barrage data formerly, once refreshing with the barrage data in a line When displacement equal, the barrage data of different rows when once refreshing displacement can equal it is also possible to unequal.
When the barrage data of display moves from left to right in a line or multirow, calculate the corresponding unit displacement of row S the product of (n+1, n are current mobile number of times) between () and the mobile number of times next time refreshing, obtains the shifting next time showing Dynamic distance.
Add described displacement on the basis of coordinate (wr.l) on the left of window, obtain coordinate (nr.l) on the left of target.
I.e. nr.l=wr.l+s* (n+1).
Add the display length of the barrage data of display on the basis of coordinate (nr.l) on the left of target, obtain target right Side coordinate (nr.r).
I.e. nr.r=nr.l+ (or.r-or.l), wherein, or.r is the current right side coordinate of current display position, and or.l is The current left-side coordinate of current display position.
Coordinate (nr.b) on the downside of coordinate on the upside of target (nr.t), target is kept with current display position when front upper side is sat Mark (or.t), current downside coordinate equal (or.b).
I.e. nr.t=or.t, nr.b=or.b.
Certainly, the calculation of above-mentioned target display location is intended only as example, when implementing the embodiment of the present invention, permissible The calculation of other target display location is set according to practical situation, when the barrage data of display is certainly right in a line or multirow Be moved to the left or, one or more columns per page from up to down/bottom-up mobile when calculation, etc., for example, the present invention is real Apply example this is not any limitation as.In addition, in addition to the calculation of above-mentioned target display location, those skilled in the art are acceptable Adopt the calculation of other target display location according to actual needs, the embodiment of the present invention is not also any limitation as to this.
In one embodiment of the invention, can be verified with display window using target display location, to this bullet Curtain data is processed accordingly:
1st, when target display location exceedes display window in moving direction part, forbid being showed more than the portion of display window Divide barrage data.
For example, the barrage data of display moves from left to right in a line or multirow, if coordinate (nr.l) on the left of target Less than coordinate on the right side of window (wr.r), on the right side of target, coordinate (nr.r) is more than coordinate (wr.r) on the right side of window, then can be by target Right side coordinate is set to coordinate on the right side of window (wr.r), forbids being showed more than the part barrage data of display window.
I.e. nr.l < wr.r, nr.r > wr.r, arranges nr.r=wr.r.
2nd, when target display location in moving direction well beyond display window when, remove barrage data.
For example, the barrage data of display moves from left to right in a line or multirow, if coordinate (nr.l) on the left of target More than coordinate on the right side of window (wr.r), i.e. nr.l > wr.r, then can remove this barrage data.
3rd, when target display location exceedes display window in the direction in addition to moving direction, by the barrage number of display According to saving as barrage data to be shown.
Because the size of vocational window is it may happen that change, display window changes therewith, because this kind of situation leads to When cannot show barrage data, then this barrage data can be rejoined buffering list, wait and again showing.
For example, the barrage data of display moves from left to right in a line or multirow, if coordinate (nr.t) on the upside of target More than coordinate on the upside of window (wr.t), or, on the downside of target, coordinate (nr.b) is less than coordinate (wr.b) on the downside of window, i.e. nr.t > Wr.t or nr.b < wr.b, then can rejoin buffering list by this barrage data.
Sub-step s24, judges whether the data volume of the barrage data of described display window display is less than described display window The maximum display number of mouth;If so, then execute sub-step s25;
In implementing, because the barrage content of each barrage data is not fixing, therefore, the length of barrage data Rw can average 8 Chinese characters, and the height lh of barrage data can take the height of 2 Chinese characters, so as not to too crowded.
Therefore, in viewing area in wr, maximum ml=(the wr.b-wr.t)/lh of line number, the maximum mr=of columns (wr.r-wr.l)/rw, therefore, maximum display number mc=ml*mr.
If the data volume of the barrage data of display window display is less than the maximum display number of display window, expression can Can have white space and show new barrage data, new barrage data can be extracted from buffer queue and add display window to show Show.
Whereas if the data volume of the barrage data of display window display is more than or equal to the maximum display of display window Quantity, represents that not having white space shows new barrage data.
Sub-step s25, extracts barrage data to be shown;
In embodiments of the present invention, can calculate between the joining day of barrage data to be shown and current time when Between poor.
Judge that time difference exceedes default time threshold (as 5s);If so, then abandon barrage data to be shown;If it is not, Then extract barrage data to be shown.
Sub-step s26, described barrage data to be shown is added in described display window.
In implementing, when the barrage data of display is in a line or multirow (as from left to right) movement in the horizontal direction When, the white space (i.e. the region of non-video data) in inquiry a line or multirow.
When white space can accommodate barrage data to be shown, barrage data to be shown is added to row and is refreshed Display.
In one example, a random number rl can be generated, this random number rl is less than or equal to display window can Big line number mc, i.e. rl≤mc.
From the beginning of rl row, sequentially judge whether to add new barrage data, if cannot, continue to attempt to next OK, until new barrage data can be added, or, if new barrage data also cannot be added to last column mc, from The first row continues to attempt to rl-1 row, if all cannot adding, refreshing next time and being no longer attempt to, directly displaying the bullet of display Curtain data.
If new barrage data can be added, produce displacement s of a current line according to line number, mobile number of times N is set to 0, this barrage is added to display list and is shown.
In one embodiment of the invention when detect in display window display barrage data triggering behaviour When making (as click), vocational window shows the business datum of business object.
For example, for stock certificate data, when clicking on barrage data, the vocational window of client can be switched this stock Ticket data, and the relevant information of stock can be associated by this barrage data acquisition, barrage content is particularly processed, For example, judge whether it is free stock according to this barrage data, if it is, the text color of barrage content is changed into specific face Color, to be different from equity share.
It should be noted that when the content that vocational window shows switches over, display window can retain, continue display Barrage data.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of action group Close, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to According to the embodiment of the present invention, some steps can be carried out using other orders or simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, the involved action not necessarily present invention is implemented Example is necessary.
With reference to Fig. 3, show a kind of structured flowchart of the display device embodiment of barrage data of the present invention, specifically permissible Including such as lower module:
Source data acquisition module 301, for obtaining the source data of multiple business object;
Barrage data storage module 302, for saving as the bullet of consolidation form by the source data of described multiple business object Curtain data;
Display window generation module 303, for the Window state according to vocational window, generates on described vocational window Display window;
Barrage data disaply moudle 304, for showing described barrage data in described display window.
In one embodiment of the invention, can also include as lower module:
Amount threshold judge module, whether the quantity for judging described barrage data exceedes default amount threshold;If It is then to call barrage data scrubbing module;
Barrage data scrubbing module, for clearing up described barrage data sequentially in time, until quantity is down to described number Amount threshold value.
In an example of the embodiment of the present invention, when described business object is stock certificate data, described business object Source data includes select stocks structured data, stock transaction data;
Described structured data of selecting stocks includes one or more following information:
Select stocks classification, the long code of stock, stock code, policy name, policing type, the selected time, selected pricing information, Rise speed;
Described stock transaction data includes one or more following information:
Unusual fluctuation type, unusual fluctuation time, unusual fluctuation numerical value, association stock certificate data;
Described barrage data storage module 302 can include following submodule:
First preservation submodule, for extracting stock name, person's time, selected price from described structured data of selecting stocks One or more of information, policy name information, saves as barrage data;
Second preservation submodule, for extracting the stock name, different of association stock certificate data from described stock transaction data One or more of dynamic classification, unusual fluctuation numerical value information, saves as barrage data.
In one embodiment of the invention, described display window generation module 303 can include following submodule:
Target window condition adjudgement submodule, whether the Window state for judging vocational window meets default target window Mouth state;If so, then call region calculating sub module;
Region calculating sub module, can show the region of barrage data for calculating described vocational window;
Generate submodule, for generating display window on described vocational window according to described region;
Wherein, described target window state includes following one or more:
Window activation, the window of specified type, window maximized.
In one embodiment of the invention, described barrage data disaply moudle 304 can include following submodule:
Window parameter inquires about submodule, for inquiring about the window parameter of described display window;
Target display location calculating sub module, for calculating the barrage data of display at next according to described window parameter Target display location during secondary refreshing;
Refresh display sub-module, for when refreshing described display window, showing described bullet in described target display location Curtain data.
In an example of the embodiment of the present invention, described window parameter includes coordinate on the left of window, coordinate on the right side of window;
Described target display location includes coordinate on the left of target, coordinate on the right side of target, coordinate on the upside of target, sits on the downside of target Mark;
Described target display location calculating sub module can be included as lower unit:
Displacement computing unit, for when the barrage data of display moves from left to right in a line or multirow, counting Calculate the product between described row corresponding unit displacement and the mobile number of times next time refreshing, obtain the shifting next time showing Dynamic distance;
Coordinate calculating unit on the left of target, for adding described displacement on the basis of coordinate on the left of described window, Obtain coordinate on the left of target;
Coordinate calculating unit on the right side of target, for adding the bullet of described display on the basis of coordinate on the left of described target The display length of curtain data, obtains coordinate on the right side of target;
Coordinate holding unit, for keeping current with current display position by coordinate on the downside of coordinate on the upside of target, target Upside coordinate, current downside coordinate are equal.
In one embodiment of the invention, described target display location calculating sub module can be included as lower unit:
Forbid display unit, for when described target display location exceedes described display window in moving direction part, Forbid being showed more than the part barrage data of described display window;
And/or,
Barrage data dump unit, in described target display location in moving direction well beyond described display window When, remove described barrage data;
And/or,
Barrage data resets unit, described for exceeding in the direction in addition to moving direction in described target display location During display window, the barrage data of display is saved as barrage data to be shown.
In one embodiment of the invention, described barrage data disaply moudle 304 can also include following submodule:
Display number judging submodule, whether the data volume for judging the barrage data of described display window display is little Maximum display number in described display window;If so, then call barrage data extracting sub-module;
Barrage data extracting sub-module, for extracting barrage data to be shown;
Barrage data adds submodule, for adding described barrage data to be shown in described display window.
In an example of the embodiment of the present invention, described barrage data extracting sub-module can be included as lower unit:
Time difference calculating unit, for calculating the time between the joining day of barrage data to be shown and current time Difference;
Time threshold judging unit, for judging that described time difference exceedes default time threshold;If so, then call barrage Data discarding unit, if it is not, then call data extracting unit;
Barrage data discarding unit, for abandoning described barrage data to be shown;
Data extracting unit, for extracting described barrage data to be shown.
In one embodiment of the invention, described barrage data adds submodule can include as lower unit:
White space query unit, for when the barrage data of display moves in the horizontal direction in a line or multirow, Inquire about the white space in described a line or multirow;
Row adding device, for when described white space can accommodate described barrage data to be shown, waiting to show by described The barrage data shown is added to described row and carries out refreshing display.
In one embodiment of the invention, this device can also be included as lower module:
Business datum display unit, for the triggering in the barrage data detecting for described display in display window In described vocational window, during operation, show the business datum of described business object.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, related Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is all described by the way of going forward one by one, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar partly mutually referring to.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, device or calculate Machine program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.And, the embodiment of the present invention can using one or more wherein include computer can With in the computer-usable storage medium (including but not limited to disk memory, cd-rom, optical memory etc.) of program code The form of the computer program implemented.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal unit (system) and computer program The flow chart of product and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or block diagram In each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or square frame combination.These can be provided Computer program instructions set to general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to produce a machine so that holding by the processor of computer or other programmable data processing terminal equipments The instruction of row produces for realizing in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame The device of the function of specifying.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing terminal equipments So that the instruction being stored in this computer-readable memory produces bag in the computer-readable memory working in a specific way Include the manufacture of command device, this command device is realized in one flow process of flow chart or multiple flow process and/or one side of block diagram The function of specifying in frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing terminal equipments so that Series of operation steps is executed on computer or other programmable terminal equipments to produce computer implemented process, thus On computer or other programmable terminal equipments, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process And/or the step of the function of specifying in one square frame of block diagram or multiple square frame.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base This creative concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to Including preferred embodiment and fall into being had altered and changing of range of embodiment of the invention.
Last in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between there is any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant meaning Covering comprising of nonexcludability, so that include a series of process of key elements, method, article or terminal unit not only wrapping Include those key elements, but also include other key elements being not expressly set out, or also include for this process, method, article Or the intrinsic key element of terminal unit.In the absence of more restrictions, by wanting that sentence "including a ..." limits It is not excluded that also there is other identical element in process, method, article or the terminal unit including described key element in element.
Above to a kind of display packing of barrage data provided by the present invention and a kind of display device of barrage data, enter Go and be discussed in detail, specific case used herein has been set forth to the principle of the present invention and embodiment, above enforcement The explanation of example is only intended to help and understands the method for the present invention and its core concept;General technology people simultaneously for this area Member, according to the thought of the present invention, all will change in specific embodiments and applications, in sum, this explanation Book content should not be construed as limitation of the present invention.

Claims (12)

1. a kind of display packing of barrage data is it is characterised in that include:
Obtain the source data of multiple business object;
The source data of described multiple business object is saved as the barrage data of consolidation form;
According to the Window state of vocational window, generate display window on described vocational window;
Show described barrage data in described display window.
2. method according to claim 1 is it is characterised in that preserve in the described source data by described multiple business object After step for the barrage data of consolidation form, methods described also includes:
Judge whether the quantity of described barrage data exceedes default amount threshold;If so, then clear up described sequentially in time Barrage data, until quantity is down to described amount threshold.
3. method according to claim 1 it is characterised in that when described business object be stock certificate data when, described business The source data of object includes select stocks structured data, stock transaction data;
Described structured data of selecting stocks includes one or more following information:
Select stocks classification, the long code of stock, stock code, policy name, policing type, selected time, selected pricing information, rise Speed;
Described stock transaction data includes one or more following information:
Unusual fluctuation type, unusual fluctuation time, unusual fluctuation numerical value, association stock certificate data;
The step of the described barrage data that described multiple source datas save as consolidation form includes:
Extract from described structured data of selecting stocks stock name, person's time, selected one of pricing information, policy name or Much information, saves as barrage data;
One of the stock name of extraction association stock certificate data, unusual fluctuation classification, unusual fluctuation numerical value from described stock transaction data Or much information, save as barrage data.
4. method according to claim 1 is it is characterised in that the described Window state according to vocational window, in described window Generate on mouthful and show that the step of window includes:
Judge whether the Window state of vocational window meets default target window state;If so, then calculate described vocational window The region of barrage data can be shown;
Generate display window according to described region on described vocational window;
Wherein, described target window state includes following one or more:
Window activation, the window of specified type, window maximized.
5. the method according to claim 1 or 2 or 3 or 4 it is characterised in that described show in described display window described in The step of barrage data includes:
Inquire about the window parameter of described display window;
According to described window parameter calculate display barrage data upper once refresh when target display location;
When refreshing described display window, show described barrage data in described target display location.
6. method according to claim 5 is it is characterised in that described window parameter includes coordinate on the left of window, the window right side Side coordinate;
Described target display location includes coordinate on the left of target, coordinate on the right side of target, coordinate on the upside of target, coordinate on the downside of target;
Described according to described window parameter calculate display barrage data upper once refresh when target display location step Rapid inclusion:
When the barrage data of display moves from left to right in a line or multirow, calculate described row corresponding unit displacement Product and the mobile number of times next time refreshing between, obtains the displacement next time showing;
Add described displacement on the basis of coordinate on the left of described window, obtain coordinate on the left of target;
Add the display length of the barrage data of described display on the basis of coordinate on the left of described target, obtain on the right side of target Coordinate;
Coordinate on the downside of coordinate on the upside of target, target is kept with current display position when front upper side coordinate, current downside coordinate Equal.
7. method according to claim 5 is it is characterised in that the described barrage calculating display according to described window parameter Data upper once refresh when the step of target display location include:
When described target display location exceedes described display window in moving direction part, forbid being showed more than described display window The part barrage data of mouth;
And/or,
When described target display location in moving direction well beyond described display window when, remove described barrage data;
And/or,
When described target display location exceedes described display window in the direction in addition to moving direction, by the barrage of display Data saves as barrage data to be shown.
8. method according to claim 5 is it is characterised in that described show described barrage data in described display window Step also includes:
Judge whether the data volume of the barrage data of described display window display shows number less than the maximum of described display window Amount;
If so, then extract barrage data to be shown;
Described barrage data to be shown is added in described display window.
9. method according to claim 8 is it is characterised in that the step of described extraction barrage data to be shown includes:
Calculate the time difference between the joining day of barrage data to be shown and current time;
Judge that described time difference exceedes default time threshold;
If so, then abandon described barrage data to be shown;
If it is not, then extracting described barrage data to be shown.
10. method according to claim 8 is it is characterised in that described will be described for described barrage data addition to be shown Step in display window includes:
When the barrage data of display moves in the horizontal direction in a line or multirow, inquire about the blank in described a line or multirow Region;
When described white space can accommodate described barrage data to be shown, described barrage data to be shown is added to institute State row to carry out refreshing display.
11. methods according to claim 1 or 2 or 3 or 4 or 6 or 7 or 8 or 9 or 10 are it is characterised in that also include:
When the trigger action for the barrage data of described display in display window is detected, aobvious in described vocational window Show the business datum of described business object.
A kind of 12. display devices of barrage data are it is characterised in that include:
Source data acquisition module, for obtaining the source data of multiple business object;
Barrage data storage module, for saving as the barrage data of consolidation form by the source data of described multiple business object;
Display window generation module, for the Window state according to vocational window, generates display window on described vocational window Mouthful;
Barrage data disaply moudle, for showing described barrage data in described display window.
CN201610772277.5A 2016-08-30 2016-08-30 Bullet screen data display method and device Active CN106371834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610772277.5A CN106371834B (en) 2016-08-30 2016-08-30 Bullet screen data display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610772277.5A CN106371834B (en) 2016-08-30 2016-08-30 Bullet screen data display method and device

Publications (2)

Publication Number Publication Date
CN106371834A true CN106371834A (en) 2017-02-01
CN106371834B CN106371834B (en) 2020-04-10

Family

ID=57902229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610772277.5A Active CN106371834B (en) 2016-08-30 2016-08-30 Bullet screen data display method and device

Country Status (1)

Country Link
CN (1) CN106371834B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951334A (en) * 2017-03-21 2017-07-14 武汉斗鱼网络科技有限公司 Send the method and system of colored barrage
CN108174278A (en) * 2018-01-30 2018-06-15 河南职业技术学院 Barrage display methods and barrage display device
CN108174276A (en) * 2018-01-04 2018-06-15 北京奇艺世纪科技有限公司 A kind of barrage display methods and display device
CN108235105A (en) * 2018-01-22 2018-06-29 上海硬创投资管理有限公司 A kind of barrage rendering method, recording medium, electronic equipment, information processing system
CN110351572A (en) * 2019-07-10 2019-10-18 广州虎牙科技有限公司 Update method, device, equipment and the storage medium of direct broadcasting room information
CN110876086A (en) * 2018-09-04 2020-03-10 广州虎牙信息科技有限公司 Bullet screen generation adjusting method, device, equipment and storage medium
CN115190321A (en) * 2022-05-13 2022-10-14 广州博冠信息科技有限公司 Switching method and device of live broadcast room and electronic equipment
CN115348226A (en) * 2022-08-15 2022-11-15 维沃移动通信有限公司 Message display method and message display device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102332118A (en) * 2010-08-09 2012-01-25 微软公司 Relationship visualization and graphical interaction model in IT client management
CN105242821A (en) * 2014-07-07 2016-01-13 北京畅游天下网络技术有限公司 Method for realizing free movement of popup window
CN105262675A (en) * 2015-10-29 2016-01-20 北京奇虎科技有限公司 Method and apparatus for controlling chat based on electronic book

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102332118A (en) * 2010-08-09 2012-01-25 微软公司 Relationship visualization and graphical interaction model in IT client management
CN105242821A (en) * 2014-07-07 2016-01-13 北京畅游天下网络技术有限公司 Method for realizing free movement of popup window
CN105262675A (en) * 2015-10-29 2016-01-20 北京奇虎科技有限公司 Method and apparatus for controlling chat based on electronic book

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951334A (en) * 2017-03-21 2017-07-14 武汉斗鱼网络科技有限公司 Send the method and system of colored barrage
CN108174276B (en) * 2018-01-04 2020-10-20 北京奇艺世纪科技有限公司 Bullet screen display method and display device
CN108174276A (en) * 2018-01-04 2018-06-15 北京奇艺世纪科技有限公司 A kind of barrage display methods and display device
CN108235105A (en) * 2018-01-22 2018-06-29 上海硬创投资管理有限公司 A kind of barrage rendering method, recording medium, electronic equipment, information processing system
CN108235105B (en) * 2018-01-22 2020-11-13 上海硬创投资管理有限公司 Barrage presenting method, recording medium, electronic device and information processing system
CN108174278A (en) * 2018-01-30 2018-06-15 河南职业技术学院 Barrage display methods and barrage display device
CN110876086A (en) * 2018-09-04 2020-03-10 广州虎牙信息科技有限公司 Bullet screen generation adjusting method, device, equipment and storage medium
CN110351572A (en) * 2019-07-10 2019-10-18 广州虎牙科技有限公司 Update method, device, equipment and the storage medium of direct broadcasting room information
CN110351572B (en) * 2019-07-10 2022-05-20 广州虎牙科技有限公司 Method, device and equipment for updating live broadcast room information and storage medium
CN115190321A (en) * 2022-05-13 2022-10-14 广州博冠信息科技有限公司 Switching method and device of live broadcast room and electronic equipment
CN115190321B (en) * 2022-05-13 2024-06-04 广州博冠信息科技有限公司 Live broadcast room switching method and device and electronic equipment
CN115348226A (en) * 2022-08-15 2022-11-15 维沃移动通信有限公司 Message display method and message display device
CN115348226B (en) * 2022-08-15 2024-06-18 维沃移动通信有限公司 Message display method and message display device

Also Published As

Publication number Publication date
CN106371834B (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN106371834A (en) Method and device for displaying bullet screen data
EP3407221B1 (en) Methods and devices for searching and displaying information on a terminal
KR101958377B1 (en) Region segmentation of content displayed on a computing device based on the pixels of the screenshot image that captured the content
US8812988B2 (en) Dynamic icons associated with remote content
US20200020071A1 (en) Method for converting landscape video to portrait mobile layout
KR101361281B1 (en) Object displacement method for a web page
US20170371844A1 (en) Method, device and terminal for implementing regional screen capture
US20160283096A1 (en) Method of generating a link by utilizing a picture and system thereof
EP3197147A1 (en) Event signal processing method and apparatus
CN103605506B (en) The display packing of a kind of graphical user interface resource and terminal
CN105869199B (en) Apparatus and method for processing animation
US20190230311A1 (en) Video interface display method and apparatus
CN113516666A (en) Image cropping method and device, computer equipment and storage medium
CN104035703A (en) Client side, method and system for changing view display
EP2874054A1 (en) Application text adjusting method, device, and terminal
CN110506267B (en) Digital component background rendering
CN107818101A (en) The method and its device of page jump
CN109683773A (en) Corpus labeling method and device
CN107832337B (en) Page returning method, device and equipment
WO2018149376A1 (en) Video abstract generation method and device
US20170192652A1 (en) Method and electronic device for adjusting display interface
CN107391148A (en) View element saving method and device, electronic equipment and computer storage medium
CN105630893A (en) Display method and device of photo title
CN104615440A (en) Information processing method and electronic device
CN106998489A (en) A kind of focus is crossed the border searching method and device

Legal Events

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