edu.umd.cs.jazz.util
Class ZBoundsFindFilter
java.lang.Object
|
+--edu.umd.cs.jazz.util.ZBoundsFindFilter
- All Implemented Interfaces:
- java.io.Serializable, ZFindFilter
- Direct Known Subclasses:
- ZMagBoundsFindFilter
- public class ZBoundsFindFilter
- extends java.lang.Object
- implements ZFindFilter, java.io.Serializable
ZBoundsFindFilter is a filter that accepts visual and terminal
nodes that overlap the specified bounds in global coordinates.
Visual nodes are those node types that have visual components, and
are not editors of another node (i.e., do not have 'hasOneChild' set).
Terminal nodes are leaf nodes and group
nodes that do not "childrenFindable".
- See Also:
- Serialized Form
|
Method Summary |
boolean |
accept(ZNode node)
Determine if the specified node is accepted by this filter. |
boolean |
childrenFindable(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 |
ZBoundsFindFilter
public ZBoundsFindFilter(ZBounds bounds)
- Create a new bounds filter.
- Parameters:
bounds - The bounds in global coordinates to search within.
accept
public boolean accept(ZNode node)
- Determine if the specified node is accepted by this filter.
- 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
childrenFindable
public boolean childrenFindable(ZNode node)
- This method determines if the children of the specified node should be
searched.
- Specified by:
- childrenFindable 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.