infovis.graph.visualization.layout
Class SpringLayout.UnitLengthFunction

java.lang.Object
  extended by infovis.graph.visualization.layout.SpringLayout.UnitLengthFunction
All Implemented Interfaces:
SpringLayout.LengthFunction
Enclosing class:
SpringLayout

public static final class SpringLayout.UnitLengthFunction
extends Object
implements SpringLayout.LengthFunction

Returns all edges as the same length: the input value

Author:
danyelf

Constructor Summary
SpringLayout.UnitLengthFunction(int length)
           
 
Method Summary
 double getLength(int e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringLayout.UnitLengthFunction

public SpringLayout.UnitLengthFunction(int length)
Method Detail

getLength

public double getLength(int e)
Specified by:
getLength in interface SpringLayout.LengthFunction


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