edu.umd.cs.piccolo.util
Interface PNodeFilter

All Known Implementing Classes:
PSelectionEventHandler.BoundsFilter

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
 boolean accept(PNode aNode)
          Return true if the filter should accept the given node.
 boolean acceptChildrenOf(PNode aNode)
          Return true if the filter should test the children of the given node for acceptance.
 

Method Detail

accept

boolean accept(PNode aNode)
Return true if the filter should accept the given node.

Parameters:
aNode - node under test
Returns:
true if node should be accepted

acceptChildrenOf

boolean acceptChildrenOf(PNode aNode)
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


Copyright © 1995-2010 Piccolo2D. All Rights Reserved.