Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`SpringLayout.UnitLengthFunction(int length)`

Method Summary
`double` | `getLength(Edge 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(Edge e)

  Specified by:
    `getLength` in interface `SpringLayout.LengthFunction`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD