maxGraph/dotnet/docs/html/classcom_1_1mxgraph_1_1mxGe...

519 lines
31 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>mxGraph: com::mxgraph::mxGeometry Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath"><b>com</b>::<b>mxgraph</b>::<a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html">mxGeometry</a>
</div>
</div>
<div class="contents">
<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.
<a href="#_details">More...</a></p>
<div class="dynheader">
Inheritance diagram for com::mxgraph::mxGeometry:</div>
<div class="dynsection">
<div class="center">
<img src="classcom_1_1mxgraph_1_1mxGeometry.png" usemap="#com::mxgraph::mxGeometry_map" alt=""/>
<map id="com::mxgraph::mxGeometry_map" name="com::mxgraph::mxGeometry_map">
<area href="classcom_1_1mxgraph_1_1mxRectangle.html" alt="com::mxgraph::mxRectangle" shape="rect" coords="0,56,166,80"/>
<area href="classcom_1_1mxgraph_1_1mxPoint.html" alt="com::mxgraph::mxPoint" shape="rect" coords="0,0,166,24"/>
</map>
</div>
</div>
<p><a href="classcom_1_1mxgraph_1_1mxGeometry-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a9a6d8132f6e53e9d0447b9a4aed47565">mxGeometry</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a new geometry at (0, 0) with the width and height set to 0. <a href="#a9a6d8132f6e53e9d0447b9a4aed47565"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a02dddac4961d4b9a1480e285a2cee398">mxGeometry</a> (double <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#afc249ce7075359af93ac0001d719ff06">x</a>, double <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#a48641b42a2187e4d6fedca61c359be77">y</a>, double <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html#a62c3f92da547c942f319b6aecd71765c">width</a>, double <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html#adb1bfc2cc3f1215b9357bdeda242a062">height</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a geometry using the given parameters. <a href="#a02dddac4961d4b9a1480e285a2cee398"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#ac7e3adff72a1bc3093d478fea67d0c40">mxGeometry</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html">mxGeometry</a> geometry)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a copy of the given geometry. <a href="#ac7e3adff72a1bc3093d478fea67d0c40"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a7410a68725e48357de2989449068c407">GetTerminalPoint</a> (bool source)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="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. <a href="#a7410a68725e48357de2989449068c407"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a93895db7f9dbc2e2b38b87ad229d5d85">SetTerminalPoint</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> point, bool source)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the sourcePoint or targetPoint to the given point and returns the new point. <a href="#a93895db7f9dbc2e2b38b87ad229d5d85"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a861eafb9b9f70d9e846851f81d11c924">Translate</a> (double dx, double dy)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="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. <a href="#a861eafb9b9f70d9e846851f81d11c924"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">new <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html">mxGeometry</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a1bc5e0feb17c50f9bab5853af0e089f0">Clone</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a new instance of the same geometry. <a href="#a1bc5e0feb17c50f9bab5853af0e089f0"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a415957366c509818f37d3641c61ad62a">TRANSLATE_CONTROL_POINTS</a> = true</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Global switch to translate the points in translate. Default is true. <a href="#a415957366c509818f37d3641c61ad62a"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a2a8475ccf174c3897a4a9df74cd95be8">alternateBounds</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Stores alternate values for x, y, width and height in a rectangle. Default is null. <a href="#a2a8475ccf174c3897a4a9df74cd95be8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a9b70c28ce0b587261639b11fc2854d24">sourcePoint</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="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. <a href="#a9b70c28ce0b587261639b11fc2854d24"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a4db1948b24f7d359a33d2d7db61ee673">targetPoint</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="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. <a href="#a4db1948b24f7d359a33d2d7db61ee673"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a8412ed3eca1c001d8c40eac2f9ce758b">offset</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="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. <a href="#a8412ed3eca1c001d8c40eac2f9ce758b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a45677db05c67d751857181b2c06025f8">points</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="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. <a href="#a45677db05c67d751857181b2c06025f8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a2a64c3ea353de129f7f6dbd76506f5bb">relative</a> = false</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="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. <a href="#a2a64c3ea353de129f7f6dbd76506f5bb"></a><br/></td></tr>
<tr><td colspan="2"><h2>Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a50d84d2d9ed0cf6f083d31bd4794f18b">AlternateBounds</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets or returns the alternate bounds. <a href="#a50d84d2d9ed0cf6f083d31bd4794f18b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a0b3f7faefd09d648c47c7cae92153c59">SourcePoint</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets or returns the source point. <a href="#a0b3f7faefd09d648c47c7cae92153c59"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#aaa5aa1dc09c6ae8828bc19bed208790f">TargetPoint</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets or returns the target point. <a href="#aaa5aa1dc09c6ae8828bc19bed208790f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#ae5575c4397373faa269ef9914e135951">Points</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets or returns the list of control points. <a href="#ae5575c4397373faa269ef9914e135951"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a4769c76d47f7a3281a42b5a6581c1785">Offset</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets or returns the offset. <a href="#a4769c76d47f7a3281a42b5a6581c1785"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a0fc8a94f3ef17260c5b456018999cec4">Relative</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets or returns if the geometry is relative. <a href="#a0fc8a94f3ef17260c5b456018999cec4"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<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 &amp; Destructor Documentation</h2>
<a class="anchor" id="a9a6d8132f6e53e9d0447b9a4aed47565"></a><!-- doxytag: member="com::mxgraph::mxGeometry::mxGeometry" ref="a9a6d8132f6e53e9d0447b9a4aed47565" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">com::mxgraph::mxGeometry::mxGeometry </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a new geometry at (0, 0) with the width and height set to 0. </p>
</div>
</div>
<a class="anchor" id="a02dddac4961d4b9a1480e285a2cee398"></a><!-- doxytag: member="com::mxgraph::mxGeometry::mxGeometry" ref="a02dddac4961d4b9a1480e285a2cee398" args="(double x, double y, double width, double height)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">com::mxgraph::mxGeometry::mxGeometry </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>height</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a geometry using the given parameters. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>X-coordinate of the new geometry.</td></tr>
<tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>Y-coordinate of the new geometry.</td></tr>
<tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>Width of the new geometry.</td></tr>
<tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>Height of the new geometry.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ac7e3adff72a1bc3093d478fea67d0c40"></a><!-- doxytag: member="com::mxgraph::mxGeometry::mxGeometry" ref="ac7e3adff72a1bc3093d478fea67d0c40" args="(mxGeometry geometry)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">com::mxgraph::mxGeometry::mxGeometry </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html">mxGeometry</a>&nbsp;</td>
<td class="paramname"> <em>geometry</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a copy of the given geometry. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>geometry</em>&nbsp;</td><td>Geometry to construct a copy of.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a1bc5e0feb17c50f9bab5853af0e089f0"></a><!-- doxytag: member="com::mxgraph::mxGeometry::Clone" ref="a1bc5e0feb17c50f9bab5853af0e089f0" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">new <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html">mxGeometry</a> com::mxgraph::mxGeometry::Clone </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns a new instance of the same geometry. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a clone of the geometry.</dd></dl>
<p>Reimplemented from <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html#aa9e9e649efa5ad7239db970ec735e846">com::mxgraph::mxRectangle</a>.</p>
</div>
</div>
<a class="anchor" id="a7410a68725e48357de2989449068c407"></a><!-- doxytag: member="com::mxgraph::mxGeometry::GetTerminalPoint" ref="a7410a68725e48357de2989449068c407" args="(bool source)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> com::mxgraph::mxGeometry::GetTerminalPoint </td>
<td>(</td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>source</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<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>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>source</em>&nbsp;</td><td>Boolean that specifies if the source or target point should be returned.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the source or target point.</dd></dl>
</div>
</div>
<a class="anchor" id="a93895db7f9dbc2e2b38b87ad229d5d85"></a><!-- doxytag: member="com::mxgraph::mxGeometry::SetTerminalPoint" ref="a93895db7f9dbc2e2b38b87ad229d5d85" args="(mxPoint point, bool source)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> com::mxgraph::mxGeometry::SetTerminalPoint </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&nbsp;</td>
<td class="paramname"> <em>point</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>source</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the sourcePoint or targetPoint to the given point and returns the new point. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>point</em>&nbsp;</td><td>Point to be used as the new source or target point.</td></tr>
<tr><td valign="top"></td><td valign="top"><em>source</em>&nbsp;</td><td>Boolean that specifies if the source or target point should be set.</td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the new point.</dd></dl>
</div>
</div>
<a class="anchor" id="a861eafb9b9f70d9e846851f81d11c924"></a><!-- doxytag: member="com::mxgraph::mxGeometry::Translate" ref="a861eafb9b9f70d9e846851f81d11c924" args="(double dx, double dy)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxGeometry::Translate </td>
<td>(</td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>dx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>dy</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<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>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>dx</em>&nbsp;</td><td>Integer that specifies the x-coordinate of the translation.</td></tr>
<tr><td valign="top"></td><td valign="top"><em>dy</em>&nbsp;</td><td>Integer that specifies the y-coordinate of the translation.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a2a8475ccf174c3897a4a9df74cd95be8"></a><!-- doxytag: member="com::mxgraph::mxGeometry::alternateBounds" ref="a2a8475ccf174c3897a4a9df74cd95be8" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a2a8475ccf174c3897a4a9df74cd95be8">com::mxgraph::mxGeometry::alternateBounds</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Stores alternate values for x, y, width and height in a rectangle. Default is null. </p>
</div>
</div>
<a class="anchor" id="a8412ed3eca1c001d8c40eac2f9ce758b"></a><!-- doxytag: member="com::mxgraph::mxGeometry::offset" ref="a8412ed3eca1c001d8c40eac2f9ce758b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a8412ed3eca1c001d8c40eac2f9ce758b">com::mxgraph::mxGeometry::offset</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<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>
</div>
</div>
<a class="anchor" id="a45677db05c67d751857181b2c06025f8"></a><!-- doxytag: member="com::mxgraph::mxGeometry::points" ref="a45677db05c67d751857181b2c06025f8" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">List&lt;<a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&gt; <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a45677db05c67d751857181b2c06025f8">com::mxgraph::mxGeometry::points</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<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>
</div>
</div>
<a class="anchor" id="a2a64c3ea353de129f7f6dbd76506f5bb"></a><!-- doxytag: member="com::mxgraph::mxGeometry::relative" ref="a2a64c3ea353de129f7f6dbd76506f5bb" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a2a64c3ea353de129f7f6dbd76506f5bb">com::mxgraph::mxGeometry::relative</a> = false<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<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>
</div>
</div>
<a class="anchor" id="a9b70c28ce0b587261639b11fc2854d24"></a><!-- doxytag: member="com::mxgraph::mxGeometry::sourcePoint" ref="a9b70c28ce0b587261639b11fc2854d24" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a9b70c28ce0b587261639b11fc2854d24">com::mxgraph::mxGeometry::sourcePoint</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<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>
</div>
</div>
<a class="anchor" id="a4db1948b24f7d359a33d2d7db61ee673"></a><!-- doxytag: member="com::mxgraph::mxGeometry::targetPoint" ref="a4db1948b24f7d359a33d2d7db61ee673" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a4db1948b24f7d359a33d2d7db61ee673">com::mxgraph::mxGeometry::targetPoint</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<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>
</div>
</div>
<a class="anchor" id="a415957366c509818f37d3641c61ad62a"></a><!-- doxytag: member="com::mxgraph::mxGeometry::TRANSLATE_CONTROL_POINTS" ref="a415957366c509818f37d3641c61ad62a" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a415957366c509818f37d3641c61ad62a">com::mxgraph::mxGeometry::TRANSLATE_CONTROL_POINTS</a> = true<code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Global switch to translate the points in translate. Default is true. </p>
</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="a50d84d2d9ed0cf6f083d31bd4794f18b"></a><!-- doxytag: member="com::mxgraph::mxGeometry::AlternateBounds" ref="a50d84d2d9ed0cf6f083d31bd4794f18b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> com::mxgraph::mxGeometry::AlternateBounds<code> [get, set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the alternate bounds. </p>
</div>
</div>
<a class="anchor" id="a4769c76d47f7a3281a42b5a6581c1785"></a><!-- doxytag: member="com::mxgraph::mxGeometry::Offset" ref="a4769c76d47f7a3281a42b5a6581c1785" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> com::mxgraph::mxGeometry::Offset<code> [get, set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the offset. </p>
</div>
</div>
<a class="anchor" id="ae5575c4397373faa269ef9914e135951"></a><!-- doxytag: member="com::mxgraph::mxGeometry::Points" ref="ae5575c4397373faa269ef9914e135951" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">List&lt;<a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&gt; com::mxgraph::mxGeometry::Points<code> [get, set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the list of control points. </p>
</div>
</div>
<a class="anchor" id="a0fc8a94f3ef17260c5b456018999cec4"></a><!-- doxytag: member="com::mxgraph::mxGeometry::Relative" ref="a0fc8a94f3ef17260c5b456018999cec4" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool com::mxgraph::mxGeometry::Relative<code> [get, set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns if the geometry is relative. </p>
</div>
</div>
<a class="anchor" id="a0b3f7faefd09d648c47c7cae92153c59"></a><!-- doxytag: member="com::mxgraph::mxGeometry::SourcePoint" ref="a0b3f7faefd09d648c47c7cae92153c59" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> com::mxgraph::mxGeometry::SourcePoint<code> [get, set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the source point. </p>
</div>
</div>
<a class="anchor" id="aaa5aa1dc09c6ae8828bc19bed208790f"></a><!-- doxytag: member="com::mxgraph::mxGeometry::TargetPoint" ref="aaa5aa1dc09c6ae8828bc19bed208790f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> com::mxgraph::mxGeometry::TargetPoint<code> [get, set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the target point. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/model/mxGeometry.cs</li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Tue Dec 18 13:06:24 2012 for mxGraph by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>