|
mxGraph 2.5.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface mxICostFunction
The cost function takes a cell and returns it's cost as a double. Two typical
examples of cost functions are the euclidian length of edges or a constant
number for each edge. To use one of the built-in cost functions, use either
new mxDistanceCostFunction(graph)
or
new mxConstantCostFunction(1)
.
Method Summary | |
---|---|
double |
getCost(mxCellState state)
Evaluates the cost of the given cell state. |
Method Detail |
---|
double getCost(mxCellState state)
state
- The cell state to be evaluated
|
mxGraph 2.5.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |