|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.alg.AbstractAlgorithm
de.cau.cs.kieler.klay.force.model.AbstractForceModel
de.cau.cs.kieler.klay.force.model.EadesModel
public class EadesModel
A force model after the Eades approach.
Constructor Summary | |
---|---|
EadesModel()
|
Method Summary | |
---|---|
static double |
attractive(double d,
double s)
Compute attraction force between the forcee and the forcer. |
protected KVector |
calcDisplacement(FParticle forcer,
FParticle forcee)
Calculate a displacement for the given particles. |
protected void |
initialize(FGraph graph)
Initialize the force model with the given graph. |
protected boolean |
moreIterations(int count)
Determine whether more iterations need to be performed. |
Methods inherited from class de.cau.cs.kieler.klay.force.model.AbstractForceModel |
---|
avoidSamePosition, getGraph, getRandom, iterationDone, layout |
Methods inherited from class de.cau.cs.kieler.core.alg.AbstractAlgorithm |
---|
getMonitor, reset, reset, setProgressMonitor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EadesModel()
Method Detail |
---|
protected void initialize(FGraph graph)
initialize
in class AbstractForceModel
graph
- a force graphprotected boolean moreIterations(int count)
moreIterations
in class AbstractForceModel
count
- the current iterations count
true
if more iterations shall be doneprotected KVector calcDisplacement(FParticle forcer, FParticle forcee)
calcDisplacement
in class AbstractForceModel
forcer
- the particle that is causing the forceforcee
- the particle that is affected by the force
null
if no force is appliedpublic static double attractive(double d, double s)
d
- the distance between the two particless
- the spring length
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |