|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
com.bbn.openmap.event.ListenerSupport<ZoomListener>
com.bbn.openmap.event.ZoomSupport
public class ZoomSupport
This is a utility class that can be used by beans that need support for handling ZoomListeners and firing ZoomEvents. You can use an instance of this class as a member field of your bean and delegate work to it.
| Field Summary |
|---|
| Fields inherited from class com.bbn.openmap.event.ListenerSupport |
|---|
source |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
ZoomSupport(java.lang.Object sourceBean)
Construct a ZoomSupport. |
|
| Method Summary | |
|---|---|
void |
fireZoom(int zoomType,
float amount)
Send a zoom 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 |
| Constructor Detail |
|---|
public ZoomSupport(java.lang.Object sourceBean)
sourceBean - The bean to be given as the source for any
events.| Method Detail |
|---|
public void fireZoom(int zoomType,
float amount)
zoomType - Either ZoomEvent.RELATIVE or ZoomEvent.ABSOLUTEamount - The new scale if ABSOLUTE, the multiplier if
RELATIVE
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||