public class FilterModelImpl extends Object implements FilterModel
| Constructor and Description |
|---|
FilterModelImpl(Workspace workspace) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(ChangeListener listener) |
void |
addFirst(Query function) |
void |
addLast(Query function) |
void |
destroy() |
Query[] |
getAllQueries() |
FilterAutoRefreshor |
getAutoRefreshor() |
Query |
getCurrentQuery()
Returns the query currently active or
null if none is
active. |
org.gephi.graph.api.GraphView |
getCurrentResult() |
FilterThread |
getFilterThread() |
org.gephi.graph.api.GraphModel |
getGraphModel() |
int |
getIndex(Query function) |
FilterLibrary |
getLibrary()
Returns the
FilterLibrary, where FilterBuilder
belongs to. |
Query[] |
getQueries()
Returns all queries in the model, represented by their root query.
|
Query |
getQuery(Filter filter) |
Workspace |
getWorkspace() |
boolean |
hasQuery(Query query) |
boolean |
isAutoRefresh() |
boolean |
isFiltering()
Returns
true if the system is currently in filtering mode. |
boolean |
isSelecting()
Returns
true if the system is currently in selection mode. |
void |
remove(Query query) |
void |
removeChangeListener(ChangeListener listener) |
void |
removeSubQuery(Query query,
Query parent) |
void |
rename(Query query,
String name) |
void |
set(int index,
Query function) |
void |
setAutoRefresh(boolean autoRefresh) |
void |
setCurrentQuery(Query currentQuery) |
void |
setCurrentResult(org.gephi.graph.api.GraphView currentResult) |
void |
setFiltering(boolean filtering) |
void |
setFilterThread(FilterThread filterThread) |
void |
setSelecting(boolean selecting) |
void |
setSubQuery(Query query,
Query subQuery) |
void |
updateParameters(Query query) |
public FilterModelImpl(Workspace workspace)
public FilterLibrary getLibrary()
FilterModelFilterLibrary, where FilterBuilder
belongs to.getLibrary in interface FilterModelpublic Query[] getQueries()
FilterModelgetQueries in interface FilterModelpublic boolean hasQuery(Query query)
public void addFirst(Query function)
public void addLast(Query function)
public void set(int index,
Query function)
public void remove(Query query)
public int getIndex(Query function)
public boolean isFiltering()
FilterModeltrue if the system is currently in filtering mode.isFiltering in interface FilterModeltrue if the result graph is filtered,
false if it's in selection modepublic boolean isSelecting()
FilterModeltrue if the system is currently in selection mode.isSelecting in interface FilterModeltrue if the result is selected on the graph,
false if it's filteredpublic void setFiltering(boolean filtering)
public void setSelecting(boolean selecting)
public boolean isAutoRefresh()
isAutoRefresh in interface FilterModelpublic void setAutoRefresh(boolean autoRefresh)
public Query getCurrentQuery()
FilterModelnull if none is
active.getCurrentQuery in interface FilterModelpublic void setCurrentQuery(Query currentQuery)
public void updateParameters(Query query)
public Query[] getAllQueries()
public FilterThread getFilterThread()
public FilterAutoRefreshor getAutoRefreshor()
public void setFilterThread(FilterThread filterThread)
public void setCurrentResult(org.gephi.graph.api.GraphView currentResult)
public org.gephi.graph.api.GraphView getCurrentResult()
public org.gephi.graph.api.GraphModel getGraphModel()
public Workspace getWorkspace()
getWorkspace in interface FilterModelpublic void destroy()
public void addChangeListener(ChangeListener listener)
addChangeListener in interface FilterModelpublic void removeChangeListener(ChangeListener listener)
removeChangeListener in interface FilterModelCopyright © 2007–2017. All rights reserved.