1150 lines
46 KiB
HTML
1150 lines
46 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (11.0.4) on Tue Aug 20 16:49:48 UTC 2019 -->
|
|
<title>mxCurve (mxGraph 4.0.4 API Specification)</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="dc.created" content="2019-08-20">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
|
|
<script type="text/javascript" src="../../../script.js"></script>
|
|
<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-3.3.1.js"></script>
|
|
<script type="text/javascript" src="../../../jquery/jquery-migrate-3.0.1.js"></script>
|
|
<script type="text/javascript" src="../../../jquery/jquery-ui.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="mxCurve (mxGraph 4.0.4 API Specification)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var data = {"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,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":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";
|
|
var pathtoroot = "../../../";
|
|
var useModuleDirectories = true;
|
|
loadScripts(document, 'script');</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<header role="banner">
|
|
<nav role="navigation">
|
|
<div class="fixedNav">
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a id="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a id="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../index.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/mxCurve.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>
|
|
<div class="aboutLanguage"><p><b>mxGraph 4.0.4</b></p></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses.html">All Classes</a></li>
|
|
</ul>
|
|
<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>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
</div>
|
|
<div class="navPadding"> </div>
|
|
<script type="text/javascript"><!--
|
|
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|
//-->
|
|
</script>
|
|
</nav>
|
|
</header>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<main role="main">
|
|
<div class="header">
|
|
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">com.mxgraph.util</a></div>
|
|
<h2 title="Class mxCurve" class="title">Class mxCurve</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>com.mxgraph.util.mxCurve</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<pre>public class <span class="typeNameLabel">mxCurve</span>
|
|
extends java.lang.Object</pre>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="field.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Field</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#CORE_CURVE">CORE_CURVE</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Defines the key for the central curve index</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected java.util.Map<java.lang.String,​java.lang.Double></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#curveLengths">curveLengths</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The curve lengths of the curves</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>java.util.List<<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#guidePoints">guidePoints</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The points this curve is drawn through.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected java.util.Map<java.lang.String,​double[]></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#intervals">intervals</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">An array of arrays of intervals.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static <a href="mxLine.html" title="class in com.mxgraph.util">mxLine</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#INVALID_POSITION">INVALID_POSITION</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Indicates that an invalid position on a curve was requested</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#LABEL_CURVE">LABEL_CURVE</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Defines the key for the label curve index</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#labelBuffer">labelBuffer</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Offset of the label curve from the curve the label curve is based on.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#maxXBounds">maxXBounds</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#maxYBounds">maxYBounds</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#minXBounds">minXBounds</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#minYBounds">minYBounds</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected java.util.Map<java.lang.String,​<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[]></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#points">points</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">A collection of arrays of curve points</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#valid">valid</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Whether or not the curve currently holds valid values</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="constructor.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Constructor</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">mxCurve</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.util.List)">mxCurve</a></span>​(java.util.List<<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>> points)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Method</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code><a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collisionMove(java.lang.String,com.mxgraph.util.mxRectangle,double)">collisionMove</a></span>​(java.lang.String index,
|
|
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect,
|
|
double buffer)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns a point to move the input rectangle to, in order to
|
|
attempt to place the rectangle away from the curve.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createCoreCurve()">createCoreCurve</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Creates the core curve that is based on the guide points passed into
|
|
this class instance</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createLabelCurve()">createLabelCurve</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBaseLabelCurve()">getBaseLabelCurve</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the curve the label curve is too be based on</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code><a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBounds()">getBounds</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurveLength(java.lang.String)">getCurveLength</a></span>​(java.lang.String index)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code><a href="mxLine.html" title="class in com.mxgraph.util">mxLine</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurveParallel(java.lang.String,double)">getCurveParallel</a></span>​(java.lang.String index,
|
|
double distance)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns a unit vector parallel to the curve at the specified
|
|
distance along the curve.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code><a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurvePoints(java.lang.String)">getCurvePoints</a></span>​(java.lang.String index)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Obtains the points that make up the curve for the specified
|
|
curve index.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code><a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurveSection(java.lang.String,double,double)">getCurveSection</a></span>​(java.lang.String index,
|
|
double start,
|
|
double end)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns a section of the curve as an array of points</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>java.util.List<<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getGuidePoints()">getGuidePoints</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code>double[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIntervals(java.lang.String)">getIntervals</a></span>​(java.lang.String index)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code>protected int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLowerIndexOfSegment(java.lang.String,double)">getLowerIndexOfSegment</a></span>​(java.lang.String index,
|
|
double distance)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Calculates the index of the lower point on the segment
|
|
that contains the point <i>distance</i> along the</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code><a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRelativeFromAbsPoint(com.mxgraph.util.mxPoint,java.lang.String)">getRelativeFromAbsPoint</a></span>​(<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> absPoint,
|
|
java.lang.String index)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Calculates the position of an absolute in terms relative
|
|
to this curve.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#intersectRectPerimeterPoint(java.lang.String,com.mxgraph.util.mxRectangle,int)">intersectRectPerimeterPoint</a></span>​(java.lang.String curveIndex,
|
|
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect,
|
|
int indexSeg)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the point at which this curve segment intersects the boundary
|
|
of the given rectangle, if it does so.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code>protected int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#intersectRectPerimeterSeg(java.lang.String,com.mxgraph.util.mxRectangle)">intersectRectPerimeterSeg</a></span>​(java.lang.String index,
|
|
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Utility method to determine within which segment the specified rectangle
|
|
intersects the specified curve</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code>protected int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#intersectRectPerimeterSeg(java.lang.String,com.mxgraph.util.mxRectangle,int)">intersectRectPerimeterSeg</a></span>​(java.lang.String index,
|
|
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect,
|
|
int startSegment)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Utility method to determine within which segment the specified rectangle
|
|
intersects the specified curve.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#intersectsRect(java.awt.Rectangle)">intersectsRect</a></span>​(java.awt.Rectangle rect)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns whether or not the rectangle passed in hits any part of this
|
|
curve.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code><a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#intersectsRectPerimeter(java.lang.String,com.mxgraph.util.mxRectangle)">intersectsRectPerimeter</a></span>​(java.lang.String index,
|
|
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the point at which this curve intersects the boundary of
|
|
the given rectangle, if it does so.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#intersectsRectPerimeterDist(java.lang.String,com.mxgraph.util.mxRectangle)">intersectsRectPerimeterDist</a></span>​(java.lang.String index,
|
|
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the distance from the start of the curve at which this
|
|
curve intersects the boundary of the given rectangle, if it does
|
|
so.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isLabelReversed()">isLabelReversed</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Whether or not the label curve starts from the end target
|
|
and traces to the start of the branch</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i20" class="altColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#populateIntervals(java.lang.String)">populateIntervals</a></span>​(java.lang.String index)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setLabelBuffer(double)">setLabelBuffer</a></span>​(double buffer)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateBounds(double,double)">updateBounds</a></span>​(double pointX,
|
|
double pointY)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Updates the total bounds of this curve, increasing any dimensions,
|
|
if necessary, to fit in the specified point</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i23" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateCurve(java.util.List)">updateCurve</a></span>​(java.util.List<<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>> newPoints)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Updates the existing curve using the points passed in.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i24" class="altColor">
|
|
<td class="colFirst"><code>protected boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#validateCurve()">validateCurve</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Method must be called before any attempt to access curve information</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="field.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a id="points">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>points</h4>
|
|
<pre>protected java.util.Map<java.lang.String,​<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[]> points</pre>
|
|
<div class="block">A collection of arrays of curve points</div>
|
|
</li>
|
|
</ul>
|
|
<a id="minXBounds">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>minXBounds</h4>
|
|
<pre>protected double minXBounds</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="maxXBounds">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>maxXBounds</h4>
|
|
<pre>protected double maxXBounds</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="minYBounds">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>minYBounds</h4>
|
|
<pre>protected double minYBounds</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="maxYBounds">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>maxYBounds</h4>
|
|
<pre>protected double maxYBounds</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="intervals">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intervals</h4>
|
|
<pre>protected java.util.Map<java.lang.String,​double[]> intervals</pre>
|
|
<div class="block">An array of arrays of intervals. These intervals define the distance
|
|
along the edge (0 to 1) that each point lies</div>
|
|
</li>
|
|
</ul>
|
|
<a id="curveLengths">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>curveLengths</h4>
|
|
<pre>protected java.util.Map<java.lang.String,​java.lang.Double> curveLengths</pre>
|
|
<div class="block">The curve lengths of the curves</div>
|
|
</li>
|
|
</ul>
|
|
<a id="CORE_CURVE">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>CORE_CURVE</h4>
|
|
<pre>public static java.lang.String CORE_CURVE</pre>
|
|
<div class="block">Defines the key for the central curve index</div>
|
|
</li>
|
|
</ul>
|
|
<a id="LABEL_CURVE">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>LABEL_CURVE</h4>
|
|
<pre>public static java.lang.String LABEL_CURVE</pre>
|
|
<div class="block">Defines the key for the label curve index</div>
|
|
</li>
|
|
</ul>
|
|
<a id="INVALID_POSITION">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>INVALID_POSITION</h4>
|
|
<pre>public static <a href="mxLine.html" title="class in com.mxgraph.util">mxLine</a> INVALID_POSITION</pre>
|
|
<div class="block">Indicates that an invalid position on a curve was requested</div>
|
|
</li>
|
|
</ul>
|
|
<a id="labelBuffer">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>labelBuffer</h4>
|
|
<pre>protected double labelBuffer</pre>
|
|
<div class="block">Offset of the label curve from the curve the label curve is based on.
|
|
If you wish to set this value, do so directly after creation of the curve.
|
|
The first time the curve is used the label curve will be created with
|
|
whatever value is contained in this variable. Changes to it after that point
|
|
will have no effect.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="guidePoints">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>guidePoints</h4>
|
|
<pre>public java.util.List<<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>> guidePoints</pre>
|
|
<div class="block">The points this curve is drawn through. These are typically control
|
|
points and are at distances from each other that straight lines
|
|
between them do not describe a smooth curve. This class takes
|
|
these guiding points and creates a finer set of internal points
|
|
that visually appears to be a curve when linked by straight lines</div>
|
|
</li>
|
|
</ul>
|
|
<a id="valid">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>valid</h4>
|
|
<pre>protected boolean valid</pre>
|
|
<div class="block">Whether or not the curve currently holds valid values</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a id="<init>()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mxCurve</h4>
|
|
<pre>public mxCurve()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="<init>(java.util.List)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>mxCurve</h4>
|
|
<pre>public mxCurve​(java.util.List<<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>> points)</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a id="setLabelBuffer(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setLabelBuffer</h4>
|
|
<pre class="methodSignature">public void setLabelBuffer​(double buffer)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getBounds()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBounds</h4>
|
|
<pre class="methodSignature">public <a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> getBounds()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getLowerIndexOfSegment(java.lang.String,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLowerIndexOfSegment</h4>
|
|
<pre class="methodSignature">protected int getLowerIndexOfSegment​(java.lang.String index,
|
|
double distance)</pre>
|
|
<div class="block">Calculates the index of the lower point on the segment
|
|
that contains the point <i>distance</i> along the</div>
|
|
</li>
|
|
</ul>
|
|
<a id="getCurveParallel(java.lang.String,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCurveParallel</h4>
|
|
<pre class="methodSignature">public <a href="mxLine.html" title="class in com.mxgraph.util">mxLine</a> getCurveParallel​(java.lang.String index,
|
|
double distance)</pre>
|
|
<div class="block">Returns a unit vector parallel to the curve at the specified
|
|
distance along the curve. To obtain the angle the vector makes
|
|
with (1,0) perform Math.atan(segVectorY/segVectorX).</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>index</code> - the curve index specifying the curve to analyse</dd>
|
|
<dd><code>distance</code> - the distance from start to end of curve (0.0...1.0)</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>a unit vector at the specified point on the curve represented
|
|
as a line, parallel with the curve. If the distance or curve is
|
|
invalid, <code>mxCurve.INVALID_POSITION</code> is returned</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getCurveSection(java.lang.String,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCurveSection</h4>
|
|
<pre class="methodSignature">public <a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[] getCurveSection​(java.lang.String index,
|
|
double start,
|
|
double end)</pre>
|
|
<div class="block">Returns a section of the curve as an array of points</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>index</code> - the curve index specifying the curve to analyse</dd>
|
|
<dd><code>start</code> - the start position of the curve segment (0.0...1.0)</dd>
|
|
<dd><code>end</code> - the end position of the curve segment (0.0...1.0)</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>a sequence of point representing the curve section or null
|
|
if it cannot be calculated</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="intersectsRect(java.awt.Rectangle)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intersectsRect</h4>
|
|
<pre class="methodSignature">public boolean intersectsRect​(java.awt.Rectangle rect)</pre>
|
|
<div class="block">Returns whether or not the rectangle passed in hits any part of this
|
|
curve.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>rect</code> - the rectangle to detect for a hit</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>whether or not the rectangle hits this curve</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="intersectsRectPerimeter(java.lang.String,com.mxgraph.util.mxRectangle)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intersectsRectPerimeter</h4>
|
|
<pre class="methodSignature">public <a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> intersectsRectPerimeter​(java.lang.String index,
|
|
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect)</pre>
|
|
<div class="block">Returns the point at which this curve intersects the boundary of
|
|
the given rectangle, if it does so. If it does not intersect,
|
|
null is returned. If it intersects multiple times, the first
|
|
intersection from the start end of the curve is returned.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>index</code> - the curve index specifying the curve to analyse</dd>
|
|
<dd><code>rect</code> - the whose boundary is to be tested for intersection
|
|
with this curve</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the point at which this curve intersects the boundary of
|
|
the given rectangle, if it does so. If it does not intersect,
|
|
null is returned.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="intersectsRectPerimeterDist(java.lang.String,com.mxgraph.util.mxRectangle)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intersectsRectPerimeterDist</h4>
|
|
<pre class="methodSignature">public double intersectsRectPerimeterDist​(java.lang.String index,
|
|
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect)</pre>
|
|
<div class="block">Returns the distance from the start of the curve at which this
|
|
curve intersects the boundary of the given rectangle, if it does
|
|
so. If it does not intersect, -1 is returned.
|
|
If it intersects multiple times, the first intersection from
|
|
the start end of the curve is returned.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>index</code> - the curve index specifying the curve to analyse</dd>
|
|
<dd><code>rect</code> - the whose boundary is to be tested for intersection
|
|
with this curve</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the distance along the curve from the start at which
|
|
the intersection occurs</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="collisionMove(java.lang.String,com.mxgraph.util.mxRectangle,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>collisionMove</h4>
|
|
<pre class="methodSignature">public <a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> collisionMove​(java.lang.String index,
|
|
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect,
|
|
double buffer)</pre>
|
|
<div class="block">Returns a point to move the input rectangle to, in order to
|
|
attempt to place the rectangle away from the curve. NOTE: Curves
|
|
are scaled, the input rectangle should be also.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>index</code> - the curve index specifying the curve to analyse</dd>
|
|
<dd><code>rect</code> - the rectangle that is to be moved</dd>
|
|
<dd><code>buffer</code> - the amount by which the rectangle is to be moved,
|
|
beyond the dimensions of the rect</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the point to move the top left of the input rect to
|
|
, otherwise null if no point can be determined</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="intersectRectPerimeterSeg(java.lang.String,com.mxgraph.util.mxRectangle)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intersectRectPerimeterSeg</h4>
|
|
<pre class="methodSignature">protected int intersectRectPerimeterSeg​(java.lang.String index,
|
|
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect)</pre>
|
|
<div class="block">Utility method to determine within which segment the specified rectangle
|
|
intersects the specified curve</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>index</code> - the curve index specifying the curve to analyse</dd>
|
|
<dd><code>rect</code> - the whose boundary is to be tested for intersection
|
|
with this curve</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the point at which this curve intersects the boundary of
|
|
the given rectangle, if it does so. If it does not intersect,
|
|
-1 is returned</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="intersectRectPerimeterSeg(java.lang.String,com.mxgraph.util.mxRectangle,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intersectRectPerimeterSeg</h4>
|
|
<pre class="methodSignature">protected int intersectRectPerimeterSeg​(java.lang.String index,
|
|
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect,
|
|
int startSegment)</pre>
|
|
<div class="block">Utility method to determine within which segment the specified rectangle
|
|
intersects the specified curve. This method specifies which segment to
|
|
start searching at.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>index</code> - the curve index specifying the curve to analyse</dd>
|
|
<dd><code>rect</code> - the whose boundary is to be tested for intersection
|
|
with this curve</dd>
|
|
<dd><code>startSegment</code> - the segment to start searching at. To start at the
|
|
beginning of the curve, use 1, not 0.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the point at which this curve intersects the boundary of
|
|
the given rectangle, if it does so. If it does not intersect,
|
|
-1 is returned</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="intersectRectPerimeterPoint(java.lang.String,com.mxgraph.util.mxRectangle,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intersectRectPerimeterPoint</h4>
|
|
<pre class="methodSignature">protected <a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> intersectRectPerimeterPoint​(java.lang.String curveIndex,
|
|
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect,
|
|
int indexSeg)</pre>
|
|
<div class="block">Returns the point at which this curve segment intersects the boundary
|
|
of the given rectangle, if it does so. If it does not intersect,
|
|
null is returned.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>curveIndex</code> - the curve index specifying the curve to analyse</dd>
|
|
<dd><code>rect</code> - the whose boundary is to be tested for intersection
|
|
with this curve</dd>
|
|
<dd><code>indexSeg</code> - the segments on this curve being checked</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the point at which this curve segment intersects the boundary
|
|
of the given rectangle, if it does so. If it does not intersect,
|
|
null is returned.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getRelativeFromAbsPoint(com.mxgraph.util.mxPoint,java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRelativeFromAbsPoint</h4>
|
|
<pre class="methodSignature">public <a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> getRelativeFromAbsPoint​(<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> absPoint,
|
|
java.lang.String index)</pre>
|
|
<div class="block">Calculates the position of an absolute in terms relative
|
|
to this curve.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>absPoint</code> - the point whose relative point is to calculated</dd>
|
|
<dd><code>index</code> - the index of the curve whom the relative position is to be
|
|
calculated from</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>an mxRectangle where the x is the distance along the curve
|
|
(0 to 1), y is the orthogonal offset from the closest segment on the
|
|
curve and (width, height) is an additional Cartesian offset applied
|
|
after the other calculations</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="createCoreCurve()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createCoreCurve</h4>
|
|
<pre class="methodSignature">protected void createCoreCurve()</pre>
|
|
<div class="block">Creates the core curve that is based on the guide points passed into
|
|
this class instance</div>
|
|
</li>
|
|
</ul>
|
|
<a id="isLabelReversed()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isLabelReversed</h4>
|
|
<pre class="methodSignature">public boolean isLabelReversed()</pre>
|
|
<div class="block">Whether or not the label curve starts from the end target
|
|
and traces to the start of the branch</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>whether the label curve is reversed</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="createLabelCurve()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createLabelCurve</h4>
|
|
<pre class="methodSignature">protected void createLabelCurve()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getBaseLabelCurve()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBaseLabelCurve</h4>
|
|
<pre class="methodSignature">protected <a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[] getBaseLabelCurve()</pre>
|
|
<div class="block">Returns the curve the label curve is too be based on</div>
|
|
</li>
|
|
</ul>
|
|
<a id="populateIntervals(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>populateIntervals</h4>
|
|
<pre class="methodSignature">protected void populateIntervals​(java.lang.String index)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="updateCurve(java.util.List)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>updateCurve</h4>
|
|
<pre class="methodSignature">public void updateCurve​(java.util.List<<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>> newPoints)</pre>
|
|
<div class="block">Updates the existing curve using the points passed in.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>newPoints</code> - the new guide points</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getCurvePoints(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCurvePoints</h4>
|
|
<pre class="methodSignature">public <a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[] getCurvePoints​(java.lang.String index)</pre>
|
|
<div class="block">Obtains the points that make up the curve for the specified
|
|
curve index. If that curve, or the core curve that other curves
|
|
are based on have not yet been created, then they are lazily
|
|
created. If creation is impossible, null is returned</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>index</code> - the key specifying the curve</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the points making up that curve, or null</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getIntervals(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getIntervals</h4>
|
|
<pre class="methodSignature">public double[] getIntervals​(java.lang.String index)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getCurveLength(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCurveLength</h4>
|
|
<pre class="methodSignature">public double getCurveLength​(java.lang.String index)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="validateCurve()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>validateCurve</h4>
|
|
<pre class="methodSignature">protected boolean validateCurve()</pre>
|
|
<div class="block">Method must be called before any attempt to access curve information</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>whether or not the curve may be used</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="updateBounds(double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>updateBounds</h4>
|
|
<pre class="methodSignature">protected void updateBounds​(double pointX,
|
|
double pointY)</pre>
|
|
<div class="block">Updates the total bounds of this curve, increasing any dimensions,
|
|
if necessary, to fit in the specified point</div>
|
|
</li>
|
|
</ul>
|
|
<a id="getGuidePoints()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>getGuidePoints</h4>
|
|
<pre class="methodSignature">public java.util.List<<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>> getGuidePoints()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the guidePoints</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<footer role="contentinfo">
|
|
<nav role="navigation">
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a id="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a id="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../index.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/mxCurve.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>
|
|
<div class="aboutLanguage"><p><b>mxGraph 4.0.4</b></p></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</nav>
|
|
<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>
|
|
</footer>
|
|
</body>
|
|
</html>
|