<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxCellState"></a>mxCellState</h1><divclass=CBody><p>Represents the current state of a cell in a given <ahref="mxGraphView-php.html#mxGraphView"class=LClassid=link23onMouseOver="ShowTip(event, 'tt1', 'link23')"onMouseOut="HideTip('tt1')">mxGraphView</a>.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxCellState">mxCellState</a></td><tdclass=SDescription>Represents the current state of a cell in a given <ahref="mxGraphView-php.html#mxGraphView"class=LClassid=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">mxGraphView</a>.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxCellState.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCellState.view"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">view</a></td><tdclass=SDescription>Reference to the enclosing <ahref="mxGraphView-php.html#mxGraphView"class=LClassid=link3onMouseOver="ShowTip(event, 'tt1', 'link3')"onMouseOut="HideTip('tt1')">mxGraphView</a>.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCellState.cell"id=link4onMouseOver="ShowTip(event, 'tt3', 'link4')"onMouseOut="HideTip('tt3')">cell</a></td><tdclass=SDescription>Reference to the <ahref="../model/mxCell-php.html#mxCell"class=LClassid=link5onMouseOver="ShowTip(event, 'tt4', 'link5')"onMouseOut="HideTip('tt4')">mxCell</a> that is represented by this state.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCellState.style"id=link6onMouseOver="ShowTip(event, 'tt5', 'link6')"onMouseOut="HideTip('tt5')">style</a></td><tdclass=SDescription>Contains an array of key, value pairs that represent the style of the cell.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCellState.invalid"id=link7onMouseOver="ShowTip(event, 'tt6', 'link7')"onMouseOut="HideTip('tt6')">invalid</a></td><tdclass=SDescription>Specifies if the state is invalid. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCellState.origin"id=link8onMouseOver="ShowTip(event, 'tt7', 'link8')"onMouseOut="HideTip('tt7')">origin</a></td><tdclass=SDescription><ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link9onMouseOver="ShowTip(event, 'tt8', 'link9')"onMouseOut="HideTip('tt8')">mxPoint</a> that holds the origin for all child cells. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCellState.absolutePoints"id=link10onMouseOver="ShowTip(event, 'tt9', 'link10')"onMouseOut="HideTip('tt9')">absolutePoints</a></td><tdclass=SDescription>Holds an array of <ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link11onMouseOver="ShowTip(event, 'tt8', 'link11')"onMouseOut="HideTip('tt8')">mxPoints</a> that represent the absolute points of an edge.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCellState.absoluteOffset"id=link12onMouseOver="ShowTip(event, 'tt10', 'link12')"onMouseOut="HideTip('tt10')">absoluteOffset</a></td><tdclass=SDescription><ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link13onMouseOver="ShowTip(event, 'tt8', 'link13')"onMouseOut="HideTip('tt8')">mxPoint</a> that holds the absolute offset. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCellState.terminalDistance"id=link14onMouseOver="ShowTip(event, 'tt11', 'link14')"onMouseOut="HideTip('tt11')">terminalDistance</a></td><tdclass=SDescription>Caches the distance between the end points for an edge.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCellState.length"id=link15onMouseOver="ShowTip(event, 'tt12', 'link15')"onMouseOut="HideTip('tt12')">length</a></td><tdclass=SDescription>Caches the length of an edge.</td></tr><trcl
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellState.view"></a>view</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $view</td></tr></table></blockquote><p>Reference to the enclosing <ahref="mxGraphView-php.html#mxGraphView"class=LClassid=link24onMouseOver="ShowTip(event, 'tt1', 'link24')"onMouseOut="HideTip('tt1')">mxGraphView</a>.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellState.cell"></a>cell</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $cell</td></tr></table></blockquote><p>Reference to the <ahref="../model/mxCell-php.html#mxCell"class=LClassid=link25onMouseOver="ShowTip(event, 'tt4', 'link25')"onMouseOut="HideTip('tt4')">mxCell</a> that is represented by this state.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellState.style"></a>style</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $style</td></tr></table></blockquote><p>Contains an array of key, value pairs that represent the style of the cell.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellState.invalid"></a>invalid</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $invalid</td></tr></table></blockquote><p>Specifies if the state is invalid. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellState.origin"></a>origin</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $origin</td></tr></table></blockquote><p><ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link26onMouseOver="ShowTip(event, 'tt8', 'link26')"onMouseOut="HideTip('tt8')">mxPoint</a> that holds the origin for all child cells. Default is a new empty <ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link27onMouseOver="ShowTip(event, 'tt8', 'link27')"onMouseOut="HideTip('tt8')">mxPoint</a>.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellState.absolutePoints"></a>absolutePoints</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $absolutePoints</td></tr></table></blockquote><p>Holds an array of <ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link28onMouseOver="ShowTip(event, 'tt8', 'link28')"onMouseOut="HideTip('tt8')">mxPoints</a> that represent the absolute points of an edge.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellState.absoluteOffset"></a>absoluteOffset</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $absoluteOffset</td></tr></table></blockquote><p><ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link29onMouseOver="ShowTip(event, 'tt8', 'link29')"onMouseOut="HideTip('tt8')">mxPoint</a> that holds the absolute offset. For edges, this is the absolute coordinates of the label position. For vertices, this is the offset of the label relative to the top, left corner of the vertex.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellState.terminalDistance"></a>terminalDistance</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $terminalDistance</td></tr></table></blockquote><p>Caches the distance between the end points for an edge.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellState.length"></a>length</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $length</td></tr></table></blockquote><p>Caches the length of an edge.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellState.segments"></a>segments</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $segments</td></tr></table></blockquote><p>Array of numbers that represent the cached length of each segment of the edge.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellState.labelBounds"></a>labelBounds</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $labelBounds</td></tr></table></blockquote><p>Holds the rectangle which contains the label.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellState.boundingBox"></a>boundingBox</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $boundingBox</td></tr></table></blockquote><p>Holds the largest rectangle which contains all rendering for this cell.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellState.mxCellState"></a>mxCellState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxCellState(</td><tdclass=PParameternowrap>$view</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$cell</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$style</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new object that represents the current state of the given cell in the specified view.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>view</td><tdclass=CDLDescription><ahref="mxGraphView-php.html#mxGraphView"class=LClassid=link30onMouseOver="ShowTip(event, 'tt1', 'link30')"onMouseOut="HideTip('tt1')">mxGraphView</a> that contains the state.</td></tr><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="../model/mxCell-php.html#mxCell"class=LClassid=link31onMouseOver="ShowTip(event, 'tt4', 'link31')"onMouseOut="HideTip('tt4')">mxCell</a> that this state represents.</td></tr><tr><tdclass=CDLEntry>style</td><tdclass=CDLDescription>Array of key, value pairs that constitute the style.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellState.getPerimeterBounds"></a>getPerimeterBounds</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getPerimeterBounds(</td><tdclass=PParameternowrap>$border</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> 0</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the <ahref="../util/mxRectangle-php.html#mxRectangle"class=LClassid=link32onMouseOver="ShowTip(event, 'tt18', 'link32')"onMouseOut="HideTip('tt18')">mxRectangle</a> that should be used as the perimeter of the cell.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellState.copy"></a>copy</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>function copy()</td></tr></table></blockquote><p>Returns a copy of this state where all members are deeply cloned except the view and cell references, which are copied with no cloning to the new instance.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CClass>Implements a view for the graph. </div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $view</td></tr></table></blockquote>Reference to the enclosing mxGraphView.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $cell</td></tr></table></blockquote>Reference to the mxCell that is represented by this state.</div></div><divclass=CToolTipid="tt4"><divclass=CClass>Cells are the elements of the graph model. </div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $style</td></tr></table></blockquote>Contains an array of key, value pairs that represent the style of the cell.</div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $invalid</td></tr></table></blockquote>Specifies if the state is invalid. </div></div><divclass=CToolTipid="tt7"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $origin</td></tr></table></blockquote>mxPoint that holds the origin for all child cells. </div></div><divclass=CToolTipid="tt8"><divclass=CClass>Implements a 2-dimensional point with double precision coordinates.</div></div><divclass=CToolTipid="tt9"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $absolutePoints</td></tr></table></blockquote>Holds an array of mxPoints that represent the absolute points of an edge.</div></div><divclass=CToolTipid="tt10"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $absoluteOffset</td></tr></table></blockquote>mxPoint that holds the absolute offset. </div></div><divclass=CToolTipid="tt11"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $terminalDistance</td></tr></table></blockquote>Caches the distance between the end points for an edge.</div></div><divclass=CToolTipid="tt12"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $length</td></tr></table></blockquote>Caches the length of an edge.</div></div><divclass=CToolTipid="tt13"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $segments</td></tr></table></blockquote>Array of numbers that represent the cached length of each segment of the edge.</div></div><divclass=CToolTipid="tt14"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $labelBounds</td></tr></table></blockquote>Holds the rectangle which contains the label.</div></div><divclass=CToolTipid="tt15"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>var $boundingBox</td></tr></table></blockquote>Holds the largest rectangle which contains all rendering for this cell.</div></div><divclass=CToolTipid="tt16"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxCellState(</td><tdclass=PParameternowrap>$view</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$cell</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null,</td></tr><tr><td></td><tdclass=PParameternowrap>$style</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null</td><tdclass=PAfterParamete