CN102882844A - XMLfile-based multi-screen interactive show realization method - Google Patents

XMLfile-based multi-screen interactive show realization method Download PDF

Info

Publication number
CN102882844A
CN102882844A CN2012102597639A CN201210259763A CN102882844A CN 102882844 A CN102882844 A CN 102882844A CN 2012102597639 A CN2012102597639 A CN 2012102597639A CN 201210259763 A CN201210259763 A CN 201210259763A CN 102882844 A CN102882844 A CN 102882844A
Authority
CN
China
Prior art keywords
server
file
function
xml
control flag
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
CN2012102597639A
Other languages
Chinese (zh)
Other versions
CN102882844B (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.)
Electric Power Research Institute of Guangdong Power Grid Co Ltd
Original Assignee
Electric Power Research Institute of Guangdong Power Grid 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 Electric Power Research Institute of Guangdong Power Grid Co Ltd filed Critical Electric Power Research Institute of Guangdong Power Grid Co Ltd
Priority to CN201210259763.9A priority Critical patent/CN102882844B/en
Publication of CN102882844A publication Critical patent/CN102882844A/en
Application granted granted Critical
Publication of CN102882844B publication Critical patent/CN102882844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

An XML (Extensible Markup Language) file-based multi-screen interactive show realization method comprises the steps as follows: S1, establishing an Internet environment and a software operation environment, including a server S; S2, establishing an XML file X; S3, configuring a Java operation environment; S4, compiling a Java program into a Class file C; S5, distributing the Class file C; S6, establishing a communication channel for a Flex application program; S7, establishing a rich client application A1; S8; distributing the rich client application 2 to the server S; S9, showing the A1; S10, judging the control state; S11, establishing a rich client application A2; S12, distributing the A2 to the server S; S13, showing the A2, a control mark bit is marked as 1; S15, changing the columnar tendency chart of the partial content of the interface of the A1 into a pie chart; and S16, achieving a function that the A2 is controlled by the A2. The XML file-based multi-screen interactive show realization method can achieve mutual control of different applications on various types of display devices.

Description

