infovis.column.filter
Class ComposeOrFilter

java.lang.Object
  extended by infovis.column.filter.ComposeOrFilter
All Implemented Interfaces:
ColumnFilter
Direct Known Subclasses:
ComposeExceptFilter

public class ComposeOrFilter
extends Object
implements ColumnFilter

Filter for composing Filters. Since the Filter object returns true if a column is filtered out, the composition should perform an or.

Version:
$Revision: 1.6 $
Author:
Jean-Daniel Fekete

Constructor Summary
ComposeOrFilter(ColumnFilter filter1, ColumnFilter filter2)
          Creates a new ComposeOrFilter object.
 
Method Summary
static ColumnFilter create(ColumnFilter f1, ColumnFilter f2)
          Compose two filters using an "or"
 boolean filter(Column column)
          Returns true if the Column should be filtered out.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComposeOrFilter

public ComposeOrFilter(ColumnFilter filter1,
                       ColumnFilter filter2)
Creates a new ComposeOrFilter object.

Parameters:
filter1 - first filter.
filter2 - second filter.
Method Detail

create

public static ColumnFilter create(ColumnFilter f1,
                                  ColumnFilter f2)
Compose two filters using an "or"

Parameters:
f1 - first filter or null
f2 - second filter or null
Returns:
a filter composimg f1 and f2

filter

public boolean filter(Column column)
Description copied from interface: ColumnFilter
Returns true if the Column should be filtered out.

Specified by:
filter in interface ColumnFilter
Parameters:
column - the column
Returns:
true if the Column should be filtered out.
See Also:
ColumnFilter.filter(Column)


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.