|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.feature.FeatureCollectionWrapper
public abstract class FeatureCollectionWrapper
Delegates to another instance of FeatureCollection. A useful means of overriding the behaviour of a FeatureCollection dynamically, at run-time (i.e. without subclassing).
| Constructor Summary | |
|---|---|
FeatureCollectionWrapper(FeatureCollection fc)
Constructs a FeatureCollectionWrapper that delegates to the given FeatureCollection. |
|
| Method Summary | |
|---|---|
void |
add(Feature feature)
Adds a feature to this collection. |
void |
addAll(java.util.Collection features)
Adds multiple features to this collection. |
void |
checkNotWrappingSameClass()
Throws an AssertionFailedException if this FeatureCollectionWrapper wraps (directly or indirectly) another FeatureCollectionWrapper having the same class (or descendant class thereof). |
void |
clear()
Removes all features from this collection. |
com.vividsolutions.jts.geom.Envelope |
getEnvelope()
Returns the bounds of this collection. |
protected FeatureCollection |
getFeatureCollection()
|
java.util.List |
getFeatures()
Returns an unmodifiable List of the features in this collection |
FeatureSchema |
getFeatureSchema()
Returns information about this FeatureCollection |
FeatureCollection |
getUltimateWrappee()
Returns the non-wrapper FeatureCollection wrapped by this wrapper and possibly by other wrappers in-between. |
FeatureCollection |
getWrappee()
Returns the FeatureCollection that this wrapper delegates to (possibly another FeatureCollectionWrapper). |
boolean |
hasWrapper(java.lang.Class c)
Returns whether this FeatureCollectionWrapper (or a FeatureCollectionWrapper that it wraps, directly or indirectly) is an instance of the given class (or one of its descendants). |
boolean |
isEmpty()
Returns whether this collection has no features. |
java.util.Iterator |
iterator()
Returns an Iterator over the features |
java.util.List |
query(com.vividsolutions.jts.geom.Envelope envelope)
A quick search for features, using an envelope comparison. |
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. |
protected void |
setFeatureCollection(FeatureCollection featureCollection)
|
int |
size()
Returns the number of features in this collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureCollectionWrapper(FeatureCollection fc)
| Method Detail |
|---|
public FeatureCollection getUltimateWrappee()
getWrappee()public void checkNotWrappingSameClass()
public java.util.Collection remove(com.vividsolutions.jts.geom.Envelope env)
FeatureCollection
remove in interface FeatureCollectionpublic boolean hasWrapper(java.lang.Class c)
public FeatureCollection getWrappee()
getUltimateWrappee()public FeatureSchema getFeatureSchema()
FeatureCollection
getFeatureSchema in interface FeatureCollectionpublic com.vividsolutions.jts.geom.Envelope getEnvelope()
FeatureCollection
getEnvelope in interface FeatureCollectionpublic int size()
FeatureCollection
size in interface FeatureCollectionpublic boolean isEmpty()
FeatureCollection
isEmpty in interface FeatureCollectionpublic java.util.List getFeatures()
FeatureCollection
getFeatures in interface FeatureCollectionpublic java.util.Iterator iterator()
FeatureCollection
iterator in interface FeatureCollectionpublic java.util.List query(com.vividsolutions.jts.geom.Envelope envelope)
FeatureCollection
query in interface FeatureCollectionenvelope - the envelope to query against
public void add(Feature feature)
FeatureCollection
add in interface FeatureCollectionfeature - a Feature to add to the end of this collectionpublic void remove(Feature feature)
FeatureCollection
remove in interface FeatureCollectionfeature - a Feature to remove from this collectionpublic void addAll(java.util.Collection features)
FeatureCollection
addAll in interface FeatureCollectionpublic void removeAll(java.util.Collection features)
FeatureCollection
removeAll in interface FeatureCollectionpublic void clear()
FeatureCollection
clear in interface FeatureCollectionprotected FeatureCollection getFeatureCollection()
protected void setFeatureCollection(FeatureCollection featureCollection)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||