org.grinvin.conjecture.filter

Class AbstractGraphFilter

Implemented Interfaces:
GraphFilter
Known Direct Subclasses:
BooleanValueGraphFilter, CompoundGraphFilter

public abstract class AbstractGraphFilter
extends java.lang.Object
implements GraphFilter

Basic implementation of GraphFilter that offers the possibility for negation.

Constructor Summary

AbstractGraphFilter()
Creates a new instance of AbstractGraphFilter
AbstractGraphFilter(boolean negate)

Method Summary

boolean
accepts(GraphBundleView gb)
abstract boolean
accepts_impl(GraphBundleView gb)
void
addGraphFilterListener(GraphFilterListener listener)
void
fireFilterChanged()
String
getDescription()
abstract String
getDescription_impl()
boolean
isNegated()
void
negate(boolean aFlag)
void
removeGraphFilterListener(GraphFilterListener listener)

Constructor Details

AbstractGraphFilter

public AbstractGraphFilter()
Creates a new instance of AbstractGraphFilter

AbstractGraphFilter

public AbstractGraphFilter(boolean negate)

Method Details

accepts

public boolean accepts(GraphBundleView gb)
Specified by:
accepts in interface GraphFilter

accepts_impl

public abstract boolean accepts_impl(GraphBundleView gb)

addGraphFilterListener

public void addGraphFilterListener(GraphFilterListener listener)
Specified by:
addGraphFilterListener in interface GraphFilter

fireFilterChanged

public void fireFilterChanged()

getDescription

public String getDescription()
Specified by:
getDescription in interface GraphFilter

getDescription_impl

public abstract String getDescription_impl()

isNegated

public boolean isNegated()
Specified by:
isNegated in interface GraphFilter

negate

public void negate(boolean aFlag)
Specified by:
negate in interface GraphFilter

removeGraphFilterListener

public void removeGraphFilterListener(GraphFilterListener listener)
Specified by:
removeGraphFilterListener in interface GraphFilter