|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.tree.visualization.treemap.Treemap
public abstract class Treemap
Base class for all Treemap algorithms.
| Constructor Summary | |
|---|---|
Treemap()
|
|
| Method Summary | |
|---|---|
boolean |
beginBox(Rectangle2D.Float box)
Checks whether the specified box should be drawn and initialize the node's Shape to its final bounds. |
GeneralPath |
borderShape(float xmin,
float ymin,
float xmax,
float ymax,
int node)
Computes the shape of the border. |
abstract void |
computeShapes(Rectangle2D bounds,
TreemapVisualization vis)
Computes the shapes of the treemap. |
void |
computeShapes(Rectangle2D bounds,
Visualization vis)
Computes the layout. |
void |
finish()
Method start should be called before starting to draw shapes. |
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. |
void |
removeBorder(Rectangle2D.Float box,
int node)
Method removeBorder only removes the border from the given box. |
void |
start()
Method start should be called before starting to draw shapes. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface infovis.visualization.Layout |
|---|
getName |
| Constructor Detail |
|---|
public Treemap()
| Method Detail |
|---|
public void start()
public void finish()
public boolean beginBox(Rectangle2D.Float box)
box - the bounding box
public void removeBorder(Rectangle2D.Float box,
int node)
box - the rectangle containing the box whose border should be drawn.
It is modified by the method and will hold the remaining part
of the box after the border is drawn.node - the tree node to draw.
public GeneralPath borderShape(float xmin,
float ymin,
float xmax,
float ymax,
int node)
xmin - left coordymin - upper coordxmax - right coordymax - lower coordnode - the node
public void computeShapes(Rectangle2D bounds,
Visualization vis)
computeShapes in interface Layoutbounds - the allocated bounds of the
visualization.vis - the visualization.public void invalidate(Visualization vis)
Call this method from the visualization when it gets invalidated.
invalidate in interface Layoutvis - the visualization.public Dimension getPreferredSize(Visualization vis)
getPreferredSize in interface Layoutvis - the visualization
public abstract void computeShapes(Rectangle2D bounds,
TreemapVisualization vis)
vis - the TreemapVisualizationbounds - the external bounds of the treemap.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||