|
JGraph X 1.4.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mxgraph.analysis.mxDistanceCostFunction
public class mxDistanceCostFunction
Implements a cost function for the Euclidean length of an edge.
| Constructor Summary | |
|---|---|
mxDistanceCostFunction()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public mxDistanceCostFunction()
| Method Detail |
|---|
public double getCost(mxCellState state)
getCost in interface mxICostFunctionstate - The cell state to be evaluated
|
JGraph X 1.4.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||