public interface DisplayManager extends EventPublisher
Modifier and Type | Method and Description |
---|---|
void |
addViewer(DataViewer viewer)
Register a DataViewer with the Display Manager.
|
ChannelDisplaySettings.Builder |
channelDisplaySettingsBuilder()
Generates a blank channelDisplaySettings Builder with all null values.
|
boolean |
closeAllDisplayWindows(boolean shouldPromptToSave)
Close all open image windows.
|
boolean |
closeDisplaysFor(DataProvider provider)
Given a DataProvider, close any open DisplayWindows for that DataProvider.
|
ComponentDisplaySettings.Builder |
componentDisplaySettingsBuilder()
Generates a blank componentSettings Builder with all null values.
|
DisplayWindow |
createDisplay(DataProvider dataProvider)
Create a new DisplayWindow for the specified DataProvider and return it.
|
DisplayWindow |
createDisplay(DataProvider dataProvider,
DisplayWindowControlsFactory factory)
Create a new DisplayWindow for the specified DataProvider and return it.
|
ImageExporter |
createExporter()
Provide an ImagceExporter for generating image sequences.
|
boolean |
createFirstInspector()
Deprecated.
|
void |
createInspectorForDataViewer(DataViewer display)
Create a new Inspector window that shows information for the specified
DataViewer, or for the topmost window if the DataViewer is null.
|
DisplaySettings.Builder |
displaySettingsBuilder()
Generate a "blank" DisplaySettings.Builder with all null values.
|
DataViewer |
getActiveDataViewer()
Returns the currently active data viewer.
|
java.util.List<DataViewer> |
getAllDataViewers()
Return all DataViewers that Micro-Manager knows about.
|
java.util.List<DisplayWindow> |
getAllImageWindows()
Return all active DisplayWindows.
|
DisplaySettings.ContrastSettings |
getContrastSettings(java.lang.Integer[] contrastMins,
java.lang.Integer[] contrastMaxes,
java.lang.Double[] gammas,
java.lang.Boolean isVisible)
Deprecated.
|
DisplaySettings.ContrastSettings |
getContrastSettings(java.lang.Integer contrastMin,
java.lang.Integer contrastMax,
java.lang.Double gamma,
java.lang.Boolean isVisible)
Deprecated.
Use
DisplaySettings.getAllChannelSettings() instead. |
DisplayWindow |
getCurrentWindow()
Deprecated.
Use
getActiveDataViewer() instead |
java.util.List<DisplayWindow> |
getDisplays(DataProvider dataProvider)
Return all associated DisplayWindows for the DataProvider.
|
java.util.List<DisplayWindow> |
getDisplays(Datastore store)
Deprecated.
replaced by
getDisplays(DataProvider) |
DisplaySettings.Builder |
getDisplaySettingsBuilder()
Deprecated.
- use displaySettingsBuilder() instead
|
default boolean |
getIsManaged(DataProvider provider)
Deprecated.
use
isManaged(DataProvider) instead |
java.util.List<DataProvider> |
getManagedDataProviders()
Return a list of all DataProviders that MicroManager is managing (see the
manage() method for more information).
|
PropertyMap.Builder |
getPropertyMapBuilder()
Deprecated.
Use
PropertyMaps.builder() instead |
DisplaySettings |
getStandardDisplaySettings()
Retrieve a DisplaySettings holding the values the user has saved as their
default values.
|
boolean |
isManaged(DataProvider provider)
Returns true if the DataProvider is being managed by MicroManager.
|
java.util.List<DisplayWindow> |
loadDisplays(Datastore store)
Load saved DisplayWindows for the given Datastore, which is assumed to
represent data that is saved on disk.
|
void |
manage(DataProvider store)
Request that MicroManager manage the specified DataProvider for you.
|
void |
promptToCloseWindows()
Show a dialog to the user giving them a prompt to close all open windows,
and allowing them to decide whether or not to be prompted to save each
unsaved open window (or simply cancel the entire action).
|
boolean |
promptToSave(Datastore store,
DisplayWindow display)
Display a prompt for the user to save their data.
|
void |
removeViewer(DataViewer viewer)
Cause Micro-Manager to stop tracking a DataViewer that was previously
added with addViewer().
|
Datastore |
show(Image image)
Create a new Datastore with an associated DisplayWindow that will
display the provided Image.
|
registerForEvents, unregisterForEvents
Datastore show(Image image)
image
- The Image to display.DisplaySettings getStandardDisplaySettings()
@Deprecated DisplaySettings.Builder getDisplaySettingsBuilder()
DisplaySettings.Builder displaySettingsBuilder()
ChannelDisplaySettings.Builder channelDisplaySettingsBuilder()
ComponentDisplaySettings.Builder componentDisplaySettingsBuilder()
@Deprecated DisplaySettings.ContrastSettings getContrastSettings(java.lang.Integer contrastMin, java.lang.Integer contrastMax, java.lang.Double gamma, java.lang.Boolean isVisible)
DisplaySettings.getAllChannelSettings()
instead.contrastMin
- The highest pixel intensity corresponding to black.contrastMax
- The lowest pixel intensity corresponding to full
intensity.gamma
- The gamma curve parameter.isVisible
- Whether or not this channel is visible in the display
when the display is showing multiple channels simultaneously.@Deprecated DisplaySettings.ContrastSettings getContrastSettings(java.lang.Integer[] contrastMins, java.lang.Integer[] contrastMaxes, java.lang.Double[] gammas, java.lang.Boolean isVisible)
contrastMins
- Array with the highest pixel intensity corresponding
to black, for each component.contrastMaxes
- Array with the lowest pixel intensity corresponding to full
intensity, for each component.gammas
- Array with the gamma curve parameters. NOTE: for now this parameter is
not used to control display of multi-component images.isVisible
- Whether or not this channel is visible in the display
when the display is showing multiple channels simultaneously.@Deprecated PropertyMap.Builder getPropertyMapBuilder()
PropertyMaps.builder()
insteadDisplayWindow createDisplay(DataProvider dataProvider)
dataProvider
- The DataProvider whose data should be displayed.DisplayWindow createDisplay(DataProvider dataProvider, DisplayWindowControlsFactory factory)
dataProvider
- The DataProvider whose data should be displayed.factory
- A ControlsFactory used to create custom controls for
the DisplayWindow. May be null.void createInspectorForDataViewer(DataViewer display)
display
- The DataViewer the inspector should show information on,
or null to show information on the topmost window.@Deprecated boolean createFirstInspector()
void addViewer(DataViewer viewer)
viewer
- The new DataViewer that should be tracked.void removeViewer(DataViewer viewer)
viewer
- The DataViewer that should no longer be tracked.java.lang.IllegalArgumentException
- if the viewer is not currently tracked.java.util.List<DisplayWindow> loadDisplays(Datastore store) throws java.io.IOException
store
- The Datastore to load display settings for.java.io.IOException
- Most likely indicating that a file could not be read.void manage(DataProvider store)
store
- The DataProvider to manage.java.util.List<DataProvider> getManagedDataProviders()
boolean isManaged(DataProvider provider)
provider
- The DataProvider whose management status is under question.@Deprecated default boolean getIsManaged(DataProvider provider)
isManaged(DataProvider)
insteadprovider
- The DataProvider whose management status is under question.@Deprecated java.util.List<DisplayWindow> getDisplays(Datastore store)
getDisplays(DataProvider)
store
- Datastore of interest to the callerjava.util.List<DisplayWindow> getDisplays(DataProvider dataProvider)
dataProvider
- DataProvider of interest to the caller@Deprecated DisplayWindow getCurrentWindow()
getActiveDataViewer()
insteadDisplayWindow
.DisplayWindow
, or null.DataViewer getActiveDataViewer()
java.util.List<DisplayWindow> getAllImageWindows()
java.util.List<DataViewer> getAllDataViewers()
boolean promptToSave(Datastore store, DisplayWindow display) throws java.io.IOException
store
- The Datastore to save.display
- The DisplayWindow over which to show the prompt.java.io.IOException
- Can be thrown when file IO causes an exception.ImageExporter createExporter()
boolean closeDisplaysFor(DataProvider provider)
provider
- DataProvider for which displays should be closedvoid promptToCloseWindows()
boolean closeAllDisplayWindows(boolean shouldPromptToSave)
shouldPromptToSave
- If true, then any open windows for Datastores
that have not been saved will show a prompt to save, and if the
user chooses not to save a file, then the process of closing
windows will be halted. If false, then all windows will be closed
regardless of whether or not the data they show has been saved,
with no prompting of the user whatsoever. Note that the
corresponding File menu option to close all open windows does
prompt the user to ensure they are absolutely certain they want to
close all open windows without prompts to save; this API call does
not have that prompt.