|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.algorithms.RubberBands
public class RubberBands
This class implements the RubberBands algorithm. It provides methods for setting up the spacing between nodes and their size.
Constructor Summary | |
---|---|
RubberBands(LayoutedGraph graph)
Creates the RubberBands algorithm for the given Graph. |
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener changeListener)
Registers a ChangeListener. |
float |
getDepth()
Returns the spacing between two walls. |
int |
getHorizontalGap()
Return the gap between two nodes, if they have the same parents. |
float |
getHorizontalSpacing()
Return the gap between two nodes, if they have the same parents. |
int |
getMaxIterations()
Returns the maximal number of iterations. |
java.lang.String |
getMessage()
Returns a short description of the algorithm. |
int |
getNodeSize()
Returns the size of a single node. |
int |
getPercentComplete()
Returns the progress in percents from 0 to 100 |
float |
getVerticalSpacing()
Returns the spacing between two generations. |
void |
run()
Starts the algorithm. |
void |
setDepth(float depth)
Sets the spacing between two walls. |
void |
setHorizontalGap(int gap)
Sets the gap between two nodes, if they have the same parents. |
void |
setHorizontalSpacing(float minimumX)
Sets the gap between two nodes, if they have the same parents. |
void |
setMaxIterations(int maxIterations)
Sets the maximal number of iterations. |
void |
setNodeSize(int nodeSize)
Sets the size of a single node. |
void |
setVerticalSpacing(float height)
Sets the spacing between two generations. |
void |
updateYPosition()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RubberBands(LayoutedGraph graph)
graph
- the Graph objectMethod Detail |
---|
public void run()
Algorithm
run
in interface java.lang.Runnable
run
in interface Algorithm
public java.lang.String getMessage()
Algorithm
getMessage
in interface Algorithm
public int getPercentComplete()
Algorithm
getPercentComplete
in interface Algorithm
public void addChangeListener(javax.swing.event.ChangeListener changeListener)
Algorithm
addChangeListener
in interface Algorithm
changeListener
- Changepublic float getDepth()
public void setDepth(float depth)
depth
- spacing between walls.public float getHorizontalSpacing()
public void setHorizontalSpacing(float minimumX)
horizontalGap
- gap between two nodespublic int getNodeSize()
public void setNodeSize(int nodeSize)
nodeSize
- size of a single node.public float getVerticalSpacing()
public void setVerticalSpacing(float height)
verticalSpacing
- public int getHorizontalGap()
public void setHorizontalGap(int gap)
horizontalGap
- gap between two nodespublic int getMaxIterations()
public void setMaxIterations(int maxIterations)
maxIterations
- maximal number of iterationspublic void updateYPosition()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |