Package org.eclipse.draw2d
Class ExclusionSearch
java.lang.Object
org.eclipse.draw2d.ExclusionSearch
- All Implemented Interfaces:
TreeSearch
A
TreeSearch
that excludes figures contained in a
Collection
.- Since:
- 2.1
-
Constructor Summary
ConstructorsConstructorDescriptionExclusionSearch
(Collection<IFigure> collection) Constructs an Exclusion search using the given collection. -
Method Summary
-
Constructor Details
-
ExclusionSearch
Constructs an Exclusion search using the given collection.- Parameters:
collection
- the exclusion set
-
-
Method Details
-
accept
Description copied from interface:TreeSearch
Returnstrue
if the given figure is accepted by the search.- Specified by:
accept
in interfaceTreeSearch
- Parameters:
figure
- the current figure in the traversal- Returns:
true
if the figure is accepted- See Also:
-
prune
Returnstrue
if the figure is a member of the Collection.- Specified by:
prune
in interfaceTreeSearch
- Parameters:
f
- the current figure in the traversal- Returns:
true
if the subgraph should be pruned- See Also:
-