<ahref="classcom_1_1mxgraph_1_1mxGeometry-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">com.mxgraph.mxGeometry Class Reference</div></div>
</div><!--header-->
<divclass="contents">
<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.
<areahref="classcom_1_1mxgraph_1_1mxRectangle.html"title="Implements a 2-dimensional rectangle with double precision coordinates. "alt="com.mxgraph.mxRectangle"shape="rect"coords="0,56,162,80"/>
<areahref="classcom_1_1mxgraph_1_1mxPoint.html"title="Implements a 2-dimensional point with double precision coordinates. "alt="com.mxgraph.mxPoint"shape="rect"coords="0,0,162,24"/>
<trclass="memdesc:a8372e373169908147f27c441e1fadc98"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a new geometry at (0, 0) with the width and height set to 0. <ahref="#a8372e373169908147f27c441e1fadc98">More...</a><br/></td></tr>
<trclass="memdesc:a9d4a0a8adb2497c1e8190241f148408b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a geometry using the given parameters. <ahref="#a9d4a0a8adb2497c1e8190241f148408b">More...</a><br/></td></tr>
<trclass="memdesc:a0a009274dc42564d6e469cba0e1e412f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a copy of the given geometry. <ahref="#a0a009274dc42564d6e469cba0e1e412f">More...</a><br/></td></tr>
<trclass="memdesc:a0cd321048b409704b2e2191f9c6e9081"><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="#a0cd321048b409704b2e2191f9c6e9081">More...</a><br/></td></tr>
<trclass="memitem:a428984988ab8ead3f69a77e8db36bbd3"><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#a428984988ab8ead3f69a77e8db36bbd3">SetTerminalPoint</a> (<aclass="el"href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> point, bool source)</td></tr>
<trclass="memdesc:a428984988ab8ead3f69a77e8db36bbd3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the sourcePoint or targetPoint to the given point and returns the new point. <ahref="#a428984988ab8ead3f69a77e8db36bbd3">More...</a><br/></td></tr>
<trclass="memdesc:a83fbef0b42df800973892bd80fafddfe"><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="#a83fbef0b42df800973892bd80fafddfe">More...</a><br/></td></tr>
<trclass="memdesc:aba28697d89da4cef532a11122e5e33d2"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a new instance of the same geometry. <ahref="#aba28697d89da4cef532a11122e5e33d2">More...</a><br/></td></tr>
<trclass="inherit_header pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_classcom_1_1mxgraph_1_1mxRectangle')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="classcom_1_1mxgraph_1_1mxRectangle.html">com.mxgraph.mxRectangle</a></td></tr>
<trclass="memdesc:a16906029e99be0da9ec4a8e9ca19f93a inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a new rectangle at (0, 0) with the width and height set to 0. <ahref="#a16906029e99be0da9ec4a8e9ca19f93a">More...</a><br/></td></tr>
<trclass="memdesc:a8cb010cc547f858b851f59038bb0d5f9 inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a copy of the given rectangle. <ahref="#a8cb010cc547f858b851f59038bb0d5f9">More...</a><br/></td></tr>
<trclass="memdesc:ab3ee9df42c1427eee51a710981305b39 inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a copy of the given rectangle. <ahref="#ab3ee9df42c1427eee51a710981305b39">More...</a><br/></td></tr>
<trclass="memdesc:a934732e65486f7c03a091fb323e4f074 inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a rectangle using the given parameters. <ahref="#a934732e65486f7c03a091fb323e4f074">More...</a><br/></td></tr>
<trclass="memdesc:a54b64e244f054613760cb0f84265d941 inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets this rectangle to the specified values <ahref="#a54b64e244f054613760cb0f84265d941">More...</a><br/></td></tr>
<trclass="memdesc:a7d57344259fae87d79ef416c5bc812c7 inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the x-coordinate of the center. <ahref="#a7d57344259fae87d79ef416c5bc812c7">More...</a><br/></td></tr>
<trclass="memdesc:ae6f1d4bbc5c1d834b4adbe0a5c4eceab inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the y-coordinate of the center. <ahref="#ae6f1d4bbc5c1d834b4adbe0a5c4eceab">More...</a><br/></td></tr>
<trclass="memdesc:a919964106e020eff0bad2f4e7d2c752b inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds the given rectangle to this rectangle. <ahref="#a919964106e020eff0bad2f4e7d2c752b">More...</a><br/></td></tr>
<trclass="memdesc:ae0bbeaa2768c8dc94d899aae8c8d4799 inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Grows the rectangle by the given amount, that is, this method subtracts the given amount from the x- and y-coordinates and adds twice the amount to the width and height. <ahref="#ae0bbeaa2768c8dc94d899aae8c8d4799">More...</a><br/></td></tr>
<trclass="memdesc:a44246bc62538679936f47d39c4fdd5f7 inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if this rectangle contains the given point (x, y). <ahref="#a44246bc62538679936f47d39c4fdd5f7">More...</a><br/></td></tr>
<trclass="memdesc:a198cd246c4fa1315d6cc737585ada909 inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the bounds as a new rectangle. <ahref="#a198cd246c4fa1315d6cc737585ada909">More...</a><br/></td></tr>
<trclass="memdesc:ad0258c7ff572fad9039541b1ae064c98 inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the given object equals this rectangle. <ahref="#ad0258c7ff572fad9039541b1ae064c98">More...</a><br/></td></tr>
<trclass="memdesc:a5d5f784f2f318ba5154bd1db5638b9b0 inherit pub_methods_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a new instance of the same rectangle. <ahref="#a5d5f784f2f318ba5154bd1db5638b9b0">More...</a><br/></td></tr>
<trclass="inherit_header pub_methods_classcom_1_1mxgraph_1_1mxPoint"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_classcom_1_1mxgraph_1_1mxPoint')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="classcom_1_1mxgraph_1_1mxPoint.html">com.mxgraph.mxPoint</a></td></tr>
<trclass="memdesc:a89f1b8c951f4f15c4517504b00f7f283 inherit pub_methods_classcom_1_1mxgraph_1_1mxPoint"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a new point at (0, 0). <ahref="#a89f1b8c951f4f15c4517504b00f7f283">More...</a><br/></td></tr>
<trclass="memdesc:aa25c5f6cb6277122654f5d25f86a3317 inherit pub_methods_classcom_1_1mxgraph_1_1mxPoint"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a new point at the location of the given point. <ahref="#aa25c5f6cb6277122654f5d25f86a3317">More...</a><br/></td></tr>
<trclass="memdesc:ac414414cdc5ecf3369351e050ac8c2ff inherit pub_methods_classcom_1_1mxgraph_1_1mxPoint"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a new point at the location of the given point. <ahref="#ac414414cdc5ecf3369351e050ac8c2ff">More...</a><br/></td></tr>
<trclass="memdesc:ad93ee20e9ab6a2c2d0e2f6d5a4a53900 inherit pub_methods_classcom_1_1mxgraph_1_1mxPoint"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a new point at (x, y). <ahref="#ad93ee20e9ab6a2c2d0e2f6d5a4a53900">More...</a><br/></td></tr>
<trclass="memdesc:a0c402311c850df7e8c7ff7b3e7fff874 inherit pub_methods_classcom_1_1mxgraph_1_1mxPoint"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the coordinates as a new point. <ahref="#a0c402311c850df7e8c7ff7b3e7fff874">More...</a><br/></td></tr>
<trclass="memdesc:aee9ce9abb7a716b1b10ae8601c3373dd inherit pub_methods_classcom_1_1mxgraph_1_1mxPoint"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the given object equals this point. <ahref="#aee9ce9abb7a716b1b10ae8601c3373dd">More...</a><br/></td></tr>
<trclass="memdesc:a936c837c4eb0dfeeb3de5c7ab3df4ccd inherit pub_methods_classcom_1_1mxgraph_1_1mxPoint"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a new instance of the same point. <ahref="#a936c837c4eb0dfeeb3de5c7ab3df4ccd">More...</a><br/></td></tr>
<trclass="memdesc:acc5ed3f1faa848a1abae9b0c7a75f1dd"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Global switch to translate the points in translate. Default is true. <ahref="#acc5ed3f1faa848a1abae9b0c7a75f1dd">More...</a><br/></td></tr>
<trclass="memdesc:a014d9a836b2f9f57a1001a9fa086cc1c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Stores alternate values for x, y, width and height in a rectangle. Default is null. <ahref="#a014d9a836b2f9f57a1001a9fa086cc1c">More...</a><br/></td></tr>
<trclass="memdesc:a82007cdccdc2f76ccd761f37a8a3b570"><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="#a82007cdccdc2f76ccd761f37a8a3b570">More...</a><br/></td></tr>
<trclass="memdesc:a593f349173fe7a2ec5f8ba9297903950"><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="#a593f349173fe7a2ec5f8ba9297903950">More...</a><br/></td></tr>
<trclass="memdesc:ab800342011fd8ca796f4f8ebce8b4179"><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="#ab800342011fd8ca796f4f8ebce8b4179">More...</a><br/></td></tr>
<trclass="memdesc:ad1228e3a38ae4aaa2fba8a5b08e249f4"><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="#ad1228e3a38ae4aaa2fba8a5b08e249f4">More...</a><br/></td></tr>
<trclass="memdesc:a9467b1d4127d1bfa44b6684b565720bb"><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="#a9467b1d4127d1bfa44b6684b565720bb">More...</a><br/></td></tr>
<trclass="memdesc:aeeb2d3b2c0e620212b98fc33290ca75f inherit pro_attribs_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Holds the width. Default is 0. <ahref="#aeeb2d3b2c0e620212b98fc33290ca75f">More...</a><br/></td></tr>
<trclass="memdesc:ae9f3da02058561520c04142e2ba5a881 inherit pro_attribs_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Holds the height. Default is 0. <ahref="#ae9f3da02058561520c04142e2ba5a881">More...</a><br/></td></tr>
<trclass="memdesc:ac17799d682c1cb5bb97d1e6e5c7211cd inherit pro_attribs_classcom_1_1mxgraph_1_1mxPoint"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Holds the x-coordinate of the point. Default is 0. <ahref="#ac17799d682c1cb5bb97d1e6e5c7211cd">More...</a><br/></td></tr>
<trclass="memdesc:ac173fb501168e5ccd6fee2f77f153538 inherit pro_attribs_classcom_1_1mxgraph_1_1mxPoint"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Holds the y-coordinate of the point. Default is 0. <ahref="#ac173fb501168e5ccd6fee2f77f153538">More...</a><br/></td></tr>
<trclass="memdesc:a8f638bf30494d432ed9ef6c129bb13fa"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the alternate bounds. <ahref="#a8f638bf30494d432ed9ef6c129bb13fa">More...</a><br/></td></tr>
<trclass="memdesc:a60a690be10f5a0d0cc153d61e9767829"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the source point. <ahref="#a60a690be10f5a0d0cc153d61e9767829">More...</a><br/></td></tr>
<trclass="memdesc:aa2b6d7e7acfa4c5f217e5be8170ad3fb"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the target point. <ahref="#aa2b6d7e7acfa4c5f217e5be8170ad3fb">More...</a><br/></td></tr>
<trclass="memdesc:a0f055be7c39f72dcd573319ba11343b3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the list of control points. <ahref="#a0f055be7c39f72dcd573319ba11343b3">More...</a><br/></td></tr>
<trclass="memdesc:a1ddf819ee6a49e45e1fce955c0d0dc69"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the offset. <ahref="#a1ddf819ee6a49e45e1fce955c0d0dc69">More...</a><br/></td></tr>
<trclass="memdesc:adbcc31221fd355169ab6a21b17815b4f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns if the geometry is relative. <ahref="#adbcc31221fd355169ab6a21b17815b4f">More...</a><br/></td></tr>
<trclass="inherit_header properties_classcom_1_1mxgraph_1_1mxRectangle"><tdcolspan="2"onclick="javascript:toggleInherit('properties_classcom_1_1mxgraph_1_1mxRectangle')"><imgsrc="closed.png"alt="-"/> Properties inherited from <aclass="el"href="classcom_1_1mxgraph_1_1mxRectangle.html">com.mxgraph.mxRectangle</a></td></tr>
<trclass="memdesc:a25e837182fe7e32ff07c5da012ee3cf8 inherit properties_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the width of the rectangle. <ahref="#a25e837182fe7e32ff07c5da012ee3cf8">More...</a><br/></td></tr>
<trclass="memdesc:af808af89d775d2082b8f4fa449b826d9 inherit properties_classcom_1_1mxgraph_1_1mxRectangle"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the height of the rectangle. <ahref="#af808af89d775d2082b8f4fa449b826d9">More...</a><br/></td></tr>
<trclass="inherit_header properties_classcom_1_1mxgraph_1_1mxPoint"><tdcolspan="2"onclick="javascript:toggleInherit('properties_classcom_1_1mxgraph_1_1mxPoint')"><imgsrc="closed.png"alt="-"/> Properties inherited from <aclass="el"href="classcom_1_1mxgraph_1_1mxPoint.html">com.mxgraph.mxPoint</a></td></tr>
<trclass="memdesc:a33540da347ee0a5b4c06c787ab6d0b85 inherit properties_classcom_1_1mxgraph_1_1mxPoint"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the x-coordinate of the point. <ahref="#a33540da347ee0a5b4c06c787ab6d0b85">More...</a><br/></td></tr>
<trclass="memdesc:ab11a2fa8c8ef7d3d3727feb60ce75a50 inherit properties_classcom_1_1mxgraph_1_1mxPoint"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns the y-coordinate of the point. <ahref="#ab11a2fa8c8ef7d3d3727feb60ce75a50">More...</a><br/></td></tr>
<divclass="textblock"><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>
</div><h2class="groupheader">Constructor & Destructor Documentation</h2>
<p>Referenced by <aclass="el"href="classcom_1_1mxgraph_1_1mxGraphModel.html#a06e516f7be32d17847bae68475caa892">com.mxgraph.mxGraphModel.UpdateEdgeParent()</a>.</p>
<p>Referenced by <aclass="el"href="classcom_1_1mxgraph_1_1mxGraphView.html#a5217526a3a0ed82dab915c8c696ece7c">com.mxgraph.mxGraphView.UpdateEdgeState()</a>.</p>
<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>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">dx</td><td>Integer that specifies the x-coordinate of the translation.</td></tr>
<tr><tdclass="paramname">dy</td><td>Integer that specifies the y-coordinate of the translation.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2class="groupheader">Member Data Documentation</h2>
<p>Stores alternate values for x, y, width and height in a rectangle. Default is null. </p>
<p>Referenced by <aclass="el"href="classcom_1_1mxgraph_1_1mxGeometry.html#a0a009274dc42564d6e469cba0e1e412f">com.mxgraph.mxGeometry.mxGeometry()</a>.</p>
<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>Referenced by <aclass="el"href="classcom_1_1mxgraph_1_1mxGeometry.html#a0a009274dc42564d6e469cba0e1e412f">com.mxgraph.mxGeometry.mxGeometry()</a>.</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>Referenced by <aclass="el"href="classcom_1_1mxgraph_1_1mxGeometry.html#a0a009274dc42564d6e469cba0e1e412f">com.mxgraph.mxGeometry.mxGeometry()</a>.</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>Referenced by <aclass="el"href="classcom_1_1mxgraph_1_1mxGeometry.html#a0a009274dc42564d6e469cba0e1e412f">com.mxgraph.mxGeometry.mxGeometry()</a>.</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>
<p>Referenced by <aclass="el"href="classcom_1_1mxgraph_1_1mxGeometry.html#a0a009274dc42564d6e469cba0e1e412f">com.mxgraph.mxGeometry.mxGeometry()</a>.</p>
<p>Sets or returns the list of control points. </p>
<p>Referenced by <aclass="el"href="classcom_1_1mxgraph_1_1mxGraphView.html#a5217526a3a0ed82dab915c8c696ece7c">com.mxgraph.mxGraphView.UpdateEdgeState()</a>.</p>
<p>Referenced by <aclass="el"href="classcom_1_1mxgraph_1_1mxGraphView.html#a752358e994c527d984d8035d326246a4">com.mxgraph.mxGraphView.GetPoint()</a>, and <aclass="el"href="classcom_1_1mxgraph_1_1mxGraphView.html#a249606677ff2502dde0f8cbd62e0d5ab">com.mxgraph.mxGraphView.UpdateCellState()</a>.</p>