|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wilmascope.graph.LayoutEngine
org.wilmascope.fastlayout.FastLayout
public class FastLayout
Title: FastLayout Description: Wilma layout engine implementing a linear time fast force directed placement algorithm
Constructor Summary | |
---|---|
FastLayout()
|
Method Summary | |
---|---|
boolean |
applyLayout()
apply the changes calculated by LayoutEngine.calculateLayout() |
void |
calculateLayout()
calculate the changes required to move the graph to a nicer layout. |
EdgeLayout |
createEdgeLayout(Edge e)
Factory method to create a new EdgeLayout implementation compatible with the layout engine implementing this interface. |
NodeLayout |
createNodeLayout(Node n)
Factory method to create a new NodeLayout implementation compatible with the layout engine implementing this interface. |
void |
flattenGraph()
|
javax.swing.JPanel |
getControls()
|
int |
getIterations()
|
java.lang.String |
getName()
Return a string descriptor for the layout engine type. |
java.lang.String |
getPhase()
|
DensityMatrix |
getUniverse()
|
void |
init(Cluster root)
The LayoutEngine should have no constructor. |
void |
reset()
|
void |
resetProperties()
process your custom properties by overriding this method, but, again call super.resetProperties in your overriding implementation |
void |
setAttract(int val)
|
void |
setBoilBarrier(boolean val)
|
void |
setBoilJump(int val)
|
void |
setBoilLen(double val)
|
void |
setCentreFlag(boolean val)
|
void |
setColourFlag(boolean val)
|
void |
setEyeCandyFlag(boolean val)
|
void |
setIterations(int val)
|
void |
setMaxBarrier(double val)
|
void |
setMinBarrier(double val)
|
void |
setNaive(boolean val)
|
void |
setQuenchLen(double val)
|
void |
setRadius(int val)
|
void |
setRepel(int val)
|
void |
setSimmerRate(double val)
|
void |
setThreeD(boolean threeD)
|
double |
systemEnergy()
|
Methods inherited from class org.wilmascope.graph.LayoutEngine |
---|
getProperties, getRoot, isIterative, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FastLayout()
Method Detail |
---|
public void calculateLayout()
LayoutEngine
LayoutEngine.applyLayout()
method. Potentially, this means that
the caller can calculate new positions (stored in the NodeLayouts), then opt not to
apply the changes if it does not lead to an improvement.
In practice this has not yet been utilised and such
decisions are usually made internally to the layout engine.
calculateLayout
in class LayoutEngine
public boolean applyLayout()
LayoutEngine
LayoutEngine.calculateLayout()
applyLayout
in class LayoutEngine
public int getIterations()
public java.lang.String getPhase()
public double systemEnergy()
public void flattenGraph()
public void setIterations(int val)
public void setAttract(int val)
public void setRepel(int val)
public void setBoilJump(int val)
public void setRadius(int val)
public void setSimmerRate(double val)
public void setBoilLen(double val)
public void setQuenchLen(double val)
public void setMinBarrier(double val)
public void setMaxBarrier(double val)
public void setCentreFlag(boolean val)
public void setNaive(boolean val)
public void setBoilBarrier(boolean val)
public void setColourFlag(boolean val)
public void setEyeCandyFlag(boolean val)
public void reset()
public DensityMatrix getUniverse()
public NodeLayout createNodeLayout(Node n)
LayoutEngine
createNodeLayout
in class LayoutEngine
public EdgeLayout createEdgeLayout(Edge e)
LayoutEngine
createEdgeLayout
in class LayoutEngine
public javax.swing.JPanel getControls()
getControls
in class LayoutEngine
public java.lang.String getName()
LayoutEngine
getName
in class LayoutEngine
public void init(Cluster root)
LayoutEngine
init
in class LayoutEngine
public void setThreeD(boolean threeD)
public void resetProperties()
LayoutEngine
resetProperties
in class LayoutEngine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |