WindowManager¶
- public class WindowManager¶
Main GUI class for the Mastodon Mamut application.
It controls the creation of new views, and maintain a list of currently opened views. It has a
getProjectManager()
instance that can be used to open or create Mastodon projects. It has also the main app-model for the session.- Author:
Tobias Pietzsch, Jean-Yves Tinevez
Methods¶
closeAllWindows¶
- public void closeAllWindows()¶
Close all opened views and dialogs.
computeFeatures¶
- public void computeFeatures()¶
Displays the feature computation dialog.
createBigDataViewer¶
- public MamutViewBdv createBigDataViewer()¶
Creates and displays a new BDV view, with default display settings.
createBigDataViewer¶
- public MamutViewBdv createBigDataViewer(Map<String, Object> guiState)¶
Creates and displays a new BDV view, using a map to specify the display settings.
The display settings are specified as a map of strings to objects. The accepted key and value types are:
'FramePosition'
→ anint[]
array of 4 elements: x, y, width and height.'LockGroupId'
→ an integer that specifies the lock group id.'SettingsPanelVisible'
→ a boolean that specifies whether the settings panel is visible on this view.'BdvState'
→ a XML Element that specifies the BDV window state. SeeViewerPanel.stateToXml()
andViewerPanel.stateFromXml(org.jdom2.Element)
for more information.'BdvTransform'
→ anAffineTransform3D
that specifies the view point.'NoColoring'
→ a boolean; iftrue
, the feature or tag coloring will be ignored.'TagSet'
→ a string specifying the name of the tag-set to use for coloring. If notnull
, the coloring will be done using the tag-set.'FeatureColorMode'
→ a String specifying the name of the feature color mode to use for coloring. If notnull
, the coloring will be done using the feature color mode.'ColorbarVisible'
→ a boolean specifying whether the colorbar is visible for tag-set and feature-based coloring.'ColorbarPosition'
→ aPosition
specifying the position of the colorbar.
- Parameters:
guiState – the map of settings.
createBranchBigDataViewer¶
- public MamutBranchViewBdv createBranchBigDataViewer()¶
Creates and displays a new Branch-BDV view, with default display settings. The branch version of this view displays the branch graph.
createBranchBigDataViewer¶
createBranchTrackScheme¶
- public MamutBranchViewTrackScheme createBranchTrackScheme()¶
Creates and displays a new Branch-TrackScheme view, with default display settings. The branch version of this view displays the branch graph.
createBranchTrackScheme¶
createGrapher¶
- public MamutViewGrapher createGrapher()¶
Creates and displays a new Grapher view, with default display settings.
createGrapher¶
- public MamutViewGrapher createGrapher(Map<String, Object> guiState)¶
Creates and displays a new Grapher view, using a map to specify the display settings.
The display settings are specified as a map of strings to objects. The accepted key and value types are:
'FramePosition'
→ anint[]
array of 4 elements: x, y, width and height.'LockGroupId'
→ an integer that specifies the lock group id.'SettingsPanelVisible'
→ a boolean that specifies whether the settings panel is visible on this view.'NoColoring'
→ a boolean; iftrue
, the feature or tag coloring will be ignored.'TagSet'
→ a string specifying the name of the tag-set to use for coloring. If notnull
, the coloring will be done using the tag-set.'FeatureColorMode'
→ a @link String specifying the name of the feature color mode to use for coloring. If notnull
, the coloring will be done using the feature color mode.'ColorbarVisible'
→ a boolean specifying whether the colorbar is visible for tag-set and feature-based coloring.'ColorbarPosition'
→ aPosition
specifying the position of the colorbar.'GrapherTransform'
→ aorg.mastodon.views.grapher.datagraph.ScreenTransform
specifying the region to initially zoom on the XY plot.
- Parameters:
guiState – the map of settings.
createHierarchyTrackScheme¶
- public MamutBranchViewTrackScheme createHierarchyTrackScheme()¶
Creates and displays a new Hierarchy-TrackScheme view, with default display settings.
createHierarchyTrackScheme¶
createTable¶
- public MamutViewTable createTable(Map<String, Object> guiState)¶
Creates and displays a new Table or a Selection Table view, using a map to specify the display settings.
The display settings are specified as a map of strings to objects. The accepted key and value types are:
'TableSelectionOnly'
→ a boolean specifying whether the table to create will be a selection table of a full table. Iftrue
, the table will only display the current content of the selection, and will listen to its changes. Iffalse
, the table will display the full graph content, listen to its changes, and will be able to edit the selection.'FramePosition'
→ anint[]
array of 4 elements: x, y, width and height.'LockGroupId'
→ an integer that specifies the lock group id.'SettingsPanelVisible'
→ a boolean that specifies whether the settings panel is visible on this view.'NoColoring'
→ a boolean; iftrue
, the feature or tag coloring will be ignored.'TagSet'
→ a string specifying the name of the tag-set to use for coloring. If notnull
, the coloring will be done using the tag-set.'FeatureColorMode'
→ a @link String specifying the name of the feature color mode to use for coloring. If notnull
, the coloring will be done using the feature color mode.'ColorbarVisible'
→ a boolean specifying whether the colorbar is visible for tag-set and feature-based coloring.'ColorbarPosition'
→ aPosition
specifying the position of the colorbar.
- Parameters:
guiState – the map of settings.
createTable¶
- public MamutViewTable createTable(boolean selectionOnly)¶
Creates and display a new Table or Selection Table view with default settings.
- Parameters:
selectionOnly – if
true
, the table will only display the current content of the selection, and will listen to its changes. Iffalse
, the table will display the full graph content, listen to its changes, and will be able to edit the selection.
- Returns:
a new table view.
createTrackScheme¶
- public MamutViewTrackScheme createTrackScheme()¶
Creates and displays a new TrackScheme view, with default display settings.
createTrackScheme¶
- public MamutViewTrackScheme createTrackScheme(Map<String, Object> guiState)¶
Creates and displays a new BDV view, using a map to specify the display settings.
The display settings are specified as a map of strings to objects. The accepted key and value types are:
'FramePosition'
→ anint[]
array of 4 elements: x, y, width and height.'LockGroupId'
→ an integer that specifies the lock group id.'SettingsPanelVisible'
→ a boolean that specifies whether the settings panel is visible on this view.'TrackSchemeTransform'
→ aScreenTransform
that defines the starting view zone in TrackScheme.'NoColoring'
→ a boolean; iftrue
, the feature or tag coloring will be ignored.'TagSet'
→ a string specifying the name of the tag-set to use for coloring. If notnull
, the coloring will be done using the tag-set.'FeatureColorMode'
→ a @link String specifying the name of the feature color mode to use for coloring. If notnull
, the coloring will be done using the feature color mode.'ColorbarVisible'
→ a boolean specifying whether the colorbar is visible for tag-set and feature-based coloring.'ColorbarPosition'
→ aPosition
specifying the position of the colorbar.
- Parameters:
guiState – the map of settings.
forEachBdvView¶
forEachBranchTrackSchemeView¶
forEachBranchView¶
forEachGrapherView¶
forEachTableView¶
forEachTrackSchemeView¶
forEachView¶
getBdvWindows¶
openOnlineDocumentation¶
- public void openOnlineDocumentation()¶
Opens the online documentation in a browser window.