The implementation method that a kind of multi-screen interactive of XML-based file represents
Technical field
The present invention relates to the implementation method that multi-screen interactive represents, especially relate to the implementation method that a kind of multi-screen interactive of XML-based file represents.
Background technology
In today of informationization rapid growth, the demand of information visualization enlarges rapidly, high-end visual realization difficulty is also more and more higher, the information that the separate unit display device can show can not be met the need of market far away, the needs of the important places such as some Surveillance center, command centre, control centre particularly, double screen interaction or multi-screen interactive have become the indispensable core technology of information visualization.The method that solves at present double screen or multi-screen interactive mainly concentrates on hardware devices such as using multihead display card or split screen card, the multihead display card can make many display screens of a computer supported, show different separately pictures at different screens, several display screens can form the large picture of a width of cloth again jointly, mouse can be roamed arbitrarily between a plurality of screens, also can be with any application, extend to and take two even more screen by taking a screen; The split screen card then cuts into the identical content blocks of size dimension with the displaying contents of computer export, is presented at respectively on the corresponding display device.But no matter be by multihead display card or split screen card, all be difficult to set up the mutual control relation between the application program, reach the operation interaction effect between the application program, also be difficult to realize on the display screen of any amount, arbitrarily representing.
Summary of the invention
Technical problem to be solved by this invention, the implementation method that represents with regard to the multi-screen interactive that provides a kind of XML-based file, the application of adopting the Flex technology to set up, access at different display devices respectively by the Internet, co-operate XML file set up control relation, use Asynchronous Invoke Technology to reach page part and refresh, and then realize multi-screen interactive.
The technical solution adopted for the present invention to solve the technical problems is as follows:
The implementation method that a kind of multi-screen interactive of XML-based file represents may further comprise the steps:
S1 sets up internet environment and software runtime environment, comprises a station server S, two client M1, M2:
S2 sets up an XML file X in server S, X file record control flag bit, and content is 0 or 1, and it is 0 that the initial marking position is set, and detailed content is as follows:
Figure BDA00001914516800011
S3 configures Java Runtime Environment in server S;
S4 uses Java technological development java applet, comprises two functions: write function write () and read function read (), function is read operation and the write operation to control flag bit among the XML file X; After the debugging test is correct, java applet is compiled as Class file C;
S5 is at server S deploy Class file C;
S6 uses the BlazeDS technology, sets up the java application and the communication port that operates in the Flex application program on the browser on backstage;
S7 sets up rich client by the Flex technology and uses A1, and A1 realizes pressing the XML file function on the fixed interval cyclic access server;
S8 uses A1 with rich client and is deployed in the server S;
S9 is on display device M1, and by inputting URL(uniform resource locator) to server request A1 application service at browser, server acknowledge also provides service, and the content of pages of the upper displaying of M1 A1 is the column tendency chart;
S10 uses A1 and carries out the XML file function of pressing on the fixed interval cyclic access server, and judges state of a control;
S11 sets up rich client by the Flex technology and uses A2, the A2 interface comprises two button B1 and B2, the clicking operation of B1 and B2 can be called by the trigger event of Flex the write () function of Class file C, realize respectively the write operation to control flag bit among the XML file X, be that B1 will control flag bit and be written as 0, B2 and will control flag bit and be written as 1;
S12 uses A2 with rich client and is deployed in the server S;
S13 is on display device M2, and by inputting URL(uniform resource locator) to server request A2 application service at browser, server acknowledge also provides service, and the content of pages of the upper displaying of M2 A2 is two control buttons;
S14 clicks button B2 on the A2 interface, and execution in step S11 namely calls the write () function of Class file C, will control flag and be written as 1, and the content of file X is:
S15 is according to the function setting of A1 in step S7, and server returns control signal new among the XML to A1, and within 1 second time, the local content at A1 interface is changed to pie accounting figure by the column tendency chart;
S16 is according to step S7 and step S11, in like manner, can set up the function by A1 control A2, reaches A1 and A2 controls mutually, realizes that double screen is interactive, effect is refreshed in the part.
Described step S1 comprises:
The S1-1 server S is installed web server software, and Web service is provided;
S1-2 client M1, M2 install browser software and Flash Player plug-in unit;
The S1-3 server and client side is by the Http protocol communication, and client is obtained Web service by URL(uniform resource locator) access S;
The S1-4 client can be the polytype display devices such as LCDs, touch screen and mobile device; Described step S7 comprises:
S7-1 triggers the read () function that the Flex event is called Class file C, realizes the read operation to control flag bit among the XML file X.When the control flag that reads is 0, column tendency chart of the showing interface of A1, when the control flag that reads was 1, a pie accounting of the showing interface figure of A1 realized that the part of the page is refreshed;
S7-2 calls the Time assembly of Flex, starts timing function, every N time second (now being set as 1 second), execution in step S7-1;
S7-3 repeats above process, and the content of A1 showing interface and the control flag bit in the XML file are consistent.
Beneficial effect: the present invention can realize the interactive operation control of a plurality of display screens, has the following advantages and good effect:
1. XML-based file storage control signal does not rely on the hardware devices such as multihead display card or split screen card, and realization is simple, and it is convenient to dispose, and is quick on the draw, and it is strong that interaction is felt, but the relation of the control between the Set arbitrarily display device;
2. can realize that based on the Asynchronous Invoke Technology of Flex the part of the page refreshes, promote the user and experience;
3. be easy to expand to the polytype display devices such as LCDs, touch screen, movable screen.
Description of drawings
The present invention is further described below in conjunction with accompanying drawing.
Fig. 1 is the technical schematic diagram that XML-based file multi-screen interactive represents;
Fig. 2 is the implementation method figure that Flex uses read-write XML file.
Wherein, I-simultaneous asynchronous data transmissions, II-funcall, III-reading and writing data.
Embodiment
Operation principle and the course of work of the implementation method that the multi-screen interactive that the present invention is based on the XML file is represented below in conjunction with accompanying drawing are described in detail.
Mainly rely on the hardware devices such as multihead display card or split screen card for existing multi-screen interactive technology, even dependency database, can not finish more convenient and flexibly the work of multi-screen interactive, the present invention adopts the Flex technology to set up and uses, access at different display devices respectively by the Internet, co-operate XML file set up control relation is used Asynchronous Invoke Technology to reach page part and is refreshed, and then realizes multi-screen interactive.
The implementation method embodiment that the multi-screen interactive of XML-based file of the present invention represents may further comprise the steps:
1. set up internet environment and software runtime environment, comprise a station server S, two client M1, M2: server S is installed web server software, and Web service is provided; Client M1, M2 install browser software and Flash Player plug-in unit; The server and client side is by the Http protocol communication, and client is obtained Web service by URL(uniform resource locator) access S; Client can be the polytype display devices such as LCDs, touch screen and mobile device;
2. set up an XML file X in server S, X file record control flag bit, content is 0 or 1, and it is 0 that the initial marking position is set, and detailed content is as follows:
3. configure Java Runtime Environment in server S;
4. use Java technological development java applet, comprise two functions: write function write () and read function read (), function is read operation and the write operation to control flag bit among the XML file X; After the debugging test is correct, java applet is compiled as Class file C;
5. at server S deploy Class file C;
6. use the BlazeDS technology, set up the java application and the communication port that operates in the Flex application program on the browser on backstage, such as Fig. 2;
7. set up rich client by the Flex technology and use A1, A1 realizes by the XML file function on the fixed interval cyclic access server: trigger the read () function that the Flex event is called Class file C, realize the read operation to control flag bit among the XML file X.When the control flag that reads is 0, column tendency chart of the showing interface of A1, when the control flag that reads was 1, a pie accounting of the showing interface figure of A1 realized that the part of the page is refreshed; Call the Time assembly of Flex, start timing function, every N time second (now being set as 1 second), repeat above process, the content of A1 showing interface and the control flag bit in the XML file are consistent;
8. rich client being used A1 is deployed in the server S;
9. on display device M1, by inputting URL(uniform resource locator) to server request A1 application service, such as Fig. 1 (1) at browser, server acknowledge also provides service, such as Fig. 1 (2), the content of pages of the upper displaying of M1 A1 is the column tendency chart, such as Fig. 1 (3);
10. use A1 and carry out by the XML file function on the fixed interval cyclic access server, and judge state of a control, such as Fig. 1 (4);
Figure BDA00001914516800042
Set up rich client by the Flex technology and use A2, the A2 interface comprises two button B1 and B2, the clicking operation of B1 and B2 can be called by the trigger event of Flex the write () function of Class file C, realize respectively the write operation to control flag bit among the XML file X, be that B1 will control flag bit and be written as 0, B2 and will control flag bit and be written as 1;
Figure BDA00001914516800043
Rich client is used A2 to be deployed in the server S;
Figure BDA00001914516800044
On display device M2, by inputting URL(uniform resource locator) to server request A2 application service, such as Fig. 1 (5) at browser, server acknowledge also provides service, such as Fig. 1 (6), the content of pages of the upper displaying of M2 A2 is two control buttons, such as Fig. 1 (7);
Click button B2 on the A2 interface, carry out example
Figure BDA00001914516800052
Namely call the write () function of Class file C, will control flag and be written as 1, such as Fig. 1 (9), the content of file X is:
Figure BDA00001914516800054
At the function setting of example in 7., server returns control signal new among the XML to A1 according to A1, and such as Fig. 1 (10), within 1 second time, the local content at A1 interface is changed to pie accounting figure by the column tendency chart, such as Fig. 1 (11);
Figure BDA00001914516800055
According to example 7. and the example In like manner, can set up the function by A1 control A2, reach A1 and A2 controls mutually, realize that double screen is interactive, effect is refreshed in the part.

