public abstract class SearchThread extends java.lang.Thread implements SearchInterface
Modifier and Type | Field and Description |
---|---|
static int |
CANCELLED |
static byte |
CLOSED_FROM_GOAL |
static byte |
CLOSED_FROM_START |
static java.lang.String[] |
exitReasonStrings |
static byte |
FREE |
static byte |
OPEN_FROM_GOAL |
static byte |
OPEN_FROM_START |
static int |
OUT_OF_MEMORY |
static int |
PAUSED |
static int |
POINTS_EXHAUSTED |
static int |
RUNNING |
static int |
STOPPING |
static int |
SUCCESS |
static int |
TIMED_OUT |
Constructor and Description |
---|
SearchThread(ij.ImagePlus imagePlus,
float stackMin,
float stackMax,
boolean bidirectional,
boolean definedGoal,
boolean startPaused,
int timeoutSeconds,
long reportEveryMilliseconds) |
Modifier and Type | Method and Description |
---|---|
void |
addNode(SearchNode n,
boolean fromStart) |
void |
addProgressListener(SearchProgressCallback callback) |
void |
drawProgressOnSlice(int plane,
int currentSliceInPlane,
sc.fiji.snt.TracerCanvas canvas,
java.awt.Graphics g) |
int |
getThreadStatus() |
void |
pauseOrUnpause() |
int |
pointsConsideredInSearch() |
void |
printStatus() |
void |
reportFinished(boolean success) |
void |
reportThreadStatus() |
void |
requestStop() |
void |
run() |
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getResult
public static final byte OPEN_FROM_START
public static final byte CLOSED_FROM_START
public static final byte OPEN_FROM_GOAL
public static final byte CLOSED_FROM_GOAL
public static final byte FREE
public static final int RUNNING
public static final int PAUSED
public static final int STOPPING
public static int SUCCESS
public static int CANCELLED
public static int TIMED_OUT
public static int POINTS_EXHAUSTED
public static int OUT_OF_MEMORY
public static java.lang.String[] exitReasonStrings
public SearchThread(ij.ImagePlus imagePlus, float stackMin, float stackMax, boolean bidirectional, boolean definedGoal, boolean startPaused, int timeoutSeconds, long reportEveryMilliseconds)
public int pointsConsideredInSearch()
public void addProgressListener(SearchProgressCallback callback)
public int getThreadStatus()
public void requestStop()
requestStop
in interface SearchInterface
public void reportThreadStatus()
public void reportFinished(boolean success)
public void pauseOrUnpause()
public void printStatus()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void drawProgressOnSlice(int plane, int currentSliceInPlane, sc.fiji.snt.TracerCanvas canvas, java.awt.Graphics g)
drawProgressOnSlice
in interface SearchInterface
public void addNode(SearchNode n, boolean fromStart)