infovis.graph.visualization.layout
Class BasicSpringLayout

java.lang.Object
  extended by infovis.graph.GraphProxy
      extended by infovis.graph.visualization.layout.AbstractGraphLayout
          extended by infovis.graph.visualization.layout.RandomGraphLayout
              extended by infovis.graph.visualization.layout.BasicSpringLayout
All Implemented Interfaces:
Graph, NodeLinkGraphLayout, Metadata, Constants, Layout
Direct Known Subclasses:
FRLayout, MinimizerPolyLog, SpringLayout

public abstract class BasicSpringLayout
extends RandomGraphLayout

Class BasicSpringLayout

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

Field Summary
static double EPSILON
           
 
Fields inherited from class infovis.graph.visualization.layout.RandomGraphLayout
instance
 
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
BasicSpringLayout()
           
 
Method Summary
 void computeShapes(Rectangle2D bounds, NodeLinkGraphVisualization vis)
           
static double dist(double dx, double dy)
           
 boolean dontMove(int vertex)
           
 int getMaxIterations()
           
 float getX(int vertex)
           
 float getY(int vertex)
           
 void incrementLayout(Rectangle2D bounds, NodeLinkGraphVisualization vis)
           
 boolean isIncremental()
          This one is an incremental visualization.
 void setMaxIterations(int maxIterations)
           
 void setX(int vertex, float val)
           
 void setY(int vertex, float val)
           
 
Methods inherited from class infovis.graph.visualization.layout.RandomGraphLayout
getEngine, getInstance, initRect, nextDouble, setEngine, setInstance
 
Methods inherited from class infovis.graph.visualization.layout.AbstractGraphLayout
computeShapes, createRect, getBounds, getLinkShapes, getOrientation, getParent, getPreferredSize, getRectAt, getShapes, getVisualization, invalidate, 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, getName, 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
 
Methods inherited from interface infovis.visualization.Layout
getName
 

Field Detail

EPSILON

public static final double EPSILON
See Also:
Constant Field Values
Constructor Detail

BasicSpringLayout

public BasicSpringLayout()
Method Detail

computeShapes

public void computeShapes(Rectangle2D bounds,
                          NodeLinkGraphVisualization vis)
Overrides:
computeShapes in class AbstractGraphLayout

incrementLayout

public void incrementLayout(Rectangle2D bounds,
                            NodeLinkGraphVisualization vis)
Specified by:
incrementLayout in interface NodeLinkGraphLayout
Overrides:
incrementLayout in class AbstractGraphLayout

dist

public static double dist(double dx,
                          double dy)

getY

public float getY(int vertex)

setY

public void setY(int vertex,
                 float val)

getX

public float getX(int vertex)

setX

public void setX(int vertex,
                 float val)

dontMove

public boolean dontMove(int vertex)

setMaxIterations

public void setMaxIterations(int maxIterations)

getMaxIterations

public int getMaxIterations()

isIncremental

public boolean isIncremental()
This one is an incremental visualization.



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