Package edu.umd.cs.piccolo.util
Interface PNodeFilter
public interface PNodeFilter
PNodeFilter is a interface that filters (accepts or rejects) nodes.
Its main use is to retrieve all the children of a node the meet some criteria
by using the method PNode.getAllNodes(collection, filter);
- Version:
- 1.0
- Author:
- Jesse Grosjean
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if the filter should accept the given node.booleanacceptChildrenOf(PNode aNode) Return true if the filter should test the children of the given node for acceptance.
-
Method Details
-
accept
Return true if the filter should accept the given node.- Parameters:
aNode- node under test- Returns:
- true if node should be accepted
-
acceptChildrenOf
Return true if the filter should test the children of the given node for acceptance.- Parameters:
aNode- parent being tested- Returns:
- true if children should be tested for acceptance
-