|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.tree.visualization.NodeLinkTreeLayout
public abstract class NodeLinkTreeLayout
Layout class for NodeLinkTreeVisualization.
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 |
Method Summary | |
---|---|
RowIterator |
childrenIterator(int node)
|
abstract void |
computeShapes(Rectangle2D bounds,
NodeLinkTreeVisualization vis)
Performs the actual computation of the layout. |
void |
computeShapes(Rectangle2D bounds,
Visualization vis)
Computes the layout. |
Rectangle2D.Float |
findRectAt(int row)
|
int |
getFirstChild(int node)
|
float |
getLevelSeparation()
|
short |
getOrientation()
Returns the orientation manages by this interface. |
int |
getParent(int node)
|
Dimension |
getPreferredSize(Visualization vis)
Computes and return the preferred size for this layout and this visualization. |
Rectangle2D.Float |
getRectAt(int row)
|
float |
getSiblingSeparation()
|
float |
getSubtreeSeparation()
|
void |
invalidate(Visualization vis)
Invalidate the cached state of the layout. |
boolean |
isLeaf(int node)
|
RowIterator |
iterator()
|
void |
setLevelSeparation(float levelSeparation)
|
void |
setOrientation(short orientation)
Sets the orientation of this interface. |
void |
setRectSizeAt(int row,
Rectangle2D.Float rect)
Set the rectangle associated with a specified row. |
void |
setShapeAt(int row,
Shape s)
Sets the shape in the shape column. |
void |
setSiblingSeparation(float siblingSeparation)
|
void |
setSubtreeSeparation(float subtreeSeparation)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface infovis.visualization.Layout |
---|
getName |
Method Detail |
---|
public Dimension getPreferredSize(Visualization vis)
getPreferredSize
in interface Layout
vis
- the visualization
public void invalidate(Visualization vis)
Call this method from the visualization when it gets invalidated.
invalidate
in interface Layout
vis
- the visualization.public void computeShapes(Rectangle2D bounds, Visualization vis)
computeShapes
in interface Layout
bounds
- the allocated bounds of the
visualization.vis
- the visualization.public abstract void computeShapes(Rectangle2D bounds, NodeLinkTreeVisualization vis)
bounds
- the visualization boundsvis
- the visualizationpublic Rectangle2D.Float findRectAt(int row)
ShapeColumn.findRect(int)
public Rectangle2D.Float getRectAt(int row)
ShapeColumn.getRect(int)
public void setShapeAt(int row, Shape s)
row
- the rows
- the shapepublic RowIterator iterator()
Visualization.iterator()
public RowIterator childrenIterator(int node)
Tree.childrenIterator(int)
public boolean isLeaf(int node)
Tree.isLeaf(int)
public int getFirstChild(int node)
TreeVisualization.getFirstChild(int)
public int getParent(int node)
Tree.getParent(int)
public short getOrientation()
Orientable
getOrientation
in interface Orientable
Orientable.getOrientation()
public void setOrientation(short orientation)
Orientable
setOrientation
in interface Orientable
orientation
- the orientation.Orientable.setOrientation(short)
public void setRectSizeAt(int row, Rectangle2D.Float rect)
row
- the rowrect
- the rectanglepublic float getLevelSeparation()
public void setLevelSeparation(float levelSeparation)
levelSeparation
- The levelSeparation to set.public float getSiblingSeparation()
public void setSiblingSeparation(float siblingSeparation)
siblingSeparation
- The siblingSeparation to set.public float getSubtreeSeparation()
public void setSubtreeSeparation(float subtreeSeparation)
subtreeSeparation
- The subtreeSeparation to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |