<li><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ulclass="inheritance">
<li><ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">com.mxgraph.util.mxPoint</a></li>
<li>
<ulclass="inheritance">
<li><ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">com.mxgraph.util.mxRectangle</a></li>
<li>
<ulclass="inheritance">
<li>com.mxgraph.model.mxGeometry</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/io/Serializable.html?is-external=true"title="class or interface in java.io">Serializable</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Cloneable.html?is-external=true"title="class or interface in java.lang">Cloneable</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">mxGeometry</span>
extends <ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a></pre>
<divclass="block">Represents the geometry of a cell. For vertices, the geometry consists
<divclass="block">Holds the offset of the label for edges.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</a><<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a>></code></td>
<h3>Fields inherited from class com.mxgraph.util.<ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a></h3>
<h3>Fields inherited from class com.mxgraph.util.<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a></h3>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></code></td>
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</a><<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a>></code></td>
<divclass="block">Returns true of the geometry is relative.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/model/mxGeometry.html#setAlternateBounds(com.mxgraph.util.mxRectangle)">setAlternateBounds</a></strong>(<ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> rect)</code>
<divclass="block">Sets the alternate bounds to the given rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/model/mxGeometry.html#setOffset(com.mxgraph.util.mxPoint)">setOffset</a></strong>(<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> offset)</code>
<divclass="block">Sets the offset to the given point.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/model/mxGeometry.html#setPoints(java.util.List)">setPoints</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</a><<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a>> value)</code>
<divclass="block">Sets the list of control points to the given list.</div>
<divclass="block">Sets the relative state of the geometry.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/model/mxGeometry.html#setSourcePoint(com.mxgraph.util.mxPoint)">setSourcePoint</a></strong>(<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> sourcePoint)</code>
<divclass="block">Sets the source point.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/model/mxGeometry.html#setTargetPoint(com.mxgraph.util.mxPoint)">setTargetPoint</a></strong>(<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> targetPoint)</code>
<divclass="block">Sets the target point.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/model/mxGeometry.html#setTerminalPoint(com.mxgraph.util.mxPoint, boolean)">setTerminalPoint</a></strong>(<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> point,
boolean isSource)</code>
<divclass="block">Sets the sourcePoint or targetPoint to the given point and returns the
<h3>Methods inherited from class com.mxgraph.util.<ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a></h3>
<h3>Methods inherited from class com.mxgraph.util.<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a></h3>
<h3>Methods inherited from class java.lang.<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></h3>
<code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</a></code></li>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</a><<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a>> points</pre>
<divclass="block">List of mxPoints which specifies the control points along the edge.
<divclass="block">Constructs a geometry using the given parameters.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>x</code> - X-coordinate of the new geometry.</dd><dd><code>y</code> - Y-coordinate of the new geometry.</dd><dd><code>width</code> - Width of the new geometry.</dd><dd><code>height</code> - Height of the new geometry.</dd></dl>
<pre>public void setAlternateBounds(<ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> rect)</pre>
<divclass="block">Sets the alternate bounds to the given rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>rect</code> - Rectangle to be used for the alternate bounds.</dd></dl>
</li>
</ul>
<aname="getSourcePoint()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getSourcePoint</h4>
<pre>public <ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> getSourcePoint()</pre>
<divclass="block">Returns the source point.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>Returns the source point.</dd></dl>
<pre>public void setSourcePoint(<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> sourcePoint)</pre>
<divclass="block">Sets the source point.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sourcePoint</code> - Source point to be used.</dd></dl>
</li>
</ul>
<aname="getTargetPoint()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getTargetPoint</h4>
<pre>public <ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> getTargetPoint()</pre>
<divclass="block">Returns the target point.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>Returns the target point.</dd></dl>
<pre>public void setTargetPoint(<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> targetPoint)</pre>
<divclass="block">Sets the target point.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>targetPoint</code> - Target point to be used.</dd></dl>
</li>
</ul>
<aname="getPoints()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getPoints</h4>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</a><<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a>> getPoints()</pre>
<divclass="block">Returns the list of control points.</div>
</li>
</ul>
<aname="setPoints(java.util.List)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setPoints</h4>
<pre>public void setPoints(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</a><<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a>> value)</pre>
<divclass="block">Sets the list of control points to the given list.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - List that contains the new control points.</dd></dl>
</li>
</ul>
<aname="getOffset()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getOffset</h4>
<pre>public <ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> getOffset()</pre>
<divclass="block">Returns the offset.</div>
</li>
</ul>
<aname="setOffset(com.mxgraph.util.mxPoint)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setOffset</h4>
<pre>public void setOffset(<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> offset)</pre>
<divclass="block">Sets the offset to the given point.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>offset</code> - Point to be used for the offset.</dd></dl>
</li>
</ul>
<aname="isRelative()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>isRelative</h4>
<pre>public boolean isRelative()</pre>
<divclass="block">Returns true of the geometry is relative.</div>
<pre>public <ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> getTerminalPoint(boolean isSource)</pre>
<divclass="block">Returns the point representing the source or target point of this edge.
This is only used if the edge has no source or target vertex.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>isSource</code> - Boolean that specifies if the source or target point
should be returned.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Returns the source or target point.</dd></dl>
<pre>public <ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> setTerminalPoint(<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> point,
boolean isSource)</pre>
<divclass="block">Sets the sourcePoint or targetPoint to the given point and returns the
new point.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>point</code> - Point to be used as the new source or target point.</dd><dd><code>isSource</code> - Boolean that specifies if the source or target point
should be set.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Returns the new point.</dd></dl>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>dx</code> - Integer that specifies the x-coordinate of the translation.</dd><dd><code>dy</code> - Integer that specifies the y-coordinate of the translation.</dd></dl>
</li>
</ul>
<aname="clone()">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>clone</h4>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> clone()</pre>
<divclass="block">Returns a clone of the cell.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/util/mxRectangle.html#clone()">clone</a></code> in class <code><ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a></code></dd>