edu.uci.ics.jung.graph.filters
Class VertexPredicateFilter
java.lang.Object
edu.uci.ics.jung.graph.filters.GeneralVertexAcceptFilter
edu.uci.ics.jung.graph.filters.VertexPredicateFilter
- All Implemented Interfaces:
- Filter
- public class VertexPredicateFilter
- extends GeneralVertexAcceptFilter
This is a simple Vertex filter that accepts the vertices which its
Predicate accepts.
- Author:
- danyelf
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VertexPredicateFilter
public VertexPredicateFilter(VertexPredicate vp)
VertexPredicateFilter
public VertexPredicateFilter(org.apache.commons.collections.Predicate p)
acceptVertex
public boolean acceptVertex(Vertex vert)
- Specified by:
acceptVertex
in class GeneralVertexAcceptFilter
- See Also:
GeneralVertexAcceptFilter.acceptVertex(edu.uci.ics.jung.graph.Vertex)
getName
public java.lang.String getName()
- Description copied from interface:
Filter
- Gets a name that describes this filter. It is used by the auditing
methods in
GraphAssemblyRecord
- Returns:
- A string that describes the filter.
- See Also:
Filter.getName()