public class MultiGeoFilter extends GeoFilter
Constructor and Description |
---|
MultiGeoFilter()
Create a MultiGeoFilter object
|
MultiGeoFilter(GeoFilter filter)
Create a MultiGeoFilter object from another GeoFilter.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(GeoShape shape)
Add a geographic shape to the set of filters.
|
void |
addFilter(java.lang.String shapeName,
GeoShape shape)
Add a geographic shape to the set of filters.
|
java.util.Collection<java.lang.String> |
getShapeNames()
Get the names of all of the shapes that have been added to this filter.
|
java.lang.String |
pickShape(GeoCoord coord)
Return the name of the shape picked for the given coordinate.
|
void |
setRadius(double rad)
Set the comparison radius.
|
checkPoint, getFilterShape, getRadius, setFilterShape
public MultiGeoFilter()
public MultiGeoFilter(GeoFilter filter)
filter
- A GeoFilter to use in creating this GeoMultiFilterpublic void addFilter(GeoShape shape)
shape
- The geographic shapepublic void addFilter(java.lang.String shapeName, GeoShape shape)
shapeName
- the name of the shape.shape
- The geographic shapepublic java.util.Collection<java.lang.String> getShapeNames()
public java.lang.String pickShape(GeoCoord coord)
coord
- The coordinate to checkpublic void setRadius(double rad)