public interface DisplayService extends SciJavaService
Display
s.Modifier and Type | Method and Description |
---|---|
Display<?> |
createDisplay(Object o)
Creates a display for the given object.
|
Display<?> |
createDisplay(String name,
Object o)
Creates a display for the given object.
|
Display<?> |
getActiveDisplay()
Gets the currently active display (of any Display type).
|
<D extends Display<?>> |
getActiveDisplay(Class<D> displayClass)
Gets the most recently active display (of the specified Display type).
|
Display<?> |
getDisplay(String name)
Gets a display by its name.
|
<D extends Display<?>> |
getDisplayPlugin(Class<D> pluginClass)
Gets the display plugin of the given class, or null if none.
|
PluginInfo<Display<?>> |
getDisplayPlugin(String className)
Gets the display plugin of the given class name, or null if none.
|
List<PluginInfo<Display<?>>> |
getDisplayPlugins()
Gets the list of known display plugins.
|
<DT extends Display<?>> |
getDisplayPluginsOfType(Class<DT> type)
Gets the list of display plugins of the given type (e.g.,
ImageDisplay.class ). |
List<Display<?>> |
getDisplays()
Gets a list of all available displays.
|
List<Display<?>> |
getDisplays(Object o)
Gets a list of displays currently visualizing the given object.
|
<DT extends Display<?>> |
getDisplaysOfType(Class<DT> type)
Gets a list of all available displays of the given type (e.g.,
ImageDisplay.class ). |
EventService |
getEventService() |
ObjectService |
getObjectService() |
PluginService |
getPluginService() |
boolean |
isUniqueName(String name)
Checks whether the given name is already taken by an existing display.
|
void |
setActiveDisplay(Display<?> display)
Set the active display.
|
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
EventService getEventService()
ObjectService getObjectService()
PluginService getPluginService()
Display<?> getActiveDisplay()
<D extends Display<?>> D getActiveDisplay(Class<D> displayClass)
void setActiveDisplay(Display<?> display)
display
- List<PluginInfo<Display<?>>> getDisplayPlugins()
<D extends Display<?>> PluginInfo<Display<?>> getDisplayPlugin(Class<D> pluginClass)
PluginInfo<Display<?>> getDisplayPlugin(String className)
ClassCastException
- if the plugin found is not a display plugin.<DT extends Display<?>> List<PluginInfo<DT>> getDisplayPluginsOfType(Class<DT> type)
ImageDisplay.class
).<DT extends Display<?>> List<DT> getDisplaysOfType(Class<DT> type)
ImageDisplay.class
).List<Display<?>> getDisplays(Object o)
boolean isUniqueName(String name)
name
- The name to check.Display<?> createDisplay(Object o)
o
- The object for which a display should be created. The object is
then added to the display.Display<?>
containing the given object. The
Display is typed with ? rather than T matching the Object because
it is possible for the Display to be a collection of some other
sort of object than the one being added. For example, ImageDisplay
is a Display<DataView>
with the DataView wrapping a
Dataset, yet the ImageDisplay supports adding Datasets directly,
taking care of wrapping them in a DataView as needed.Display<?> createDisplay(String name, Object o)
name
- The name to be assigned to the display.o
- The object for which a display should be created. The object is
then added to the display.Display<?>
containing the given object. The
Display is typed with ? rather than T matching the Object because
it is possible for the Display to be a collection of some other
sort of object than the one being added. For example, ImageDisplay
is a Display<DataView>
with the DataView wrapping a
Dataset, yet the ImageDisplay supports adding Datasets directly,
taking care of wrapping them in a DataView as needed.Copyright © 2009–2015 SciJava. All rights reserved.