edu.umd.cs.piccolox.event
Class PSelectionEventHandler.BoundsFilter

java.lang.Object
  extended by edu.umd.cs.piccolox.event.PSelectionEventHandler.BoundsFilter
All Implemented Interfaces:
PNodeFilter
Enclosing class:
PSelectionEventHandler

protected class PSelectionEventHandler.BoundsFilter
extends java.lang.Object
implements PNodeFilter

Class used to filter nodes that intersect with the marquee's bounds.


Constructor Summary
protected PSelectionEventHandler.BoundsFilter(PBounds bounds)
          Constructs a BoundsFilter for the given bounds.
 
Method Summary
 boolean accept(PNode node)
          Returns true if the node is an acceptable selection.
 boolean acceptChildrenOf(PNode node)
          Returns whether this filter should accept all children of a node.
 boolean isCameraLayer(PNode node)
          Tests a node to see if it's a layer that has an attached camera.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSelectionEventHandler.BoundsFilter

protected PSelectionEventHandler.BoundsFilter(PBounds bounds)
Constructs a BoundsFilter for the given bounds.

Parameters:
bounds - bounds to be used when testing nodes for intersection
Method Detail

accept

public boolean accept(PNode node)
Returns true if the node is an acceptable selection.

Specified by:
accept in interface PNodeFilter
Parameters:
node - node being tested
Returns:
true if node is an acceptable selection

acceptChildrenOf

public boolean acceptChildrenOf(PNode node)
Returns whether this filter should accept all children of a node.

Specified by:
acceptChildrenOf in interface PNodeFilter
Parameters:
node - node being tested
Returns:
true if selection should accept children children of the node

isCameraLayer

public boolean isCameraLayer(PNode node)
Tests a node to see if it's a layer that has an attached camera.

Parameters:
node - node being tested
Returns:
true if node is a layer with a camera attached


Copyright © 1995-2011 Piccolo2D. All Rights Reserved.