<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>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">com.mxgraph.util.mxPoint</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.util.mxRectangle</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B><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><B>Direct Known Subclasses:</B><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>
<DL>
<DT><PRE>public class <B>mxRectangle</B><DT>extends <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A></DL>
</PRE>
<P>
Implements a 2-dimensional rectangle with double precision coordinates.
<THALIGN="left"><B>Fields inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A></B></TH>
Constructs a rectangle using the given parameters.</TD>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><B><AHREF="../../../com/mxgraph/util/mxRectangle.html#mxRectangle(com.mxgraph.util.mxRectangle)">mxRectangle</A></B>(<AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A> rect)</CODE>
<BR>
Constructs a copy of the given rectangle.</TD>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><B><AHREF="../../../com/mxgraph/util/mxRectangle.html#mxRectangle(java.awt.geom.Rectangle2D)">mxRectangle</A></B>(<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>
<BR>
Constructs a copy of the given rectangle.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/util/mxRectangle.html#add(com.mxgraph.util.mxRectangle)">add</A></B>(<AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A> rect)</CODE>
<BR>
Adds the given rectangle to this rectangle.</TD>
<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></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/util/mxRectangle.html#equals(java.lang.Object)">equals</A></B>(<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>
<BR>
Returns true if the given object equals this rectangle.</TD>
<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></FONT></TD>
<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></FONT></TD>
<THALIGN="left"><B>Methods inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A></B></TH>
<THALIGN="left"><B>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></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><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></TD>
public <B>mxRectangle</B>(<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>
<DL>
<DD>Constructs a copy of the given rectangle.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>rect</CODE> - Rectangle to construct a copy of.</DL>
<DD>Constructs a rectangle using the given parameters.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - X-coordinate of the new rectangle.<DD><CODE>y</CODE> - Y-coordinate of the new rectangle.<DD><CODE>width</CODE> - Width of the new rectangle.<DD><CODE>height</CODE> - Height of the new rectangle.</DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the new x-axis position<DD><CODE>y</CODE> - the new y-axis position<DD><CODE>w</CODE> - the new width of the rectangle<DD><CODE>h</CODE> - the new height of the rectangle</DL>
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>intersectLine</B>(double x0,
double y0,
double x1,
double y1)</PRE>
<DL>
<DD>Returns the point at which the specified point intersects the perimeter
of this rectangle or null if there is no intersection.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x0</CODE> - the x co-ordinate of the first point of the line<DD><CODE>y0</CODE> - the y co-ordinate of the first point of the line<DD><CODE>x1</CODE> - the x co-ordinate of the second point of the line<DD><CODE>y1</CODE> - the y co-ordinate of the second point of the line
<DT><B>Returns:</B><DD>the point at which the line intersects this rectangle, or null
if there is no intersection</DL>
</DD>
</DL>
<HR>
<ANAME="getRectangle()"><!----></A><H3>
getRectangle</H3>
<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><B>getRectangle</B>()</PRE>
<DL>
<DD>Returns the bounds as a new rectangle.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Returns a new rectangle for the bounds.</DL>
</DD>
</DL>
<HR>
<ANAME="equals(java.lang.Object)"><!----></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(<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>
<DL>
<DD>Returns true if the given object equals this rectangle.
<P>
<DD><DL>
<DT><B>Overrides:</B><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></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="clone()"><!----></A><H3>
clone</H3>
<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><B>clone</B>()</PRE>
<DL>
<DD>Returns a new instance of the same rectangle.
<P>
<DD><DL>
<DT><B>Overrides:</B><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></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="toString()"><!----></A><H3>
toString</H3>
<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><B>toString</B>()</PRE>
<DL>
<DD>Returns the <code>String</code> representation of this
<code>mxRectangle</code>.
<P>
<DD><DL>
<DT><B>Overrides:</B><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></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a <code>String</code> representing this