mxICostFunctionpublic class mxDistanceCostFunction extends java.lang.Object implements mxICostFunction
| Constructor | Description |
|---|---|
mxDistanceCostFunction() |
| Modifier and Type | Method | Description |
|---|---|---|
double |
getCost(mxCellState state) |
Returns the Euclidean length of the edge defined by the absolute
points in the given state or 0 if no points are defined.
|
public double getCost(mxCellState state)
getCost in interface mxICostFunctionstate - The cell state to be evaluatedCopyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.