com.jidesoft.chart.util
Class SwingExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
com.jidesoft.chart.util.SwingExecutor
- All Implemented Interfaces:
- Executor, ExecutorService
public class SwingExecutor
- extends AbstractExecutorService
This class implements an Executor Service but really only offers the execute() method of
the Executor interface and ensures that when the submitted Runnable runs, it runs on the Event Dispatch Thread.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static SwingExecutor instance()
execute
public void execute(Runnable r)
shutdown
public void shutdown()
shutdownNow
public List<Runnable> shutdownNow()
awaitTermination
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
- Throws:
InterruptedException
isShutdown
public boolean isShutdown()
isTerminated
public boolean isTerminated()