Search this API

y.layout.organic
Interface InteractiveOrganicLayouter.SingleThreadContext

Enclosing class:
InteractiveOrganicLayouter

public static interface InteractiveOrganicLayouter.SingleThreadContext

A InteractiveOrganicLayouter.SingleThreadContext provides control over the layout calculation in the case of single-threaded algorithm execution.

See Also:
InteractiveOrganicLayouter.startLayoutSingleThreaded(LayoutGraph)
 

Method Summary
 void doLayout(long duration)
          Starts the layout calculation, continuing where it has stopped before and allowing a certain maximum duration in milliseconds.
 void stopLayout()
          Stops the layout calculation.
 

Method Detail

doLayout

void doLayout(long duration)
Starts the layout calculation, continuing where it has stopped before and allowing a certain maximum duration in milliseconds.

Parameters:
duration - the duration in milliseconds the layout calculation is allowed to run

stopLayout

void stopLayout()
Stops the layout calculation.

 
After calling this method, the context instance cannot continue layout calculation again.

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.