JIDE 3.5.15

com.jidesoft.chart.util
Class SwingExecutor

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by 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.


Method Summary
 boolean awaitTermination(long timeout, TimeUnit unit)
           
 void execute(Runnable r)
           
static SwingExecutor instance()
           
 boolean isShutdown()
           
 boolean isTerminated()
           
 void shutdown()
           
 List<Runnable> shutdownNow()
           
 
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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()

JIDE 3.5.15