edu.uci.ics.jung.visualization
Class SpringLayout.UnitLengthFunction
java.lang.Object
edu.uci.ics.jung.visualization.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringLayout.UnitLengthFunction
public SpringLayout.UnitLengthFunction(int length)
getLength
public double getLength(Edge e)
- Specified by:
getLength
in interface SpringLayout.LengthFunction