|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.feature.FeatureCollectionWrapper
com.vividsolutions.jump.workbench.model.ObservableFeatureCollection
public class ObservableFeatureCollection
Notifies listeners when features are added to or removed from a FeatureCollection.
Prefer #addAll and #removeAll to #add and #remove, so that fewer events will be fired.
| Nested Class Summary | |
|---|---|
static interface |
ObservableFeatureCollection.Listener
Listens for features being added to or removed from a FeatureCollection. |
| Constructor Summary | |
|---|---|
ObservableFeatureCollection(FeatureCollection fc)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.vividsolutions.jump.feature.FeatureCollectionWrapper |
|---|
checkNotWrappingSameClass, clear, getEnvelope, getFeatureCollection, getFeatures, getFeatureSchema, getUltimateWrappee, getWrappee, hasWrapper, isEmpty, iterator, query, setFeatureCollection, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObservableFeatureCollection(FeatureCollection fc)
| Method Detail |
|---|
public void add(ObservableFeatureCollection.Listener listener)
public void add(Feature feature)
FeatureCollection
add in interface FeatureCollectionadd in class FeatureCollectionWrapperfeature - a Feature to add to the end of this collectionpublic void remove(Feature feature)
FeatureCollection
remove in interface FeatureCollectionremove in class FeatureCollectionWrapperfeature - a Feature to remove from this collectionpublic void addAll(java.util.Collection features)
FeatureCollection
addAll in interface FeatureCollectionaddAll in class FeatureCollectionWrapperpublic void removeAll(java.util.Collection features)
FeatureCollection
removeAll in interface FeatureCollectionremoveAll in class FeatureCollectionWrapperpublic java.util.Collection remove(com.vividsolutions.jts.geom.Envelope env)
FeatureCollection
remove in interface FeatureCollectionremove in class FeatureCollectionWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||