edu.umd.cs.jazz.util
Class ZFindFilterBounds

java.lang.Object
  |
  +--edu.umd.cs.jazz.util.ZFindFilterBounds
Direct Known Subclasses:
ZFindFilterMagBounds

public class ZFindFilterBounds
extends java.lang.Object
implements ZFindFilter

ZFindFilterBounds determines if the specified node's visual component falls within the specified bounds in global coordinates.


Constructor Summary
ZFindFilterBounds(ZBounds bounds)
          Create a new bounds filter.
 
Method Summary
 boolean accept(ZNode node)
          The specified node is accepted by this filter if its visual component's bounds intersect this filter's bounds.
 boolean findChildren(ZNode node)
          This method determines if the children of the specified node should be searched.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZFindFilterBounds

public ZFindFilterBounds(ZBounds bounds)
Create a new bounds filter. This filter accepts nodes whose visual component's bounds intersect the specified bounds.
Parameters:
bounds - The bounds in global coordinates to search within.
Method Detail

accept

public boolean accept(ZNode node)
The specified node is accepted by this filter if its visual component's bounds intersect this filter's bounds.
Specified by:
accept in interface ZFindFilter
Parameters:
node - The node that is to be examined by this filter
Returns:
True if the node is accepted by the filter

findChildren

public boolean findChildren(ZNode node)
This method determines if the children of the specified node should be searched.
Specified by:
findChildren in interface ZFindFilter
Parameters:
node - The node that is to be examined by this filter
Returns:
True if this node's children should be searched, or false otherwise.