C - The context type of the elements this Filter operates on.E - The element type this Filter operates on.public interface CompositeFilter<C,E> extends Filter<C,E>
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>| Modifier and Type | Interface and Description |
|---|---|
static class |
CompositeFilter.Type
Determines how a
CompositeFilter combines the results of its
contained Filters. |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Filter<C,E> filter)
Appends
filter to the list of children. |
Filter<C,E> |
get(int index)
Returns the
Filter at the given index. |
int |
getLength()
Returns the number of direct children
Filters contained by
this CompositeFilter. |
CompositeFilter.Type |
getType()
Returns the type of combining semantics used by this filter.
|
int |
indexOf(Filter<C,E> filter)
Returns the index of
filter within the list of children,
or -1 if filter is not in that list. |
void |
insert(int index,
Filter<C,E> filter)
Inserts
filter at the given index within the list of children. |
Filter<C,E> |
remove(int index)
Removes the
Filter at the given index from the list of children
and returns in. |
void |
setType(CompositeFilter.Type type)
Sets the type of combining semantics used by this filter.
|
addListener, getContextType, getElementType, getId, getName, removeListenervoid append(Filter<C,E> filter)
filter to the list of children.filter - the Filter to add.void insert(int index,
Filter<C,E> filter)
filter at the given index within the list of children.index - the index where the filter should be inserted.filter - the Filter to add.Filter<C,E> get(int index)
Filter at the given index.index - the index of the Filter to get.Filter at the given index.Filter<C,E> remove(int index)
Filter at the given index from the list of children
and returns in.index - the index of the Filter to get.Filter at the given index.int indexOf(Filter<C,E> filter)
filter within the list of children,
or -1 if filter is not in that list.filter - the filter whose index should be looked up.filter or -1 if it cannot be found.int getLength()
Filters contained by
this CompositeFilter.CompositeFilter.Type getType()
void setType(CompositeFilter.Type type)
type - the combining semantics to use.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.