samples.preview_new_graphdraw.iter
Class GraphLayoutPanelUtils

java.lang.Object
  extended by samples.preview_new_graphdraw.iter.GraphLayoutPanelUtils

public class GraphLayoutPanelUtils
extends Object

Author:
danyelf

Constructor Summary
GraphLayoutPanelUtils()
           
 
Method Summary
static EmittedLayout copy(EmittedLayout layoutToCopy)
          Copies a layout into a new layout, which is returned.
static EmittedLayout copy(EmittedLayout dest, EmittedLayout layoutToCopy)
          Copies a layout into a destination layout (whose values are cleared)
static void prerelax(long millis, IterableLayout la)
          Pre-relaxes a layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphLayoutPanelUtils

public GraphLayoutPanelUtils()
Method Detail

prerelax

public static void prerelax(long millis,
                            IterableLayout la)
Pre-relaxes a layout. Iterates forward for millis milliseconds


copy

public static EmittedLayout copy(EmittedLayout dest,
                                 EmittedLayout layoutToCopy)
Copies a layout into a destination layout (whose values are cleared)

Parameters:
dest - the destination layout
layoutToCopy - the original layout.
Returns:

copy

public static EmittedLayout copy(EmittedLayout layoutToCopy)
Copies a layout into a new layout, which is returned.

Returns: