public class mxDistanceCostFunction extends java.lang.Object implements mxICostFunction
| Constructor and Description |
|---|
mxDistanceCostFunction() |
| Modifier and Type | Method and 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 evaluated