|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Graph2DLayoutExecutor.LayoutThreadHandle
The interface of the handle that is returned by
Graph2DLayoutExecutor.doLayout(Graph2DView, y.layout.Layouter, Runnable, y.view.Graph2DLayoutExecutor.ExceptionListener)
that can be used to query the state of the layout calculation.
Particularly, method getAbortHandler() provides access to
an AbortHandler instance that may be used to
stop or
cancel an
asynchronous layout
calculation.
Graph2DLayoutExecutor
| Method Summary | |
|---|---|
void |
cancel()
Cancels the ongoing layout calculation. |
AbortHandler |
getAbortHandler()
Returns the AbortHandler instance for the current layout calculation. |
java.lang.Throwable |
getException()
Returns the exception (if any) that happened during the layout calculation. |
java.lang.Thread |
getThread()
Returns the thread that is used for the layout calculation or null if the thread has not yet
been started. |
boolean |
isRunning()
Determines whether the layout calculation is still running. |
| Method Detail |
|---|
java.lang.Thread getThread()
null if the thread has not yet
been started.
nullvoid cancel()
isRunning()boolean isRunning()
java.lang.Throwable getException()
null if no exception has been recorded.AbortHandler getAbortHandler()
AbortHandler instance for the current layout calculation.
This method will return null if the layout calculation
has finished already.
Note: If there is already an AbortHandler associated with the graph, the instance that is returned
here won't be the same as the one that is provided by Graph2DLayoutExecutor.getDefaultAbortHandler().
AbortHandler instance for the current layout calculation
or null if the layout calculation has finished already.
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||