maxGraph/java/docs/com/mxgraph/model/mxGeometry.html

904 lines
38 KiB
HTML
Raw Normal View History

2012-05-21 20:32:26 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2014-04-01 11:30:48 +00:00
<!-- NewPage -->
<html lang="en">
<head>
2018-12-14 12:08:55 +00:00
<!-- Generated by javadoc (10.0.2) on Fri Dec 14 12:03:14 UTC 2018 -->
2018-12-14 11:54:12 +00:00
<title>mxGeometry (mxGraph 3.9.12 API Specification)</title>
2018-11-06 11:46:01 +00:00
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2018-12-14 11:54:12 +00:00
<meta name="date" content="2018-12-14">
2014-04-01 11:30:48 +00:00
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
2018-11-06 11:46:01 +00:00
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
2016-06-02 09:57:18 +00:00
<script type="text/javascript" src="../../../script.js"></script>
2018-11-06 11:46:01 +00:00
<script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../jquery/jquery-1.10.2.js"></script>
<script type="text/javascript" src="../../../jquery/jquery-ui.js"></script>
2014-04-01 11:30:48 +00:00
</head>
<body>
<script type="text/javascript"><!--
2016-06-02 09:57:18 +00:00
try {
if (location.href.indexOf('is-external=true') == -1) {
2018-12-14 11:54:12 +00:00
parent.document.title="mxGeometry (mxGraph 3.9.12 API Specification)";
2016-06-02 09:57:18 +00:00
}
}
catch(err) {
2012-05-21 20:32:26 +00:00
}
2014-04-01 11:30:48 +00:00
//-->
2016-06-02 09:57:18 +00:00
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
2018-11-06 11:46:01 +00:00
var pathtoroot = "../../../";loadScripts(document, 'script');</script>
2014-04-01 11:30:48 +00:00
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
2018-11-06 11:46:01 +00:00
<div class="fixedNav">
2012-05-21 20:32:26 +00:00
<!-- ========= START OF TOP NAVBAR ======= -->
2016-06-02 09:57:18 +00:00
<div class="topNav"><a name="navbar.top">
2014-04-01 11:30:48 +00:00
<!-- -->
2016-06-02 09:57:18 +00:00
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/mxGeometry.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
2018-12-14 11:54:12 +00:00
<div class="aboutLanguage"><p><b>mxGraph 3.9.12</b></p></div>
2014-04-01 11:30:48 +00:00
</div>
<div class="subNav">
<ul class="navList">
2016-06-02 09:57:18 +00:00
<li><a href="../../../com/mxgraph/model/mxCellPath.html" title="class in com.mxgraph.model"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../com/mxgraph/model/mxGraphModel.html" title="class in com.mxgraph.model"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/mxgraph/model/mxGeometry.html" target="_top">Frames</a></li>
2016-06-02 09:57:18 +00:00
<li><a href="mxGeometry.html" target="_top">No&nbsp;Frames</a></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="navList" id="allclasses_navbar_top">
2016-06-02 09:57:18 +00:00
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
2014-04-01 11:30:48 +00:00
</ul>
2018-11-06 11:46:01 +00:00
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
2014-04-01 11:30:48 +00:00
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
2012-05-21 20:32:26 +00:00
if(window==top) {
2014-04-01 11:30:48 +00:00
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
2012-05-21 20:32:26 +00:00
}
//-->
2014-04-01 11:30:48 +00:00
</script>
2018-11-06 11:46:01 +00:00
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
2014-04-01 11:30:48 +00:00
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
2016-06-02 09:57:18 +00:00
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
2016-06-02 09:57:18 +00:00
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
2014-04-01 11:30:48 +00:00
</ul>
</div>
2016-06-02 09:57:18 +00:00
<a name="skip.navbar.top">
2014-04-01 11:30:48 +00:00
<!-- -->
</a></div>
2012-05-21 20:32:26 +00:00
<!-- ========= END OF TOP NAVBAR ========= -->
2018-11-06 11:46:01 +00:00
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
2012-05-21 20:32:26 +00:00
<!-- ======== START OF CLASS DATA ======== -->
2014-04-01 11:30:48 +00:00
<div class="header">
2018-11-06 11:46:01 +00:00
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="../../../com/mxgraph/model/package-summary.html">com.mxgraph.model</a></div>
2014-04-01 11:30:48 +00:00
<h2 title="Class mxGeometry" class="title">Class mxGeometry</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
2017-11-24 16:16:54 +00:00
<li>java.lang.Object</li>
2014-04-01 11:30:48 +00:00
<li>
<ul class="inheritance">
<li><a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">com.mxgraph.util.mxPoint</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">com.mxgraph.util.mxRectangle</a></li>
<li>
<ul class="inheritance">
<li>com.mxgraph.model.mxGeometry</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
2018-11-06 11:46:01 +00:00
<dd><code>java.io.Serializable</code>, <code>java.lang.Cloneable</code></dd>
2014-04-01 11:30:48 +00:00
</dl>
<hr>
2016-06-02 09:57:18 +00:00
<pre>public class <span class="typeNameLabel">mxGeometry</span>
2014-04-01 11:30:48 +00:00
extends <a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></pre>
<div class="block">Represents the geometry of a cell. For vertices, the geometry consists
2012-05-21 20:32:26 +00:00
of the x- and y-location, as well as the width and height. For edges,
the geometry either defines the source- and target-terminal, or it
defines the respective terminal points.
For edges, if the geometry is relative (default), then the x-coordinate
is used to describe the distance from the center of the edge from -1 to 1
with 0 being the center of the edge and the default value, and the
y-coordinate is used to describe the absolute, orthogonal distance in
pixels from that point. In addition, the offset is used as an absolute
2014-04-01 11:30:48 +00:00
offset vector from the resulting point.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../serialized-form.html#com.mxgraph.model.mxGeometry">Serialized Form</a></dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
2012-05-21 20:32:26 +00:00
<!-- =========== FIELD SUMMARY =========== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
2016-06-02 09:57:18 +00:00
<li class="blockList"><a name="field.summary">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<h3>Field Summary</h3>
2018-11-06 11:46:01 +00:00
<table class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
2014-04-01 11:30:48 +00:00
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
2014-04-01 11:30:48 +00:00
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#alternateBounds">alternateBounds</a></span></code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Stores alternate values for x, y, width and height in a rectangle.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#offset">offset</a></span></code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Holds the offset of the label for edges.</div>
</td>
</tr>
<tr class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>protected java.util.List&lt;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&gt;</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#points">points</a></span></code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">List of mxPoints which specifies the control points along the edge.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#relative">relative</a></span></code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Specifies if the coordinates in the geometry are to be interpreted as
relative coordinates.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#sourcePoint">sourcePoint</a></span></code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Defines the source- and target-point of the edge.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#targetPoint">targetPoint</a></span></code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Defines the source- and target-point of the edge.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#TRANSLATE_CONTROL_POINTS">TRANSLATE_CONTROL_POINTS</a></span></code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Global switch to translate the points in translate.</div>
</td>
</tr>
</table>
<ul class="blockList">
2018-11-06 11:46:01 +00:00
<li class="blockList"><a name="fields.inherited.from.class.com.mxgraph.util.mxPoint">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
2018-11-06 11:46:01 +00:00
<h3>Fields inherited from class&nbsp;com.mxgraph.util.<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></h3>
<code><a href="../../../com/mxgraph/util/mxPoint.html#x">x</a>, <a href="../../../com/mxgraph/util/mxPoint.html#y">y</a></code></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="blockList">
2018-11-06 11:46:01 +00:00
<li class="blockList"><a name="fields.inherited.from.class.com.mxgraph.util.mxRectangle">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
2018-11-06 11:46:01 +00:00
<h3>Fields inherited from class&nbsp;com.mxgraph.util.<a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></h3>
<code><a href="../../../com/mxgraph/util/mxRectangle.html#height">height</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#width">width</a></code></li>
2014-04-01 11:30:48 +00:00
</ul>
</li>
</ul>
2012-05-21 20:32:26 +00:00
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
2016-06-02 09:57:18 +00:00
<li class="blockList"><a name="constructor.summary">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<h3>Constructor Summary</h3>
2018-11-06 11:46:01 +00:00
<table class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
2014-04-01 11:30:48 +00:00
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
2018-11-06 11:46:01 +00:00
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
2014-04-01 11:30:48 +00:00
</tr>
<tr class="altColor">
2018-11-06 11:46:01 +00:00
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#mxGeometry--">mxGeometry</a></span>()</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Constructs a new geometry at (0, 0) with the width and height set to 0.</div>
</td>
</tr>
<tr class="rowColor">
2018-11-06 11:46:01 +00:00
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#mxGeometry-double-double-double-double-">mxGeometry</a></span>&#8203;(double&nbsp;x,
2014-04-01 11:30:48 +00:00
double&nbsp;y,
double&nbsp;width,
2018-11-06 11:46:01 +00:00
double&nbsp;height)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Constructs a geometry using the given parameters.</div>
</td>
</tr>
</table>
</li>
</ul>
2012-05-21 20:32:26 +00:00
<!-- ========== METHOD SUMMARY =========== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
2016-06-02 09:57:18 +00:00
<li class="blockList"><a name="method.summary">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<h3>Method Summary</h3>
2018-11-06 11:46:01 +00:00
<table class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
2016-06-02 09:57:18 +00:00
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
2014-04-01 11:30:48 +00:00
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
2014-04-01 11:30:48 +00:00
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i0" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>java.lang.Object</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#clone--">clone</a></span>()</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns a clone of the cell.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i1" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code><a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#getAlternateBounds--">getAlternateBounds</a></span>()</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the alternate bounds.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i2" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code><a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#getOffset--">getOffset</a></span>()</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the offset.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i3" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>java.util.List&lt;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&gt;</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#getPoints--">getPoints</a></span>()</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the list of control points.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i4" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code><a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#getSourcePoint--">getSourcePoint</a></span>()</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the source point.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i5" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code><a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#getTargetPoint--">getTargetPoint</a></span>()</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the target point.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i6" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code><a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#getTerminalPoint-boolean-">getTerminalPoint</a></span>&#8203;(boolean&nbsp;isSource)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the point representing the source or target point of this edge.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i7" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>boolean</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#isRelative--">isRelative</a></span>()</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns true of the geometry is relative.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i8" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>void</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#setAlternateBounds-com.mxgraph.util.mxRectangle-">setAlternateBounds</a></span>&#8203;(<a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;rect)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Sets the alternate bounds to the given rectangle.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i9" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>void</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#setOffset-com.mxgraph.util.mxPoint-">setOffset</a></span>&#8203;(<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;offset)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Sets the offset to the given point.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i10" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>void</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#setPoints-java.util.List-">setPoints</a></span>&#8203;(java.util.List&lt;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&gt;&nbsp;value)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Sets the list of control points to the given list.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i11" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>void</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#setRelative-boolean-">setRelative</a></span>&#8203;(boolean&nbsp;value)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Sets the relative state of the geometry.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i12" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>void</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#setSourcePoint-com.mxgraph.util.mxPoint-">setSourcePoint</a></span>&#8203;(<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;sourcePoint)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Sets the source point.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i13" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>void</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#setTargetPoint-com.mxgraph.util.mxPoint-">setTargetPoint</a></span>&#8203;(<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;targetPoint)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Sets the target point.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i14" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code><a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#setTerminalPoint-com.mxgraph.util.mxPoint-boolean-">setTerminalPoint</a></span>&#8203;(<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;point,
boolean&nbsp;isSource)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Sets the sourcePoint or targetPoint to the given point and returns the
new point.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i15" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>void</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#swap--">swap</a></span>()</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Swaps the x, y, width and height with the values stored in
2012-05-21 20:32:26 +00:00
alternateBounds and puts the previous values into alternateBounds as
2014-04-01 11:30:48 +00:00
a rectangle.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i16" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>void</code></td>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGeometry.html#translate-double-double-">translate</a></span>&#8203;(double&nbsp;dx,
double&nbsp;dy)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Translates the geometry by the specified amount.</div>
</td>
</tr>
</table>
<ul class="blockList">
2018-11-06 11:46:01 +00:00
<li class="blockList"><a name="methods.inherited.from.class.com.mxgraph.util.mxPoint">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
2018-11-06 11:46:01 +00:00
<h3>Methods inherited from class&nbsp;com.mxgraph.util.<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></h3>
<code><a href="../../../com/mxgraph/util/mxPoint.html#getPoint--">getPoint</a>, <a href="../../../com/mxgraph/util/mxPoint.html#getX--">getX</a>, <a href="../../../com/mxgraph/util/mxPoint.html#getY--">getY</a>, <a href="../../../com/mxgraph/util/mxPoint.html#setX-double-">setX</a>, <a href="../../../com/mxgraph/util/mxPoint.html#setY-double-">setY</a></code></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="blockList">
2018-11-06 11:46:01 +00:00
<li class="blockList"><a name="methods.inherited.from.class.com.mxgraph.util.mxRectangle">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
2018-11-06 11:46:01 +00:00
<h3>Methods inherited from class&nbsp;com.mxgraph.util.<a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></h3>
<code><a href="../../../com/mxgraph/util/mxRectangle.html#add-com.mxgraph.util.mxRectangle-">add</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#contains-double-double-">contains</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#equals-java.lang.Object-">equals</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#getCenterX--">getCenterX</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#getCenterY--">getCenterY</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#getHeight--">getHeight</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#getRectangle--">getRectangle</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#getWidth--">getWidth</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#grow-double-">grow</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#intersectLine-double-double-double-double-">intersectLine</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#rotate90--">rotate90</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#setHeight-double-">setHeight</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#setRect-double-double-double-double-">setRect</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#setWidth-double-">setWidth</a>, <a href="../../../com/mxgraph/util/mxRectangle.html#toString--">toString</a></code></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="blockList">
2016-06-02 09:57:18 +00:00
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
2017-11-24 16:16:54 +00:00
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
2014-04-01 11:30:48 +00:00
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
2012-05-21 20:32:26 +00:00
<!-- ============ FIELD DETAIL =========== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
2016-06-02 09:57:18 +00:00
<li class="blockList"><a name="field.detail">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="TRANSLATE_CONTROL_POINTS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TRANSLATE_CONTROL_POINTS</h4>
<pre>public static transient&nbsp;boolean TRANSLATE_CONTROL_POINTS</pre>
<div class="block">Global switch to translate the points in translate. Default is true.</div>
</li>
</ul>
<a name="alternateBounds">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>alternateBounds</h4>
<pre>protected&nbsp;<a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> alternateBounds</pre>
<div class="block">Stores alternate values for x, y, width and height in a rectangle.
Default is null.</div>
</li>
</ul>
<a name="sourcePoint">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sourcePoint</h4>
<pre>protected&nbsp;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> sourcePoint</pre>
<div class="block">Defines the source- and target-point of the edge. This is used if the
2012-05-21 20:32:26 +00:00
corresponding edge does not have a source vertex. Otherwise it is
2014-04-01 11:30:48 +00:00
ignored. Default is null.</div>
</li>
</ul>
<a name="targetPoint">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>targetPoint</h4>
<pre>protected&nbsp;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> targetPoint</pre>
<div class="block">Defines the source- and target-point of the edge. This is used if the
2012-05-21 20:32:26 +00:00
corresponding edge does not have a source vertex. Otherwise it is
2014-04-01 11:30:48 +00:00
ignored. Default is null.</div>
</li>
</ul>
<a name="points">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>points</h4>
2017-11-24 16:16:54 +00:00
<pre>protected&nbsp;java.util.List&lt;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&gt; points</pre>
2014-04-01 11:30:48 +00:00
<div class="block">List of mxPoints which specifies the control points along the edge.
2012-05-21 20:32:26 +00:00
These points are the intermediate points on the edge, for the endpoints
use targetPoint and sourcePoint or set the terminals of the edge to
2014-04-01 11:30:48 +00:00
a non-null value. Default is null.</div>
</li>
</ul>
<a name="offset">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>offset</h4>
<pre>protected&nbsp;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> offset</pre>
<div class="block">Holds the offset of the label for edges. This is the absolute vector
2012-05-21 20:32:26 +00:00
between the center of the edge and the top, left point of the label.
2014-04-01 11:30:48 +00:00
Default is null.</div>
</li>
</ul>
<a name="relative">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>relative</h4>
<pre>protected&nbsp;boolean relative</pre>
<div class="block">Specifies if the coordinates in the geometry are to be interpreted as
2012-05-21 20:32:26 +00:00
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, or a relative location with respect to a parent cell's
2014-04-01 11:30:48 +00:00
width and height.</div>
</li>
</ul>
</li>
</ul>
2012-05-21 20:32:26 +00:00
<!-- ========= CONSTRUCTOR DETAIL ======== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
2016-06-02 09:57:18 +00:00
<li class="blockList"><a name="constructor.detail">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<h3>Constructor Detail</h3>
2016-06-02 09:57:18 +00:00
<a name="mxGeometry--">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mxGeometry</h4>
<pre>public&nbsp;mxGeometry()</pre>
<div class="block">Constructs a new geometry at (0, 0) with the width and height set to 0.</div>
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="mxGeometry-double-double-double-double-">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>mxGeometry</h4>
2018-11-06 11:46:01 +00:00
<pre>public&nbsp;mxGeometry&#8203;(double&nbsp;x,
2016-06-02 09:57:18 +00:00
double&nbsp;y,
double&nbsp;width,
double&nbsp;height)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Constructs a geometry using the given parameters.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x</code> - X-coordinate of the new geometry.</dd>
<dd><code>y</code> - Y-coordinate of the new geometry.</dd>
<dd><code>width</code> - Width of the new geometry.</dd>
<dd><code>height</code> - Height of the new geometry.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
</li>
</ul>
2012-05-21 20:32:26 +00:00
<!-- ============ METHOD DETAIL ========== -->
2014-04-01 11:30:48 +00:00
<ul class="blockList">
2016-06-02 09:57:18 +00:00
<li class="blockList"><a name="method.detail">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<h3>Method Detail</h3>
2016-06-02 09:57:18 +00:00
<a name="getAlternateBounds--">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAlternateBounds</h4>
<pre>public&nbsp;<a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;getAlternateBounds()</pre>
<div class="block">Returns the alternate bounds.</div>
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="setAlternateBounds-com.mxgraph.util.mxRectangle-">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAlternateBounds</h4>
2018-11-06 11:46:01 +00:00
<pre>public&nbsp;void&nbsp;setAlternateBounds&#8203;(<a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;rect)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Sets the alternate bounds to the given rectangle.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rect</code> - Rectangle to be used for the alternate bounds.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="getSourcePoint--">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSourcePoint</h4>
<pre>public&nbsp;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;getSourcePoint()</pre>
<div class="block">Returns the source point.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the source point.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="setSourcePoint-com.mxgraph.util.mxPoint-">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSourcePoint</h4>
2018-11-06 11:46:01 +00:00
<pre>public&nbsp;void&nbsp;setSourcePoint&#8203;(<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;sourcePoint)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Sets the source point.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>sourcePoint</code> - Source point to be used.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="getTargetPoint--">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTargetPoint</h4>
<pre>public&nbsp;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;getTargetPoint()</pre>
<div class="block">Returns the target point.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the target point.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="setTargetPoint-com.mxgraph.util.mxPoint-">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTargetPoint</h4>
2018-11-06 11:46:01 +00:00
<pre>public&nbsp;void&nbsp;setTargetPoint&#8203;(<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;targetPoint)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Sets the target point.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>targetPoint</code> - Target point to be used.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="getPoints--">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPoints</h4>
2017-11-24 16:16:54 +00:00
<pre>public&nbsp;java.util.List&lt;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&gt;&nbsp;getPoints()</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the list of control points.</div>
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="setPoints-java.util.List-">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPoints</h4>
2018-11-06 11:46:01 +00:00
<pre>public&nbsp;void&nbsp;setPoints&#8203;(java.util.List&lt;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&gt;&nbsp;value)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Sets the list of control points to the given list.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - List that contains the new control points.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="getOffset--">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOffset</h4>
<pre>public&nbsp;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;getOffset()</pre>
<div class="block">Returns the offset.</div>
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="setOffset-com.mxgraph.util.mxPoint-">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOffset</h4>
2018-11-06 11:46:01 +00:00
<pre>public&nbsp;void&nbsp;setOffset&#8203;(<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;offset)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Sets the offset to the given point.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>offset</code> - Point to be used for the offset.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="isRelative--">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isRelative</h4>
<pre>public&nbsp;boolean&nbsp;isRelative()</pre>
<div class="block">Returns true of the geometry is relative.</div>
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="setRelative-boolean-">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRelative</h4>
2018-11-06 11:46:01 +00:00
<pre>public&nbsp;void&nbsp;setRelative&#8203;(boolean&nbsp;value)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Sets the relative state of the geometry.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Boolean value to be used as the new relative state.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="swap--">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>swap</h4>
<pre>public&nbsp;void&nbsp;swap()</pre>
<div class="block">Swaps the x, y, width and height with the values stored in
2012-05-21 20:32:26 +00:00
alternateBounds and puts the previous values into alternateBounds as
a rectangle. This operation is carried-out in-place, that is, using the
existing geometry instance. If this operation is called during a graph
model transactional change, then the geometry should be cloned before
calling this method and setting the geometry of the cell using
2014-04-01 11:30:48 +00:00
mxGraphModel.setGeometry.</div>
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="getTerminalPoint-boolean-">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTerminalPoint</h4>
2018-11-06 11:46:01 +00:00
<pre>public&nbsp;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;getTerminalPoint&#8203;(boolean&nbsp;isSource)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">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.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>isSource</code> - Boolean that specifies if the source or target point
2014-04-01 11:30:48 +00:00
should be returned.</dd>
2016-06-02 09:57:18 +00:00
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the source or target point.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="setTerminalPoint-com.mxgraph.util.mxPoint-boolean-">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTerminalPoint</h4>
2018-11-06 11:46:01 +00:00
<pre>public&nbsp;<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;setTerminalPoint&#8203;(<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;point,
2016-06-02 09:57:18 +00:00
boolean&nbsp;isSource)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Sets the sourcePoint or targetPoint to the given point and returns the
new point.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>point</code> - Point to be used as the new source or target point.</dd>
<dd><code>isSource</code> - Boolean that specifies if the source or target point
2014-04-01 11:30:48 +00:00
should be set.</dd>
2016-06-02 09:57:18 +00:00
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the new point.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="translate-double-double-">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>translate</h4>
2018-11-06 11:46:01 +00:00
<pre>public&nbsp;void&nbsp;translate&#8203;(double&nbsp;dx,
2016-06-02 09:57:18 +00:00
double&nbsp;dy)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Translates the geometry by the specified amount. That is, x and y of the
2012-05-21 20:32:26 +00:00
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
2014-04-01 11:30:48 +00:00
are not modified by this function.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dx</code> - Integer that specifies the x-coordinate of the translation.</dd>
<dd><code>dy</code> - Integer that specifies the y-coordinate of the translation.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2016-06-02 09:57:18 +00:00
<a name="clone--">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>clone</h4>
2017-11-24 16:16:54 +00:00
<pre>public&nbsp;java.lang.Object&nbsp;clone()</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a clone of the cell.</div>
<dl>
2016-06-02 09:57:18 +00:00
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../com/mxgraph/util/mxRectangle.html#clone--">clone</a></code>&nbsp;in class&nbsp;<code><a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></dd>
2014-04-01 11:30:48 +00:00
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
2012-05-21 20:32:26 +00:00
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
2016-06-02 09:57:18 +00:00
<div class="bottomNav"><a name="navbar.bottom">
2014-04-01 11:30:48 +00:00
<!-- -->
2016-06-02 09:57:18 +00:00
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/mxGeometry.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
2018-12-14 11:54:12 +00:00
<div class="aboutLanguage"><p><b>mxGraph 3.9.12</b></p></div>
2014-04-01 11:30:48 +00:00
</div>
<div class="subNav">
<ul class="navList">
2016-06-02 09:57:18 +00:00
<li><a href="../../../com/mxgraph/model/mxCellPath.html" title="class in com.mxgraph.model"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../com/mxgraph/model/mxGraphModel.html" title="class in com.mxgraph.model"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/mxgraph/model/mxGeometry.html" target="_top">Frames</a></li>
2016-06-02 09:57:18 +00:00
<li><a href="mxGeometry.html" target="_top">No&nbsp;Frames</a></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
2016-06-02 09:57:18 +00:00
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
2014-04-01 11:30:48 +00:00
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
2012-05-21 20:32:26 +00:00
if(window==top) {
2014-04-01 11:30:48 +00:00
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
2012-05-21 20:32:26 +00:00
}
//-->
2014-04-01 11:30:48 +00:00
</script>
2018-11-06 11:46:01 +00:00
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
2014-04-01 11:30:48 +00:00
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
2016-06-02 09:57:18 +00:00
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
2016-06-02 09:57:18 +00:00
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
2014-04-01 11:30:48 +00:00
</ul>
</div>
2016-06-02 09:57:18 +00:00
<a name="skip.navbar.bottom">
2014-04-01 11:30:48 +00:00
<!-- -->
</a></div>
2012-05-21 20:32:26 +00:00
<!-- ======== END OF BOTTOM NAVBAR ======= -->
2017-06-27 11:43:19 +00:00
<p class="legalCopy"><small><font size=1>Copyright (c) 2010-2017 <a href="http://www.jgraph.com/"
target="_blank">Gaudenz Alder, JGraph Ltd</a>. All rights reserved.</font></small></p>
2014-04-01 11:30:48 +00:00
</body>
</html>