edu.umd.cs.jazz.util
Class ZFindFilterMagBounds
java.lang.Object
|
+--edu.umd.cs.jazz.util.ZFindFilterBounds
|
+--edu.umd.cs.jazz.util.ZFindFilterMagBounds
- public class ZFindFilterMagBounds
- extends ZFindFilterBounds
ZFindFilterMagBounds determines if the specified node's visual component falls within
the specified bounds in global coordinates, but only if the object is within
its visible magnification range.
|
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 |
ZFindFilterMagBounds
public ZFindFilterMagBounds(ZBounds bounds,
float mag)
- Create a new magnification bounds filter. This filter accepts nodes whose
visual component's bounds intersect the specified bounds, but only if the object
is within its visible magnification range.
- Parameters:
bounds - The bounds in global coordinates to search within.
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.
- Parameters:
node - The node that is to be examined by this filter- Returns:
- True if the node is accepted by the filter
- Overrides:
- accept in class ZFindFilterBounds
findChildren
public boolean findChildren(ZNode node)
- This method determines if the children of the specified node should be
searched.
- 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.
- Overrides:
- findChildren in class ZFindFilterBounds