infovis.graph.visualization.layout
Class GraphVizLayout
java.lang.Object
   infovis.graph.GraphProxy
infovis.graph.GraphProxy
       infovis.graph.visualization.layout.AbstractGraphLayout
infovis.graph.visualization.layout.AbstractGraphLayout
           infovis.graph.visualization.layout.GraphVizLayout
infovis.graph.visualization.layout.GraphVizLayout
- All Implemented Interfaces: 
- Graph, NodeLinkGraphLayout, Metadata, Constants, Layout
- public class GraphVizLayout 
- extends AbstractGraphLayout
Class GraphVizLayout uses AT&T GraphViz programs to perform the layout.
- Version:
- $Revision: 1.16 $
- Author:
- Jean-Daniel Fekete
- InfoVis factory arguments:
- GraphLayoutFactory "GraphViz/twopi" twopi, GraphLayoutFactory "GraphViz/dot" dot, GraphLayoutFactory "GraphViz/neato" neato, GraphLayoutFactory "GraphViz/circo" circo, GraphLayoutFactory "GraphViz/fdp" fdp
 
 
 
| Fields inherited from interface infovis.metadata.Constants | 
| CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE | 
 
 
 
| Methods inherited from class infovis.graph.visualization.layout.AbstractGraphLayout | 
| computeShapes, createRect, getBounds, getLinkShapes, getOrientation, getParent, getRectAt, getShapes, getVisualization, incrementLayout, initRect, isFinished, setRectSizeAt, setShapeAt | 
 
| Methods inherited from class infovis.graph.GraphProxy | 
| addEdge, addGraphChangedListener, addVertex, clear, edgeIterator, edgeIterator, findEdge, getClientProperty, getDegree, getEdge, getEdgesCount, getEdgeTable, getFirstVertex, getGraph, getInDegree, getInEdgeAt, getMetadata, getOtherVertex, getOutDegree, getOutEdgeAt, getSecondVertex, getVertexTable, getVerticesCount, inEdgeIterator, isDirected, outEdgeIterator, removeEdge, removeGraphChangedListener, removeVertex, setDirected, setGraph, setName, vertexIterator | 
 
 
GraphVizLayout
public GraphVizLayout()
GraphVizLayout
public GraphVizLayout(String layoutProgram)
getName
public String getName()
- Description copied from interface: Graph
- Returns the Graph name.
 
- 
- Specified by:
- getNamein interface- Graph
- Specified by:
- getNamein interface- Layout
- Overrides:
- getNamein class- GraphProxy
 
- 
- Returns:
- the Graph name.
 
computeShapes
public void computeShapes(Rectangle2D bounds,
                          NodeLinkGraphVisualization vis)
- 
- Overrides:
- computeShapesin class- AbstractGraphLayout
 
- 
 
getLayoutProgram
public String getLayoutProgram()
- 
 
setLayoutProgram
public void setLayoutProgram(String program)
- 
 
getLayoutRatio
public String getLayoutRatio()
- 
 
setLayoutRatio
public void setLayoutRatio(String string)
- 
 
invalidate
public void invalidate(Visualization vis)
- Description copied from interface: Layout
- Invalidate the cached state of the
 layout.
 
 Call this method from the visualization
 when it gets invalidated.
 
 
- 
- Specified by:
- invalidatein interface- Layout
- Overrides:
- invalidatein class- AbstractGraphLayout
 
- 
- Parameters:
- vis- the visualization.
 
getPreferredSize
public Dimension getPreferredSize(Visualization vis)
- Description copied from interface: Layout
- Computes and return the preferred size
 for this layout and this visualization.
 
- 
- Specified by:
- getPreferredSizein interface- Layout
- Overrides:
- getPreferredSizein class- AbstractGraphLayout
 
- 
- Parameters:
- vis- the visualization
- Returns:
- the preferred size
 for this layout and this visualization.
 
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.