edu.uci.ics.jung.algorithms.layout3d
Class SpringLayout.UnitLengthFunction<E>

java.lang.Object
  extended by edu.uci.ics.jung.algorithms.layout3d.SpringLayout.UnitLengthFunction<E>
All Implemented Interfaces:
SpringLayout.LengthFunction<E>
Enclosing class:
SpringLayout<V,E>

public static final class SpringLayout.UnitLengthFunction<E>
extends Object
implements SpringLayout.LengthFunction<E>

Returns all edges as the same length: the input value

Author:
danyelf

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

Constructor Detail

SpringLayout.UnitLengthFunction

public SpringLayout.UnitLengthFunction(int length)
Method Detail

getLength

public double getLength(E e)
Specified by:
getLength in interface SpringLayout.LengthFunction<E>


Copyright © 2009. All Rights Reserved.