org.shapelogic.filter
Class PointLeftOfFilter

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.PointLeftOfFilter
All Implemented Interfaces:
org.apache.commons.collections.Predicate, IFilter<Polygon,IPoint2D>

public class PointLeftOfFilter
extends PolygonSpatialPointFilter

Filter points left of given part of the bounding box of a polygon The constraint should be between 0 and 1. 0 is the left point 1 is the right 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
PointLeftOfFilter()
           
 
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

PointLeftOfFilter

public PointLeftOfFilter()
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.