edu.uci.ics.jung.algorithms.layout
Class SpringLayout2.UnitLengthFunction<E>

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

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

Returns all edges as the same length: the input value

Author:
danyelf

Constructor Summary
SpringLayout2.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

SpringLayout2.UnitLengthFunction

public SpringLayout2.UnitLengthFunction(int length)
Method Detail

getLength

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


Copyright © 2008 null. All Rights Reserved.