<h1>com::mxgraph::mxGeometry Class Reference</h1><!-- doxytag: class="com::mxgraph::mxGeometry" --><!-- doxytag: inherits="com::mxgraph::mxRectangle" -->
<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 edge either defines the source- and target-terminal, or the geometry defines the respective terminal points.
<ahref="#_details">More...</a></p>
<divclass="dynheader">
Inheritance diagram for com::mxgraph::mxGeometry:</div>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a new geometry at (0, 0) with the width and height set to 0. <ahref="#a9a6d8132f6e53e9d0447b9a4aed47565"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a geometry using the given parameters. <ahref="#a02dddac4961d4b9a1480e285a2cee398"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a copy of the given geometry. <ahref="#ac7e3adff72a1bc3093d478fea67d0c40"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">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. <ahref="#a7410a68725e48357de2989449068c407"></a><br/></td></tr>
<tr><tdclass="memItemLeft"align="right"valign="top"><aclass="el"href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcom_1_1mxgraph_1_1mxGeometry.html#a93895db7f9dbc2e2b38b87ad229d5d85">SetTerminalPoint</a> (<aclass="el"href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> point, bool source)</td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the sourcePoint or targetPoint to the given point and returns the new point. <ahref="#a93895db7f9dbc2e2b38b87ad229d5d85"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">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. <ahref="#a861eafb9b9f70d9e846851f81d11c924"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a new instance of the same geometry. <ahref="#a1bc5e0feb17c50f9bab5853af0e089f0"></a><br/></td></tr>
<tr><tdcolspan="2"><h2>Static Public Attributes</h2></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Global switch to translate the points in translate. Default is true. <ahref="#a415957366c509818f37d3641c61ad62a"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Stores alternate values for x, y, width and height in a rectangle. Default is null. <ahref="#a2a8475ccf174c3897a4a9df74cd95be8"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Defines the source-point of the edge. This is used if the corresponding edge does not have a source vertex. Otherwise it is ignored. Default is null. <ahref="#a9b70c28ce0b587261639b11fc2854d24"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Defines the 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. <ahref="#a4db1948b24f7d359a33d2d7db61ee673"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">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. <ahref="#a8412ed3eca1c001d8c40eac2f9ce758b"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">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. <ahref="#a45677db05c67d751857181b2c06025f8"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">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. <ahref="#a2a64c3ea353de129f7f6dbd76506f5bb"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the alternate bounds. <ahref="#a50d84d2d9ed0cf6f083d31bd4794f18b"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the source point. <ahref="#a0b3f7faefd09d648c47c7cae92153c59"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the target point. <ahref="#aaa5aa1dc09c6ae8828bc19bed208790f"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the list of control points. <ahref="#ae5575c4397373faa269ef9914e135951"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns if the geometry is relative. <ahref="#a0fc8a94f3ef17260c5b456018999cec4"></a><br/></td></tr>
<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 edge either defines the source- and target-terminal, or the geometry defines the respective terminal points. </p>
<hr/><h2>Constructor & Destructor Documentation</h2>
<p>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>
<dl><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>source</em> </td><td>Boolean that specifies if the source or target point should be returned.</td></tr>
</table>
</dd>
</dl>
<dlclass="return"><dt><b>Returns:</b></dt><dd>Returns the source or target point.</dd></dl>
</div>
</div>
<aclass="anchor"id="a93895db7f9dbc2e2b38b87ad229d5d85"></a><!-- doxytag: member="com::mxgraph::mxGeometry::SetTerminalPoint" ref="a93895db7f9dbc2e2b38b87ad229d5d85" args="(mxPoint point, bool source)" -->
<p>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>
<dl><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>dx</em> </td><td>Integer that specifies the x-coordinate of the translation.</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>dy</em> </td><td>Integer that specifies the y-coordinate of the translation.</td></tr>
<p>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>
<p>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>
<p>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. </p>
<p>Defines the source-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>
<p>Defines the 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>