org.scijava.event
Class SciJavaEvent

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.event.SciJavaEvent
All Implemented Interfaces:
Contextual
Direct Known Subclasses:
ApplicationEvent, ContextDisposingEvent, DisplayEvent, IOEvent, ListEvent, ModuleEvent, ObjectEvent, OptionsEvent, OutputEvent, ServicesLoadedEvent, StatusEvent, ToolEvent, UIEvent, WelcomeEvent

public abstract class SciJavaEvent
extends AbstractContextual

Base class for all SciJava events.

Author:
Curtis Rueden

Constructor Summary
SciJavaEvent()
           
 
Method Summary
 void consume()
           
 Thread getCallingThread()
          Gets the thread that published the event.
 StackTraceElement[] getStackTrace()
          Gets the stack trace of the calling thread when the event was published.
 boolean isConsumed()
           
 void setCallingThread(Thread callingThread)
          Sets the thread that published the event.
 void setConsumed(boolean consumed)
           
 String toString()
           
 
Methods inherited from class org.scijava.AbstractContextual
context, getContext, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SciJavaEvent

public SciJavaEvent()
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.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009–2015 SciJava. All rights reserved.