infovis.graph.visualization.layout
Class GraphVizLayout

java.lang.Object
  extended by infovis.graph.GraphProxy
      extended by infovis.graph.visualization.layout.AbstractGraphLayout
          extended by 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

Field Summary
 
Fields inherited from class infovis.graph.visualization.layout.AbstractGraphLayout
COLUMN_FIXED
 
Fields inherited from interface infovis.Graph
GRAPH_TYPE, GRAPH_TYPE_DIRECTED, GRAPH_TYPE_UNDIRECTED, NIL
 
Fields inherited from interface infovis.metadata.Constants
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE
 
Constructor Summary
GraphVizLayout()
           
GraphVizLayout(String layoutProgram)
           
 
Method Summary
 void computeShapes(Rectangle2D bounds, NodeLinkGraphVisualization vis)
           
 String getLayoutProgram()
           
 String getLayoutRatio()
           
 String getName()
          Returns the Graph name.
 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 setLayoutProgram(String program)
           
 void setLayoutRatio(String string)
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphVizLayout

public GraphVizLayout()

GraphVizLayout

public GraphVizLayout(String layoutProgram)
Method Detail

getName

public String getName()
Description copied from interface: Graph
Returns the Graph name.

Specified by:
getName in interface Graph
Specified by:
getName in interface Layout
Overrides:
getName in class GraphProxy
Returns:
the Graph name.

computeShapes

public void computeShapes(Rectangle2D bounds,
                          NodeLinkGraphVisualization vis)
Overrides:
computeShapes in 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:
invalidate in interface Layout
Overrides:
invalidate in 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:
getPreferredSize in interface Layout
Overrides:
getPreferredSize in 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.