1071 lines
54 KiB
HTML
1071 lines
54 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (1.8.0_101) on Mon Jan 16 09:34:50 CET 2017 -->
|
|
<title>mxCurve (mxGraph 3.7.0.0 API Specification)</title>
|
|
<meta name="date" content="2017-01-16">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
<script type="text/javascript" src="../../../script.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="mxCurve (mxGraph 3.7.0.0 API Specification)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
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,"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";
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.top.firstrow">
|
|
<!-- -->
|
|
</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/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 3.7.0.0</b></p></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../com/mxgraph/util/mxConstants.html" title="class in com.mxgraph.util"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../com/mxgraph/util/mxDomUtils.html" title="class in com.mxgraph.util"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?com/mxgraph/util/mxCurve.html" target="_top">Frames</a></li>
|
|
<li><a href="mxCurve.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></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>
|
|
</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 name="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">com.mxgraph.util</div>
|
|
<h2 title="Class mxCurve" class="title">Class mxCurve</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>com.mxgraph.util.mxCurve</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="typeNameLabel">mxCurve</span>
|
|
extends <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Field and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#CORE_CURVE">CORE_CURVE</a></span></code>
|
|
<div class="block">Defines the key for the central curve index</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#curveLengths">curveLengths</a></span></code>
|
|
<div class="block">The curve lengths of the curves</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#guidePoints">guidePoints</a></span></code>
|
|
<div class="block">The points this curve is drawn through.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,double[]></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#intervals">intervals</a></span></code>
|
|
<div class="block">An array of arrays of intervals.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static <a href="../../../com/mxgraph/util/mxLine.html" title="class in com.mxgraph.util">mxLine</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#INVALID_POSITION">INVALID_POSITION</a></span></code>
|
|
<div class="block">Indicates that an invalid position on a curve was requested</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#LABEL_CURVE">LABEL_CURVE</a></span></code>
|
|
<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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#labelBuffer">labelBuffer</a></span></code>
|
|
<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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#maxXBounds">maxXBounds</a></span></code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#maxYBounds">maxYBounds</a></span></code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#minXBounds">minXBounds</a></span></code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#minYBounds">minYBounds</a></span></code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[]></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#points">points</a></span></code>
|
|
<div class="block">A collection of arrays of curve points</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#valid">valid</a></span></code>
|
|
<div class="block">Whether or not the curve currently holds valid values</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#mxCurve--">mxCurve</a></span>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#mxCurve-java.util.List-">mxCurve</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>> points)</code> </td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<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="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#collisionMove-java.lang.String-com.mxgraph.util.mxRectangle-double-">collisionMove</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
<a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect,
|
|
double buffer)</code>
|
|
<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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#createCoreCurve--">createCoreCurve</a></span>()</code>
|
|
<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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#createLabelCurve--">createLabelCurve</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[]</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#getBaseLabelCurve--">getBaseLabelCurve</a></span>()</code>
|
|
<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="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#getBounds--">getBounds</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#getCurveLength-java.lang.String-">getCurveLength</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index)</code> </td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../com/mxgraph/util/mxLine.html" title="class in com.mxgraph.util">mxLine</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#getCurveParallel-java.lang.String-double-">getCurveParallel</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
double distance)</code>
|
|
<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="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[]</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#getCurvePoints-java.lang.String-">getCurvePoints</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index)</code>
|
|
<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="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[]</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#getCurveSection-java.lang.String-double-double-">getCurveSection</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
double start,
|
|
double end)</code>
|
|
<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><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#getGuidePoints--">getGuidePoints</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code>double[]</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#getIntervals-java.lang.String-">getIntervals</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index)</code> </td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code>protected int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#getLowerIndexOfSegment-java.lang.String-double-">getLowerIndexOfSegment</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
double distance)</code>
|
|
<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="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#getRelativeFromAbsPoint-com.mxgraph.util.mxPoint-java.lang.String-">getRelativeFromAbsPoint</a></span>(<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> absPoint,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index)</code>
|
|
<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="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#intersectRectPerimeterPoint-java.lang.String-com.mxgraph.util.mxRectangle-int-">intersectRectPerimeterPoint</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> curveIndex,
|
|
<a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect,
|
|
int indexSeg)</code>
|
|
<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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#intersectRectPerimeterSeg-java.lang.String-com.mxgraph.util.mxRectangle-">intersectRectPerimeterSeg</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
<a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect)</code>
|
|
<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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#intersectRectPerimeterSeg-java.lang.String-com.mxgraph.util.mxRectangle-int-">intersectRectPerimeterSeg</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
<a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect,
|
|
int startSegment)</code>
|
|
<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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#intersectsRect-java.awt.Rectangle-">intersectsRect</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</a> rect)</code>
|
|
<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="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#intersectsRectPerimeter-java.lang.String-com.mxgraph.util.mxRectangle-">intersectsRectPerimeter</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
<a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect)</code>
|
|
<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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#intersectsRectPerimeterDist-java.lang.String-com.mxgraph.util.mxRectangle-">intersectsRectPerimeterDist</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
<a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> rect)</code>
|
|
<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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#isLabelReversed--">isLabelReversed</a></span>()</code>
|
|
<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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#populateIntervals-java.lang.String-">populateIntervals</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index)</code> </td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#setLabelBuffer-double-">setLabelBuffer</a></span>(double buffer)</code> </td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#updateBounds-double-double-">updateBounds</a></span>(double pointX,
|
|
double pointY)</code>
|
|
<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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#updateCurve-java.util.List-">updateCurve</a></span>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>> newPoints)</code>
|
|
<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>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/mxgraph/util/mxCurve.html#validateCurve--">validateCurve</a></span>()</code>
|
|
<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 name="methods.inherited.from.class.java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
|
|
<code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a name="points">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>points</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../com/mxgraph/util/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 name="minXBounds">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>minXBounds</h4>
|
|
<pre>protected double minXBounds</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="maxXBounds">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>maxXBounds</h4>
|
|
<pre>protected double maxXBounds</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="minYBounds">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>minYBounds</h4>
|
|
<pre>protected double minYBounds</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="maxYBounds">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>maxYBounds</h4>
|
|
<pre>protected double maxYBounds</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="intervals">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intervals</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,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 name="curveLengths">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>curveLengths</h4>
|
|
<pre>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>> curveLengths</pre>
|
|
<div class="block">The curve lengths of the curves</div>
|
|
</li>
|
|
</ul>
|
|
<a name="CORE_CURVE">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>CORE_CURVE</h4>
|
|
<pre>public static <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> CORE_CURVE</pre>
|
|
<div class="block">Defines the key for the central curve index</div>
|
|
</li>
|
|
</ul>
|
|
<a name="LABEL_CURVE">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>LABEL_CURVE</h4>
|
|
<pre>public static <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> LABEL_CURVE</pre>
|
|
<div class="block">Defines the key for the label curve index</div>
|
|
</li>
|
|
</ul>
|
|
<a name="INVALID_POSITION">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>INVALID_POSITION</h4>
|
|
<pre>public static <a href="../../../com/mxgraph/util/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 name="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 name="guidePoints">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>guidePoints</h4>
|
|
<pre>public <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../com/mxgraph/util/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 name="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>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="mxCurve--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mxCurve</h4>
|
|
<pre>public mxCurve()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="mxCurve-java.util.List-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>mxCurve</h4>
|
|
<pre>public mxCurve(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>> points)</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="setLabelBuffer-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setLabelBuffer</h4>
|
|
<pre>public void setLabelBuffer(double buffer)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getBounds--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBounds</h4>
|
|
<pre>public <a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> getBounds()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getLowerIndexOfSegment-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLowerIndexOfSegment</h4>
|
|
<pre>protected int getLowerIndexOfSegment(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> 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 name="getCurveParallel-java.lang.String-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCurveParallel</h4>
|
|
<pre>public <a href="../../../com/mxgraph/util/mxLine.html" title="class in com.mxgraph.util">mxLine</a> getCurveParallel(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> 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 name="getCurveSection-java.lang.String-double-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCurveSection</h4>
|
|
<pre>public <a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[] getCurveSection(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> 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 name="intersectsRect-java.awt.Rectangle-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intersectsRect</h4>
|
|
<pre>public boolean intersectsRect(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</a> 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 name="intersectsRectPerimeter-java.lang.String-com.mxgraph.util.mxRectangle-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intersectsRectPerimeter</h4>
|
|
<pre>public <a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> intersectsRectPerimeter(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
<a href="../../../com/mxgraph/util/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 name="intersectsRectPerimeterDist-java.lang.String-com.mxgraph.util.mxRectangle-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intersectsRectPerimeterDist</h4>
|
|
<pre>public double intersectsRectPerimeterDist(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
<a href="../../../com/mxgraph/util/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 name="collisionMove-java.lang.String-com.mxgraph.util.mxRectangle-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>collisionMove</h4>
|
|
<pre>public <a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> collisionMove(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
<a href="../../../com/mxgraph/util/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 name="intersectRectPerimeterSeg-java.lang.String-com.mxgraph.util.mxRectangle-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intersectRectPerimeterSeg</h4>
|
|
<pre>protected int intersectRectPerimeterSeg(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
<a href="../../../com/mxgraph/util/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 name="intersectRectPerimeterSeg-java.lang.String-com.mxgraph.util.mxRectangle-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intersectRectPerimeterSeg</h4>
|
|
<pre>protected int intersectRectPerimeterSeg(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index,
|
|
<a href="../../../com/mxgraph/util/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 name="intersectRectPerimeterPoint-java.lang.String-com.mxgraph.util.mxRectangle-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>intersectRectPerimeterPoint</h4>
|
|
<pre>protected <a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> intersectRectPerimeterPoint(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> curveIndex,
|
|
<a href="../../../com/mxgraph/util/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 name="getRelativeFromAbsPoint-com.mxgraph.util.mxPoint-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRelativeFromAbsPoint</h4>
|
|
<pre>public <a href="../../../com/mxgraph/util/mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a> getRelativeFromAbsPoint(<a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> absPoint,
|
|
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> 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 name="createCoreCurve--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createCoreCurve</h4>
|
|
<pre>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 name="isLabelReversed--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isLabelReversed</h4>
|
|
<pre>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 name="createLabelCurve--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createLabelCurve</h4>
|
|
<pre>protected void createLabelCurve()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getBaseLabelCurve--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBaseLabelCurve</h4>
|
|
<pre>protected <a href="../../../com/mxgraph/util/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 name="populateIntervals-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>populateIntervals</h4>
|
|
<pre>protected void populateIntervals(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="updateCurve-java.util.List-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>updateCurve</h4>
|
|
<pre>public void updateCurve(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../com/mxgraph/util/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 name="getCurvePoints-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCurvePoints</h4>
|
|
<pre>public <a href="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>[] getCurvePoints(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> 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 name="getIntervals-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getIntervals</h4>
|
|
<pre>public double[] getIntervals(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getCurveLength-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCurveLength</h4>
|
|
<pre>public double getCurveLength(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> index)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="validateCurve--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>validateCurve</h4>
|
|
<pre>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 name="updateBounds-double-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>updateBounds</h4>
|
|
<pre>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 name="getGuidePoints--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>getGuidePoints</h4>
|
|
<pre>public <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../com/mxgraph/util/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>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</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/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 3.7.0.0</b></p></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../com/mxgraph/util/mxConstants.html" title="class in com.mxgraph.util"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../com/mxgraph/util/mxDomUtils.html" title="class in com.mxgraph.util"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?com/mxgraph/util/mxCurve.html" target="_top">Frames</a></li>
|
|
<li><a href="mxCurve.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses-noframe.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>
|
|
</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 name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
<p class="legalCopy"><small><font size=1>Copyright (c) 2010 <a href="http://www.mxgraph.com/"
|
|
target="_blank">Gaudenz Alder, David Benson</a>. All rights reserved.</font></small></p>
|
|
</body>
|
|
</html>
|