<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>com.mxgraph.util.mxRectangle</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>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><ahref="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</a>, <ahref="../../../com/mxgraph/model/mxGeometry.html"title="class in com.mxgraph.model">mxGeometry</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">mxRectangle</span>
extends <ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a></pre>
<divclass="block">Implements a 2-dimensional rectangle with double precision coordinates.</div>
<h3>Fields inherited from class com.mxgraph.util.<ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a></h3>
<divclass="block">Constructs a rectangle using the given parameters.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../com/mxgraph/util/mxRectangle.html#mxRectangle(com.mxgraph.util.mxRectangle)">mxRectangle</a></strong>(<ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> rect)</code>
<divclass="block">Constructs a copy of the given rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colOne"><code><strong><ahref="../../../com/mxgraph/util/mxRectangle.html#mxRectangle(java.awt.geom.Rectangle2D)">mxRectangle</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/Rectangle2D.html?is-external=true"title="class or interface in java.awt.geom">Rectangle2D</a> rect)</code>
<divclass="block">Constructs a copy of the given rectangle.</div>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/util/mxRectangle.html#add(com.mxgraph.util.mxRectangle)">add</a></strong>(<ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> rect)</code>
<divclass="block">Adds the given rectangle to this rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<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>
<divclass="block">Returns true if the given point is contained in the rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/util/mxRectangle.html#equals(java.lang.Object)">equals</a></strong>(<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> obj)</code>
<divclass="block">Returns true if the given object equals this rectangle.</div>
<divclass="block">Returns the height of the rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</a></code></td>
<divclass="block">Sets the width of the rectangle.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a></code></td>
<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>
<divclass="block">Constructs a new rectangle at (0, 0) with the width and height set to 0.</div>
</li>
</ul>
<aname="mxRectangle(java.awt.geom.Rectangle2D)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>mxRectangle</h4>
<pre>public mxRectangle(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/Rectangle2D.html?is-external=true"title="class or interface in java.awt.geom">Rectangle2D</a> rect)</pre>
<divclass="block">Constructs a copy of the given rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>rect</code> - Rectangle to construct a copy of.</dd></dl>
<divclass="block">Constructs a rectangle using the given parameters.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>x</code> - X-coordinate of the new rectangle.</dd><dd><code>y</code> - Y-coordinate of the new rectangle.</dd><dd><code>width</code> - Width of the new rectangle.</dd><dd><code>height</code> - Height of the new rectangle.</dd></dl>
<divclass="block">Sets the height of the rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - Double that specifies the new height.</dd></dl>
</li>
</ul>
<aname="setRect(double, double, double, double)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setRect</h4>
<pre>public void setRect(double x,
double y,
double w,
double h)</pre>
<divclass="block">Sets this rectangle to the specified values</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>x</code> - the new x-axis position</dd><dd><code>y</code> - the new y-axis position</dd><dd><code>w</code> - the new width of the rectangle</dd><dd><code>h</code> - the new height of the rectangle</dd></dl>
</li>
</ul>
<aname="add(com.mxgraph.util.mxRectangle)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>add</h4>
<pre>public void add(<ahref="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</a> rect)</pre>
<divclass="block">Adds the given rectangle to this rectangle.</div>
</li>
</ul>
<aname="getCenterX()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getCenterX</h4>
<pre>public double getCenterX()</pre>
<divclass="block">Returns the x-coordinate of the center.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>Returns the x-coordinate of the center.</dd></dl>
</li>
</ul>
<aname="getCenterY()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getCenterY</h4>
<pre>public double getCenterY()</pre>
<divclass="block">Returns the y-coordinate of the center.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>Returns the y-coordinate of the center.</dd></dl>
<divclass="block">Returns true if the given point is contained in the rectangle.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>x</code> - X-coordinate of the point.</dd><dd><code>y</code> - Y-coordinate of the point.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Returns true if the point is contained in the rectangle.</dd></dl>
<pre>public <ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a> intersectLine(double x0,
double y0,
double x1,
double y1)</pre>
<divclass="block">Returns the point at which the specified point intersects the perimeter
of this rectangle or null if there is no intersection.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>x0</code> - the x co-ordinate of the first point of the line</dd><dd><code>y0</code> - the y co-ordinate of the first point of the line</dd><dd><code>x1</code> - the x co-ordinate of the second point of the line</dd><dd><code>y1</code> - the y co-ordinate of the second point of the line</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>the point at which the line intersects this rectangle, or null
if there is no intersection</dd></dl>
</li>
</ul>
<aname="getRectangle()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getRectangle</h4>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</a> getRectangle()</pre>
<divclass="block">Returns the bounds as a new rectangle.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>Returns a new rectangle for the bounds.</dd></dl>
</li>
</ul>
<aname="equals(java.lang.Object)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>equals</h4>
<pre>public boolean equals(<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> obj)</pre>
<divclass="block">Returns true if the given object equals this rectangle.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/util/mxPoint.html#equals(java.lang.Object)">equals</a></code> in class <code><ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a></code></dd>
</dl>
</li>
</ul>
<aname="clone()">
<!---->
</a>
<ulclass="blockList">
<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 new instance of the same rectangle.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/util/mxPoint.html#clone()">clone</a></code> in class <code><ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a></code></dd>
</dl>
</li>
</ul>
<aname="toString()">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>toString</h4>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> toString()</pre>
<divclass="block">Returns the <code>String</code> representation of this
<code>mxRectangle</code>.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/util/mxPoint.html#toString()">toString</a></code> in class <code><ahref="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</a></code></dd>
<dt><spanclass="strong">Returns:</span></dt><dd>a <code>String</code> representing this