com.bbn.openmap.event
Class ProjectionSupport.ProjectionChangeNotifier

java.lang.Object
  extended by java.lang.Thread
      extended by com.bbn.openmap.event.ProjectionSupport.ProjectionChangeNotifier
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ProjectionSupport

protected class ProjectionSupport.ProjectionChangeNotifier
extends java.lang.Thread

A thread that disperses the projection event, instead of letting the Swing thread do it. A new one is created for every projection change, so the current ProjectionEvent object is getting delivered with it.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  ProjectionEvent nextEvent
           
protected  ProjectionEvent projEvent
           
protected  boolean terminated
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ProjectionSupport.ProjectionChangeNotifier()
           
 
Method Summary
 void fireProjectionEvent(ProjectionEvent event)
           
protected  boolean isEventInProgress()
           
 boolean isTerminated()
           
 void run()
           
 void setTerminated(boolean terminated)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

projEvent

protected ProjectionEvent projEvent

nextEvent

protected ProjectionEvent nextEvent

terminated

protected boolean terminated
Constructor Detail

ProjectionSupport.ProjectionChangeNotifier

public ProjectionSupport.ProjectionChangeNotifier()
Method Detail

isTerminated

public boolean isTerminated()

setTerminated

public void setTerminated(boolean terminated)

isEventInProgress

protected boolean isEventInProgress()

fireProjectionEvent

public void fireProjectionEvent(ProjectionEvent event)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details