public interface SearchService extends SingletonService<SearchActionFactory>, SciJavaService
Modifier and Type | Method and Description |
---|---|
default List<SearchAction> |
actions(SearchResult result)
Gets the suite of available actions for the given search result.
|
boolean |
enabled(Searcher s)
Gets whether the given searcher plugin is currently enabled.
|
default Class<SearchActionFactory> |
getPluginType()
Gets the type of plugins managed by this service.
|
default SearchOperation |
search(SearchListener... callbacks)
Begins an asynchronous and multi-threaded search operation.
|
void |
setEnabled(Searcher s,
boolean enabled)
Enables or disables the given searcher plugin.
|
create, filterInstances, getInstance, getInstances, initialize, objectService
getPlugins, getPluginService, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
default SearchOperation search(SearchListener... callbacks)
callbacks
- The objects to be notified as search results are found.
Callbacks will be made on the thread doing the search,
not the dispatch thread; it is the responsibility of
listeners to queue to the dispatch thread accordingly as needed
(e.g., to update UI elements).default List<SearchAction> actions(SearchResult result)
result
- The search result for which available actions are desired.boolean enabled(Searcher s)
void setEnabled(Searcher s, boolean enabled)
default Class<SearchActionFactory> getPluginType()
PTService
getPluginType
in interface PTService<SearchActionFactory>
Copyright © 2015–2022 SciJava. All rights reserved.