Claims (3)

1. the implementation method that represents of the multi-screen interactive of an XML-based file may further comprise the steps:
S1 sets up internet environment and software runtime environment, comprises a station server S, two client M1, M2:
S2 sets up an XML file X in server S, X file record control flag bit, and content is 0 or 1, and it is 0 that the initial marking position is set, and detailed content is as follows:
Figure FDA00001914516700011
S3 configures Java Runtime Environment in server S;
S4 uses Java technological development java applet, comprises two functions: write function write () and read function read (), function is read operation and the write operation to control flag bit among the XML file X; After the debugging test is correct, java applet is compiled as Class file C;
S5 is at server S deploy Class file C;
S6 uses the BlazeDS technology, sets up the java application and the communication port that operates in the Flex application program on the browser on backstage;
S7 sets up rich client by the Flex technology and uses A1, and A1 realizes pressing the XML file function on the fixed interval cyclic access server;
S8 uses A1 with rich client and is deployed in the server S;
S9 is on display device M1, and by inputting URL(uniform resource locator) to server request A1 application service at browser, server acknowledge also provides service, and the content of pages of the upper displaying of M1 A1 is the column tendency chart;
S10 uses A1 and carries out the XML file function of pressing on the fixed interval cyclic access server, and judges state of a control;
S11 sets up rich client by the Flex technology and uses A2, the A2 interface comprises two button B1 and B2, the clicking operation of B1 and B2 can be called by the trigger event of Flex the write () function of Class file C, realize respectively the write operation to control flag bit among the XML file X, be that B1 will control flag bit and be written as 0, B2 and will control flag bit and be written as 1;
S12 uses A2 with rich client and is deployed in the server S;
S13 is on display device M2, and by inputting URL(uniform resource locator) to server request A2 application service at browser, server acknowledge also provides service, and the content of pages of the upper displaying of M2 A2 is two control buttons;
S14 clicks button B2 on the A2 interface, and execution in step S11 namely calls the write () function of Class file C, will control flag and be written as 1, and the content of file X is:
Figure FDA00001914516700012
Figure FDA00001914516700021
S15 is according to the function setting of A1 in step S7, and server returns control signal new among the XML to A1, and within 1 second time, the local content at A1 interface is changed to pie accounting figure by the column tendency chart;
S16 is according to step S7 and step S11, in like manner, can set up the function by A1 control A2, reaches A1 and A2 controls mutually, realizes that double screen is interactive, effect is refreshed in the part.
2. the implementation method that represents of the multi-screen interactive of XML-based file according to claim 1, it is characterized in that: described step S1 comprises following substep:
The S1-1 server S is installed web server software, and Web service is provided;
S1-2 client M1, M2 install browser software and Flash Player plug-in unit;
The S1-3 server and client side is by the Http protocol communication, and client is obtained Web service by URL(uniform resource locator) access S;
The S1-4 client is LCDs or touch screen, Leading format equipment.
3. the implementation method that represents of the multi-screen interactive of XML-based file according to claim 2, it is characterized in that: described step S7 comprises following substep:
S7-1 triggers the read () function that the Flex event is called Class file C, realizes the read operation to control flag bit among the XML file X; When the control flag that reads is 0, column tendency chart of the showing interface of A1, when the control flag that reads was 1, a pie accounting of the showing interface figure of A1 realized that the part of the page is refreshed;
S7-2 calls the Time assembly of Flex, starts timing function, every N time second (N=1), execution in step S7-1;
S7-3 repeats above process, and the content of A1 showing interface and the control flag bit in the XML file are consistent.
CN201210259763.9A 2012-07-20 2012-07-20 XMLfile-based multi-screen interactive show realization method Active CN102882844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210259763.9A CN102882844B (en) 2012-07-20 2012-07-20 XMLfile-based multi-screen interactive show realization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210259763.9A CN102882844B (en) 2012-07-20 2012-07-20 XMLfile-based multi-screen interactive show realization method

