Package org.gephi.filters.api
Interface FilterModel
-
public interface FilterModelThe Filter Model hosts the queries defined in the system and the currently active query. It also stroe the selection or filtering flag. The filtering mode display the subgraph made from filters, whereas the selection mode highlight elements on the graph.- Author:
- Mathieu Bastian
- See Also:
FilterController
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChangeListener(ChangeListener listener)QuerygetCurrentQuery()Returns the query currently active ornullif none is active.FilterLibrarygetLibrary()Returns theFilterLibrary, whereFilterBuilderbelongs to.Query[]getQueries()Returns all queries in the model, represented by their root query.WorkspacegetWorkspace()booleanisAutoRefresh()booleanisFiltering()Returnstrueif the system is currently in filtering mode.booleanisSelecting()Returnstrueif the system is currently in selection mode.voidremoveChangeListener(ChangeListener listener)
-
-
-
Method Detail
-
getLibrary
FilterLibrary getLibrary()
Returns theFilterLibrary, whereFilterBuilderbelongs to.- Returns:
- the filter library
-
getQueries
Query[] getQueries()
Returns all queries in the model, represented by their root query.- Returns:
- all root queries in the model
-
getCurrentQuery
Query getCurrentQuery()
Returns the query currently active ornullif none is active.- Returns:
- the current query
-
isFiltering
boolean isFiltering()
Returnstrueif the system is currently in filtering mode.- Returns:
trueif the result graph is filtered,falseif it's in selection mode
-
isSelecting
boolean isSelecting()
Returnstrueif the system is currently in selection mode.- Returns:
trueif the result is selected on the graph,falseif it's filtered
-
isAutoRefresh
boolean isAutoRefresh()
-
getWorkspace
Workspace getWorkspace()
-
addChangeListener
void addChangeListener(ChangeListener listener)
-
removeChangeListener
void removeChangeListener(ChangeListener listener)
-
-