|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graffiti.plugin.AbstractParametrizable
org.graffiti.plugin.algorithm.AbstractAlgorithm
org.graffiti.plugins.algorithms.springembedder.KKSpringAlgorithm
public class KKSpringAlgorithm
An inefficient spring embedder algorithm loosely based on Kamada & Kawai.
Constructor Summary | |
---|---|
KKSpringAlgorithm()
Constructs a new instance. |
Method Summary | |
---|---|
void |
check()
Checks whether all preconditions of the current graph are satisfied. |
void |
execute()
Executes the whole algorithm. |
Parameter<?>[] |
getAlgorithmParameters()
|
String |
getName()
Returns the name (id) of this Parametrizable . |
void |
reset()
Resets the internal state of the algorithm. |
void |
setAlgorithmParameters(Parameter<?>[] params)
|
void |
setBoundingRectangle(Rectangle rect)
This is used when the algorithm uses a grid instead of a spring embedder because there are too many nodes. |
Methods inherited from class org.graffiti.plugin.algorithm.AbstractAlgorithm |
---|
attach, getAnimation, supportsAnimation |
Methods inherited from class org.graffiti.plugin.AbstractParametrizable |
---|
copyParameters, getDefaultParameters, getParameters, getUserParameters, saveUserParameters, saveUserParameters, setParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.graffiti.plugin.Parametrizable |
---|
getDefaultParameters, getParameters, setParameters |
Constructor Detail |
---|
public KKSpringAlgorithm()
Method Detail |
---|
public void setBoundingRectangle(Rectangle rect)
rect
- public String getName()
org.graffiti.plugin.Parametrizable
Parametrizable
.
Parametrizable.getName()
public void setAlgorithmParameters(Parameter<?>[] params)
setAlgorithmParameters
in class AbstractParametrizable
AbstractParametrizable.setAlgorithmParameters(Parameter[])
public Parameter<?>[] getAlgorithmParameters()
getAlgorithmParameters
in class AbstractParametrizable
AbstractParametrizable.getAlgorithmParameters()
public void check() throws PreconditionException
org.graffiti.plugin.algorithm.Algorithm
check
in interface Algorithm
check
in class AbstractAlgorithm
PreconditionException
- if the preconditions of the current graph are not satisfied.Algorithm.check()
public void execute()
org.graffiti.plugin.algorithm.Algorithm
Algorithm.execute()
public void reset()
org.graffiti.plugin.algorithm.Algorithm
reset
in interface Algorithm
reset
in class AbstractAlgorithm
Algorithm.reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |