2012-05-21 20:32:26 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
2013-04-04 11:51:15 +00:00
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
< title > mxGraph: com.mxgraph.mxSession Class Reference< / title >
2012-05-21 20:32:26 +00:00
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
2013-04-04 11:51:15 +00:00
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
2012-05-21 20:32:26 +00:00
< / head >
< body >
2013-04-04 11:51:15 +00:00
< div id = "top" > <!-- do not remove this div! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td style = "padding-left: 0.5em;" >
< div id = "projectname" > mxGraph
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- Generated by Doxygen 1.7.6.1 -->
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
2012-05-21 20:32:26 +00:00
< li class = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< li > < a href = "dirs.html" > < span > Directories< / span > < / a > < / li >
< / ul >
< / div >
2013-04-04 11:51:15 +00:00
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "annotated.html" > < span > Class  List< / span > < / a > < / li >
< li > < a href = "hierarchy.html" > < span > Class  Hierarchy< / span > < / a > < / li >
< li > < a href = "functions.html" > < span > Class  Members< / span > < / a > < / li >
2012-05-21 20:32:26 +00:00
< / ul >
< / div >
2013-04-04 11:51:15 +00:00
< div id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < b > com< / b > < / li >
< li class = "navelem" > < a class = "el" href = "namespacecom_1_1mxgraph.html" > mxgraph< / a > < / li >
< li class = "navelem" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html" > mxSession< / a > < / li >
< / ul >
2012-05-21 20:32:26 +00:00
< / div >
< / div >
2013-04-04 11:51:15 +00:00
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "#pub-static-attribs" > Static Public Attributes< / a > |
< a href = "#pro-attribs" > Protected Attributes< / a > |
< a href = "#properties" > Properties< / a > < / div >
< div class = "headertitle" >
< div class = "title" > com.mxgraph.mxSession Class Reference< / div > < / div >
< / div > <!-- header -->
2012-05-21 20:32:26 +00:00
< div class = "contents" >
2013-04-04 11:51:15 +00:00
<!-- doxytag: class="com::mxgraph::mxSession" -->
2012-05-21 20:32:26 +00:00
< p > Implements a session that may be attached to a shared diagram.
2013-04-04 11:51:15 +00:00
< a href = "classcom_1_1mxgraph_1_1mxSession.html#details" > More...< / a > < / p >
2012-05-21 20:32:26 +00:00
< p > < a href = "classcom_1_1mxgraph_1_1mxSession-members.html" > List of all members.< / a > < / p >
2013-04-04 11:51:15 +00:00
< table class = "memberdecls" >
< tr > < td colspan = "2" > < h2 > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a917d860f029239d38f994a4ec8c050a8" > mxSession< / a > (string < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a2d89c49a46afe11d0e7440d7a63dba8f" > id< / a > , < a class = "el" href = "classcom_1_1mxgraph_1_1mxSharedDiagram.html" > mxSharedDiagram< / a > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a892a9f4ac463579f782f302dbcbe95fe" > diagram< / a > )< / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Constructs a new session with the given ID. < a href = "#a917d860f029239d38f994a4ec8c050a8" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#aa4fc396cabbe5b805cf287cbd3859c97" > Init< / a > ()< / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Initializes the session buffer and returns a string that represents the state of the session. < a href = "#aa4fc396cabbe5b805cf287cbd3859c97" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a6a947426cc1ccd4f77de8c83d554eef6" > GetInitialMessage< / a > ()< / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns an XML string that represents the current state of the session and the shared diagram. A globally unique ID is used as the session's namespace, which is used on the client side to prefix IDs of newly created cells. < a href = "#a6a947426cc1ccd4f77de8c83d554eef6" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#ab691093cfec965dcfc4c5befffca18a7" > Receive< / a > (XmlNode message)< / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Posts the change represented by the given XML string to the shared diagram. < a href = "#ab691093cfec965dcfc4c5befffca18a7" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a6beda19b5da62e5076d14a189bef7471" > Poll< / a > ()< / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns the changes received by other sessions for the shared diagram. The method returns an empty XML node if no change was received within 10 seconds. < a href = "#a6beda19b5da62e5076d14a189bef7471" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a5cd687913e6c803d7cd21e5bd0043985" > Poll< / a > (int timeout)< / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns the changes received by other sessions for the shared diagram. The method returns an empty XML node if no change was received within the given timeout. < a href = "#a5cd687913e6c803d7cd21e5bd0043985" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#af305f6960c5cd86050f23380b438ab3f" > DiagramChanged< / a > (Object sender, string xml)< / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Invoked when the shared diagram has changed. < a href = "#af305f6960c5cd86050f23380b438ab3f" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > long  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#afeae090ff25b15387ffb89a5ddb815c8" > InactiveTimeMillis< / a > ()< / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns the number of milliseconds this session has been inactive. < a href = "#afeae090ff25b15387ffb89a5ddb815c8" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#aa3b3747c85960407fdd93f9be380c9ca" > Destroy< / a > ()< / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Destroys the session and removes its listener from the shared diagram. < a href = "#aa3b3747c85960407fdd93f9be380c9ca" > < / a > < br / > < / td > < / tr >
< tr > < td colspan = "2" > < h2 > < a name = "pub-static-attribs" > < / a >
Static Public Attributes< / h2 > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > static int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a1450251f61062db9caa04e6dd12534da" > DEFAULT_TIMEOUT< / a > = 10000< / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Default timeout is 10000 ms. < a href = "#a1450251f61062db9caa04e6dd12534da" > < / a > < br / > < / td > < / tr >
< tr > < td colspan = "2" > < h2 > < a name = "pro-attribs" > < / a >
Protected Attributes< / h2 > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a2d89c49a46afe11d0e7440d7a63dba8f" > id< / a > < / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Holds the session ID. < a href = "#a2d89c49a46afe11d0e7440d7a63dba8f" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSharedDiagram.html" > mxSharedDiagram< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a892a9f4ac463579f782f302dbcbe95fe" > diagram< / a > < / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Reference to the shared diagram. < a href = "#a892a9f4ac463579f782f302dbcbe95fe" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > StringBuilder  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#aaa0d3d363332e37a66dee0a0d38a7acb" > buffer< / a > = new StringBuilder()< / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Holds the send buffer for this session. < a href = "#aaa0d3d363332e37a66dee0a0d38a7acb" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > long  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#ac8ca0c11db845ca7151326397a866654" > lastTimeMillis< / a > = 0< / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Holds the last active time millis. < a href = "#ac8ca0c11db845ca7151326397a866654" > < / a > < br / > < / td > < / tr >
< tr > < td colspan = "2" > < h2 > < a name = "properties" > < / a >
Properties< / h2 > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a7ffb211995b7885112a7a8b70f08f5a6" > Id< / a > < code > [get]< / code > < / td > < / tr >
< tr > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns the session ID. < a href = "#a7ffb211995b7885112a7a8b70f08f5a6" > < / a > < br / > < / td > < / tr >
2012-05-21 20:32:26 +00:00
< / table >
2013-04-04 11:51:15 +00:00
< hr / > < a name = "details" id = "details" > < / a > < h2 > Detailed Description< / h2 >
< div class = "textblock" > < p > Implements a session that may be attached to a shared diagram. < / p >
< / div > < hr / > < h2 > Constructor & Destructor Documentation< / h2 >
< a class = "anchor" id = "a917d860f029239d38f994a4ec8c050a8" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::mxSession" ref="a917d860f029239d38f994a4ec8c050a8" args="(string id, mxSharedDiagram diagram)" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a917d860f029239d38f994a4ec8c050a8" > com.mxgraph.mxSession.mxSession< / a > < / td >
2012-05-21 20:32:26 +00:00
< td > (< / td >
2013-04-04 11:51:15 +00:00
< td class = "paramtype" > string  < / td >
< td class = "paramname" > < em > id< / em > , < / td >
2012-05-21 20:32:26 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2013-04-04 11:51:15 +00:00
< td class = "paramtype" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSharedDiagram.html" > mxSharedDiagram< / a >   < / td >
< td class = "paramname" > < em > diagram< / em >   < / td >
2012-05-21 20:32:26 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
2013-04-04 11:51:15 +00:00
< td > < / td > < td > < code > [inline]< / code > < / td >
2012-05-21 20:32:26 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Constructs a new session with the given ID. < / p >
2013-04-04 11:51:15 +00:00
< dl class = "params" > < dt > < b > Parameters:< / b > < / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > id< / td > < td > Specifies the session ID to be used.< / td > < / tr >
< tr > < td class = "paramname" > diagram< / td > < td > Reference to the shared diagram.< / td > < / tr >
2012-05-21 20:32:26 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
< hr / > < h2 > Member Function Documentation< / h2 >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "aa3b3747c85960407fdd93f9be380c9ca" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::Destroy" ref="aa3b3747c85960407fdd93f9be380c9ca" args="()" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > void < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#aa3b3747c85960407fdd93f9be380c9ca" > com.mxgraph.mxSession.Destroy< / a > < / td >
2012-05-21 20:32:26 +00:00
< td > (< / td >
2013-04-04 11:51:15 +00:00
< td class = "paramname" > < / td > < td > )< / td >
2012-05-21 20:32:26 +00:00
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Destroys the session and removes its listener from the shared diagram. < / p >
< / div >
< / div >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "af305f6960c5cd86050f23380b438ab3f" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::DiagramChanged" ref="af305f6960c5cd86050f23380b438ab3f" args="(Object sender, string xml)" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > void < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#af305f6960c5cd86050f23380b438ab3f" > com.mxgraph.mxSession.DiagramChanged< / a > < / td >
2012-05-21 20:32:26 +00:00
< td > (< / td >
2013-04-04 11:51:15 +00:00
< td class = "paramtype" > Object  < / td >
< td class = "paramname" > < em > sender< / em > , < / td >
2012-05-21 20:32:26 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2013-04-04 11:51:15 +00:00
< td class = "paramtype" > string  < / td >
< td class = "paramname" > < em > xml< / em >   < / td >
2012-05-21 20:32:26 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
2013-04-04 11:51:15 +00:00
< td > < / td > < td > < code > [inline]< / code > < / td >
2012-05-21 20:32:26 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Invoked when the shared diagram has changed. < / p >
2013-04-04 11:51:15 +00:00
< dl class = "params" > < dt > < b > Parameters:< / b > < / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > sender< / td > < td > Session where the change was received from.< / td > < / tr >
< tr > < td class = "paramname" > xml< / td > < td > XML string that represents the change.< / td > < / tr >
2012-05-21 20:32:26 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "a6a947426cc1ccd4f77de8c83d554eef6" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::GetInitialMessage" ref="a6a947426cc1ccd4f77de8c83d554eef6" args="()" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > string < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a6a947426cc1ccd4f77de8c83d554eef6" > com.mxgraph.mxSession.GetInitialMessage< / a > < / td >
2012-05-21 20:32:26 +00:00
< td > (< / td >
2013-04-04 11:51:15 +00:00
< td class = "paramname" > < / td > < td > )< / td >
2012-05-21 20:32:26 +00:00
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Returns an XML string that represents the current state of the session and the shared diagram. A globally unique ID is used as the session's namespace, which is used on the client side to prefix IDs of newly created cells. < / p >
< / div >
< / div >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "afeae090ff25b15387ffb89a5ddb815c8" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::InactiveTimeMillis" ref="afeae090ff25b15387ffb89a5ddb815c8" args="()" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > long < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#afeae090ff25b15387ffb89a5ddb815c8" > com.mxgraph.mxSession.InactiveTimeMillis< / a > < / td >
2012-05-21 20:32:26 +00:00
< td > (< / td >
2013-04-04 11:51:15 +00:00
< td class = "paramname" > < / td > < td > )< / td >
2012-05-21 20:32:26 +00:00
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Returns the number of milliseconds this session has been inactive. < / p >
< / div >
< / div >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "aa4fc396cabbe5b805cf287cbd3859c97" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::Init" ref="aa4fc396cabbe5b805cf287cbd3859c97" args="()" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > string < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#aa4fc396cabbe5b805cf287cbd3859c97" > com.mxgraph.mxSession.Init< / a > < / td >
2012-05-21 20:32:26 +00:00
< td > (< / td >
2013-04-04 11:51:15 +00:00
< td class = "paramname" > < / td > < td > )< / td >
2012-05-21 20:32:26 +00:00
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Initializes the session buffer and returns a string that represents the state of the session. < / p >
< dl class = "return" > < dt > < b > Returns:< / b > < / dt > < dd > Returns the initial state of the session.< / dd > < / dl >
< / div >
< / div >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "a6beda19b5da62e5076d14a189bef7471" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::Poll" ref="a6beda19b5da62e5076d14a189bef7471" args="()" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > string < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a6beda19b5da62e5076d14a189bef7471" > com.mxgraph.mxSession.Poll< / a > < / td >
2012-05-21 20:32:26 +00:00
< td > (< / td >
2013-04-04 11:51:15 +00:00
< td class = "paramname" > < / td > < td > )< / td >
2012-05-21 20:32:26 +00:00
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-04-04 11:51:15 +00:00
< p > Returns the changes received by other sessions for the shared diagram. The method returns an empty XML node if no change was received within 10 seconds. < / p >
2012-05-21 20:32:26 +00:00
< dl class = "return" > < dt > < b > Returns:< / b > < / dt > < dd > Returns a string representing the changes to the shared diagram.< / dd > < / dl >
< / div >
< / div >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "a5cd687913e6c803d7cd21e5bd0043985" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::Poll" ref="a5cd687913e6c803d7cd21e5bd0043985" args="(int timeout)" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > string < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a6beda19b5da62e5076d14a189bef7471" > com.mxgraph.mxSession.Poll< / a > < / td >
2012-05-21 20:32:26 +00:00
< td > (< / td >
2013-04-04 11:51:15 +00:00
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > timeout< / em > < / td > < td > )< / td >
2012-05-21 20:32:26 +00:00
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-04-04 11:51:15 +00:00
< p > Returns the changes received by other sessions for the shared diagram. The method returns an empty XML node if no change was received within the given timeout. < / p >
< dl class = "params" > < dt > < b > Parameters:< / b > < / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > timeout< / td > < td > Time in milliseconds to wait for changes.< / td > < / tr >
< / table >
< / dd >
< / dl >
2012-05-21 20:32:26 +00:00
< dl class = "return" > < dt > < b > Returns:< / b > < / dt > < dd > Returns a string representing the changes to the shared diagram.< / dd > < / dl >
< / div >
< / div >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "ab691093cfec965dcfc4c5befffca18a7" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::Receive" ref="ab691093cfec965dcfc4c5befffca18a7" args="(XmlNode message)" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > void < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#ab691093cfec965dcfc4c5befffca18a7" > com.mxgraph.mxSession.Receive< / a > < / td >
2012-05-21 20:32:26 +00:00
< td > (< / td >
2013-04-04 11:51:15 +00:00
< td class = "paramtype" > XmlNode  < / td >
< td class = "paramname" > < em > message< / em > < / td > < td > )< / td >
2012-05-21 20:32:26 +00:00
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Posts the change represented by the given XML string to the shared diagram. < / p >
2013-04-04 11:51:15 +00:00
< dl class = "params" > < dt > < b > Parameters:< / b > < / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > xml< / td > < td > XML string that represents the change.< / td > < / tr >
2012-05-21 20:32:26 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
< hr / > < h2 > Member Data Documentation< / h2 >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "aaa0d3d363332e37a66dee0a0d38a7acb" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::buffer" ref="aaa0d3d363332e37a66dee0a0d38a7acb" args="" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > StringBuilder < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#aaa0d3d363332e37a66dee0a0d38a7acb" > com.mxgraph.mxSession.buffer< / a > = new StringBuilder()< code > [protected]< / code > < / td >
2012-05-21 20:32:26 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Holds the send buffer for this session. < / p >
< / div >
< / div >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "a1450251f61062db9caa04e6dd12534da" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::DEFAULT_TIMEOUT" ref="a1450251f61062db9caa04e6dd12534da" args="" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > int < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a1450251f61062db9caa04e6dd12534da" > com.mxgraph.mxSession.DEFAULT_TIMEOUT< / a > = 10000< code > [static]< / code > < / td >
2012-05-21 20:32:26 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Default timeout is 10000 ms. < / p >
< / div >
< / div >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "a892a9f4ac463579f782f302dbcbe95fe" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::diagram" ref="a892a9f4ac463579f782f302dbcbe95fe" args="" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSharedDiagram.html" > mxSharedDiagram< / a > < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a892a9f4ac463579f782f302dbcbe95fe" > com.mxgraph.mxSession.diagram< / a > < code > [protected]< / code > < / td >
2012-05-21 20:32:26 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Reference to the shared diagram. < / p >
< / div >
< / div >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "a2d89c49a46afe11d0e7440d7a63dba8f" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::id" ref="a2d89c49a46afe11d0e7440d7a63dba8f" args="" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > string < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a2d89c49a46afe11d0e7440d7a63dba8f" > com.mxgraph.mxSession.id< / a > < code > [protected]< / code > < / td >
2012-05-21 20:32:26 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Holds the session ID. < / p >
< / div >
< / div >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "ac8ca0c11db845ca7151326397a866654" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::lastTimeMillis" ref="ac8ca0c11db845ca7151326397a866654" args="" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > long < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#ac8ca0c11db845ca7151326397a866654" > com.mxgraph.mxSession.lastTimeMillis< / a > = 0< code > [protected]< / code > < / td >
2012-05-21 20:32:26 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Holds the last active time millis. < / p >
< / div >
< / div >
< hr / > < h2 > Property Documentation< / h2 >
2013-04-04 11:51:15 +00:00
< a class = "anchor" id = "a7ffb211995b7885112a7a8b70f08f5a6" > < / a > <!-- doxytag: member="com::mxgraph::mxSession::Id" ref="a7ffb211995b7885112a7a8b70f08f5a6" args="" -->
2012-05-21 20:32:26 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-04-04 11:51:15 +00:00
< td class = "memname" > string < a class = "el" href = "classcom_1_1mxgraph_1_1mxSession.html#a7ffb211995b7885112a7a8b70f08f5a6" > com.mxgraph.mxSession.Id< / a > < code > [get]< / code > < / td >
2012-05-21 20:32:26 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Returns the session ID. < / p >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > src/sharing/mxSession.cs< / li >
< / ul >
2013-04-04 11:51:15 +00:00
< / div > <!-- contents -->
< hr class = "footer" / > < address class = "footer" > < small >
2013-07-26 17:03:22 +00:00
Generated on Fri Jul 26 2013 18:01:40 for mxGraph by   < a href = "http://www.doxygen.org/index.html" >
2013-04-04 11:51:15 +00:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
< / a > 1.7.6.1
< / small > < / address >
2012-05-21 20:32:26 +00:00
< / body >
< / html >