sub_arctic.lib
Class rect_bound_overlap

java.lang.Object
  |
  +--sub_arctic.lib.rect_bound_overlap

public class rect_bound_overlap
extends java.lang.Object
implements interactor_pred

An interface_pred predicate class that tests whether an object's bound overlaps a given Rectangle (expressed in the object's coordinates). The "parameters" object passed to the test() method must be a Rectangle. This is designed for use with the traversal mechanism of base_interactor.traverse_and_collect().

See Also:
base_interactor.traverse_and_collect(int, int, sub_arctic.lib.interactor_pred, sub_arctic.lib.interactor_pred, sub_arctic.lib.traversal_xform, java.lang.Object, sub_arctic.input.pick_collector)

Constructor Summary
rect_bound_overlap()
           
 
Method Summary
 boolean test(interactor obj, java.lang.Object parameters)
          Perform the predicate test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

rect_bound_overlap

public rect_bound_overlap()
Method Detail

test

public boolean test(interactor obj,
                    java.lang.Object parameters)
Perform the predicate test.
Specified by:
test in interface interactor_pred
Parameters:
obj - the interactor the predicate is testing.
parameters - a Rectangle object containing the rectangle we are testing against in the local coordinates of the object.
Returns:
predicate result.