com.bbn.openmap.event
Class ProjectionSupport
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
com.bbn.openmap.event.ListenerSupport<ProjectionListener>
com.bbn.openmap.event.ProjectionSupport
- All Implemented Interfaces:
- java.io.Serializable, 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
| Fields inherited from class java.util.AbstractList |
modCount |
|
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.ArrayList |
addAll, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, removeRange, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
containsAll, equals, hashCode, listIterator, removeAll, retainAll, subList |
pcNotifier
protected ProjectionSupport.ProjectionChangeNotifier pcNotifier
useNotifier
protected boolean useNotifier
ProjectionSupport
public ProjectionSupport(boolean useNotifier)
- Construct a ProjectionSupport.
ProjectionSupport
public ProjectionSupport(java.lang.Object aSource,
boolean useNotifier)
- Construct a ProjectionSupport.
- Parameters:
aSource - source Object
fireProjectionChanged
public void fireProjectionChanged(Projection proj)
- Send a center event to all registered listeners.
- Parameters:
proj - Projection
dispose
public void dispose()
- Call when getting rid of the ProjectionSupport, it kills the
ProjectionSupport thread. // <-- CJS
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details