|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.layout.AbstractLayout
ca.sqlpower.architect.layout.FruchtermanReingoldForceLayout
public class FruchtermanReingoldForceLayout
| Field Summary |
|---|
| Fields inherited from class ca.sqlpower.architect.layout.AbstractLayout |
|---|
frame |
| Constructor Summary | |
|---|---|
FruchtermanReingoldForceLayout()
|
|
| Method Summary | |
|---|---|
protected double |
attractiveForce(java.awt.Point distance,
double emptyRadius)
Calculate the attractive force |
void |
cool()
Cool the temperature |
void |
done()
Interrupts the algorithm and node bounds in a consistent state. |
java.util.ArrayList<LayoutEdge> |
getEdges()
|
double |
getEmptyRadius()
The clear radius between two nodes |
int |
getH()
|
double |
getK()
|
int |
getLowerBoundary()
|
java.util.ArrayList<LayoutNode> |
getNodes()
|
int |
getRightBoundary()
|
double |
getTemp()
|
int |
getW()
|
boolean |
isDone()
Checks and sees if the program stops |
double |
magnitude(java.awt.Point p)
get the magnitude of a point |
void |
nextFrame()
Performs the next step of the spring layout |
protected double |
repulsiveForce(double distance,
LayoutNode u,
LayoutNode v,
double emptyRadius)
Calculate the Repulsive force |
void |
setup(java.util.Collection<? extends LayoutNode> nodes,
java.util.Collection<? extends LayoutEdge> edges,
java.awt.Rectangle frame)
Sets up the layout algoritm. |
| Methods inherited from class ca.sqlpower.architect.layout.AbstractLayout |
|---|
getNewArea, getProperty, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FruchtermanReingoldForceLayout()
| Method Detail |
|---|
public void setup(java.util.Collection<? extends LayoutNode> nodes,
java.util.Collection<? extends LayoutEdge> edges,
java.awt.Rectangle frame)
ArchitectLayout
setup in interface ArchitectLayoutsetup in class AbstractLayoutnodes - The list of entities to be placed onpublic double magnitude(java.awt.Point p)
p -
public boolean isDone()
public void nextFrame()
protected double attractiveForce(java.awt.Point distance,
double emptyRadius)
distance - The distance between two nodesemptyRadius - The radius we want to keep clear
protected double repulsiveForce(double distance,
LayoutNode u,
LayoutNode v,
double emptyRadius)
distance - The distance between two nodesemptyRadius - The radius we want to keep clear
public double getEmptyRadius()
pp - a playen
public void done()
ArchitectLayout
public void cool()
public java.util.ArrayList<LayoutEdge> getEdges()
public double getK()
public java.util.ArrayList<LayoutNode> getNodes()
public double getTemp()
public int getH()
public int getRightBoundary()
public int getLowerBoundary()
public int getW()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||