edu.uci.ics.jung.algorithms.util
Class RandomLocationTransformer<V>

java.lang.Object
  extended by edu.uci.ics.jung.algorithms.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 vertex keys the first time they are accessed.

Author:
Tom Nelson

Constructor Summary
RandomLocationTransformer(Dimension d)
           
RandomLocationTransformer(Dimension d, long seed)
           
 
Method Summary
 Point2D transform(V v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomLocationTransformer

public RandomLocationTransformer(Dimension d)

RandomLocationTransformer

public RandomLocationTransformer(Dimension d,
                                 long seed)
Method Detail

transform

public Point2D transform(V v)


Copyright © 2008 null. All Rights Reserved.