edu.uci.ics.jung.graph.filters
Class EdgePredicateFilter
java.lang.Object
edu.uci.ics.jung.graph.filters.GeneralEdgeAcceptFilter
edu.uci.ics.jung.graph.filters.EdgePredicateFilter
- All Implemented Interfaces:
- Filter
- public class EdgePredicateFilter
- extends GeneralEdgeAcceptFilter
This is a simple Edge filter that accepts the edges which its
Predicate accepts.
- Author:
- danyelf
Method Summary |
boolean |
acceptEdge(Edge e)
Determines whether the current edge should be accepted
into the Graph. |
java.lang.String |
getName()
Gets a name that describes this filter. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EdgePredicateFilter
public EdgePredicateFilter(EdgePredicate ep)
EdgePredicateFilter
public EdgePredicateFilter(org.apache.commons.collections.Predicate p)
acceptEdge
public boolean acceptEdge(Edge e)
- Description copied from class:
GeneralEdgeAcceptFilter
- Determines whether the current edge should be accepted
into the Graph. User should override this method.
- Specified by:
acceptEdge
in class GeneralEdgeAcceptFilter
- Parameters:
e
- the input edge that is being evaluated.
- Returns:
- whether the edge should be accepted or not
- 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()