public class DagOrganizer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double |
force_multiplier |
protected double |
lengthFunction |
protected int |
repulsion_range_sq |
protected double |
stretch |
Constructor and Description |
---|
DagOrganizer(OrganizableTaskGraph g)
Creates an instance for the specified graph.
|
Modifier and Type | Method and Description |
---|---|
protected void |
calculateRepulsion() |
boolean |
done() |
java.awt.Dimension |
getSize() |
protected void |
moveNodes()
Override the moveNodes() method from SpringLayout.
|
protected void |
offsetVertex(OrganizableTask v,
double xOffset,
double yOffset) |
void |
propagateMinimumLevel(OrganizableTask t)
A recursive method for allocating the level for each vertex.
|
protected void |
relaxEdges()
Overridden relaxEdges.
|
void |
setLocation(OrganizableTask picked,
double x,
double y)
Override forceMove so that if someone moves a node, we can re-layout
everything.
|
void |
setLocation(OrganizableTask picked,
java.awt.geom.Point2D p)
Override forceMove so that if someone moves a node, we can re-layout
everything.
|
void |
setRoot()
setRoot calculates the level of each vertex in the graph.
|
void |
setRoot(OrganizableTask t)
Set vertex v to be level 0.
|
void |
setSize(java.awt.Dimension size) |
void |
step() |
protected double stretch
protected double lengthFunction
protected int repulsion_range_sq
protected double force_multiplier
public DagOrganizer(OrganizableTaskGraph g)
public void setRoot()
public void setRoot(OrganizableTask t)
public void propagateMinimumLevel(OrganizableTask t)
t
- public void setSize(java.awt.Dimension size)
protected void offsetVertex(OrganizableTask v, double xOffset, double yOffset)
public java.awt.Dimension getSize()
protected void moveNodes()
public boolean done()
public void setLocation(OrganizableTask picked, double x, double y)
public void setLocation(OrganizableTask picked, java.awt.geom.Point2D p)
protected void relaxEdges()
public void step()
protected void calculateRepulsion()