Class CenterSupport

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

public class CenterSupport
extends ListenerSupport<CenterListener>

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

A center event is one that sets the center of a map by specifying latitude and longitude.

See Also:
Serialized Form

Field Summary
Fields inherited from class com.bbn.openmap.event.ListenerSupport
Constructor Summary
CenterSupport(java.lang.Object sourceBean)
Method Summary
 void fireCenter(double latitude, double longitude)
          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

Constructor Detail


public CenterSupport(java.lang.Object sourceBean)
sourceBean - The bean to be given as the source for any events
Method Detail


public void fireCenter(double latitude,
                       double longitude)
Send a center event to all registered listeners.

latitude - the latitude
longitude - the longitude
See Also:

Copyright (C) BBNT Solutions LLC; See for details