<li><ahref="../../../com/mxgraph/analysis/mxConstantCostFunction.html"title="class in com.mxgraph.analysis"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../com/mxgraph/analysis/mxFibonacciHeap.html"title="class in com.mxgraph.analysis"><spanclass="strong">Next Class</span></a></li>
<li><ahref="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>
<dd><ahref="../../../com/mxgraph/analysis/mxICostFunction.html"title="interface in com.mxgraph.analysis">mxICostFunction</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">mxDistanceCostFunction</span>
extends <ahref="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>
implements <ahref="../../../com/mxgraph/analysis/mxICostFunction.html"title="interface in com.mxgraph.analysis">mxICostFunction</a></pre>
<divclass="block">Implements a cost function for the Euclidean length of an edge.</div>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>double</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/analysis/mxDistanceCostFunction.html#getCost(com.mxgraph.view.mxCellState)">getCost</a></strong>(<ahref="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</a> state)</code>
<divclass="block">Returns the Euclidean length of the edge defined by the absolute
points in the given state or 0 if no points are defined.</div>
<h3>Methods inherited from class java.lang.<ahref="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><ahref="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>, <ahref="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>, <ahref="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>, <ahref="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>, <ahref="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>, <ahref="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>, <ahref="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>, <ahref="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>, <ahref="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>, <ahref="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>, <ahref="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>
<pre>public double getCost(<ahref="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</a> state)</pre>
<divclass="block">Returns the Euclidean length of the edge defined by the absolute
points in the given state or 0 if no points are defined.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/analysis/mxICostFunction.html#getCost(com.mxgraph.view.mxCellState)">getCost</a></code> in interface <code><ahref="../../../com/mxgraph/analysis/mxICostFunction.html"title="interface in com.mxgraph.analysis">mxICostFunction</a></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>state</code> - The cell state to be evaluated</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Returns the cost to traverse the given cell state.</dd></dl>
<li><ahref="../../../com/mxgraph/analysis/mxConstantCostFunction.html"title="class in com.mxgraph.analysis"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../com/mxgraph/analysis/mxFibonacciHeap.html"title="class in com.mxgraph.analysis"><spanclass="strong">Next Class</span></a></li>