Package org.cytoscape.filter.model
Interface CompositeFilter<C,E>
- Type Parameters:
C- The context type of the elements thisFilteroperates on.E- The element type thisFilteroperates on.
- All Superinterfaces:
Filter<C,E>,Transformer<C,E>
A
Filter that computes the set-union or set-intersection of the
Filters it contains. The ordering of the child filters does not
affect the final output of this filter, but may impact performance.Module: filter-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>filter-api</artifactId>
</dependency>Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDetermines how aCompositeFiltercombines the results of its containedFilters. -
Method Summary
Modifier and TypeMethodDescriptionvoidAppendsfilterto the list of children.get(int index)Returns theFilterat the given index.intReturns the number of direct childrenFilters contained by thisCompositeFilter.getType()Returns the type of combining semantics used by this filter.intReturns the index offilterwithin the list of children, or-1iffilteris not in that list.voidInsertsfilterat the given index within the list of children.remove(int index)Removes theFilterat the given index from the list of children and returns in.voidsetType(CompositeFilter.Type type)Sets the type of combining semantics used by this filter.Methods inherited from interface org.cytoscape.filter.model.Filter
accepts, isAlwaysFalseMethods inherited from interface org.cytoscape.filter.model.Transformer
addListener, getContextType, getElementType, getId, getName, removeListener
-
Method Details
-
append
Appendsfilterto the list of children.- Parameters:
filter- theFilterto add.
-
insert
Insertsfilterat the given index within the list of children.- Parameters:
index- the index where the filter should be inserted.filter- theFilterto add.
-
get
Returns theFilterat the given index.- Parameters:
index- the index of theFilterto get.- Returns:
- the
Filterat the given index.
-
remove
Removes theFilterat the given index from the list of children and returns in.- Parameters:
index- the index of theFilterto get.- Returns:
- the
Filterat the given index.
-
indexOf
Returns the index offilterwithin the list of children, or-1iffilteris not in that list.- Parameters:
filter- thefilterwhose index should be looked up.- Returns:
- the index of
filteror-1if it cannot be found.
-
getLength
int getLength()Returns the number of direct childrenFilters contained by thisCompositeFilter.- Returns:
- the number of direct children.
-
getType
CompositeFilter.Type getType()Returns the type of combining semantics used by this filter.- Returns:
- the type of combining semantics used by this filter.
-
setType
Sets the type of combining semantics used by this filter.- Parameters:
type- the combining semantics to use.
-