<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxGraphView"></a>mxGraphView</h1><divclass=CBody><p>Implements a view for the graph. Fires scale and translate events if one of the values change.</p><h4class=CHeading>This class fires the following events</h4><p>mxEvent.SCALE fires after the scale was changed in setScale. The <code>scale</code> and <code>previousScale</code> arguments contain the new and previous scale.</p><p>mxEvent.TRANSLATE fires after the translate was changed in setTranslate. The <code>translate</code> and <code>previousTranslate</code> arguments contain the new and previous value for translate.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxGraphView">mxGraphView</a></td><tdclass=SDescription>Implements a view for the graph. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxGraphView.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGraphView.EMPTY_POINT"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">EMPTY_POINT</a></td><tdclass=SDescription>An empty <ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">mxPoint</a> instance.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxGraphView.graph"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">graph</a></td><tdclass=SDescription>Holds the <ahref="mxGraph-php.html#mxGraph"class=LClassid=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">mxGraph</a>.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGraphView.graphBounds"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">graphBounds</a></td><tdclass=SDescription>Holds the bounds of the current view.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxGraphView.scale"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">scale</a></td><tdclass=SDescription>Holds the current scale.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGraphView.translate"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">translate</a></td><tdclass=SDescription>Holds the current translate.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxGraphView.states"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">states</a></td><tdclass=SDescription>Maps from cells to states.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxGraphView.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGraphView.mxGraphView"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">mxGraphView</a></td><tdclass=SDescription>Constructs a new view for the specified <ahref="mxGraph-php.html#mxGraph"class=LClassid=link10onMouseOver="ShowTip(event, 'tt4', 'link10')"onMouseOut="HideTip('tt4')">mxGraph</a>.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxGraphView.setScale"id=link11onMouseOver="ShowTip(event, 'tt10', 'link11')"onMouseOut="HideTip('tt10')">setScale</a></td><tdclass=SDescription>Sets the scale, revalidates the view and fires a scale event.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGraphView.setTranslate"id=link12onMouseOver="ShowTip(event, 'tt11', 'link12')"onMouseOut="HideTip('tt11')">setTranslate</a></td><tdclass=SDescription>Sets the translation, revalidates the view and fires a translate event.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxGraphView.getGraphBound
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.graphBounds"></a>graphBounds</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $graphBounds</td></tr></table></blockquote><p>Holds the bounds of the current view.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.scale"></a>scale</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $scale</td></tr></table></blockquote><p>Holds the current scale.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.translate"></a>translate</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $translate</td></tr></table></blockquote><p>Holds the current translate.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.states"></a>states</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $states</td></tr></table></blockquote><p>Maps from cells to states.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.mxGraphView"></a>mxGraphView</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxGraphView(</td><tdclass="PParameter prettyprint "nowrap>$graph</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new view for the specified <ahref="mxGraph-php.html#mxGraph"class=LClassid=link69onMouseOver="ShowTip(event, 'tt4', 'link69')"onMouseOut="HideTip('tt4')">mxGraph</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.setScale"></a>setScale</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setScale(</td><tdclass="PParameter prettyprint "nowrap>$scale</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the scale, revalidates the view and fires a scale event.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.setTranslate"></a>setTranslate</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setTranslate(</td><tdclass="PParameter prettyprint "nowrap>$translate</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the translation, revalidates the view and fires a translate event.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getBounds"></a>getBounds</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getBounds(</td><tdclass="PParameter prettyprint "nowrap>$cells,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$boundingBox</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> false</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the bounding for for an array of cells or null, if no cells are specified.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.validate"></a>validate</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function validate(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> null</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Calls <ahref="#mxGraphView.validateCell"class=LFunctionid=link72onMouseOver="ShowTip(event, 'tt17', 'link72')"onMouseOut="HideTip('tt17')">validateCell</a> and <validateCellState> and updates the <ahref="#mxGraphView.graphBounds"class=LVariableid=link73onMouseOver="ShowTip(event, 'tt5', 'link73')"onMouseOut="HideTip('tt5')">graphBounds</a> using <ahref="#mxGraphView.getBoundingBox"class=LFunctionid=link74onMouseOver="ShowTip(event, 'tt18', 'link74')"onMouseOut="HideTip('tt18')">getBoundingBox</a>. Finally the background is validated using <validateBackground>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription>Optional <ahref="../model/mxCell-php.html#mxCell"class=LClassid=link75onMouseOver="ShowTip(event, 'tt20', 'link75')"onMouseOut="HideTip('tt20')">mxCell</a> to be used as the root of the validation. Default is the root of the model.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getBoundingBox"></a>getBoundingBox</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getBoundingBox(</td><tdclass="PParameter prettyprint "nowrap>$state,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$recurse</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> true</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the bounding box of the shape and the label for the given <ahref="mxCellState-php.html#mxCellState"class=LClassid=link76onMouseOver="ShowTip(event, 'tt19', 'link76')"onMouseOut="HideTip('tt19')">mxCellState</a> and its children if recurse is true.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>state</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link77onMouseOver="ShowTip(event, 'tt19', 'link77')"onMouseOut="HideTip('tt19')">mxCellState</a> whose bounding box should be returned.</td></tr><tr><tdclass=CDLEntry>recurse</td><tdclass=CDLDescription>Optional boolean indicating if the children should be included. Default is true.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.validateCell"></a>validateCell</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function validateCell(</td><tdclass="PParameter prettyprint "nowrap>$cell,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$visible</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> true</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Recursively creates the cell state for the given cell if visible is true and the given cell is visible. If the cell is not visible but the state exists then it is removed using <ahref="#mxGraphView.removeState"class=LFunctionid=link78onMouseOver="ShowTip(event, 'tt49', 'link78')"onMouseOut="HideTip('tt49')">removeState</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="../model/mxCell-php.html#mxCell"class=LClassid=link79onMouseOver="ShowTip(event, 'tt20', 'link79')"onMouseOut="HideTip('tt20')">mxCell</a> whose <ahref="mxCellState-php.html#mxCellState"class=LClassid=link80onMouseOver="ShowTip(event, 'tt19', 'link80')"onMouseOut="HideTip('tt19')">mxCellState</a> should be created.</td></tr><tr><tdclass=CDLEntry>visible</td><tdclass=CDLDescription>Optional boolean indicating if the cell should be visible. Default is true.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.validateCellStates"></a>validateCellStates</h3><divclass=CBody><p>Validates and repaints the <ahref="mxCellState-php.html#mxCellState"class=LClassid=link81onMouseOver="ShowTip(event, 'tt19', 'link81')"onMouseOut="HideTip('tt19')">mxCellState</a> for the given <ahref="../model/mxCell-php.html#mxCell"class=LClassid=link82onMouseOver="ShowTip(event, 'tt20', 'link82')"onMouseOut="HideTip('tt20')">mxCell</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="../model/mxCell-php.html#mxCell"class=LClassid=link83onMouseOver="ShowTip(event, 'tt20', 'link83')"onMouseOut="HideTip('tt20')">mxCell</a> whose <ahref="mxCellState-php.html#mxCellState"class=LClassid=link84onMouseOver="ShowTip(event, 'tt19', 'link84')"onMouseOut="HideTip('tt19')">mxCellState</a> should be validated.</td></tr><tr><tdclass=CDLEntry>recurse</td><tdclass=CDLDescription>Optional boolean indicating if the children of the cell should be validated. Default is true.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.updateCellState"></a>updateCellState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function updateCellState(</td><tdclass="PParameter prettyprint "nowrap>$state,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$source,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$target</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the given <ahref="mxCellState-php.html#mxCellState"class=LClassid=link85onMouseOver="ShowTip(event, 'tt19', 'link85')"onMouseOut="HideTip('tt19')">mxCellState</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>state</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link86onMouseOver="ShowTip(event, 'tt19', 'link86')"onMouseOut="HideTip('tt19')">mxCellState</a> to be updated.</td></tr><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link87onMouseOver="ShowTip(event, 'tt19', 'link87')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the visible source.</td></tr><tr><tdclass=CDLEntry>target</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link88onMouseOver="ShowTip(event, 'tt19', 'link88')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the visible target.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.updateVertexLabelOffset"></a>updateVertexLabelOffset</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function updateVertexLabelOffset(</td><tdclass="PParameter prettyprint "nowrap>$state</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the absoluteOffset of the given vertex cell state. This takes into account the label position styles.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>state</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link89onMouseOver="ShowTip(event, 'tt19', 'link89')"onMouseOut="HideTip('tt19')">mxCellState</a> whose absolute offset should be updated.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.updateLabelBounds"></a>updateLabelBounds</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function updateLabelBounds(</td><tdclass="PParameter prettyprint "nowrap>$state</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the label bounds in the given state.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.updateBoundingBox"></a>updateBoundingBox</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function updateBoundingBox(</td><tdclass="PParameter prettyprint "nowrap>$state</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the bounding box in the given cell state.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.updateFixedTerminalPoints"></a>updateFixedTerminalPoints</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function updateFixedTerminalPoints(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$source,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$target</td><tdclass="PAfterParameters prettyprint "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><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link90onMouseOver="ShowTip(event, 'tt19', 'link90')"onMouseOut="HideTip('tt19')">mxCellState</a> whose initial terminal points should be updated.</td></tr><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link91onMouseOver="ShowTip(event, 'tt19', 'link91')"onMouseOut="HideTip('tt19')">mxCellState</a> which represents the source terminal.</td></tr><tr><tdclass=CDLEntry>target</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link92onMouseOver="ShowTip(event, 'tt19', 'link92')"onMouseOut="HideTip('tt19')">mxCellState</a> which represents the target terminal.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.updateFixedTerminalPoint"></a>updateFixedTerminalPoint</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function updateFixedTerminalPoint(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$terminal,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$source,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$constraint</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the fixed source or target terminal point on the given edge.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link93onMouseOver="ShowTip(event, 'tt19', 'link93')"onMouseOut="HideTip('tt19')">mxCellState</a> whose terminal point should be updated.</td></tr><tr><tdclass=CDLEntry>terminal</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link94onMouseOver="ShowTip(event, 'tt19', 'link94')"onMouseOut="HideTip('tt19')">mxCellState</a> which represents the actual terminal.</td></tr><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription>Boolean that specifies if the terminal is the source.</td></tr><tr><tdclass=CDLEntry>constraint</td><tdclass=CDLDescription><ahref="mxConnectionConstraint-php.html#mxConnectionConstraint"class=LClassid=link95onMouseOver="ShowTip(event, 'tt51', 'link95')"onMouseOut="HideTip('tt51')">mxConnectionConstraint</a> that specifies the connection.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.updatePoints"></a>updatePoints</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function updatePoints(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$points,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$source,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$target</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the absolute points in the given state using the specified array of <ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link96onMouseOver="ShowTip(event, 'tt2', 'link96')"onMouseOut="HideTip('tt2')">mxPoints</a> as the relative points.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link97onMouseOver="ShowTip(event, 'tt19', 'link97')"onMouseOut="HideTip('tt19')">mxCellState</a> whose absolute points should be updated.</td></tr><tr><tdclass=CDLEntry>points</td><tdclass=CDLDescription>Array of <ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link98onMouseOver="ShowTip(event, 'tt2', 'link98')"onMouseOut="HideTip('tt2')">mxPoints</a> that constitute the relative points.</td></tr><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link99onMouseOver="ShowTip(event, 'tt19', 'link99')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the source terminal.</td></tr><tr><tdclass=CDLEntry>target</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link100onMouseOver="ShowTip(event, 'tt19', 'link100')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the target terminal.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.transformControlPoint"></a>transformControlPoint</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function transformControlPoint(</td><tdclass="PParameter prettyprint "nowrap>$state,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$pt</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Transforms the given control point to an absolute point.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getEdgeStyle"></a>getEdgeStyle</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getEdgeStyle(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$points,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$source,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$target</td><tdclass="PAfterParameters prettyprint "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>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.updateFloatingTerminalPoints"></a>updateFloatingTerminalPoints</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function updateFloatingTerminalPoints(</td><tdclass="PParameter prettyprint "nowrap>$state,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$source,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$target</td><tdclass="PAfterParameters prettyprint "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><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>state</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link101onMouseOver="ShowTip(event, 'tt19', 'link101')"onMouseOut="HideTip('tt19')">mxCellState</a> whose terminal points should be updated.</td></tr><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link102onMouseOver="ShowTip(event, 'tt19', 'link102')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the source terminal.</td></tr><tr><tdclass=CDLEntry>target</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link103onMouseOver="ShowTip(event, 'tt19', 'link103')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the target terminal.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.updateFloatingTerminalPoint"></a>updateFloatingTerminalPoint</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function updateFloatingTerminalPoint(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$start,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$end,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$source</td><tdclass="PAfterParameters prettyprint "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><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link104onMouseOver="ShowTip(event, 'tt19', 'link104')"onMouseOut="HideTip('tt19')">mxCellState</a> whose terminal point should be updated.</td></tr><tr><tdclass=CDLEntry>start</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link105onMouseOver="ShowTip(event, 'tt19', 'link105')"onMouseOut="HideTip('tt19')">mxCellState</a> for the terminal on “this” side of the edge.</td></tr><tr><tdclass=CDLEntry>end</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link106onMouseOver="ShowTip(event, 'tt19', 'link106')"onMouseOut="HideTip('tt19')">mxCellState</a> for the terminal on the other side of the edge.</td></tr><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription>Boolean indicating if start is the source terminal state.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getTerminalPort"></a>getTerminalPort</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getTerminalPort(</td><tdclass="PParameter prettyprint "nowrap>$state,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$terminal,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$source</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns an <ahref="mxCellState-php.html#mxCellState"class=LClassid=link107onMouseOver="ShowTip(event, 'tt19', 'link107')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the source or target terminal or port for the given edge.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>state</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link108onMouseOver="ShowTip(event, 'tt19', 'link108')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the state of the edge.</td></tr><tr><tdclass=CDLEntry>terminal</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link109onMouseOver="ShowTip(event, 'tt19', 'link109')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the terminal.</td></tr><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription>Boolean indicating if the given terminal is the source terminal.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getPerimeterPoint"></a>getPerimeterPoint</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getPerimeterPoint(</td><tdclass="PParameter prettyprint "nowrap>$terminal,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$next,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$orthogonal,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$border</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> null</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns an <ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link110onMouseOver="ShowTip(event, 'tt2', 'link110')"onMouseOut="HideTip('tt2')">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><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>terminal</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link111onMouseOver="ShowTip(event, 'tt19', 'link111')"onMouseOut="HideTip('tt19')">mxCellState</a> for the source or target terminal.</td></tr><tr><tdclass=CDLEntry>next</td><tdclass=CDLDescription><ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link112onMouseOver="ShowTip(event, 'tt2', 'link112')"onMouseOut="HideTip('tt2')">mxPoint</a> that lies outside of the given terminal.</td></tr><tr><tdclass=CDLEntry>orthogonal</td><tdclass=CDLDescription>Boolean that specifies if the orthogonal projection onto the perimeter should be returned. 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><tdclass=CDLEntry>border</td><tdclass=CDLDescription>Optional border between the perimeter and the shape.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getRoutingCenterX"></a>getRoutingCenterX</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getRoutingCenterX(</td><tdclass="PParameter prettyprint "nowrap>$state</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the x-coordinate of the center point for automatic routing.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getRoutingCenterY"></a>getRoutingCenterY</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getRoutingCenterY(</td><tdclass="PParameter prettyprint "nowrap>$state</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the y-coordinate of the center point for automatic routing.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getPerimeterBounds"></a>getPerimeterBounds</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getPerimeterBounds(</td><tdclass="PParameter prettyprint "nowrap>$terminal,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$border</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> 0</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the perimeter bounds for the given terminal, edge pair as an <ahref="../util/mxRectangle-php.html#mxRectangle"class=LClassid=link113onMouseOver="ShowTip(event, 'tt39', 'link113')"onMouseOut="HideTip('tt39')">mxRectangle</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>terminal</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link114onMouseOver="ShowTip(event, 'tt19', 'link114')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the terminal.</td></tr><tr><tdclass=CDLEntry>border</td><tdclass=CDLDescription>Number that adds a border between the shape and the perimeter.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getPerimeterFunction"></a>getPerimeterFunction</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getPerimeterFunction(</td><tdclass="PParameter prettyprint "nowrap>$state</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the perimeter function for the given state.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getNextPoint"></a>getNextPoint</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getNextPoint(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$opposite,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$source</td><tdclass="PAfterParameters prettyprint "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><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link115onMouseOver="ShowTip(event, 'tt19', 'link115')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the edge.</td></tr><tr><tdclass=CDLEntry>opposite</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link116onMouseOver="ShowTip(event, 'tt19', 'link116')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the opposite terminal.</td></tr><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription>Boolean indicating if the next point for the source or target should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getVisibleTerminal"></a>getVisibleTerminal</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getVisibleTerminal(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$source</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the nearest ancestor terminal that is visible. The edge appears to be connected to this terminal on the display.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="../model/mxCell-php.html#mxCell"class=LClassid=link117onMouseOver="ShowTip(event, 'tt20', 'link117')"onMouseOut="HideTip('tt20')">mxCell</a> whose visible terminal should be returned.</td></tr><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription>Boolean that specifies if the source or target terminal should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.updateEdgeBounds"></a>updateEdgeBounds</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function updateEdgeBounds(</td><tdclass="PParameter prettyprint "nowrap>$state</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the bounds of the specified state based on the absolute points in the state.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getPoint"></a>getPoint</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getPoint(</td><tdclass="PParameter prettyprint "nowrap>$state,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$geometry</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> null</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the absolute point on the edge for the given relative <ahref="../model/mxGeometry-php.html#mxGeometry"class=LClassid=link118onMouseOver="ShowTip(event, 'tt45', 'link118')"onMouseOut="HideTip('tt45')">mxGeometry</a> as an <ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link119onMouseOver="ShowTip(event, 'tt2', 'link119')"onMouseOut="HideTip('tt2')">mxPoint</a>. The edge is represented by the given <ahref="mxCellState-php.html#mxCellState"class=LClassid=link120onMouseOver="ShowTip(event, 'tt19', 'link120')"onMouseOut="HideTip('tt19')">mxCellState</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>state</td><tdclass=CDLDescription><ahref="mxCellState-php.html#mxCellState"class=LClassid=link121onMouseOver="ShowTip(event, 'tt19', 'link121')"onMouseOut="HideTip('tt19')">mxCellState</a> that represents the state of the parent edge.</td></tr><tr><tdclass=CDLEntry>geometry</td><tdclass=CDLDescription><ahref="../model/mxGeometry-php.html#mxGeometry"class=LClassid=link122onMouseOver="ShowTip(event, 'tt45', 'link122')"onMouseOut="HideTip('tt45')">mxGeometry</a> that represents the relative location.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getState"></a>getState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getState(</td><tdclass="PParameter prettyprint "nowrap>$cell,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$create</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> false</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the cell state for the specified cell. If create is true then the state is created and added to the cache if it does not yet exist.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getHashCode"></a>getHashCode</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getHashCode(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns a unique string that represents the given instance.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getStates"></a>getStates</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getStates()</td></tr></table></blockquote><p>Returns the <ahref="mxCellState-php.html#mxCellState"class=LClassid=link123onMouseOver="ShowTip(event, 'tt19', 'link123')"onMouseOut="HideTip('tt19')">mxCellStates</a> for the given array of <ahref="../model/mxCell-php.html#mxCell"class=LClassid=link124onMouseOver="ShowTip(event, 'tt20', 'link124')"onMouseOut="HideTip('tt20')">mxCells</a>. The array contains all states that are not null, that is, the returned array may have less elements than the given array.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.getStates"></a>getStates</h3><divclass=CBody><p>Returns the <ahref="mxCellState-php.html#mxCellState"class=LClassid=link125onMouseOver="ShowTip(event, 'tt19', 'link125')"onMouseOut="HideTip('tt19')">mxCellStates</a> for the given array of <ahref="../model/mxCell-php.html#mxCell"class=LClassid=link126onMouseOver="ShowTip(event, 'tt20', 'link126')"onMouseOut="HideTip('tt20')">mxCells</a>. The array contains all states that are not null, that is, the returned array may have less elements than the given array.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphView.createState"></a>createState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function createState(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates the state for the specified cell.</p></div></div></div>
<divclass=CToolTipid="tt1"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $EMPTY_POINT</td></tr></table></blockquote>An empty mxPoint instance.</div></div><divclass=CToolTipid="tt2"><divclass=CClass>Implements a 2-dimensional point with double precision coordinates.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $graph</td></tr></table></blockquote>Holds the mxGraph.</div></div><divclass=CToolTipid="tt4"><divclass=CClass>Implements a graph component.</div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $graphBounds</td></tr></table></blockquote>Holds the bounds of the current view.</div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $scale</td></tr></table></blockquote>Holds the current scale.</div></div><divclass=CToolTipid="tt7"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $translate</td></tr></table></blockquote>Holds the current translate.</div></div><divclass=CToolTipid="tt8"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $states</td></tr></table></blockquote>Maps from cells to states.</div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxGraphView(</td><tdclass="PParameter prettyprint "nowrap>$graph</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new view for the specified mxGraph.</div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setScale(</td><tdclass="PParameter prettyprint "nowrap>$scale</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the scale, revalidates the view and fires a scale event.</div></div><divclass=CToolTipid="tt11"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setTranslate(</td><tdclass="PParameter prettyprint "nowrap>$translate</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the translation, revalidates the view and fires a translate event.</div></div><divclass=CToolTipid="tt12"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getGraphBounds()</td></tr></table></blockquote>Returns graphBounds.</div></div><divclass=CToolTipid="tt13"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setGraphBounds(</td><tdclass="PParameter prettyprint "nowrap>$value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets graphBounds.</div></div><divclass=CToolTipid="tt14"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getBounds(</td><tdclass="PParameter prettyprint "nowrap>$cells,</td><tdclass="PDefaultValuePrefix