public class JGraphDistanceCostFunction extends java.lang.Object implements JGraphCostFunction
Modifier and Type | Field and Description |
---|---|
protected CellMapper |
mapper |
Constructor and Description |
---|
JGraphDistanceCostFunction(CellMapper mapper) |
Modifier and Type | Method and Description |
---|---|
double |
getCost(java.lang.Object cell)
Evaluates the cost of
cell . |
static double |
getLength(CellView view) |
protected CellMapper mapper
public JGraphDistanceCostFunction(CellMapper mapper)
public double getCost(java.lang.Object cell)
JGraphCostFunction
cell
.getCost
in interface JGraphCostFunction
cell
- the cell to be evaluatedcell
public static double getLength(CellView view)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.