|
Eclipse Draw2d 3.8.0.201206011245 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.ExclusionSearch
public class ExclusionSearch
A TreeSearch
that excludes figures contained in a
Collection
.
Constructor Summary | |
---|---|
ExclusionSearch(java.util.Collection collection)
Constructs an Exclusion search using the given collection. |
Method Summary | |
---|---|
boolean |
accept(IFigure figure)
Returns true if the given figure is accepted by the search. |
boolean |
prune(IFigure f)
Returns true if the figure is a member of the Collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExclusionSearch(java.util.Collection collection)
collection
- the exclusion setMethod Detail |
---|
public boolean accept(IFigure figure)
TreeSearch
true
if the given figure is accepted by the search.
accept
in interface TreeSearch
figure
- the current figure in the traversal
true
if the figure is acceptedTreeSearch.accept(IFigure)
public boolean prune(IFigure f)
true
if the figure is a member of the Collection.
prune
in interface TreeSearch
f
- the current figure in the traversal
true
if the subgraph should be prunedTreeSearch.prune(IFigure)
|
Eclipse Draw2d 3.8.0.201206011245 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |