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, size
public ObservableFeatureCollection(FeatureCollection fc)
public void add(ObservableFeatureCollection.Listener listener)
public void add(Feature feature)
FeatureCollection
add
in interface FeatureCollection
add
in class FeatureCollectionWrapper
feature
- a Feature to add to the end of this collectionpublic void remove(Feature feature)
FeatureCollection
remove
in interface FeatureCollection
remove
in class FeatureCollectionWrapper
feature
- a Feature to remove from this collectionpublic void addAll(java.util.Collection features)
FeatureCollection
addAll
in interface FeatureCollection
addAll
in class FeatureCollectionWrapper
public void removeAll(java.util.Collection features)
FeatureCollection
removeAll
in interface FeatureCollection
removeAll
in class FeatureCollectionWrapper
public java.util.Collection remove(com.vividsolutions.jts.geom.Envelope env)
FeatureCollection
remove
in interface FeatureCollection
remove
in class FeatureCollectionWrapper