infovis.visualization
Interface Layout

All Known Subinterfaces:
NodeLinkGraphLayout
All Known Implementing Classes:
AbstractGraphLayout, BasicSpringLayout, CircularLayout, ColumnsVisualization, ColumnVisualization, DefaultAxisVisualization, DendrogramTreeLayout, FRLayout, GraphVizLayout, HistogramVisualization, IcicleTreeVisualization, LinkVisualization, MatrixAxisVisualization, MatrixVisualization, MinimizerPolyLog, NodeLinkTreeLayout, ParallelCoordinatesVisualization, RandomGraphLayout, RTLayout, RTPolar, RulerVisualization, ScatterPlotVisualization, SimpleTreeLayout, SliceAndDice, SpringLayout, Squarified, Strip, TimeSeriesVisualization, Treemap

public interface Layout

Interface for layouts.

Version:
$Revision: 1.5 $
Author:
Jean-Daniel Fekete

Method Summary
 void computeShapes(Rectangle2D bounds, Visualization vis)
          Computes 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.
 

Method Detail

getName

String getName()
Returns the name of the layout algorithm.

Returns:
the name of the layout algorithm

getPreferredSize

Dimension getPreferredSize(Visualization vis)
Computes and return the preferred size for this layout and this visualization.

Parameters:
vis - the visualization
Returns:
the preferred size for this layout and this visualization.

invalidate

void invalidate(Visualization vis)
Invalidate the cached state of the layout.

Call this method from the visualization when it gets invalidated.

Parameters:
vis - the visualization.

computeShapes

void computeShapes(Rectangle2D bounds,
                   Visualization vis)
Computes the layout.

Parameters:
bounds - the allocated bounds of the visualization.
vis - the visualization.


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.