protected static final class Figure.IdentitySearch extends java.lang.Object implements TreeSearch
Modifier and Type | Field and Description |
---|---|
static TreeSearch |
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(IFigure f)
Always returns
true . |
boolean |
prune(IFigure f)
Always returns
false . |
public static final TreeSearch INSTANCE
public boolean accept(IFigure f)
true
.accept
in interface TreeSearch
f
- the current figure in the traversaltrue
if the figure is acceptedTreeSearch.accept(IFigure)
public boolean prune(IFigure f)
false
.prune
in interface TreeSearch
f
- the current figure in the traversaltrue
if the subgraph should be prunedTreeSearch.prune(IFigure)
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.