org.shapelogic.filter
Class PointAboveFilter

java.lang.Object
  extended by org.shapelogic.filter.BaseFilter<Polygon,IPoint2D>
      extended by org.shapelogic.filter.PolygonPointFilter
          extended by org.shapelogic.filter.PolygonSpatialPointFilter
              extended by org.shapelogic.filter.PointAboveFilter
All Implemented Interfaces:
org.apache.commons.collections.Predicate, IFilter<Polygon,IPoint2D>

public class PointAboveFilter
extends PolygonSpatialPointFilter

Filter points above a given level of the bounding box of a polygon The constraint is should be between 0 and 1. 0 is the top point 1 is the bottom point

Author:
Sami Badawi

Field Summary
 
Fields inherited from class org.shapelogic.filter.PolygonSpatialPointFilter
_constraintNumber, _limit
 
Fields inherited from class org.shapelogic.filter.BaseFilter
_collection, _constraint, _parent
 
Constructor Summary
PointAboveFilter()
           
 
Method Summary
protected  double coordinateChoser(IPoint2D diagonalVector)
           
 boolean evaluate(java.lang.Object obj)
           
 
Methods inherited from class org.shapelogic.filter.PolygonSpatialPointFilter
setup
 
Methods inherited from class org.shapelogic.filter.PolygonPointFilter
getCollection
 
Methods inherited from class org.shapelogic.filter.BaseFilter
filter, getConstraint, getParent, setCollection, setConstraint, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointAboveFilter

public PointAboveFilter()
Method Detail

evaluate

public boolean evaluate(java.lang.Object obj)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate
Specified by:
evaluate in class BaseFilter<Polygon,IPoint2D>

coordinateChoser

protected double coordinateChoser(IPoint2D diagonalVector)
Specified by:
coordinateChoser in class PolygonSpatialPointFilter


Copyright © 2009. All Rights Reserved.