public class NamedColumnProjection extends AbstractColumnProjection
Constructor and Description |
---|
NamedColumnProjection(java.lang.String[] names,
boolean include)
Create a new NamedColumnProjection.
|
NamedColumnProjection(java.lang.String name,
boolean include)
Create a new NamedColumnProjection.
|
Modifier and Type | Method and Description |
---|---|
void |
addName(java.lang.String name)
Add a column name to this projection.
|
boolean |
include(Column col,
java.lang.String name)
Determine if the given Column should be included.
|
boolean |
removeName(java.lang.String name)
Remove a column name from this projection
|
addProjectionListener, fireUpdate, removeProjectionListener
public NamedColumnProjection(java.lang.String name, boolean include)
name
- the name to filter oninclude
- true to include the given names (and exclude all others),
false to exclude them (and include all others)public NamedColumnProjection(java.lang.String[] names, boolean include)
names
- the names to filter oninclude
- true to include the given names (and exclude all others),
false to exclude them (and include all others)public void addName(java.lang.String name)
name
- the column name to addpublic boolean removeName(java.lang.String name)
name
- the column name to removepublic boolean include(Column col, java.lang.String name)
ColumnProjection
col
- the Column to testname
- the name of the columnColumnProjection.include(prefuse.data.column.Column, java.lang.String)
Copyright ? 2013 Regents of the University of California