|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgraph.algebra.cost.JGraphConstantCostFunction
public class JGraphConstantCostFunction
This allows to recursively compose any number of abstract layouts into a compound abstract layout. Note that this is more flexible than a decorator pattern, because you can use different class hierarchies to implement the input (facade) and the layout algorithms, while adhering to the rule that each layout algorithm uses the output of the last layout as its input.
Field Summary | |
---|---|
protected double |
cost
|
Constructor Summary | |
---|---|
JGraphConstantCostFunction(double cost)
|
Method Summary | |
---|---|
double |
getCost(java.lang.Object cell)
Evaluates the cost of cell . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double cost
Constructor Detail |
---|
public JGraphConstantCostFunction(double cost)
Method Detail |
---|
public double getCost(java.lang.Object cell)
JGraphCostFunction
cell
.
getCost
in interface JGraphCostFunction
cell
- the cell to be evaluated
cell
|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |