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

565 lines
33 KiB
HTML
Raw Normal View History

2012-05-21 20:32:26 +00:00
<!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"/>
2013-04-04 11:51:15 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>mxGraph: com.mxgraph.mxGeometry Class Reference</title>
2012-05-21 20:32:26 +00:00
<link href="tabs.css" rel="stylesheet" type="text/css"/>
2013-04-04 11:51:15 +00:00
<link href="doxygen.css" rel="stylesheet" type="text/css" />
2012-05-21 20:32:26 +00:00
</head>
<body>
2013-04-04 11:51:15 +00:00
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">mxGraph
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.6.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
2012-05-21 20:32:26 +00:00
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul>
</div>
2013-04-04 11:51:15 +00:00
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
2012-05-21 20:32:26 +00:00
</ul>
</div>
2013-04-04 11:51:15 +00:00
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><b>com</b> </li>
<li class="navelem"><a class="el" href="namespacecom_1_1mxgraph.html">mxgraph</a> </li>
<li class="navelem"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html">mxGeometry</a> </li>
</ul>
2012-05-21 20:32:26 +00:00
</div>
</div>
2013-04-04 11:51:15 +00:00
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#properties">Properties</a> </div>
<div class="headertitle">
<div class="title">com.mxgraph.mxGeometry Class Reference</div> </div>
</div><!--header-->
2012-05-21 20:32:26 +00:00
<div class="contents">
2013-04-04 11:51:15 +00:00
<!-- doxytag: class="com::mxgraph::mxGeometry" --><!-- doxytag: inherits="com::mxgraph::mxRectangle" -->
2012-05-21 20:32:26 +00:00
<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.
2013-04-04 11:51:15 +00:00
<a href="classcom_1_1mxgraph_1_1mxGeometry.html#details">More...</a></p>
2012-05-21 20:32:26 +00:00
<div class="dynheader">
2013-04-04 11:51:15 +00:00
Inheritance diagram for com.mxgraph.mxGeometry:</div>
<div class="dyncontent">
2012-05-21 20:32:26 +00:00
<div class="center">
2013-04-04 11:51:15 +00:00
<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" title="Implements a 2-dimensional rectangle with double precision coordinates." alt="com.mxgraph.mxRectangle" shape="rect" coords="0,56,162,80"/>
<area href="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"/>
2012-05-21 20:32:26 +00:00
</map>
2013-04-04 11:51:15 +00:00
</div></div>
2012-05-21 20:32:26 +00:00
<p><a href="classcom_1_1mxgraph_1_1mxGeometry-members.html">List of all members.</a></p>
2013-04-04 11:51:15 +00:00
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a8372e373169908147f27c441e1fadc98">mxGeometry</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new geometry at (0, 0) with the width and height set to 0. <a href="#a8372e373169908147f27c441e1fadc98"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a9d4a0a8adb2497c1e8190241f148408b">mxGeometry</a> (double <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#ac17799d682c1cb5bb97d1e6e5c7211cd">x</a>, double <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#ac173fb501168e5ccd6fee2f77f153538">y</a>, double <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html#aeeb2d3b2c0e620212b98fc33290ca75f">width</a>, double <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html#ae9f3da02058561520c04142e2ba5a881">height</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a geometry using the given parameters. <a href="#a9d4a0a8adb2497c1e8190241f148408b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a0a009274dc42564d6e469cba0e1e412f">mxGeometry</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html">mxGeometry</a> geometry)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a copy of the given geometry. <a href="#a0a009274dc42564d6e469cba0e1e412f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a0cd321048b409704b2e2191f9c6e9081">GetTerminalPoint</a> (bool source)</td></tr>
<tr><td class="mdescLeft">&#160;</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="#a0cd321048b409704b2e2191f9c6e9081"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a428984988ab8ead3f69a77e8db36bbd3">SetTerminalPoint</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> point, bool source)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the sourcePoint or targetPoint to the given point and returns the new point. <a href="#a428984988ab8ead3f69a77e8db36bbd3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a83fbef0b42df800973892bd80fafddfe">Translate</a> (double dx, double dy)</td></tr>
<tr><td class="mdescLeft">&#160;</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="#a83fbef0b42df800973892bd80fafddfe"></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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#aba28697d89da4cef532a11122e5e33d2">Clone</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a new instance of the same geometry. <a href="#aba28697d89da4cef532a11122e5e33d2"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#acc5ed3f1faa848a1abae9b0c7a75f1dd">TRANSLATE_CONTROL_POINTS</a> = true</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Global switch to translate the points in translate. Default is true. <a href="#acc5ed3f1faa848a1abae9b0c7a75f1dd"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a014d9a836b2f9f57a1001a9fa086cc1c">alternateBounds</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores alternate values for x, y, width and height in a rectangle. Default is null. <a href="#a014d9a836b2f9f57a1001a9fa086cc1c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a82007cdccdc2f76ccd761f37a8a3b570">sourcePoint</a></td></tr>
<tr><td class="mdescLeft">&#160;</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="#a82007cdccdc2f76ccd761f37a8a3b570"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a593f349173fe7a2ec5f8ba9297903950">targetPoint</a></td></tr>
<tr><td class="mdescLeft">&#160;</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="#a593f349173fe7a2ec5f8ba9297903950"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#ab800342011fd8ca796f4f8ebce8b4179">offset</a></td></tr>
<tr><td class="mdescLeft">&#160;</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="#ab800342011fd8ca796f4f8ebce8b4179"></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;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#ad1228e3a38ae4aaa2fba8a5b08e249f4">points</a></td></tr>
<tr><td class="mdescLeft">&#160;</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="#ad1228e3a38ae4aaa2fba8a5b08e249f4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a9467b1d4127d1bfa44b6684b565720bb">relative</a> = false</td></tr>
<tr><td class="mdescLeft">&#160;</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="#a9467b1d4127d1bfa44b6684b565720bb"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a8f638bf30494d432ed9ef6c129bb13fa">AlternateBounds</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or returns the alternate bounds. <a href="#a8f638bf30494d432ed9ef6c129bb13fa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a60a690be10f5a0d0cc153d61e9767829">SourcePoint</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or returns the source point. <a href="#a60a690be10f5a0d0cc153d61e9767829"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#aa2b6d7e7acfa4c5f217e5be8170ad3fb">TargetPoint</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or returns the target point. <a href="#aa2b6d7e7acfa4c5f217e5be8170ad3fb"></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;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a0f055be7c39f72dcd573319ba11343b3">Points</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or returns the list of control points. <a href="#a0f055be7c39f72dcd573319ba11343b3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a1ddf819ee6a49e45e1fce955c0d0dc69">Offset</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or returns the offset. <a href="#a1ddf819ee6a49e45e1fce955c0d0dc69"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#adbcc31221fd355169ab6a21b17815b4f">Relative</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or returns if the geometry is relative. <a href="#adbcc31221fd355169ab6a21b17815b4f"></a><br/></td></tr>
2012-05-21 20:32:26 +00:00
</table>
2013-04-04 11:51:15 +00:00
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="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><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a8372e373169908147f27c441e1fadc98"></a><!-- doxytag: member="com::mxgraph::mxGeometry::mxGeometry" ref="a8372e373169908147f27c441e1fadc98" args="()" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a8372e373169908147f27c441e1fadc98">com.mxgraph.mxGeometry.mxGeometry</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramname"></td><td>)</td>
2012-05-21 20:32:26 +00:00
<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>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a9d4a0a8adb2497c1e8190241f148408b"></a><!-- doxytag: member="com::mxgraph::mxGeometry::mxGeometry" ref="a9d4a0a8adb2497c1e8190241f148408b" args="(double x, double y, double width, double height)" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a8372e373169908147f27c441e1fadc98">com.mxgraph.mxGeometry.mxGeometry</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>x</em>, </td>
2012-05-21 20:32:26 +00:00
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>y</em>, </td>
2012-05-21 20:32:26 +00:00
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>width</em>, </td>
2012-05-21 20:32:26 +00:00
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>height</em>&#160;</td>
2012-05-21 20:32:26 +00:00
</tr>
<tr>
<td></td>
<td>)</td>
2013-04-04 11:51:15 +00:00
<td></td><td><code> [inline]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a geometry using the given parameters. </p>
2013-04-04 11:51:15 +00:00
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>X-coordinate of the new geometry.</td></tr>
<tr><td class="paramname">y</td><td>Y-coordinate of the new geometry.</td></tr>
<tr><td class="paramname">width</td><td>Width of the new geometry.</td></tr>
<tr><td class="paramname">height</td><td>Height of the new geometry.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a0a009274dc42564d6e469cba0e1e412f"></a><!-- doxytag: member="com::mxgraph::mxGeometry::mxGeometry" ref="a0a009274dc42564d6e469cba0e1e412f" args="(mxGeometry geometry)" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a8372e373169908147f27c441e1fadc98">com.mxgraph.mxGeometry.mxGeometry</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html">mxGeometry</a>&#160;</td>
<td class="paramname"><em>geometry</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a copy of the given geometry. </p>
2013-04-04 11:51:15 +00:00
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">geometry</td><td>Geometry to construct a copy of.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="aba28697d89da4cef532a11122e5e33d2"></a><!-- doxytag: member="com::mxgraph::mxGeometry::Clone" ref="aba28697d89da4cef532a11122e5e33d2" args="()" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname">new <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html">mxGeometry</a> <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#aba28697d89da4cef532a11122e5e33d2">com.mxgraph.mxGeometry.Clone</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramname"></td><td>)</td>
2012-05-21 20:32:26 +00:00
<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>
2013-04-04 11:51:15 +00:00
<p>Reimplemented from <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html#a5d5f784f2f318ba5154bd1db5638b9b0">com.mxgraph.mxRectangle</a>.</p>
2012-05-21 20:32:26 +00:00
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a0cd321048b409704b2e2191f9c6e9081"></a><!-- doxytag: member="com::mxgraph::mxGeometry::GetTerminalPoint" ref="a0cd321048b409704b2e2191f9c6e9081" args="(bool source)" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<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#a0cd321048b409704b2e2191f9c6e9081">com.mxgraph.mxGeometry.GetTerminalPoint</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>source</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<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>
2013-04-04 11:51:15 +00:00
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">source</td><td>Boolean that specifies if the source or target point should be returned.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the source or target point.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a428984988ab8ead3f69a77e8db36bbd3"></a><!-- doxytag: member="com::mxgraph::mxGeometry::SetTerminalPoint" ref="a428984988ab8ead3f69a77e8db36bbd3" args="(mxPoint point, bool source)" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<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#a428984988ab8ead3f69a77e8db36bbd3">com.mxgraph.mxGeometry.SetTerminalPoint</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td>
<td class="paramname"><em>point</em>, </td>
2012-05-21 20:32:26 +00:00
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>source</em>&#160;</td>
2012-05-21 20:32:26 +00:00
</tr>
<tr>
<td></td>
<td>)</td>
2013-04-04 11:51:15 +00:00
<td></td><td><code> [inline]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the sourcePoint or targetPoint to the given point and returns the new point. </p>
2013-04-04 11:51:15 +00:00
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">point</td><td>Point to be used as the new source or target point.</td></tr>
<tr><td class="paramname">source</td><td>Boolean that specifies if the source or target point should be set.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the new point.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a83fbef0b42df800973892bd80fafddfe"></a><!-- doxytag: member="com::mxgraph::mxGeometry::Translate" ref="a83fbef0b42df800973892bd80fafddfe" args="(double dx, double dy)" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a83fbef0b42df800973892bd80fafddfe">com.mxgraph.mxGeometry.Translate</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>dx</em>, </td>
2012-05-21 20:32:26 +00:00
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>dy</em>&#160;</td>
2012-05-21 20:32:26 +00:00
</tr>
<tr>
<td></td>
<td>)</td>
2013-04-04 11:51:15 +00:00
<td></td><td><code> [inline]</code></td>
2012-05-21 20:32:26 +00:00
</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>
2013-04-04 11:51:15 +00:00
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dx</td><td>Integer that specifies the x-coordinate of the translation.</td></tr>
<tr><td class="paramname">dy</td><td>Integer that specifies the y-coordinate of the translation.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a014d9a836b2f9f57a1001a9fa086cc1c"></a><!-- doxytag: member="com::mxgraph::mxGeometry::alternateBounds" ref="a014d9a836b2f9f57a1001a9fa086cc1c" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<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#a014d9a836b2f9f57a1001a9fa086cc1c">com.mxgraph.mxGeometry.alternateBounds</a><code> [protected]</code></td>
2012-05-21 20:32:26 +00:00
</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>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ab800342011fd8ca796f4f8ebce8b4179"></a><!-- doxytag: member="com::mxgraph::mxGeometry::offset" ref="ab800342011fd8ca796f4f8ebce8b4179" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<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#ab800342011fd8ca796f4f8ebce8b4179">com.mxgraph.mxGeometry.offset</a><code> [protected]</code></td>
2012-05-21 20:32:26 +00:00
</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>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ad1228e3a38ae4aaa2fba8a5b08e249f4"></a><!-- doxytag: member="com::mxgraph::mxGeometry::points" ref="ad1228e3a38ae4aaa2fba8a5b08e249f4" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<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#ad1228e3a38ae4aaa2fba8a5b08e249f4">com.mxgraph.mxGeometry.points</a><code> [protected]</code></td>
2012-05-21 20:32:26 +00:00
</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>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a9467b1d4127d1bfa44b6684b565720bb"></a><!-- doxytag: member="com::mxgraph::mxGeometry::relative" ref="a9467b1d4127d1bfa44b6684b565720bb" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname">bool <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#a9467b1d4127d1bfa44b6684b565720bb">com.mxgraph.mxGeometry.relative</a> = false<code> [protected]</code></td>
2012-05-21 20:32:26 +00:00
</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>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a82007cdccdc2f76ccd761f37a8a3b570"></a><!-- doxytag: member="com::mxgraph::mxGeometry::sourcePoint" ref="a82007cdccdc2f76ccd761f37a8a3b570" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<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#a82007cdccdc2f76ccd761f37a8a3b570">com.mxgraph.mxGeometry.sourcePoint</a><code> [protected]</code></td>
2012-05-21 20:32:26 +00:00
</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>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a593f349173fe7a2ec5f8ba9297903950"></a><!-- doxytag: member="com::mxgraph::mxGeometry::targetPoint" ref="a593f349173fe7a2ec5f8ba9297903950" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<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#a593f349173fe7a2ec5f8ba9297903950">com.mxgraph.mxGeometry.targetPoint</a><code> [protected]</code></td>
2012-05-21 20:32:26 +00:00
</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>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="acc5ed3f1faa848a1abae9b0c7a75f1dd"></a><!-- doxytag: member="com::mxgraph::mxGeometry::TRANSLATE_CONTROL_POINTS" ref="acc5ed3f1faa848a1abae9b0c7a75f1dd" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname">bool <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#acc5ed3f1faa848a1abae9b0c7a75f1dd">com.mxgraph.mxGeometry.TRANSLATE_CONTROL_POINTS</a> = true<code> [static]</code></td>
2012-05-21 20:32:26 +00:00
</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>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a8f638bf30494d432ed9ef6c129bb13fa"></a><!-- doxytag: member="com::mxgraph::mxGeometry::AlternateBounds" ref="a8f638bf30494d432ed9ef6c129bb13fa" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<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#a8f638bf30494d432ed9ef6c129bb13fa">com.mxgraph.mxGeometry.AlternateBounds</a><code> [get, set]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the alternate bounds. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a1ddf819ee6a49e45e1fce955c0d0dc69"></a><!-- doxytag: member="com::mxgraph::mxGeometry::Offset" ref="a1ddf819ee6a49e45e1fce955c0d0dc69" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<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#a1ddf819ee6a49e45e1fce955c0d0dc69">com.mxgraph.mxGeometry.Offset</a><code> [get, set]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the offset. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a0f055be7c39f72dcd573319ba11343b3"></a><!-- doxytag: member="com::mxgraph::mxGeometry::Points" ref="a0f055be7c39f72dcd573319ba11343b3" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<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#a0f055be7c39f72dcd573319ba11343b3">com.mxgraph.mxGeometry.Points</a><code> [get, set]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the list of control points. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="adbcc31221fd355169ab6a21b17815b4f"></a><!-- doxytag: member="com::mxgraph::mxGeometry::Relative" ref="adbcc31221fd355169ab6a21b17815b4f" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname">bool <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#adbcc31221fd355169ab6a21b17815b4f">com.mxgraph.mxGeometry.Relative</a><code> [get, set]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns if the geometry is relative. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a60a690be10f5a0d0cc153d61e9767829"></a><!-- doxytag: member="com::mxgraph::mxGeometry::SourcePoint" ref="a60a690be10f5a0d0cc153d61e9767829" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<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#a60a690be10f5a0d0cc153d61e9767829">com.mxgraph.mxGeometry.SourcePoint</a><code> [get, set]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the source point. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="aa2b6d7e7acfa4c5f217e5be8170ad3fb"></a><!-- doxytag: member="com::mxgraph::mxGeometry::TargetPoint" ref="aa2b6d7e7acfa4c5f217e5be8170ad3fb" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<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#aa2b6d7e7acfa4c5f217e5be8170ad3fb">com.mxgraph.mxGeometry.TargetPoint</a><code> [get, set]</code></td>
2012-05-21 20:32:26 +00:00
</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>
2013-04-04 11:51:15 +00:00
</div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
2013-10-22 11:05:54 +00:00
Generated on Tue Oct 22 2013 11:52:59 for mxGraph by &#160;<a href="http://www.doxygen.org/index.html">
2013-04-04 11:51:15 +00:00
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>
2012-05-21 20:32:26 +00:00
</body>
</html>