org.graphstream.ui.layout
Class LayoutRunner
java.lang.Object
java.lang.Thread
org.graphstream.ui.layout.LayoutRunner
- All Implemented Interfaces:
- Runnable
public class LayoutRunner
- extends Thread
Allows to run a layout in a distinct thread.
Constructor Summary |
LayoutRunner(Graph graph,
Layout layout,
boolean start,
boolean replay)
|
LayoutRunner(Source source,
Layout layout)
New layout runner that listen at the given source and compute a layout on
its graph structure in a distinct thread. |
LayoutRunner(Source source,
Layout layout,
boolean start)
New layout runner that listen at the given source and compute a layout on
its graph structure in a distinct thread. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
LayoutRunner
public LayoutRunner(Source source,
Layout layout)
- New layout runner that listen at the given source and compute a layout on
its graph structure in a distinct thread.
- Parameters:
source
- The source of graph events.layout
- The layout algorithm to use.
LayoutRunner
public LayoutRunner(Source source,
Layout layout,
boolean start)
- New layout runner that listen at the given source and compute a layout on
its graph structure in a distinct thread.
- Parameters:
source
- The source of graph events.layout
- The layout algorithm to use.start
- Start the layout thread immediately ? Else the start() method
must be called later.
LayoutRunner
public LayoutRunner(Graph graph,
Layout layout,
boolean start,
boolean replay)
newLayoutPipe
public ProxyPipe newLayoutPipe()
- Pipe out whose input is connected to the layout algorithm. You can safely
connect as a sink to it to receive events of the layout from a distinct
thread.
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
release
public void release()
Copyright © 2011. All Rights Reserved.