<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 "><AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">com.mxgraph.util.mxRectangle</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.model.mxGeometry</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>
<HR>
<DL>
<DT><PRE>public class <B>mxGeometry</B><DT>extends <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A></DL>
</PRE>
<P>
Represents the geometry of a cell. For vertices, the geometry consists
of the x- and y-location, as well as the width and height. For edges,
the geometry either defines the source- and target-terminal, or it
defines the respective terminal points.
For edges, if the geometry is relative (default), then the x-coordinate
is used to describe the distance from the center of the edge from -1 to 1
with 0 being the center of the edge and the default value, and the
y-coordinate is used to describe the absolute, orthogonal distance in
pixels from that point. In addition, the offset is used as an absolute
<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></FONT></TD>
<THALIGN="left"><B>Fields inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A></B></TH>
<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>
<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>
<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></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/model/mxGeometry.html#setAlternateBounds(com.mxgraph.util.mxRectangle)">setAlternateBounds</A></B>(<AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A> rect)</CODE>
<BR>
Sets the alternate bounds to the given rectangle.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/model/mxGeometry.html#setOffset(com.mxgraph.util.mxPoint)">setOffset</A></B>(<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A> offset)</CODE>
<BR>
Sets the offset to the given point.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/model/mxGeometry.html#setPoints(java.util.List)">setPoints</A></B>(<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>
<BR>
Sets the list of control points to the given list.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/model/mxGeometry.html#setSourcePoint(com.mxgraph.util.mxPoint)">setSourcePoint</A></B>(<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A> sourcePoint)</CODE>
<BR>
Sets the source point.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/model/mxGeometry.html#setTargetPoint(com.mxgraph.util.mxPoint)">setTargetPoint</A></B>(<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A> targetPoint)</CODE>
<BR>
Sets the target point.</TD>
<CODE> <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/model/mxGeometry.html#setTerminalPoint(com.mxgraph.util.mxPoint, boolean)">setTerminalPoint</A></B>(<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A> point,
boolean isSource)</CODE>
<BR>
Sets the sourcePoint or targetPoint to the given point and returns the
<THALIGN="left"><B>Methods inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A></B></TH>
<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 static transient boolean <B>TRANSLATE_CONTROL_POINTS</B></PRE>
<DL>
<DD>Global switch to translate the points in translate. Default is true.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="alternateBounds"><!----></A><H3>
alternateBounds</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>alternateBounds</B></PRE>
<DL>
<DD>Stores alternate values for x, y, width and height in a rectangle.
Default is null.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="sourcePoint"><!----></A><H3>
sourcePoint</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>sourcePoint</B></PRE>
<DL>
<DD>Defines the source- and target-point of the edge. This is used if the
corresponding edge does not have a source vertex. Otherwise it is
ignored. Default is null.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="targetPoint"><!----></A><H3>
targetPoint</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>targetPoint</B></PRE>
<DL>
<DD>Defines the source- and target-point of the edge. This is used if the
corresponding edge does not have a source vertex. Otherwise it is
ignored. Default is null.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="points"><!----></A><H3>
points</H3>
<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>><B>points</B></PRE>
<DL>
<DD>List of mxPoints which specifies the control points along the edge.
These points are the intermediate points on the edge, for the endpoints
use targetPoint and sourcePoint or set the terminals of the edge to
a non-null value. Default is null.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="offset"><!----></A><H3>
offset</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>offset</B></PRE>
<DL>
<DD>Holds the offset of the label for edges. This is the absolute vector
between the center of the edge and the top, left point of the label.
Default is null.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="relative"><!----></A><H3>
relative</H3>
<PRE>
protected boolean <B>relative</B></PRE>
<DL>
<DD>Specifies if the coordinates in the geometry are to be interpreted as
relative coordinates. Default is false. This is used to mark a geometry
with an x- and y-coordinate that is used to describe an edge label
position, or a relative location with respect to a parent cell's
<DD>Constructs a geometry using the given parameters.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - X-coordinate of the new geometry.<DD><CODE>y</CODE> - Y-coordinate of the new geometry.<DD><CODE>width</CODE> - Width of the new geometry.<DD><CODE>height</CODE> - Height of the new geometry.</DL>
public void <B>setAlternateBounds</B>(<AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A> rect)</PRE>
<DL>
<DD>Sets the alternate bounds to the given rectangle.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rect</CODE> - Rectangle to be used for the alternate bounds.</DL>
</DD>
</DL>
<HR>
<ANAME="getSourcePoint()"><!----></A><H3>
getSourcePoint</H3>
<PRE>
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>getSourcePoint</B>()</PRE>
<DL>
<DD>Returns the source point.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Returns the source point.</DL>
public void <B>setTargetPoint</B>(<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A> targetPoint)</PRE>
<DL>
<DD>Sets the target point.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>targetPoint</CODE> - Target point to be used.</DL>
</DD>
</DL>
<HR>
<ANAME="getPoints()"><!----></A><H3>
getPoints</H3>
<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>><B>getPoints</B>()</PRE>
public void <B>setPoints</B>(<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>
<DL>
<DD>Sets the list of control points to the given list.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - List that contains the new control points.</DL>
</DD>
</DL>
<HR>
<ANAME="getOffset()"><!----></A><H3>
getOffset</H3>
<PRE>
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>getOffset</B>()</PRE>
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>getTerminalPoint</B>(boolean isSource)</PRE>
<DL>
<DD>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.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isSource</CODE> - Boolean that specifies if the source or target point
should be returned.
<DT><B>Returns:</B><DD>Returns the source or target point.</DL>
public <AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A><B>setTerminalPoint</B>(<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A> point,
boolean isSource)</PRE>
<DL>
<DD>Sets the sourcePoint or targetPoint to the given point and returns the
new point.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>point</CODE> - Point to be used as the new source or target point.<DD><CODE>isSource</CODE> - Boolean that specifies if the source or target point
should be set.
<DT><B>Returns:</B><DD>Returns the new point.</DL>
<DD>Translates the geometry by the specified amount. That is, x and y of the
geometry, the sourcePoint, targetPoint and all elements of points are
translated by the given amount. X and y are only translated if the
geometry is not relative. If TRANSLATE_CONTROL_POINTS is false, then
are not modified by this function.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>dx</CODE> - Integer that specifies the x-coordinate of the translation.<DD><CODE>dy</CODE> - Integer that specifies the y-coordinate of the translation.</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 clone of the cell.
<P>
<DD><DL>
<DT><B>Overrides:</B><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></DL>