gishur.graph.core
Class AdjacentFilter

java.lang.Object
  |
  +--gishur.core.Filter
        |
        +--gishur.graph.core.AdjacentFilter

public class AdjacentFilter
extends Filter

A Filter, that may be used to filter adjacent GraphElements.

Version:
1.0
Author:
Thomas Wolf

Constructor Summary
AdjacentFilter(GraphElement e)
          Constructs an AdjacentFilter with the adjacent element given.
 
Method Summary
 boolean check(java.lang.Object obj)
          Performs the filtering operation.
 
Methods inherited from class gishur.core.Filter
addFilter, nextFilter, removeFilter, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdjacentFilter

public AdjacentFilter(GraphElement e)
Constructs an AdjacentFilter with the adjacent element given.
Parameters:
e - the element to test adjacence with
Method Detail

check

public boolean check(java.lang.Object obj)
Performs the filtering operation. If obj is a GraphElement, its adjacence to the base GraphElement will be tested.
Overrides:
check in class Filter
Parameters:
obj - the object to check
Returns:
true if obj is an adjacent GraphElement to the base GraphElement