edu.uci.ics.jung.algorithms.layout.util
Class RandomLocationTransformer<V>
java.lang.Object
edu.uci.ics.jung.algorithms.layout.util.RandomLocationTransformer<V>
- Type Parameters:
V
-
public class RandomLocationTransformer<V>
- extends Object
Transforms the input type into a random location within
the bounds of the Dimension property.
This is used as the backing Transformer for the LazyMap
for many Layouts,
and provides a random location for unmapped vertices
the first time they are accessed.
- Author:
- Tom Nelson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomLocationTransformer
public RandomLocationTransformer(Dimension d)
- Creates an instance with the specified size which uses the current time
as the random seed.
RandomLocationTransformer
public RandomLocationTransformer(Dimension d,
long seed)
- Creates an instance with the specified dimension and random seed.
- Parameters:
d
- seed
-
transform
public Point2D transform(V v)
Copyright © 2010 null. All Rights Reserved.