|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.tree.visualization.NodeLinkTreeLayout
infovis.tree.visualization.nodelink.RTLayout
public class RTLayout
Implements the Reingold and Tilford Tree Layout. E.M. Reingold and J.S. Tilford, "Tidier Drawings of Trees", "IEEE Transactions on Software Engineering" pages "223--228" 1981
| Field Summary |
|---|
| Fields inherited from interface infovis.visualization.Orientable |
|---|
DIRECTION, NAME, ORIENTATION_CENTER, ORIENTATION_EAST, ORIENTATION_INVALID, ORIENTATION_NORTH, ORIENTATION_SOUTH, ORIENTATION_WEST, SQRT2 |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
|---|---|
RTLayout()
Constructor. |
|
| Method Summary | |
|---|---|
void |
computeShapes(Rectangle2D bounds,
NodeLinkTreeVisualization vis)
Performs the actual computation of the layout. |
String |
getName()
Returns the name of the layout algorithm. |
Dimension |
getPreferredSize(Visualization vis)
Computes and return the preferred size for this layout and this visualization. |
void |
invalidate(Visualization vis)
Invalidate the cached state of the layout. Call this method from the visualization when it gets invalidated. |
| Methods inherited from class infovis.tree.visualization.NodeLinkTreeLayout |
|---|
childrenIterator, computeShapes, findRectAt, getFirstChild, getLevelSeparation, getOrientation, getParent, getRectAt, getSiblingSeparation, getSubtreeSeparation, isLeaf, iterator, setLevelSeparation, setOrientation, setRectSizeAt, setShapeAt, setSiblingSeparation, setSubtreeSeparation |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface infovis.visualization.Orientable |
|---|
getOrientation, setOrientation |
| Constructor Detail |
|---|
public RTLayout()
| Method Detail |
|---|
public String getName()
getName in interface Layoutpublic void invalidate(Visualization vis)
Call this method from the visualization when it gets invalidated.
invalidate in interface Layoutinvalidate in class NodeLinkTreeLayoutvis - the visualization.public Dimension getPreferredSize(Visualization vis)
getPreferredSize in interface LayoutgetPreferredSize in class NodeLinkTreeLayoutvis - the visualization
public void computeShapes(Rectangle2D bounds,
NodeLinkTreeVisualization vis)
computeShapes in class NodeLinkTreeLayoutbounds - the visualization boundsvis - the visualization
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||