public class NamedSBaseReferenceFilter extends NameFilter
NameFilter that allows users to search for a
AbstractReferenceGlyph that refers to a NamedSBase with the
given identifier attribute. The boolean switch filterForReference that
can be changed using the setFilterForReference(boolean) method decides
whether this NamedSBaseReferenceFilter should use the given identifier
to filter for the actual AbstractReferenceGlyph or for the referenced
NamedSBase.| Constructor and Description |
|---|
NamedSBaseReferenceFilter()
Creates a new
SpeciesReferenceFilter with undefined properties. |
NamedSBaseReferenceFilter(NamedSBase glyph)
Creates a new
NamedSBaseReferenceFilter that only accepts instances of
AbstractReferenceGlyph pointing to the id of the given NamedSBase. |
NamedSBaseReferenceFilter(String id) |
NamedSBaseReferenceFilter(String id,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Object o) |
boolean |
isFilterForSpecies() |
void |
setFilterForReference(boolean filterForSpecies) |
getId, getName, setId, setNamepublic NamedSBaseReferenceFilter()
SpeciesReferenceFilter with undefined properties.public NamedSBaseReferenceFilter(NamedSBase glyph)
NamedSBaseReferenceFilter that only accepts instances of
AbstractReferenceGlyph pointing to the id of the given NamedSBase.glyph - the NamedSBase of interest.public NamedSBaseReferenceFilter(String id)
id - the identifier of a NamedSBase or AbstractReferenceGlyph we
are interested in. Whether we accept the id of a NamedSBase or
a AbstractReferenceGlyph depends on the flag that can be defined
with setFilterForReference(boolean).setFilterForReference(boolean)public NamedSBaseReferenceFilter(String id, String name)
id - the identifier of a NamedSBase or AbstractReferenceGlyph we
are interested in. Whether we accept the id of a NamedSBase or
a AbstractReferenceGlyph depends on the flag that can be defined
with setFilterForReference(boolean).name - the name of the element we are interested in.setFilterForReference(boolean)public boolean accepts(Object o)
accepts in interface Filteraccepts in class NameFilterpublic boolean isFilterForSpecies()
public void setFilterForReference(boolean filterForSpecies)
filterForSpecies - the filterForSpecies to setCopyright © 2009–2016. All rights reserved.