Package org.scijava.event
Class SciJavaEvent
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.event.SciJavaEvent
-
- All Implemented Interfaces:
Contextual
- Direct Known Subclasses:
ApplicationEvent,ContextCreatedEvent,ContextDisposingEvent,DisplayEvent,IOEvent,ListEvent,ModuleEvent,ObjectEvent,OptionsEvent,OutputEvent,ServicesLoadedEvent,StatusEvent,TaskEvent,ToolEvent,UIEvent,WelcomeEvent
public abstract class SciJavaEvent extends AbstractContextual
Base class for all SciJava events.- Author:
- Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description SciJavaEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume()StringdumpStack()Gets a stack trace for the calling thread when the event was published.ThreadgetCallingThread()Gets the thread that published the event.StackTraceElement[]getStackTrace()Gets the stack trace of the calling thread when the event was published.booleanisConsumed()voidsetCallingThread(Thread callingThread)Sets the thread that published the event.voidsetConsumed(boolean consumed)StringtoString()-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
setContext
-
-
-
-
Method Detail
-
isConsumed
public boolean isConsumed()
-
setConsumed
public void setConsumed(boolean consumed)
-
consume
public void consume()
-
getCallingThread
public Thread getCallingThread()
Gets the thread that published the event.
-
setCallingThread
public void setCallingThread(Thread callingThread)
Sets the thread that published the event.
-
getStackTrace
public StackTraceElement[] getStackTrace()
Gets the stack trace of the calling thread when the event was published. This method is useful for debugging what triggered an event.
-
dumpStack
public String dumpStack()
Gets a stack trace for the calling thread when the event was published. This method is useful for debugging what triggered an event.
-
-