|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.util.AbstractMap
|
+--iglu.util.ValueSortedMap
|
+--iglu.util.ActiveValueSortedMap
A value sorted map that issues events.
| Field Summary | |
private java.util.LinkedList |
eventListeners
the event queue |
| Fields inherited from class iglu.util.ValueSortedMap |
EMPTY, forwardSortedVector, reverseSortedVector, storedItems |
| Fields inherited from class java.util.AbstractMap |
|
| Constructor Summary | |
ActiveValueSortedMap()
Creates new ActiveValueSortedMap |
|
ActiveValueSortedMap(java.util.Map map)
Create a new AVSM from the given map. |
|
| Method Summary | |
void |
addVSMEventListener(VSMEventListener el)
ad a new event listener |
void |
clear()
Removes all items from the map and fires an event. |
void |
fireEvent(VSMEvent e)
issue the event named |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Puts an object into the map and fires the event. |
void |
putAll(java.util.Map map)
Puts all the objects into the map and fires the event. |
java.lang.Object |
remove(java.lang.Object key)
Removes an object from the event and fires the event. |
java.lang.Object |
update(java.lang.Object key,
double value)
|
java.lang.Object |
update(java.lang.Object key,
java.lang.Object value)
|
| Methods inherited from class iglu.util.ValueSortedMap |
clone, containsKey, entrySet, get, getDouble, isEmpty, iterator, keyIterator, keySet, linearlyScale, main, normalize, put, rankOrder, reverseKeyIterator, scaleBy, size, subtract, test, toString, truncateTo |
| Methods inherited from class java.util.AbstractMap |
containsValue, equals, hashCode, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.util.LinkedList eventListeners
| Constructor Detail |
public ActiveValueSortedMap()
public ActiveValueSortedMap(java.util.Map map)
map - | Method Detail |
public void addVSMEventListener(VSMEventListener el)
public void fireEvent(VSMEvent e)
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in class ValueSortedMapkey - value - public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapremove in class ValueSortedMapkey -
public java.lang.Object update(java.lang.Object key,
java.lang.Object value)
public java.lang.Object update(java.lang.Object key,
double value)
public void putAll(java.util.Map map)
putAll in interface java.util.MapputAll in class ValueSortedMapmap - public void clear()
clear in interface java.util.Mapclear in class ValueSortedMap
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||