org.tigris.gef.util
Class PredFigInRect

java.lang.Object
  extended by org.tigris.gef.util.PredFigInRect
All Implemented Interfaces:
java.io.Serializable, Predicate

public class PredFigInRect
extends java.lang.Object
implements Predicate

Predicate that returns true for Fig's that intersect the rectangle given in the constructor. Useful for making a EnumerationPredicate that finds Figs intersecting a given Rectangle.

See Also:
Serialized Form

Constructor Summary
PredFigInRect(java.awt.Rectangle r)
           
 
Method Summary
 boolean predicate(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredFigInRect

public PredFigInRect(java.awt.Rectangle r)
Method Detail

predicate

public boolean predicate(java.lang.Object o)
Specified by:
predicate in interface Predicate