public class ObservableFeatureCollection extends FeatureCollectionWrapper
Prefer #addAll and #removeAll to #add and #remove, so that fewer events will be fired.
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
ObservableFeatureCollection.Listener
Listens for features being added to or removed from a 
 FeatureCollection. 
 | 
| Constructor and Description | 
|---|
ObservableFeatureCollection(FeatureCollection fc)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(Feature feature)
Adds a feature to this collection. 
 | 
void | 
add(ObservableFeatureCollection.Listener listener)  | 
void | 
addAll(java.util.Collection features)
Adds multiple features to this collection. 
 | 
java.util.Collection | 
remove(com.vividsolutions.jts.geom.Envelope env)
Removes the features which intersect the given envelope 
 | 
void | 
remove(Feature feature)
Removes a feature from this collection. 
 | 
void | 
removeAll(java.util.Collection features)
Removes multiple features from this collection. 
 | 
checkNotWrappingSameClass, clear, getEnvelope, getFeatureCollection, getFeatures, getFeatureSchema, getUltimateWrappee, getWrappee, hasWrapper, isEmpty, iterator, query, setFeatureCollection, sizepublic ObservableFeatureCollection(FeatureCollection fc)
public void add(ObservableFeatureCollection.Listener listener)
public void add(Feature feature)
FeatureCollectionadd in interface FeatureCollectionadd in class FeatureCollectionWrapperfeature - a Feature to add to the end of this collectionpublic void remove(Feature feature)
FeatureCollectionremove in interface FeatureCollectionremove in class FeatureCollectionWrapperfeature - a Feature to remove from this collectionpublic void addAll(java.util.Collection features)
FeatureCollectionaddAll in interface FeatureCollectionaddAll in class FeatureCollectionWrapperpublic void removeAll(java.util.Collection features)
FeatureCollectionremoveAll in interface FeatureCollectionremoveAll in class FeatureCollectionWrapperpublic java.util.Collection remove(com.vividsolutions.jts.geom.Envelope env)
FeatureCollectionremove in interface FeatureCollectionremove in class FeatureCollectionWrapper