Implements a session that may be attached to a shared diagram.
More...
|
| mxSession (string id, mxSharedDiagram diagram) |
| Constructs a new session with the given ID. More...
|
|
string | Init () |
| Initializes the session buffer and returns a string that represents the state of the session. More...
|
|
string | GetInitialMessage () |
| 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. More...
|
|
void | Receive (XmlNode message) |
| Posts the change represented by the given XML string to the shared diagram. More...
|
|
string | Poll () |
| 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. More...
|
|
string | Poll (int timeout) |
| 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. More...
|
|
void | DiagramChanged (Object sender, string xml) |
| Invoked when the shared diagram has changed. More...
|
|
long | InactiveTimeMillis () |
| Returns the number of milliseconds this session has been inactive. More...
|
|
void | Destroy () |
| Destroys the session and removes its listener from the shared diagram. More...
|
|
|
string | Id [get] |
| Returns the session ID. More...
|
|
Implements a session that may be attached to a shared diagram.
void com.mxgraph.mxSession.Destroy |
( |
) | |
|
|
inline |
void com.mxgraph.mxSession.DiagramChanged |
( |
Object |
sender, |
|
|
string |
xml |
|
) |
| |
|
inline |
Invoked when the shared diagram has changed.
- Parameters
-
sender | Session where the change was received from. |
xml | XML string that represents the change. |
string com.mxgraph.mxSession.GetInitialMessage |
( |
) | |
|
|
inline |
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.
long com.mxgraph.mxSession.InactiveTimeMillis |
( |
) | |
|
|
inline |
Returns the number of milliseconds this session has been inactive.
string com.mxgraph.mxSession.Init |
( |
) | |
|
|
inline |
Initializes the session buffer and returns a string that represents the state of the session.
- Returns
- Returns the initial state of the session.
string com.mxgraph.mxSession.Poll |
( |
) | |
|
|
inline |
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.
- Returns
- Returns a string representing the changes to the shared diagram.
string com.mxgraph.mxSession.Poll |
( |
int |
timeout) | |
|
|
inline |
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.
- Parameters
-
timeout | Time in milliseconds to wait for changes. |
- Returns
- Returns a string representing the changes to the shared diagram.
void com.mxgraph.mxSession.Receive |
( |
XmlNode |
message) | |
|
|
inline |
Posts the change represented by the given XML string to the shared diagram.
- Parameters
-
xml | XML string that represents the change. |
StringBuilder com.mxgraph.mxSession.buffer = new StringBuilder() |
|
protected |
Holds the send buffer for this session.
int com.mxgraph.mxSession.DEFAULT_TIMEOUT = 10000 |
|
static |
Default timeout is 10000 ms.
Reference to the shared diagram.
string com.mxgraph.mxSession.id |
|
protected |
long com.mxgraph.mxSession.lastTimeMillis = 0 |
|
protected |
Holds the last active time millis.
string com.mxgraph.mxSession.Id |
|
get |
The documentation for this class was generated from the following file: