|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccvisu.Minimizer
public abstract class Minimizer
Minimizer for a given energy model, which is set by the constructor of the concrete minimizer implementation.
Field Summary | |
---|---|
protected java.util.Vector<GraphEventListener> |
listener
when chages occur in the graph |
Constructor Summary | |
---|---|
Minimizer()
|
Method Summary | |
---|---|
void |
addGraphEventListener(GraphEventListener listener)
Constructor |
abstract void |
minimizeEnergy(int nrIterations)
Minimizes iteratively the energy using the Barnes-Hut algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector<GraphEventListener> listener
Constructor Detail |
---|
public Minimizer()
Method Detail |
---|
public void addGraphEventListener(GraphEventListener listener)
listener
- a GraphEventListenerpublic abstract void minimizeEnergy(int nrIterations)
pos
,
and stores the computed layout as positions in pos
.
nrIterations
- Number of iterations. Choose appropriate values
by observing the convergence of energy.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |