public Iterator < PlaceObject > enumeratePlaces ( ) { final Iterator < PlaceManager > itr = _pmgrs . values ( ) . iterator ( ) ; return new Iterator < PlaceObject > ( ) { public boolean hasNext ( ) { return itr . hasNext ( ) ; } public PlaceObject next ( ) { PlaceManager plmgr = itr . next ( ) ; return ( plmgr == null ) ? null : plmgr . getPlaceObject ( ) ; } public void remove ( ) { throw new UnsupportedOperationException ( ) ; } } ; }
Returns an enumeration of all of the registered place objects . This should only be accessed on the dobjmgr thread and shouldn t be kept around across event dispatches .