com.bbn.openmap.event
Class PanSupport
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
com.bbn.openmap.event.ListenerSupport<PanListener>
com.bbn.openmap.event.PanSupport
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<PanListener>, java.util.Collection<PanListener>, java.util.List<PanListener>, java.util.RandomAccess
public class PanSupport
- extends ListenerSupport<PanListener>
This is a utility class that can be used by beans that need support
for handling PanListeners and firing PanEvents. 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 |
PanSupport(java.lang.Object sourceBean)
Construct a PanSupport. |
|
Method Summary |
void |
firePan(float Az)
|
void |
firePan(float az,
float c)
Fire a pan event. |
void |
firePan(int direction)
Deprecated. use firePan(azimuth) |
void |
firePan(int direction,
float amount)
Deprecated. use firePan(azimuth, arc) |
| 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 |
PanSupport
public PanSupport(java.lang.Object sourceBean)
- Construct a PanSupport.
- Parameters:
sourceBean - The bean to be given as the source for any
events.
firePan
public void firePan(int direction)
- Deprecated. use firePan(azimuth)
- Send a pan event to all registered listeners.
- Parameters:
direction - PanEvent.NORTH ... PanEvent.NORTH_WEST- See Also:
PanEvent
firePan
public void firePan(int direction,
float amount)
- Deprecated. use firePan(azimuth, arc)
- Send a pan event to all registered listeners.
- Parameters:
direction - PanEvent.NORTH ... PanEvent.NORTH_WESTamount - (0.0 <= amount) in decimal degrees.- See Also:
PanEvent
firePan
public void firePan(float Az)
firePan
public void firePan(float az,
float c)
- Fire a pan event.
- Parameters:
az - azimuth "east of north" in decimal degrees:
-180 <= Az <= 180c - arc distance in decimal degrees.
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details