org.progeeks.geo
Class BoundaryFilter

java.lang.Object
  extended by org.progeeks.geo.BoundaryFilter
All Implemented Interfaces:
java.io.Serializable, org.apache.commons.collections.Predicate, TargetedFilter

public class BoundaryFilter
extends java.lang.Object
implements org.apache.commons.collections.Predicate, TargetedFilter, java.io.Serializable

NodeFilter implementation that returns all GeoShapes within a certain boundary.

Version:
$Revision: 1.3 $
Author:
Paul Speed
See Also:
Serialized Form

Constructor Summary
BoundaryFilter(GeoRectangle bounds)
           
 
Method Summary
 boolean evaluate(java.lang.Object node)
          Returns true if the specified object is GeoShape and if its boundary intersects with our query boundary.
 boolean supportsGraph(com.phoenixst.plexus.Graph graph)
          Returns true for any GeospatialGraph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundaryFilter

public BoundaryFilter(GeoRectangle bounds)
Method Detail

supportsGraph

public boolean supportsGraph(com.phoenixst.plexus.Graph graph)
Returns true for any GeospatialGraph.

Specified by:
supportsGraph in interface TargetedFilter

evaluate

public boolean evaluate(java.lang.Object node)
Returns true if the specified object is GeoShape and if its boundary intersects with our query boundary.

Specified by:
evaluate in interface org.apache.commons.collections.Predicate


Copyright © 2002-2003 Paul Speed. All Rights Reserved.