|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectaminePlatform.util.graph.RelaxGraph
Title : RelaxGraph
Description : RelaxGraph is an adaptation of a class (ForceDirectedLayout) defined by Salvo Jesus in his Open Source OpenJGraph soft.
Constructor Summary | |
RelaxGraph(VisualGraph vGraph)
|
Method Summary | |
void |
addFixedNode(VisualNode vNode)
Adds a VisuaLNode that will not be moved from its position during the layout operation of ForceDirectedLayout. |
void |
doRelaxGraph(Lexicon lexicon)
|
double |
getEletricalRepulsion()
Returns the eletrical repulsion between all vertices The default value is 400. |
double |
getIncrement()
Returns the increment by which the vertices gets closer to the equilibrium or closer to the force. |
double |
getSpringLength()
Returns the desired spring length for all edges. |
double |
getStiffness()
Returns the stiffness for all edges. |
boolean |
isInitialized()
Determines if the graph has been initially laid out. |
boolean |
isNodeFixed(VisualNode vNode)
Returns true if the specified VisualNode has a fixed position. |
void |
removeFixedNode(VisualNode vNode)
Removes a VisualNode from the list of VisualVertices that has a fixed position. |
void |
setEletricalRepulsion(double repulsion)
Sets the value of the electrical repulsion between all vertices |
void |
setIncrement(double increment)
Sets the increment by which the vertices gets close to the equilibrium or gets closer to the direction of the force. |
void |
setSpringLength(double length)
Sets the desired length of the spring among all edges |
void |
setStiffness(double stiffness)
Sets the value of stiffness among all edges |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RelaxGraph(VisualGraph vGraph)
Method Detail |
public double getSpringLength()
public double getStiffness()
public double getEletricalRepulsion()
public double getIncrement()
public void setSpringLength(double length)
public void setStiffness(double stiffness)
public void setEletricalRepulsion(double repulsion)
public void setIncrement(double increment)
public void addFixedNode(VisualNode vNode)
public boolean isNodeFixed(VisualNode vNode)
public void removeFixedNode(VisualNode vNode)
public boolean isInitialized()
public void doRelaxGraph(Lexicon lexicon)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |