Class ProjectionSupport

  extended by java.util.concurrent.CopyOnWriteArrayList<E>
      extended by com.bbn.openmap.event.ListenerSupport<ProjectionListener>
          extended by com.bbn.openmap.event.ProjectionSupport
All Implemented Interfaces:, java.lang.Cloneable, java.lang.Iterable<ProjectionListener>, java.util.Collection<ProjectionListener>, java.util.List<ProjectionListener>, java.util.RandomAccess

public class ProjectionSupport
extends ListenerSupport<ProjectionListener>

This is a utility class that can be used by beans that need support for handling ProjectionListeners and firing ProjectionEvents. You can use an instance of this class as a member field of your bean and delegate work to it.

See Also:
Serialized Form

Nested Class Summary
protected  class ProjectionSupport.ProjectionChangeNotifier
          A thread that disperses the projection event, instead of letting the Swing thread do it.
Field Summary
protected  ProjectionSupport.ProjectionChangeNotifier pcNotifier
protected  boolean useNotifier
Fields inherited from class com.bbn.openmap.event.ListenerSupport
Constructor Summary
ProjectionSupport(boolean useNotifier)
          Construct a ProjectionSupport.
ProjectionSupport(java.lang.Object aSource, boolean useNotifier)
          Construct a ProjectionSupport.
Method Summary
 void dispose()
          Call when getting rid of the ProjectionSupport, it kills the ProjectionSupport thread.
 void fireProjectionChanged(Projection proj)
          Send a center event to all registered listeners.
Methods inherited from class com.bbn.openmap.event.ListenerSupport
add, add, addAll, clear, getSource, iterator, listIterator, remove, remove, set, setSource, size
Methods inherited from class java.util.concurrent.CopyOnWriteArrayList
addAll, addAllAbsent, addIfAbsent, clone, contains, containsAll, equals, get, hashCode, indexOf, indexOf, isEmpty, lastIndexOf, lastIndexOf, listIterator, removeAll, retainAll, subList, toArray, toArray, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait

Field Detail


protected ProjectionSupport.ProjectionChangeNotifier pcNotifier


protected boolean useNotifier
Constructor Detail


public ProjectionSupport(boolean useNotifier)
Construct a ProjectionSupport.


public ProjectionSupport(java.lang.Object aSource,
                         boolean useNotifier)
Construct a ProjectionSupport.

aSource - source Object
Method Detail


public void fireProjectionChanged(Projection proj)
Send a center event to all registered listeners.

proj - Projection


public void dispose()
Call when getting rid of the ProjectionSupport, it kills the ProjectionSupport thread. (from CJS)

Copyright (C) BBNT Solutions LLC; See for details