maxGraph/dotnet/docs/html/classcom_1_1mxgraph_1_1mxPo...

363 lines
18 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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>mxGraph: com.mxgraph.mxPoint Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<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>
<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 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>
</ul>
</div>
<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_1mxPoint.html">mxPoint</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#properties">Properties</a> </div>
<div class="headertitle">
<div class="title">com.mxgraph.mxPoint Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="com::mxgraph::mxPoint" -->
<p>Implements a 2-dimensional point with double precision coordinates.
<a href="classcom_1_1mxgraph_1_1mxPoint.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for com.mxgraph.mxPoint:</div>
<div class="dyncontent">
<div class="center">
<img src="classcom_1_1mxgraph_1_1mxPoint.png" usemap="#com.mxgraph.mxPoint_map" alt=""/>
<map id="com.mxgraph.mxPoint_map" name="com.mxgraph.mxPoint_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="86,56,248,80"/>
<area href="classcom_1_1mxgraph_1_1mxCellState.html" title="Represents the current state of a cell in a given graph view." alt="com.mxgraph.mxCellState" shape="rect" coords="0,112,162,136"/>
<area href="classcom_1_1mxgraph_1_1mxGeometry.html" title="Represents the geometry of a cell. For vertices, the geometry consists of the x- and y-location..." alt="com.mxgraph.mxGeometry" shape="rect" coords="172,112,334,136"/>
</map>
</div></div>
<p><a href="classcom_1_1mxgraph_1_1mxPoint-members.html">List of all members.</a></p>
<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_1mxPoint.html#a89f1b8c951f4f15c4517504b00f7f283">mxPoint</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new point at (0, 0). <a href="#a89f1b8c951f4f15c4517504b00f7f283"></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_1mxPoint.html#aa25c5f6cb6277122654f5d25f86a3317">mxPoint</a> (Point point)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new point at the location of the given point. <a href="#aa25c5f6cb6277122654f5d25f86a3317"></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_1mxPoint.html#ac414414cdc5ecf3369351e050ac8c2ff">mxPoint</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> point)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new point at the location of the given point. <a href="#ac414414cdc5ecf3369351e050ac8c2ff"></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_1mxPoint.html#ad93ee20e9ab6a2c2d0e2f6d5a4a53900">mxPoint</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>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new point at (x, y). <a href="#ad93ee20e9ab6a2c2d0e2f6d5a4a53900"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Point&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#a0c402311c850df7e8c7ff7b3e7fff874">GetPoint</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the coordinates as a new point. <a href="#a0c402311c850df7e8c7ff7b3e7fff874"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">new Boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#aee9ce9abb7a716b1b10ae8601c3373dd">Equals</a> (Object obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the given object equals this point. <a href="#aee9ce9abb7a716b1b10ae8601c3373dd"></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_1mxPoint.html#a936c837c4eb0dfeeb3de5c7ab3df4ccd">Clone</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a new instance of the same point. <a href="#a936c837c4eb0dfeeb3de5c7ab3df4ccd"></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">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#ac17799d682c1cb5bb97d1e6e5c7211cd">x</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Holds the x-coordinate of the point. Default is 0. <a href="#ac17799d682c1cb5bb97d1e6e5c7211cd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#ac173fb501168e5ccd6fee2f77f153538">y</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Holds the y-coordinate of the point. Default is 0. <a href="#ac173fb501168e5ccd6fee2f77f153538"></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">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#a33540da347ee0a5b4c06c787ab6d0b85">X</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or returns the x-coordinate of the point. <a href="#a33540da347ee0a5b4c06c787ab6d0b85"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#ab11a2fa8c8ef7d3d3727feb60ce75a50">Y</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or returns the y-coordinate of the point. <a href="#ab11a2fa8c8ef7d3d3727feb60ce75a50"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Implements a 2-dimensional point with double precision coordinates. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a89f1b8c951f4f15c4517504b00f7f283"></a><!-- doxytag: member="com::mxgraph::mxPoint::mxPoint" ref="a89f1b8c951f4f15c4517504b00f7f283" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#a89f1b8c951f4f15c4517504b00f7f283">com.mxgraph.mxPoint.mxPoint</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a new point at (0, 0). </p>
</div>
</div>
<a class="anchor" id="aa25c5f6cb6277122654f5d25f86a3317"></a><!-- doxytag: member="com::mxgraph::mxPoint::mxPoint" ref="aa25c5f6cb6277122654f5d25f86a3317" args="(Point point)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#a89f1b8c951f4f15c4517504b00f7f283">com.mxgraph.mxPoint.mxPoint</a> </td>
<td>(</td>
<td class="paramtype">Point&#160;</td>
<td class="paramname"><em>point</em></td><td>)</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a new point at the location of the given point. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">point</td><td>Point that specifies the location.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ac414414cdc5ecf3369351e050ac8c2ff"></a><!-- doxytag: member="com::mxgraph::mxPoint::mxPoint" ref="ac414414cdc5ecf3369351e050ac8c2ff" args="(mxPoint point)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#a89f1b8c951f4f15c4517504b00f7f283">com.mxgraph.mxPoint.mxPoint</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td>
<td class="paramname"><em>point</em></td><td>)</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a new point at the location of the given point. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">point</td><td>Point that specifies the location.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ad93ee20e9ab6a2c2d0e2f6d5a4a53900"></a><!-- doxytag: member="com::mxgraph::mxPoint::mxPoint" ref="ad93ee20e9ab6a2c2d0e2f6d5a4a53900" args="(double x, double y)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#a89f1b8c951f4f15c4517504b00f7f283">com.mxgraph.mxPoint.mxPoint</a> </td>
<td>(</td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>y</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a new point at (x, y). </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>X-coordinate of the point to be created.</td></tr>
<tr><td class="paramname">y</td><td>Y-coordinate of the point to be created.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a936c837c4eb0dfeeb3de5c7ab3df4ccd"></a><!-- doxytag: member="com::mxgraph::mxPoint::Clone" ref="a936c837c4eb0dfeeb3de5c7ab3df4ccd" 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_1mxPoint.html#a936c837c4eb0dfeeb3de5c7ab3df4ccd">com.mxgraph.mxPoint.Clone</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns a new instance of the same point. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a clone of the point.</dd></dl>
<p>Reimplemented in <a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html#a19ba55d41300c3505ee4d3096a77acdf">com.mxgraph.mxCellState</a>, <a class="el" href="classcom_1_1mxgraph_1_1mxGeometry.html#aba28697d89da4cef532a11122e5e33d2">com.mxgraph.mxGeometry</a>, and <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html#a5d5f784f2f318ba5154bd1db5638b9b0">com.mxgraph.mxRectangle</a>.</p>
</div>
</div>
<a class="anchor" id="aee9ce9abb7a716b1b10ae8601c3373dd"></a><!-- doxytag: member="com::mxgraph::mxPoint::Equals" ref="aee9ce9abb7a716b1b10ae8601c3373dd" args="(Object obj)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">new Boolean <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#aee9ce9abb7a716b1b10ae8601c3373dd">com.mxgraph.mxPoint.Equals</a> </td>
<td>(</td>
<td class="paramtype">Object&#160;</td>
<td class="paramname"><em>obj</em></td><td>)</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns true if the given object equals this point. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns true if obj is equal.</dd></dl>
<p>Reimplemented in <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html#ad0258c7ff572fad9039541b1ae064c98">com.mxgraph.mxRectangle</a>.</p>
</div>
</div>
<a class="anchor" id="a0c402311c850df7e8c7ff7b3e7fff874"></a><!-- doxytag: member="com::mxgraph::mxPoint::GetPoint" ref="a0c402311c850df7e8c7ff7b3e7fff874" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Point <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#a0c402311c850df7e8c7ff7b3e7fff874">com.mxgraph.mxPoint.GetPoint</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the coordinates as a new point. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a new point for the location.</dd></dl>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ac17799d682c1cb5bb97d1e6e5c7211cd"></a><!-- doxytag: member="com::mxgraph::mxPoint::x" ref="ac17799d682c1cb5bb97d1e6e5c7211cd" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#ac17799d682c1cb5bb97d1e6e5c7211cd">com.mxgraph.mxPoint.x</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the x-coordinate of the point. Default is 0. </p>
</div>
</div>
<a class="anchor" id="ac173fb501168e5ccd6fee2f77f153538"></a><!-- doxytag: member="com::mxgraph::mxPoint::y" ref="ac173fb501168e5ccd6fee2f77f153538" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#ac173fb501168e5ccd6fee2f77f153538">com.mxgraph.mxPoint.y</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the y-coordinate of the point. Default is 0. </p>
</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="a33540da347ee0a5b4c06c787ab6d0b85"></a><!-- doxytag: member="com::mxgraph::mxPoint::X" ref="a33540da347ee0a5b4c06c787ab6d0b85" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#a33540da347ee0a5b4c06c787ab6d0b85">com.mxgraph.mxPoint.X</a><code> [get, set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the x-coordinate of the point. </p>
</div>
</div>
<a class="anchor" id="ab11a2fa8c8ef7d3d3727feb60ce75a50"></a><!-- doxytag: member="com::mxgraph::mxPoint::Y" ref="ab11a2fa8c8ef7d3d3727feb60ce75a50" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html#ab11a2fa8c8ef7d3d3727feb60ce75a50">com.mxgraph.mxPoint.Y</a><code> [get, set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the y-coordinate of the point. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/utils/mxPoint.cs</li>
</ul>
</div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Aug 9 2013 10:05:12 for mxGraph by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>
</body>
</html>