maxGraph/docs/js-api/files/view/mxGraphView-js.html

275 lines
178 KiB
HTML
Raw Normal View History

2012-05-21 20:32:26 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><title>mxGraphView</title><link rel="stylesheet" type="text/css" href="../../styles/main.css"><script language=JavaScript src="../../javascript/main.js"></script><script language=JavaScript src="../../javascript/prettify.js"></script><script language=JavaScript src="../../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
<!-- Generated by Natural Docs, version 1.5 -->
<!-- http://www.naturaldocs.org -->
<!-- saved from url=(0026)http://www.naturaldocs.org -->
2013-11-11 12:31:46 +00:00
<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="mxGraphView"></a>mxGraphView</h1><div class=CBody><p>Extends <a href="../util/mxEventSource-js.html#mxEventSource" class=LClass id=link141 onMouseOver="ShowTip(event, 'tt1', 'link141')" onMouseOut="HideTip('tt1')">mxEventSource</a> to implement a view for a graph.&nbsp; This class is in charge of computing the absolute coordinates for the relative child geometries, the points for perimeters and edge styles and keeping them cached in <a href="mxCellState-js.html#mxCellState" class=LClass id=link142 onMouseOver="ShowTip(event, 'tt59', 'link142')" onMouseOut="HideTip('tt59')">mxCellStates</a> for faster retrieval.&nbsp; The states are updated whenever the model or the view state (translate, scale) changes.&nbsp; The scale and translate are honoured in the bounds.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#mxGraphView" >mxGraphView</a></td><td class=SDescription>Extends <a href="../util/mxEventSource-js.html#mxEventSource" class=LClass id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">mxEventSource</a> to implement a view for a graph. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#mxGraphView.Events" >Events</a></td><td class=SDescription></td></tr><tr class="SEvent SIndent2 SMarked"><td class=SEntry><a href="#mxGraphView.mxEvent.UNDO" >mxEvent.UNDO</a></td><td class=SDescription>Fires after the root was changed in <a href="#mxGraphView.setCurrentRoot" class=LFunction id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">setCurrentRoot</a>. </td></tr><tr class="SEvent SIndent2"><td class=SEntry><a href="#mxGraphView.mxEvent.SCALE_AND_TRANSLATE" >mxEvent.<wbr>SCALE_AND_TRANSLATE</a></td><td class=SDescription>Fires after the scale and translate have been changed in <a href="#mxGraphView.scaleAndTranslate" class=LFunction id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">scaleAndTranslate</a>. </td></tr><tr class="SEvent SIndent2 SMarked"><td class=SEntry><a href="#mxGraphView.mxEvent.SCALE" >mxEvent.<wbr>SCALE</a></td><td class=SDescription>Fires after the scale was changed in <a href="#mxGraphView.setScale" class=LFunction id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">setScale</a>. </td></tr><tr class="SEvent SIndent2"><td class=SEntry><a href="#mxGraphView.mxEvent.TRANSLATE" >mxEvent.<wbr>TRANSLATE</a></td><td class=SDescription>Fires after the translate was changed in <a href="#mxGraphView.setTranslate" class=LFunction id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">setTranslate</a>. </td></tr><tr class="SEvent SIndent2 SMarked"><td class=SEntry><a href="#mxGraphView.mxEvent.DOWN_and_mxEvent.UP" >mxEvent.<wbr>DOWN and mxEvent.UP</a></td><td class=SDescription>Fire if the current root is changed by executing an <a href="#mxCurrentRootChange" class=LClass id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">mxCurrentRootChange</a>. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#mxGraphView.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mxGraphView.mxGraphView" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">mxGraphView</a></td><td class=SDescription>Constructs a new view for the given <a href="mxGraph-js.html#mxGraph" class=LClass id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">mxGraph</a>.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#mxGraphView.Variables" >Variables</a></td><td class=SDescription></td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#mxGraphView.doneResource" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">doneResource</
2012-05-21 20:32:26 +00:00
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.Events"></a>Events</h3></div></div>
2013-11-11 12:31:46 +00:00
<div class="CEvent"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.mxEvent.UNDO"></a>mxEvent.UNDO</h3><div class=CBody><p>Fires after the root was changed in <a href="#mxGraphView.setCurrentRoot" class=LFunction id=link143 onMouseOver="ShowTip(event, 'tt2', 'link143')" onMouseOut="HideTip('tt2')">setCurrentRoot</a>.&nbsp; The &lt;code&gt;edit&lt;/code&gt; property contains the <a href="../util/mxUndoableEdit-js.html#mxUndoableEdit" class=LClass id=link144 onMouseOver="ShowTip(event, 'tt99', 'link144')" onMouseOut="HideTip('tt99')">mxUndoableEdit</a> which contains the <a href="#mxCurrentRootChange" class=LClass id=link145 onMouseOver="ShowTip(event, 'tt6', 'link145')" onMouseOut="HideTip('tt6')">mxCurrentRootChange</a>.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CEvent"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.mxEvent.SCALE_AND_TRANSLATE"></a>mxEvent.<wbr>SCALE_AND_TRANSLATE</h3><div class=CBody><p>Fires after the scale and translate have been changed in <a href="#mxGraphView.scaleAndTranslate" class=LFunction id=link146 onMouseOver="ShowTip(event, 'tt3', 'link146')" onMouseOut="HideTip('tt3')">scaleAndTranslate</a>.&nbsp; The &lt;code&gt;scale&lt;/code&gt;, &lt;code&gt;previousScale&lt;/code&gt;, &lt;code&gt;translate&lt;/code&gt; and &lt;code&gt;previousTranslate&lt;/code&gt; properties contain the new and previous scale and translate, respectively.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CEvent"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.mxEvent.SCALE"></a>mxEvent.<wbr>SCALE</h3><div class=CBody><p>Fires after the scale was changed in <a href="#mxGraphView.setScale" class=LFunction id=link147 onMouseOver="ShowTip(event, 'tt4', 'link147')" onMouseOut="HideTip('tt4')">setScale</a>.&nbsp; The &lt;code&gt;scale&lt;/code&gt; and &lt;code&gt;previousScale&lt;/code&gt; properties contain the new and previous scale.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CEvent"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.mxEvent.TRANSLATE"></a>mxEvent.<wbr>TRANSLATE</h3><div class=CBody><p>Fires after the translate was changed in <a href="#mxGraphView.setTranslate" class=LFunction id=link148 onMouseOver="ShowTip(event, 'tt5', 'link148')" onMouseOut="HideTip('tt5')">setTranslate</a>.&nbsp; The &lt;code&gt;translate&lt;/code&gt; and &lt;code&gt;previousTranslate&lt;/code&gt; properties contain the new and previous value for translate.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CEvent"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.mxEvent.DOWN_and_mxEvent.UP"></a>mxEvent.<wbr>DOWN and mxEvent.UP</h3><div class=CBody><p>Fire if the current root is changed by executing an <a href="#mxCurrentRootChange" class=LClass id=link149 onMouseOver="ShowTip(event, 'tt6', 'link149')" onMouseOut="HideTip('tt6')">mxCurrentRootChange</a>.&nbsp; The event name depends on the location of the root in the cell hierarchy with respect to the current root.&nbsp; The &lt;code&gt;root&lt;/code&gt; and &lt;code&gt;previous&lt;/code&gt; properties contain the new and previous root, respectively.</p></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.Functions"></a>Functions</h3></div></div>
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.mxGraphView"></a>mxGraphView</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function mxGraphView(</td><td class=PParameter nowrap>graph</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new view for the given <a href="mxGraph-js.html#mxGraph" class=LClass id=link150 onMouseOver="ShowTip(event, 'tt8', 'link150')" onMouseOut="HideTip('tt8')">mxGraph</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>graph</td><td class=CDLDescription>Reference to the enclosing <a href="mxGraph-js.html#mxGraph" class=LClass id=link151 onMouseOver="ShowTip(event, 'tt8', 'link151')" onMouseOut="HideTip('tt8')">mxGraph</a>.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.Variables"></a>Variables</h3></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.doneResource"></a>doneResource</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.doneResource</td></tr></table></blockquote><p>Specifies the resource key for the status message after a long operation.&nbsp; If the resource for this key does not exist then the value is used as the status message.&nbsp; Default is &lsquo;done&rsquo;.</p></div></div></div>
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.Functions"></a>Functions</h3></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.updatingDocumentResource"></a>updatingDocumentResource</h3><div class=CBody><p>Specifies the resource key for the status message while the document is being updated.&nbsp; If the resource for this key does not exist then the value is used as the status message.&nbsp; Default is &lsquo;updatingDocument&rsquo;.</p></div></div></div>
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.Variables"></a>Variables</h3></div></div>
2013-11-11 12:31:46 +00:00
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.allowEval"></a>allowEval</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.allowEval</td></tr></table></blockquote><p>Specifies if string values in cell styles should be evaluated using <a href="../util/mxUtils-js.html#mxUtils.eval" class=LFunction id=link152 onMouseOver="ShowTip(event, 'tt11', 'link152')" onMouseOut="HideTip('tt11')">mxUtils.eval</a>.&nbsp; This will only be used if the string values can&rsquo;t be mapped to objects using <a href="mxStyleRegistry-js.html#mxStyleRegistry" class=LClass id=link153 onMouseOver="ShowTip(event, 'tt100', 'link153')" onMouseOut="HideTip('tt100')">mxStyleRegistry</a>.&nbsp; Default is false.&nbsp; NOTE: Enabling this switch carries a possible security risk (see the section on security in the manual).</p></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.captureDocumentGesture"></a>captureDocumentGesture</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.captureDocumentGesture</td></tr></table></blockquote><p>Specifies if a gesture should be captured when it goes outside of the graph container.&nbsp; Default is true.</p></div></div></div>
2013-05-23 16:14:48 +00:00
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.optimizeVmlReflows"></a>optimizeVmlReflows</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.optimizeVmlReflows</td></tr></table></blockquote><p>Specifies if the &lt;canvas&gt; should be hidden while rendering in IE8 standards mode and quirks mode.&nbsp; This will significantly improve rendering performance.&nbsp; Default is true.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.rendering"></a>rendering</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.rendering</td></tr></table></blockquote><p>Specifies if shapes should be created, updated and destroyed using the methods of <a href="mxCellRenderer-js.html#mxCellRenderer" class=LClass id=link154 onMouseOver="ShowTip(event, 'tt15', 'link154')" onMouseOut="HideTip('tt15')">mxCellRenderer</a> in <a href="#mxGraphView.graph" class=LVariable id=link155 onMouseOver="ShowTip(event, 'tt16', 'link155')" onMouseOut="HideTip('tt16')">graph</a>.&nbsp; Default is true.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.graph"></a>graph</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.graph</td></tr></table></blockquote><p>Reference to the enclosing <a href="mxGraph-js.html#mxGraph" class=LClass id=link156 onMouseOver="ShowTip(event, 'tt8', 'link156')" onMouseOut="HideTip('tt8')">mxGraph</a>.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.currentRoot"></a>currentRoot</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.currentRoot</td></tr></table></blockquote><p><a href="../model/mxCell-js.html#mxCell" class=LClass id=link157 onMouseOver="ShowTip(event, 'tt18', 'link157')" onMouseOut="HideTip('tt18')">mxCell</a> that acts as the root of the displayed cell hierarchy.</p></div></div></div>
2013-05-23 16:14:48 +00:00
2013-11-11 12:31:46 +00:00
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.graphBounds"></a>graphBounds</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.graphBounds</td></tr></table></blockquote><p><a href="../util/mxRectangle-js.html#mxRectangle" class=LClass id=link158 onMouseOver="ShowTip(event, 'tt20', 'link158')" onMouseOut="HideTip('tt20')">mxRectangle</a> that caches the scales, translated bounds of the current view.</p></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.scale"></a>scale</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.scale</td></tr></table></blockquote><p>Specifies the scale.&nbsp; Default is 1 (100%).</p></div></div></div>
2013-11-11 12:31:46 +00:00
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.translate"></a>translate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.translate</td></tr></table></blockquote><p><a href="../util/mxPoint-js.html#mxPoint" class=LClass id=link159 onMouseOver="ShowTip(event, 'tt23', 'link159')" onMouseOut="HideTip('tt23')">mxPoint</a> that specifies the current translation.&nbsp; Default is a new empty <a href="../util/mxPoint-js.html#mxPoint" class=LClass id=link160 onMouseOver="ShowTip(event, 'tt23', 'link160')" onMouseOut="HideTip('tt23')">mxPoint</a>.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2012-12-18 13:09:38 +00:00
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.updateStyle"></a>updateStyle</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.updateStyle</td></tr></table></blockquote><p>Specifies if the style should be updated in each validation step.&nbsp; If this is false then the style is only updated if the state is created or if the style of the cell was changed.&nbsp; Default is false.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-10-28 08:56:36 +00:00
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.lastNode"></a>lastNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.lastNode</td></tr></table></blockquote><p>During validation, this contains the last DOM node that was processed.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.lastHtmlNode"></a>lastHtmlNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.lastHtmlNode</td></tr></table></blockquote><p>During validation, this contains the last HTML DOM node that was processed.</p></div></div></div>
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.lastEdgeNode"></a>lastEdgeNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.lastEdgeNode</td></tr></table></blockquote><p>During validation, this contains the last edge&rsquo;s DOM node that was processed.</p></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.Functions"></a>Functions</h3></div></div>
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getGraphBounds"></a>getGraphBounds</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.getGraphBounds = function()</td></tr></table></blockquote><p>Returns <a href="#mxGraphView.graphBounds" class=LVariable id=link161 onMouseOver="ShowTip(event, 'tt19', 'link161')" onMouseOut="HideTip('tt19')">graphBounds</a>.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.setGraphBounds"></a>setGraphBounds</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.setGraphBounds = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets <a href="#mxGraphView.graphBounds" class=LVariable id=link162 onMouseOver="ShowTip(event, 'tt19', 'link162')" onMouseOut="HideTip('tt19')">graphBounds</a>.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getBounds"></a>getBounds</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getBounds = function(</td><td class=PParameter nowrap>cells</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the bounds (on the screen) for the given array of <a href="../model/mxCell-js.html#mxCell" class=LClass id=link163 onMouseOver="ShowTip(event, 'tt18', 'link163')" onMouseOut="HideTip('tt18')">mxCells</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cells</td><td class=CDLDescription>Array of <a href="../model/mxCell-js.html#mxCell" class=LClass id=link164 onMouseOver="ShowTip(event, 'tt18', 'link164')" onMouseOut="HideTip('tt18')">mxCells</a> to return the bounds for.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.setCurrentRoot"></a>setCurrentRoot</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.setCurrentRoot = function(</td><td class=PParameter nowrap>root</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets and returns the current root and fires an &lt;undo&gt; event before calling <a href="mxGraph-js.html#mxGraph.sizeDidChange" class=LFunction id=link165 onMouseOver="ShowTip(event, 'tt31', 'link165')" onMouseOut="HideTip('tt31')">mxGraph.sizeDidChange</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>root</td><td class=CDLDescription><a href="../model/mxCell-js.html#mxCell" class=LClass id=link166 onMouseOver="ShowTip(event, 'tt18', 'link166')" onMouseOut="HideTip('tt18')">mxCell</a> that specifies the root of the displayed cell hierarchy.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.scaleAndTranslate"></a>scaleAndTranslate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.scaleAndTranslate = function(</td><td class=PParameter nowrap>scale,</td></tr><tr><td></td><td class=PParameter nowrap>dx,</td></tr><tr><td></td><td class=PParameter nowrap>dy</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the scale and translation and fires a <a href="#mxGraphView.scale" class=LVariable id=link167 onMouseOver="ShowTip(event, 'tt21', 'link167')" onMouseOut="HideTip('tt21')">scale</a> and <a href="#mxGraphView.translate" class=LVariable id=link168 onMouseOver="ShowTip(event, 'tt22', 'link168')" onMouseOut="HideTip('tt22')">translate</a> event before calling <a href="#mxGraphView.revalidate" class=LFunction id=link169 onMouseOver="ShowTip(event, 'tt32', 'link169')" onMouseOut="HideTip('tt32')">revalidate</a> followed by <a href="mxGraph-js.html#mxGraph.sizeDidChange" class=LFunction id=link170 onMouseOver="ShowTip(event, 'tt31', 'link170')" onMouseOut="HideTip('tt31')">mxGraph.sizeDidChange</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>scale</td><td class=CDLDescription>Decimal value that specifies the new scale (1 is 100%).</td></tr><tr><td class=CDLEntry>dx</td><td class=CDLDescription>X-coordinate of the translation.</td></tr><tr><td class=CDLEntry>dy</td><td class=CDLDescription>Y-coordinate of the translation.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getScale"></a>getScale</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.getScale = function()</td></tr></table></blockquote><p>Returns the <a href="#mxGraphView.scale" class=LVariable id=link171 onMouseOver="ShowTip(event, 'tt21', 'link171')" onMouseOut="HideTip('tt21')">scale</a>.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.setScale"></a>setScale</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.setScale = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the scale and fires a <a href="#mxGraphView.scale" class=LVariable id=link172 onMouseOver="ShowTip(event, 'tt21', 'link172')" onMouseOut="HideTip('tt21')">scale</a> event before calling <a href="#mxGraphView.revalidate" class=LFunction id=link173 onMouseOver="ShowTip(event, 'tt32', 'link173')" onMouseOut="HideTip('tt32')">revalidate</a> followed by <a href="mxGraph-js.html#mxGraph.sizeDidChange" class=LFunction id=link174 onMouseOver="ShowTip(event, 'tt31', 'link174')" onMouseOut="HideTip('tt31')">mxGraph.sizeDidChange</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>value</td><td class=CDLDescription>Decimal value that specifies the new scale (1 is 100%).</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getTranslate"></a>getTranslate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.getTranslate = function()</td></tr></table></blockquote><p>Returns the <a href="#mxGraphView.translate" class=LVariable id=link175 onMouseOver="ShowTip(event, 'tt22', 'link175')" onMouseOut="HideTip('tt22')">translate</a>.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.setTranslate"></a>setTranslate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.setTranslate = function(</td><td class=PParameter nowrap>dx,</td></tr><tr><td></td><td class=PParameter nowrap>dy</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the translation and fires a <a href="#mxGraphView.translate" class=LVariable id=link176 onMouseOver="ShowTip(event, 'tt22', 'link176')" onMouseOut="HideTip('tt22')">translate</a> event before calling <a href="#mxGraphView.revalidate" class=LFunction id=link177 onMouseOver="ShowTip(event, 'tt32', 'link177')" onMouseOut="HideTip('tt32')">revalidate</a> followed by <a href="mxGraph-js.html#mxGraph.sizeDidChange" class=LFunction id=link178 onMouseOver="ShowTip(event, 'tt31', 'link178')" onMouseOut="HideTip('tt31')">mxGraph.sizeDidChange</a>.&nbsp; The translation is the negative of the origin.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>dx</td><td class=CDLDescription>X-coordinate of the translation.</td></tr><tr><td class=CDLEntry>dy</td><td class=CDLDescription>Y-coordinate of the translation.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.refresh"></a>refresh</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.refresh = function()</td></tr></table></blockquote><p>Clears the view if <a href="#mxGraphView.currentRoot" class=LVariable id=link179 onMouseOver="ShowTip(event, 'tt17', 'link179')" onMouseOut="HideTip('tt17')">currentRoot</a> is not null and revalidates.</p></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.revalidate"></a>revalidate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.revalidate = function()</td></tr></table></blockquote><p>Revalidates the complete view with all cell states.</p></div></div></div>
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.clear"></a>clear</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.clear = function(</td><td class=PParameter nowrap>cell,</td></tr><tr><td></td><td class=PParameter nowrap>force,</td></tr><tr><td></td><td class=PParameter nowrap>recurse</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Removes the state of the given cell and all descendants if the given cell is not the current root.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription>Optional <a href="../model/mxCell-js.html#mxCell" class=LClass id=link180 onMouseOver="ShowTip(event, 'tt18', 'link180')" onMouseOut="HideTip('tt18')">mxCell</a> for which the state should be removed.&nbsp; Default is the root of the model.</td></tr><tr><td class=CDLEntry>force</td><td class=CDLDescription>Boolean indicating if the current root should be ignored for recursion.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.invalidate"></a>invalidate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.invalidate = function(</td><td class=PParameter nowrap>cell,</td></tr><tr><td></td><td class=PParameter nowrap>recurse,</td></tr><tr><td></td><td class=PParameter nowrap>includeEdges</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Invalidates the state of the given cell, all its descendants and connected edges.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription>Optional <a href="../model/mxCell-js.html#mxCell" class=LClass id=link181 onMouseOver="ShowTip(event, 'tt18', 'link181')" onMouseOut="HideTip('tt18')">mxCell</a> to be invalidated.&nbsp; Default is the root of the model.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.resetValidationState"></a>resetValidationState</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.resetValidationState = function()</td></tr></table></blockquote><p>Resets the current validation state.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.validate"></a>validate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.validate = function(</td><td class=PParameter nowrap>cell</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>First validates all bounds and then validates all points recursively on all visible cells starting at the given cell.&nbsp; Finally the background is validated using <a href="#mxGraphView.validateBackground" class=LFunction id=link182 onMouseOver="ShowTip(event, 'tt41', 'link182')" onMouseOut="HideTip('tt41')">validateBackground</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription>Optional <a href="../model/mxCell-js.html#mxCell" class=LClass id=link183 onMouseOver="ShowTip(event, 'tt18', 'link183')" onMouseOut="HideTip('tt18')">mxCell</a> to be used as the root of the validation.&nbsp; Default is <a href="#mxGraphView.currentRoot" class=LVariable id=link184 onMouseOver="ShowTip(event, 'tt17', 'link184')" onMouseOut="HideTip('tt17')">currentRoot</a> or the root of the model.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.createBackgroundPageShape"></a>createBackgroundPageShape</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.createBackgroundPageShape = function(</td><td class=PParameter nowrap>bounds</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates and returns the shape used as the background page.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bounds</td><td class=CDLDescription><a href="../util/mxRectangle-js.html#mxRectangle" class=LClass id=link185 onMouseOver="ShowTip(event, 'tt20', 'link185')" onMouseOut="HideTip('tt20')">mxRectangle</a> that represents the bounds of the shape.</td></tr></table></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.validateBackground"></a>validateBackground</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.validateBackground = function()</td></tr></table></blockquote><p>Calls <a href="#mxGraphView.validateBackgroundImage" class=LFunction id=link186 onMouseOver="ShowTip(event, 'tt42', 'link186')" onMouseOut="HideTip('tt42')">validateBackgroundImage</a> and <a href="#mxGraphView.validateBackgroundPage" class=LFunction id=link187 onMouseOver="ShowTip(event, 'tt43', 'link187')" onMouseOut="HideTip('tt43')">validateBackgroundPage</a>.</p></div></div></div>
2013-07-25 08:26:27 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.validateBackgroundImage"></a>validateBackgroundImage</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.validateBackgroundImage = function()</td></tr></table></blockquote><p>Validates the background image.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.validateBackgroundPage"></a>validateBackgroundPage</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.validateBackgroundPage = function()</td></tr></table></blockquote><p>Validates the background page.</p></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getBackgroundPageBounds"></a>getBackgroundPageBounds</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.getBackgroundPageBounds = function()</td></tr></table></blockquote><p>Returns the bounds for the background page.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.redrawBackgroundImage"></a>redrawBackgroundImage</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.redrawBackgroundImage = function(</td><td class=PParameter nowrap>backgroundImage,</td></tr><tr><td></td><td class=PParameter nowrap>bg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the bounds and redraws the background image.</p><h4 class=CHeading>Example</h4><p>If the background image should not be scaled, this can be replaced with the following.</p><blockquote><pre class="prettyprint">mxGraphView.prototype.redrawBackground = function(backgroundImage, bg)
{
backgroundImage.bounds.x = this.translate.x;
backgroundImage.bounds.y = this.translate.y;
backgroundImage.bounds.width = bg.width;
backgroundImage.bounds.height = bg.height;
backgroundImage.redraw();
2013-11-11 12:31:46 +00:00
};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>backgroundImage</td><td class=CDLDescription><a href="../shape/mxImageShape-js.html#mxImageShape" class=LClass id=link188 onMouseOver="ShowTip(event, 'tt101', 'link188')" onMouseOut="HideTip('tt101')">mxImageShape</a> that represents the background image.</td></tr><tr><td class=CDLEntry>bg</td><td class=CDLDescription><a href="../util/mxImage-js.html#mxImage" class=LClass id=link189 onMouseOver="ShowTip(event, 'tt102', 'link189')" onMouseOut="HideTip('tt102')">mxImage</a> that specifies the image and its dimensions.</td></tr></table></div></div></div>
2013-10-28 08:56:36 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.validateBounds"></a>validateBounds</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.validateBounds = function(</td><td class=PParameter nowrap>parentState,</td></tr><tr><td></td><td class=PParameter nowrap>cell</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Validates the bounds of the given parent&rsquo;s child using the given parent state as the origin for the child.&nbsp; The validation is carried out recursively for all non-collapsed descendants.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>parentState</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link190 onMouseOver="ShowTip(event, 'tt59', 'link190')" onMouseOut="HideTip('tt59')">mxCellState</a> for the given parent.</td></tr><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="../model/mxCell-js.html#mxCell" class=LClass id=link191 onMouseOver="ShowTip(event, 'tt18', 'link191')" onMouseOut="HideTip('tt18')">mxCell</a> for which the bounds in the state should be updated.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.updateVertexLabelOffset"></a>updateVertexLabelOffset</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.updateVertexLabelOffset = function(</td><td class=PParameter nowrap>state</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the absoluteOffset of the given vertex cell state.&nbsp; This takes into account the label position styles.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>state</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link192 onMouseOver="ShowTip(event, 'tt59', 'link192')" onMouseOut="HideTip('tt59')">mxCellState</a> whose absolute offset should be updated.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.validatePoints"></a>validatePoints</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.validatePoints = function(</td><td class=PParameter nowrap>parentState,</td></tr><tr><td></td><td class=PParameter nowrap>cell</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Validates the points for the state of the given cell recursively if the cell is not collapsed and returns the bounding box of all visited states as an <a href="../util/mxRectangle-js.html#mxRectangle" class=LClass id=link193 onMouseOver="ShowTip(event, 'tt20', 'link193')" onMouseOut="HideTip('tt20')">mxRectangle</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>parentState</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link194 onMouseOver="ShowTip(event, 'tt59', 'link194')" onMouseOut="HideTip('tt59')">mxCellState</a> for the parent cell.</td></tr><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="../model/mxCell-js.html#mxCell" class=LClass id=link195 onMouseOver="ShowTip(event, 'tt18', 'link195')" onMouseOut="HideTip('tt18')">mxCell</a> whose points in the state should be updated.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.stateValidated"></a>stateValidated</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.stateValidated = function(</td><td class=PParameter nowrap>state</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Invoked when a state has been processed in <a href="#mxGraphView.validatePoints" class=LFunction id=link196 onMouseOver="ShowTip(event, 'tt48', 'link196')" onMouseOut="HideTip('tt48')">validatePoints</a>.&nbsp; This is used to update the order of the DOM nodes of the shape.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>state</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link197 onMouseOver="ShowTip(event, 'tt59', 'link197')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the cell state.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.childMoved"></a>childMoved</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.childMoved = function(</td><td class=PParameter nowrap>parent,</td></tr><tr><td></td><td class=PParameter nowrap>child</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Invoked when a child state was moved as a result of late evaluation of its position.&nbsp; This is invoked for relative edge children whose position can only be determined after the points of the parent edge are updated in validatePoints, and validates the bounds of all descendants of the child using validateBounds.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>parent</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link198 onMouseOver="ShowTip(event, 'tt59', 'link198')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the parent state.</td></tr><tr><td class=CDLEntry>child</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link199 onMouseOver="ShowTip(event, 'tt59', 'link199')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the child state.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.updateFixedTerminalPoints"></a>updateFixedTerminalPoints</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.updateFixedTerminalPoints = function(</td><td class=PParameter nowrap>edge,</td></tr><tr><td></td><td class=PParameter nowrap>source,</td></tr><tr><td></td><td class=PParameter nowrap>target</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the initial absolute terminal points in the given state before the edge style is computed.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>edge</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link200 onMouseOver="ShowTip(event, 'tt59', 'link200')" onMouseOut="HideTip('tt59')">mxCellState</a> whose initial terminal points should be updated.</td></tr><tr><td class=CDLEntry>source</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link201 onMouseOver="ShowTip(event, 'tt59', 'link201')" onMouseOut="HideTip('tt59')">mxCellState</a> which represents the source terminal.</td></tr><tr><td class=CDLEntry>target</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link202 onMouseOver="ShowTip(event, 'tt59', 'link202')" onMouseOut="HideTip('tt59')">mxCellState</a> which represents the target terminal.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.updateFixedTerminalPoint"></a>updateFixedTerminalPoint</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.updateFixedTerminalPoint = function(</td><td class=PParameter nowrap>edge,</td></tr><tr><td></td><td class=PParameter nowrap>terminal,</td></tr><tr><td></td><td class=PParameter nowrap>source,</td></tr><tr><td></td><td class=PParameter nowrap>constraint</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the fixed source or target terminal point on the given edge.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>edge</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link203 onMouseOver="ShowTip(event, 'tt59', 'link203')" onMouseOut="HideTip('tt59')">mxCellState</a> whose terminal point should be updated.</td></tr><tr><td class=CDLEntry>terminal</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link204 onMouseOver="ShowTip(event, 'tt59', 'link204')" onMouseOut="HideTip('tt59')">mxCellState</a> which represents the actual terminal.</td></tr><tr><td class=CDLEntry>source</td><td class=CDLDescription>Boolean that specifies if the terminal is the source.</td></tr><tr><td class=CDLEntry>constraint</td><td class=CDLDescription><a href="mxConnectionConstraint-js.html#mxConnectionConstraint" class=LClass id=link205 onMouseOver="ShowTip(event, 'tt103', 'link205')" onMouseOut="HideTip('tt103')">mxConnectionConstraint</a> that specifies the connection.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.updatePoints"></a>updatePoints</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.updatePoints = function(</td><td class=PParameter nowrap>edge,</td></tr><tr><td></td><td class=PParameter nowrap>points,</td></tr><tr><td></td><td class=PParameter nowrap>source,</td></tr><tr><td></td><td class=PParameter nowrap>target</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the absolute points in the given state using the specified array of <a href="../util/mxPoint-js.html#mxPoint" class=LClass id=link206 onMouseOver="ShowTip(event, 'tt23', 'link206')" onMouseOut="HideTip('tt23')">mxPoints</a> as the relative points.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>edge</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link207 onMouseOver="ShowTip(event, 'tt59', 'link207')" onMouseOut="HideTip('tt59')">mxCellState</a> whose absolute points should be updated.</td></tr><tr><td class=CDLEntry>points</td><td class=CDLDescription>Array of <a href="../util/mxPoint-js.html#mxPoint" class=LClass id=link208 onMouseOver="ShowTip(event, 'tt23', 'link208')" onMouseOut="HideTip('tt23')">mxPoints</a> that constitute the relative points.</td></tr><tr><td class=CDLEntry>source</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link209 onMouseOver="ShowTip(event, 'tt59', 'link209')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the source terminal.</td></tr><tr><td class=CDLEntry>target</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link210 onMouseOver="ShowTip(event, 'tt59', 'link210')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the target terminal.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.transformControlPoint"></a>transformControlPoint</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.transformControlPoint = function(</td><td class=PParameter nowrap>state,</td></tr><tr><td></td><td class=PParameter nowrap>pt</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Transforms the given control point to an absolute point.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getEdgeStyle"></a>getEdgeStyle</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getEdgeStyle = function(</td><td class=PParameter nowrap>edge,</td></tr><tr><td></td><td class=PParameter nowrap>points,</td></tr><tr><td></td><td class=PParameter nowrap>source,</td></tr><tr><td></td><td class=PParameter nowrap>target</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the edge style function to be used to render the given edge state.</p></div></div></div>
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.updateFloatingTerminalPoints"></a>updateFloatingTerminalPoints</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.updateFloatingTerminalPoints = function(</td><td class=PParameter nowrap>state,</td></tr><tr><td></td><td class=PParameter nowrap>source,</td></tr><tr><td></td><td class=PParameter nowrap>target</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the terminal points in the given state after the edge style was computed for the edge.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>state</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link211 onMouseOver="ShowTip(event, 'tt59', 'link211')" onMouseOut="HideTip('tt59')">mxCellState</a> whose terminal points should be updated.</td></tr><tr><td class=CDLEntry>source</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link212 onMouseOver="ShowTip(event, 'tt59', 'link212')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the source terminal.</td></tr><tr><td class=CDLEntry>target</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link213 onMouseOver="ShowTip(event, 'tt59', 'link213')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the target terminal.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.updateFloatingTerminalPoint"></a>updateFloatingTerminalPoint</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.updateFloatingTerminalPoint = function(</td><td class=PParameter nowrap>edge,</td></tr><tr><td></td><td class=PParameter nowrap>start,</td></tr><tr><td></td><td class=PParameter nowrap>end,</td></tr><tr><td></td><td class=PParameter nowrap>source</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the absolute terminal point in the given state for the given start and end state, where start is the source if source is true.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>edge</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link214 onMouseOver="ShowTip(event, 'tt59', 'link214')" onMouseOut="HideTip('tt59')">mxCellState</a> whose terminal point should be updated.</td></tr><tr><td class=CDLEntry>start</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link215 onMouseOver="ShowTip(event, 'tt59', 'link215')" onMouseOut="HideTip('tt59')">mxCellState</a> for the terminal on &ldquo;this&rdquo; side of the edge.</td></tr><tr><td class=CDLEntry>end</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link216 onMouseOver="ShowTip(event, 'tt59', 'link216')" onMouseOut="HideTip('tt59')">mxCellState</a> for the terminal on the other side of the edge.</td></tr><tr><td class=CDLEntry>source</td><td class=CDLDescription>Boolean indicating if start is the source terminal state.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getTerminalPort"></a>getTerminalPort</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getTerminalPort = function(</td><td class=PParameter nowrap>state,</td></tr><tr><td></td><td class=PParameter nowrap>terminal,</td></tr><tr><td></td><td class=PParameter nowrap>source</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns an <a href="mxCellState-js.html#mxCellState" class=LClass id=link217 onMouseOver="ShowTip(event, 'tt59', 'link217')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the source or target terminal or port for the given edge.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>state</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link218 onMouseOver="ShowTip(event, 'tt59', 'link218')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the state of the edge.</td></tr><tr><td class=CDLEntry>terminal</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link219 onMouseOver="ShowTip(event, 'tt59', 'link219')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the terminal.</td></tr><tr><td class=CDLEntry>source</td><td class=CDLDescription>Boolean indicating if the given terminal is the source terminal.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getPerimeterPoint"></a>getPerimeterPoint</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getPerimeterPoint = function(</td><td class=PParameter nowrap>terminal,</td></tr><tr><td></td><td class=PParameter nowrap>next,</td></tr><tr><td></td><td class=PParameter nowrap>orthogonal,</td></tr><tr><td></td><td class=PParameter nowrap>border</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns an <a href="../util/mxPoint-js.html#mxPoint" class=LClass id=link220 onMouseOver="ShowTip(event, 'tt23', 'link220')" onMouseOut="HideTip('tt23')">mxPoint</a> that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>terminal</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link221 onMouseOver="ShowTip(event, 'tt59', 'link221')" onMouseOut="HideTip('tt59')">mxCellState</a> for the source or target terminal.</td></tr><tr><td class=CDLEntry>next</td><td class=CDLDescription><a href="../util/mxPoint-js.html#mxPoint" class=LClass id=link222 onMouseOver="ShowTip(event, 'tt23', 'link222')" onMouseOut="HideTip('tt23')">mxPoint</a> that lies outside of the given terminal.</td></tr><tr><td class=CDLEntry>orthogonal</td><td class=CDLDescription>Boolean that specifies if the orthogonal projection onto the perimeter should be returned.&nbsp; If this is false then the intersection of the perimeter and the line between the next and the center point is returned.</td></tr><tr><td class=CDLEntry>border</td><td class=CDLDescription>Optional border between the perimeter and the shape.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getRoutingCenterX"></a>getRoutingCenterX</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getRoutingCenterX = function (</td><td class=PParameter nowrap>state</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the x-coordinate of the center point for automatic routing.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getRoutingCenterY"></a>getRoutingCenterY</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getRoutingCenterY = function (</td><td class=PParameter nowrap>state</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the y-coordinate of the center point for automatic routing.</p></div></div></div>
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getPerimeterBounds"></a>getPerimeterBounds</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getPerimeterBounds = function(</td><td class=PParameter nowrap>terminal,</td></tr><tr><td></td><td class=PParameter nowrap>border</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the perimeter bounds for the given terminal, edge pair as an <a href="../util/mxRectangle-js.html#mxRectangle" class=LClass id=link223 onMouseOver="ShowTip(event, 'tt20', 'link223')" onMouseOut="HideTip('tt20')">mxRectangle</a>.</p><p>If you have a model where each terminal has a relative child that should act as the graphical endpoint for a connection from/to the terminal, then this method can be replaced as follows:</p><blockquote><pre class="prettyprint">var oldGetPerimeterBounds = mxGraphView.prototype.getPerimeterBounds;
2012-05-21 20:32:26 +00:00
mxGraphView.prototype.getPerimeterBounds = function(terminal, edge, isSource)
{
var model = this.graph.getModel();
var childCount = model.getChildCount(terminal.cell);
if (childCount &gt; 0)
{
var child = model.getChildAt(terminal.cell, 0);
var geo = model.getGeometry(child);
if (geo != null &amp;&amp;
geo.relative)
{
var state = this.getState(child);
if (state != null)
{
terminal = state;
}
}
}
return oldGetPerimeterBounds.apply(this, arguments);
2013-11-11 12:31:46 +00:00
};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>terminal</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link224 onMouseOver="ShowTip(event, 'tt59', 'link224')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the terminal.</td></tr><tr><td class=CDLEntry>border</td><td class=CDLDescription>Number that adds a border between the shape and the perimeter.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getPerimeterFunction"></a>getPerimeterFunction</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getPerimeterFunction = function(</td><td class=PParameter nowrap>state</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the perimeter function for the given state.</p></div></div></div>
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getNextPoint"></a>getNextPoint</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getNextPoint = function(</td><td class=PParameter nowrap>edge,</td></tr><tr><td></td><td class=PParameter nowrap>opposite,</td></tr><tr><td></td><td class=PParameter nowrap>source</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the nearest point in the list of absolute points or the center of the opposite terminal.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>edge</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link225 onMouseOver="ShowTip(event, 'tt59', 'link225')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the edge.</td></tr><tr><td class=CDLEntry>opposite</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link226 onMouseOver="ShowTip(event, 'tt59', 'link226')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the opposite terminal.</td></tr><tr><td class=CDLEntry>source</td><td class=CDLDescription>Boolean indicating if the next point for the source or target should be returned.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getVisibleTerminal"></a>getVisibleTerminal</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getVisibleTerminal = function(</td><td class=PParameter nowrap>edge,</td></tr><tr><td></td><td class=PParameter nowrap>source</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the nearest ancestor terminal that is visible.&nbsp; The edge appears to be connected to this terminal on the display.&nbsp; The result of this method is cached in <a href="mxCellState-js.html#mxCellState.getVisibleTerminalState" class=LFunction id=link227 onMouseOver="ShowTip(event, 'tt104', 'link227')" onMouseOut="HideTip('tt104')">mxCellState.getVisibleTerminalState</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>edge</td><td class=CDLDescription><a href="../model/mxCell-js.html#mxCell" class=LClass id=link228 onMouseOver="ShowTip(event, 'tt18', 'link228')" onMouseOut="HideTip('tt18')">mxCell</a> whose visible terminal should be returned.</td></tr><tr><td class=CDLEntry>source</td><td class=CDLDescription>Boolean that specifies if the source or target terminal should be returned.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.updateEdgeBounds"></a>updateEdgeBounds</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.updateEdgeBounds = function(</td><td class=PParameter nowrap>state</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the given state using the bounding box of t he absolute points.&nbsp; Also updates <a href="mxCellState-js.html#mxCellState.terminalDistance" class=LVariable id=link229 onMouseOver="ShowTip(event, 'tt105', 'link229')" onMouseOut="HideTip('tt105')">mxCellState.terminalDistance</a>, <a href="mxCellState-js.html#mxCellState.length" class=LVariable id=link230 onMouseOver="ShowTip(event, 'tt106', 'link230')" onMouseOut="HideTip('tt106')">mxCellState.length</a> and <a href="mxCellState-js.html#mxCellState.segments" class=LVariable id=link231 onMouseOver="ShowTip(event, 'tt107', 'link231')" onMouseOut="HideTip('tt107')">mxCellState.segments</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>state</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link232 onMouseOver="ShowTip(event, 'tt59', 'link232')" onMouseOut="HideTip('tt59')">mxCellState</a> whose bounds should be updated.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getPoint"></a>getPoint</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getPoint = function(</td><td class=PParameter nowrap>state,</td></tr><tr><td></td><td class=PParameter nowrap>geometry</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the absolute point on the edge for the given relative <a href="../model/mxGeometry-js.html#mxGeometry" class=LClass id=link233 onMouseOver="ShowTip(event, 'tt69', 'link233')" onMouseOut="HideTip('tt69')">mxGeometry</a> as an <a href="../util/mxPoint-js.html#mxPoint" class=LClass id=link234 onMouseOver="ShowTip(event, 'tt23', 'link234')" onMouseOut="HideTip('tt23')">mxPoint</a>.&nbsp; The edge is represented by the given <a href="mxCellState-js.html#mxCellState" class=LClass id=link235 onMouseOver="ShowTip(event, 'tt59', 'link235')" onMouseOut="HideTip('tt59')">mxCellState</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>state</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link236 onMouseOver="ShowTip(event, 'tt59', 'link236')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the state of the parent edge.</td></tr><tr><td class=CDLEntry>geometry</td><td class=CDLDescription><a href="../model/mxGeometry-js.html#mxGeometry" class=LClass id=link237 onMouseOver="ShowTip(event, 'tt69', 'link237')" onMouseOut="HideTip('tt69')">mxGeometry</a> that represents the relative location.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getRelativePoint"></a>getRelativePoint</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getRelativePoint = function(</td><td class=PParameter nowrap>edgeState,</td></tr><tr><td></td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PParameter nowrap>y</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Gets the relative point that describes the given, absolute label position for the given edge state.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>state</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link238 onMouseOver="ShowTip(event, 'tt59', 'link238')" onMouseOut="HideTip('tt59')">mxCellState</a> that represents the state of the parent edge.</td></tr><tr><td class=CDLEntry>x</td><td class=CDLDescription>Specifies the x-coordinate of the absolute label location.</td></tr><tr><td class=CDLEntry>y</td><td class=CDLDescription>Specifies the y-coordinate of the absolute label location.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.updateEdgeLabelOffset"></a>updateEdgeLabelOffset</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.updateEdgeLabelOffset = function(</td><td class=PParameter nowrap>state</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates <a href="mxCellState-js.html#mxCellState.absoluteOffset" class=LVariable id=link239 onMouseOver="ShowTip(event, 'tt72', 'link239')" onMouseOut="HideTip('tt72')">mxCellState.absoluteOffset</a> for the given state.&nbsp; The absolute offset is normally used for the position of the edge label.&nbsp; Is is calculated from the geometry as an absolute offset from the center between the two endpoints if the geometry is absolute, or as the relative distance between the center along the line and the absolute orthogonal distance if the geometry is relative.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>state</td><td class=CDLDescription><a href="mxCellState-js.html#mxCellState" class=LClass id=link240 onMouseOver="ShowTip(event, 'tt59', 'link240')" onMouseOut="HideTip('tt59')">mxCellState</a> whose absolute offset should be updated.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getState"></a>getState</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getState = function(</td><td class=PParameter nowrap>cell,</td></tr><tr><td></td><td class=PParameter nowrap>create</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the <a href="mxCellState-js.html#mxCellState" class=LClass id=link241 onMouseOver="ShowTip(event, 'tt59', 'link241')" onMouseOut="HideTip('tt59')">mxCellState</a> for the given cell.&nbsp; If create is true, then the state is created if it does not yet exist.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="../model/mxCell-js.html#mxCell" class=LClass id=link242 onMouseOver="ShowTip(event, 'tt18', 'link242')" onMouseOut="HideTip('tt18')">mxCell</a> for which the <a href="mxCellState-js.html#mxCellState" class=LClass id=link243 onMouseOver="ShowTip(event, 'tt59', 'link243')" onMouseOut="HideTip('tt59')">mxCellState</a> should be returned.</td></tr><tr><td class=CDLEntry>create</td><td class=CDLDescription>Optional boolean indicating if a new state should be created if it does not yet exist.&nbsp; Default is false.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.isRendering"></a>isRendering</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.isRendering = function()</td></tr></table></blockquote><p>Returns <a href="#mxGraphView.rendering" class=LVariable id=link244 onMouseOver="ShowTip(event, 'tt14', 'link244')" onMouseOut="HideTip('tt14')">rendering</a>.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.setRendering"></a>setRendering</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.setRendering = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets <a href="#mxGraphView.rendering" class=LVariable id=link245 onMouseOver="ShowTip(event, 'tt14', 'link245')" onMouseOut="HideTip('tt14')">rendering</a>.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.isAllowEval"></a>isAllowEval</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.isAllowEval = function()</td></tr></table></blockquote><p>Returns <a href="#mxGraphView.allowEval" class=LVariable id=link246 onMouseOver="ShowTip(event, 'tt10', 'link246')" onMouseOut="HideTip('tt10')">allowEval</a>.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.setAllowEval"></a>setAllowEval</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.setAllowEval = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets <a href="#mxGraphView.allowEval" class=LVariable id=link247 onMouseOver="ShowTip(event, 'tt10', 'link247')" onMouseOut="HideTip('tt10')">allowEval</a>.</p></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getStates"></a>getStates</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.getStates = function()</td></tr></table></blockquote><p>Returns &lt;states&gt;.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.setStates"></a>setStates</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.setStates = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets &lt;states&gt;.</p></div></div></div>
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getCellStates"></a>getCellStates</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.getCellStates = function(</td><td class=PParameter nowrap>cells</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the <a href="mxCellState-js.html#mxCellState" class=LClass id=link248 onMouseOver="ShowTip(event, 'tt59', 'link248')" onMouseOut="HideTip('tt59')">mxCellStates</a> for the given array of <a href="../model/mxCell-js.html#mxCell" class=LClass id=link249 onMouseOver="ShowTip(event, 'tt18', 'link249')" onMouseOut="HideTip('tt18')">mxCells</a>.&nbsp; The array contains all states that are not null, that is, the returned array may have less elements than the given array.&nbsp; If no argument is given, then this returns &lt;states&gt;.</p></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.removeState"></a>removeState</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.removeState = function(</td><td class=PParameter nowrap>cell</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Removes and returns the <a href="mxCellState-js.html#mxCellState" class=LClass id=link250 onMouseOver="ShowTip(event, 'tt59', 'link250')" onMouseOut="HideTip('tt59')">mxCellState</a> for the given cell.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="../model/mxCell-js.html#mxCell" class=LClass id=link251 onMouseOver="ShowTip(event, 'tt18', 'link251')" onMouseOut="HideTip('tt18')">mxCell</a> for which the <a href="mxCellState-js.html#mxCellState" class=LClass id=link252 onMouseOver="ShowTip(event, 'tt59', 'link252')" onMouseOut="HideTip('tt59')">mxCellState</a> should be removed.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.createState"></a>createState</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.createState = function(</td><td class=PParameter nowrap>cell</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates and returns an <a href="mxCellState-js.html#mxCellState" class=LClass id=link253 onMouseOver="ShowTip(event, 'tt59', 'link253')" onMouseOut="HideTip('tt59')">mxCellState</a> for the given cell and initializes it using &lt;mxCellRenderer.initialize&gt;.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>cell</td><td class=CDLDescription><a href="../model/mxCell-js.html#mxCell" class=LClass id=link254 onMouseOver="ShowTip(event, 'tt18', 'link254')" onMouseOut="HideTip('tt18')">mxCell</a> for which a new <a href="mxCellState-js.html#mxCellState" class=LClass id=link255 onMouseOver="ShowTip(event, 'tt59', 'link255')" onMouseOut="HideTip('tt59')">mxCellState</a> should be created.</td></tr></table></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getCanvas"></a>getCanvas</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.getCanvas = function()</td></tr></table></blockquote><p>Returns the DOM node that contains the background-, draw- and overlaypane.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getBackgroundPane"></a>getBackgroundPane</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.getBackgroundPane = function()</td></tr></table></blockquote><p>Returns the DOM node that represents the background layer.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getDrawPane"></a>getDrawPane</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.getDrawPane = function()</td></tr></table></blockquote><p>Returns the DOM node that represents the main drawing layer.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.getOverlayPane"></a>getOverlayPane</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.getOverlayPane = function()</td></tr></table></blockquote><p>Returns the DOM node that represents the topmost drawing layer.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.isContainerEvent"></a>isContainerEvent</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.isContainerEvent = function(</td><td class=PParameter nowrap>evt</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the event origin is one of the drawing panes or containers of the view.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.isScrollEvent"></a>isScrollEvent</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.isScrollEvent = function(</td><td class=PParameter nowrap>evt</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the event origin is one of the scrollbars of the container in IE.&nbsp; Such events are ignored.</p></div></div></div>
2013-11-11 12:31:46 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.init"></a>init</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.init = function()</td></tr></table></blockquote><p>Initializes the graph event dispatch loop for the specified container and invokes <a href="#mxGraphView.create" class=LFunction id=link256 onMouseOver="ShowTip(event, 'tt90', 'link256')" onMouseOut="HideTip('tt90')">create</a> to create the required DOM nodes for the display.</p></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.installListeners"></a>installListeners</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.installListeners = function()</td></tr></table></blockquote><p>Installs the required listeners in the container.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.create"></a>create</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.createHtml = function()</td></tr></table></blockquote><p>Creates the DOM nodes for the HTML display.</p></div></div></div>
2012-07-20 10:35:30 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.updateHtmlCanvasSize"></a>updateHtmlCanvasSize</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.updateHtmlCanvasSize = function(</td><td class=PParameter nowrap>width,</td></tr><tr><td></td><td class=PParameter nowrap>height</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the size of the HTML canvas.</p></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.createHtmlPane"></a>createHtmlPane</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.createHtmlPane = function(</td><td class=PParameter nowrap>width,</td></tr><tr><td></td><td class=PParameter nowrap>height</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates and returns a drawing pane in HTML (DIV).</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.create"></a>create</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.createVml = function()</td></tr></table></blockquote><p>Creates the DOM nodes for the VML display.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.createVmlPane"></a>createVmlPane</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.createVmlPane = function(</td><td class=PParameter nowrap>width,</td></tr><tr><td></td><td class=PParameter nowrap>height</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates a drawing pane in VML (group).</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.create"></a>create</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.createSvg = function()</td></tr></table></blockquote><p>Creates and returns the DOM nodes for the SVG display.</p></div></div></div>
2013-05-23 16:14:48 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.updateContainerStyle"></a>updateContainerStyle</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.updateContainerStyle = function(</td><td class=PParameter nowrap>container</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the style of the container after installing the SVG DOM elements.</p></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxGraphView.destroy"></a>destroy</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.destroy = function()</td></tr></table></blockquote><p>Destroys the view and all its resources.</p></div></div></div>
2013-11-11 12:31:46 +00:00
<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="mxCurrentRootChange"></a>mxCurrentRootChange</h2><div class=CBody><p>Action to change the current root in a view.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#mxCurrentRootChange.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mxCurrentRootChange.mxCurrentRootChange" id=link257 onMouseOver="ShowTip(event, 'tt97', 'link257')" onMouseOut="HideTip('tt97')">mxCurrentRootChange</a></td><td class=SDescription>Constructs a change of the current root in the given view.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mxCurrentRootChange.execute" id=link258 onMouseOver="ShowTip(event, 'tt98', 'link258')" onMouseOut="HideTip('tt98')">execute</a></td><td class=SDescription>Changes the current root of the view.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
2012-05-21 20:32:26 +00:00
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxCurrentRootChange.Functions"></a>Functions</h3></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxCurrentRootChange.mxCurrentRootChange"></a>mxCurrentRootChange</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function mxCurrentRootChange(</td><td class=PParameter nowrap>view,</td></tr><tr><td></td><td class=PParameter nowrap>root</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a change of the current root in the given view.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxCurrentRootChange.execute"></a>execute</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxCurrentRootChange.prototype.execute = function()</td></tr></table></blockquote><p>Changes the current root of the view.</p></div></div></div>
</div><!--Content-->
<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
2014-01-08 16:23:20 +00:00
<div id=Menu><div class=MEntry><div class=MFile><a href="../index-txt.html">API Specification</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Editor</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="../editor/mxDefaultKeyHandler-js.html">mxDefaultKeyHandler</a></div></div><div class=MEntry><div class=MFile><a href="../editor/mxDefaultPopupMenu-js.html">mxDefaultPopupMenu</a></div></div><div class=MEntry><div class=MFile><a href="../editor/mxDefaultToolbar-js.html">mxDefaultToolbar</a></div></div><div class=MEntry><div class=MFile><a href="../editor/mxEditor-js.html">mxEditor</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Handler</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="../handler/mxCellHighlight-js.html">mxCellHighlight</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxCellMarker-js.html">mxCellMarker</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxCellTracker-js.html">mxCellTracker</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxConnectionHandler-js.html">mxConnectionHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxConstraintHandler-js.html">mxConstraintHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxEdgeHandler-js.html">mxEdgeHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxEdgeSegmentHandler-js.html">mxEdgeSegmentHandler.js</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxElbowEdgeHandler-js.html">mxElbowEdgeHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxGraphHandler-js.html">mxGraphHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxKeyHandler-js.html">mxKeyHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxPanningHandler-js.html">mxPanningHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxPopupMenuHandler-js.html">mxPanningHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxRubberband-js.html">mxRubberband</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxSelectionCellsHandler-js.html">mxSelectionCellsHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxTooltipHandler-js.html">mxTooltipHandler</a></div></div><div class=MEntry><div class=MFile><a href="../handler/mxVertexHandler-js.html">mxVertexHandler</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Io</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MFile><a href="../io/mxCellCodec-js.html">mxCellCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxChildChangeCodec-js.html">mxChildChangeCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxCodec-js.html">mxCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxCodecRegistry-js.html">mxCodecRegistry</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxDefaultKeyHandlerCodec-js.html">mxDefaultKeyHandlerCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxDefaultPopupMenuCodec-js.html">mxDefaultPopupMenuCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxDefaultToolbarCodec-js.html">mxDefaultToolbarCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxEditorCodec-js.html">mxEditorCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxGenericChangeCodec-js.html">mxGenericChangeCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxGraphCodec-js.html">mxGraphCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxGraphViewCodec-js.html">mxGraphViewCodec</a></div></div><div class=MEntry><div class=MFile><a href="../io/mxModelCodec-js.html">mxModelCodec</a></d
2012-05-21 20:32:26 +00:00
var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Cookies">Cookies</option><option value="Events">Events</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Variables">Variables</option></select></div><script language=JavaScript><!--
HideAllBut([11], 13);// --></script></div><!--Menu-->
<!--START_ND_TOOLTIPS-->
2013-11-11 12:31:46 +00:00
<div class=CToolTip id="tt1"><div class=CClass>Base class for objects that dispatch named events. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.setCurrentRoot = function(</td><td class=PParameter nowrap>root</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets and returns the current root and fires an undo event before calling mxGraph.sizeDidChange.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.scaleAndTranslate = function(</td><td class=PParameter nowrap>scale,</td></tr><tr><td></td><td class=PParameter nowrap>dx,</td></tr><tr><td></td><td class=PParameter nowrap>dy</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the scale and translation and fires a scale and translate event before calling revalidate followed by mxGraph.sizeDidChange.</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.setScale = function(</td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the scale and fires a scale event before calling revalidate followed by mxGraph.sizeDidChange.</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxGraphView.prototype.setTranslate = function(</td><td class=PParameter nowrap>dx,</td></tr><tr><td></td><td class=PParameter nowrap>dy</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the translation and fires a translate event before calling revalidate followed by mxGraph.sizeDidChange. </div></div><div class=CToolTip id="tt6"><div class=CClass>Action to change the current root in a view.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function mxGraphView(</td><td class=PParameter nowrap>graph</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new view for the given mxGraph.</div></div><div class=CToolTip id="tt8"><div class=CClass>Extends mxEventSource to implement a graph component for the browser. </div></div><div class=CToolTip id="tt9"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.doneResource</td></tr></table></blockquote>Specifies the resource key for the status message after a long operation. </div></div><div class=CToolTip id="tt10"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxGraphView.prototype.allowEval</td></tr></table></blockquote>Specifies if string values in cell styles should be evaluated using mxUtils.eval. </div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>eval: function(</td><td class=PParameter nowrap>expr</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Evaluates the given expression using eval and returns the JavaScript object that represents the expression result.
2012-05-21 20:32:26 +00:00
<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>