edu.uci.ics.jung.graph.filters
Class VertexPredicateFilter

java.lang.Object
  extended byedu.uci.ics.jung.graph.filters.GeneralVertexAcceptFilter
      extended byedu.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

Constructor Summary
VertexPredicateFilter(org.apache.commons.collections.Predicate p)
           
VertexPredicateFilter(VertexPredicate vp)
           
 
Method Summary
 boolean acceptVertex(Vertex vert)
           
 java.lang.String getName()
          Gets a name that describes this filter.
 
Methods inherited from class edu.uci.ics.jung.graph.filters.GeneralVertexAcceptFilter
filter, filter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VertexPredicateFilter

public VertexPredicateFilter(VertexPredicate vp)

VertexPredicateFilter

public VertexPredicateFilter(org.apache.commons.collections.Predicate p)
Method Detail

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()