Publications (2)

Publication Number Publication Date
CN102882844A true CN102882844A (en) 2013-01-16
CN102882844B CN102882844B (en) 2015-05-13

Family

ID=47483989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210259763.9A Active CN102882844B (en) 2012-07-20 2012-07-20 XMLfile-based multi-screen interactive show realization method

Country Status (1)

Country Link
CN (1) CN102882844B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581199A (en) * 2013-11-15 2014-02-12 中国科学院声学研究所 Method and system for showing services in client terminal under multi-screen interaction scene

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020059344A1 (en) * 1999-01-29 2002-05-16 Kathryn H. Britton Systems, methods and computer program products for tailoring web page content in hypertext markup language format for display within pervasive computing devices using extensible markup language tools
CN101170540A (en) * 2006-10-24 2008-04-30 华为技术有限公司 A XML document management method, client and server
CN101763420A (en) * 2009-12-30 2010-06-30 成都市华为赛门铁克科技有限公司 Processing method of extensible markup language file and device
CN102073662A (en) * 2009-11-23 2011-05-25 北大方正集团有限公司 Method and system for analyzing and creating XML (Extensible Markup Language) data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020059344A1 (en) * 1999-01-29 2002-05-16 Kathryn H. Britton Systems, methods and computer program products for tailoring web page content in hypertext markup language format for display within pervasive computing devices using extensible markup language tools
CN101170540A (en) * 2006-10-24 2008-04-30 华为技术有限公司 A XML document management method, client and server
CN102073662A (en) * 2009-11-23 2011-05-25 北大方正集团有限公司 Method and system for analyzing and creating XML (Extensible Markup Language) data
CN101763420A (en) * 2009-12-30 2010-06-30 成都市华为赛门铁克科技有限公司 Processing method of extensible markup language file and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581199A (en) * 2013-11-15 2014-02-12 中国科学院声学研究所 Method and system for showing services in client terminal under multi-screen interaction scene
WO2015070622A1 (en) * 2013-11-15 2015-05-21 中国科学院声学研究所 Method and system for displaying service in multi-screen interaction scenario on client
CN103581199B (en) * 2013-11-15 2017-01-18 中国科学院声学研究所 Method and system for showing services in client terminal under multi-screen interaction scene

Also Published As

Publication number Publication date
CN102882844B (en) 2015-05-13

Similar Documents

Publication Publication Date Title
DE112009000003B4 (en) Programming interface for a touch event model
US11687324B2 (en) Property management method and property management system and machine using the same
DE112009000002B4 (en) Processing of touch events for websites
CN104410720B (en) A kind of real-time monitoring platform system and method based on web graph shape
CN105807967B (en) Writing method and device of electronic whiteboard
DE102014010217A1 (en) Dynamic information customization for a multi-power computing device
DE112009000001T5 (en) Touch model for websites
WO2011116601A1 (en) Device and method for implementing landscape/portrait screen switching of mobile terminal
Saraubon Learning media repository and delivery system for smart classroom using IoT and mobile technologies
CN106569760B (en) Large multi-screen GIS display system based on synchronous control and display method thereof
CN106610826A (en) Making method and device for online scenario application
US20160232146A1 (en) Supporting Digital Ink in Markup Language Documents
CN106572139A (en) Multi-terminal control method and system, terminal, and server
Huang et al. Remote mobile test system: a mobile phone cloud for application testing
CN109976524B (en) Display device and method for displaying information about an activity
JP2012064207A (en) Host device and content display method of the same
CN102253986A (en) Method and device for improving webpage displaying effect in multiple terminals
CN102882844B (en) XMLfile-based multi-screen interactive show realization method
JP5303534B2 (en) Appearance information processing apparatus and method
DE112010003717T5 (en) A method of interacting with a portable electronic device
US20130332813A1 (en) Generic Workspace Awareness Support for Collaborative Web Applications
WO2014051381A1 (en) Electronic apparatus, method for authoring multimedia content and computer readable recording medium storing a program for performing the method
CN106126240A (en) A kind of method and system customizing mobile terminal desktop shortcut icon
CN113867580B (en) Display control method and device for pointer in window, equipment and storage medium
Shurtz Application Sharing from Mobile Devices with a Collaborative Shared Display

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: 510080 Dongfeng East Road, Dongfeng, Guangdong, Guangzhou, Zhejiang Province, No. 8

Patentee after: ELECTRIC POWER RESEARCH INSTITUTE, GUANGDONG POWER GRID CO., LTD.

Address before: 510080 Dongfeng East Road, Guangdong, Guangzhou, water, Kong Kong, No. 8

Patentee before: Electrical Power Research Institute of Guangdong Power Grid Corporation