Class QuPathGUI
- 
Property SummaryPropertiesTypePropertyDescriptionRead-only property containing the image open within the currently-active viewer.Read-only property representing the currently-open project.Property indicating whether QuPath is in 'read-only' mode.Property to indicate whether the input display is currently showingProperty representing the viewer currently active.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intIcon size to use in the main QuPath toolbar
- 
Method SummaryModifier and TypeMethodDescriptionbooleancloseViewer(QuPathViewer viewer) Close the image within a viewer, prompting to save changes if necessary.static QuPathGUICreate a new QuPath instance that is not visible (i.e.org.controlsfx.control.action.ActioncreateImageDataAction(Consumer<ImageData<BufferedImage>> command) Create anActionthat depends upon anImageData.org.controlsfx.control.action.ActioncreateImageDataAction(Consumer<ImageData<BufferedImage>> command, String name) Create anActionthat depends upon anImageData.static QuPathGUIcreateInstance(Stage stage) Static method to launch QuPath on the JavaFX Application thread.static QuPathGUIcreateInstance(Stage stage, HostServices hostServices) Static method to launch QuPath from a JavaFX application.createPlugin(Class<? extends PathPlugin> pluginClass) Create a plugin from a specified class.org.controlsfx.control.action.ActioncreatePluginAction(String name, Class<? extends PathPlugin> pluginClass, String arg) Create an action for a plugin to be run through this QuPath instance.org.controlsfx.control.action.ActioncreatePluginAction(String name, PathPlugin<BufferedImage> plugin, String arg) Create an Action to call the specified plugin for the current image.org.controlsfx.control.action.ActioncreateProjectAction(Consumer<Project<BufferedImage>> command) Create anActionthat depends upon aProject.<V> ExecutorCompletionService<V> Deprecated.createSingleThreadExecutor(Object owner) Deprecated.since v0.5.0; usegetThreadPoolManager()org.controlsfx.control.action.ActioncreateViewerAction(Consumer<QuPathViewer> command) Create anActionthat depends upon anQuPathViewer.Get an unmodifiable observable list of all viewers.Access the main tab pane shown in the QuPath window.Get the automated actions associated with this QuPath instance.Get an observable list of available PathClasses.static StringGet a String representing the QuPath version & build time.Get the common actions associated with this QuPath instance.Get a reference to the default drag & drop listener, so this may be added to additional windows if needed.getDisplayedImageName(ImageData<BufferedImage> imageData) Get the image name to display for a specified image.static qupath.ext.extensionmanager.core.ExtensionCatalogManagerGet the value ofimageDataProperty().Return the globalDefaultImageRegionStoreinstance, used to cache and paint image tiles.static QuPathGUIGet the static instance of the current QuPath GUI.Get the log viewer associated with this QuPath instance.Get a reference to an existing menu from the main QuPath menubar, optionally creating a new menu if it is not present.Get the menubar for the main QuPath application.Get the actions associated with the viewer overlay options.Return the globalOverlayOptionsinstance, used to control display within viewers by default.Get a reference to thePreferencePane.Get the value ofprojectProperty().Get a reference to the currentScriptEditor(which may or may not be open at the moment).getStage()Get the main QuPath stage.Get aSharedThreadPoolManagerto help with submitting tasks in other threads.Get the main toolbar.Get the ToolManager that handles available and selected tools.Get theUndoRedoManager, which can be useful if needing to clear it in cases where available memory is low.static VersionGet the current QuPath version.Get the currently active viewer.Get the associations associated with QuPath image viewers.Get the viewer manager, which gives access to all the viewers available within this QuPath instance.Read-only property containing the image open within the currently-active viewer.voidinstallActions(Collection<? extends org.controlsfx.control.action.Action> actions) Install the specified actions.installCommand(String menuPath, Runnable runnable) Install a new command in QuPath.installGroovyCommand(String menuPath, File file) Install a Groovy script as a new command in QuPath.installGroovyCommand(String menuPath, String script) Install a Groovy script as a new command in QuPath.installImageDataCommand(String menuPath, Consumer<ImageData<BufferedImage>> command) Install a new command in QuPath that takes the currentImageDataas input.booleanQuery whether QuPath is in 'read-only' mode.booleanQuery whether this is a standalone QuPathGUI instance, as flagged during startup.static voidStatic method to launch QuPath from within a Swing/AWT application.lookupAccelerator(String combo) Get the action or menu item associated with an accelerator.lookupAccelerator(KeyCombination combo) Get the action or menu item associated with an key combination.org.controlsfx.control.action.ActionlookupActionByText(String text) Search for an action based upon its text (name) property.lookupMenuItem(String menuPath, String... parts) Search for a menu item based upon its path.booleanopenImage(QuPathViewer viewer, String pathNew) booleanopenImage(QuPathViewer viewer, String pathNew, boolean prompt, boolean includeURLs) Open a new whole slide image server, or ImageData.booleanOpen the image represented by the specified ProjectImageEntry.static booleanopenInBrowser(String url) Try to launch a browser window for a specified URL.booleanopenSavedData(QuPathViewer viewer, File file, boolean keepExistingServer, boolean promptToSaveChanges) Open a saved data file within a particular viewer, optionally keeping the same ImageServer as is currently open.Read-only property representing the currently-open project.booleanShow a file chooser to open a new image in the current viewer.booleanShow a dialog to open a new image in the current viewer, with support for entering a URL (rather than requiring a local file only).Property indicating whether QuPath is in 'read-only' mode.voidRefresh the project, updating the display if required.voidRefresh the title bar in the main QuPath window.voidRequest an automated update check in a background thread.voidRequest a manual update check in a background thread.booleanPopulate the availablePathClasses with a default list.booleanrunPlugin(PathPlugin<BufferedImage> plugin, String arg, boolean doInteractive) Run a plugin, interactively (i.e.Convenience method to execute a script.voidRequest to quit QuPath.booleansetAccelerator(String menuCommand, String combo) Set an accelerator for the specified menu command.booleansetAccelerator(MenuItem item, KeyCombination combo) Set the accelerator for the specified menu item.booleansetAccelerator(org.controlsfx.control.action.Action action, KeyCombination combo) Set the accelerator for the specified action.voidsetProject(Project<BufferedImage> project) Set the active project, triggering any necessary GUI updates.voidsetReadOnly(boolean readOnly) Specify whether QuPath should be in 'read-only' mode.voidsetScriptEditor(ScriptEditor scriptEditor) Set a new ScriptEditor, which will be used from now on.Property to indicate whether the input display is currently showingvoidsubmitShortTask(Runnable runnable) Deprecated.since v0.5.0; usegetThreadPoolManager()Observable value indicating that the user interface is/should be blocked.Property representing the viewer currently active.
- 
Property Details- 
showAnalysisPane- See Also:
 
- 
readOnlyProperty indicating whether QuPath is in 'read-only' mode.- See Also:
 
- 
imageDataRead-only property containing the image open within the currently-active viewer. To change the open image data, you should do so directly within the viewer.- See Also:
 
- 
projectRead-only property representing the currently-open project.- See Also:
 
- 
viewerProperty representing the viewer currently active.- See Also:
 
- 
showInputDisplayProperty to indicate whether the input display is currently showing- See Also:
 
 
- 
- 
Field Details- 
TOOLBAR_ICON_SIZEpublic static final int TOOLBAR_ICON_SIZEIcon size to use in the main QuPath toolbar- See Also:
 
 
- 
- 
Method Details- 
createInstanceStatic method to launch QuPath on the JavaFX Application thread.This may be be called in an Application.start(Stage)method. If so, then it is preferable to usecreateInstance(Stage, HostServices)to provide host services, which can be used for some tasks (e.g. opening a browser window, or determining the code location for the application). However this method can be used if QuPath is being launched some other way.Afterwards, calls to getInstance()will return the QuPath instance.- Parameters:
- stage- the stage to use for the QuPath UI
- Returns:
- Throws:
- IllegalStateException- if an instance of QuPath is already running (i.e.- getInstance()is not null)
- See Also:
 
- 
createInstancepublic static QuPathGUI createInstance(Stage stage, HostServices hostServices) throws IllegalStateException Static method to launch QuPath from a JavaFX application.This is typically expected to be called in an Application.start(Stage)method, although could potentially be called later from another JavaFX application.Afterwards, calls to getInstance()will return the QuPath instance.- Parameters:
- stage- the stage to use for the QuPath UI (usually from- Application.start(Stage))
- hostServices- host services from the JavaFX- Application, if available
- Returns:
- Throws:
- IllegalStateException- if an instance of QuPath is already running (i.e.- getInstance()is not null)
- See Also:
 
- 
createHiddenInstanceCreate a new QuPath instance that is not visible (i.e. its stage is not shown).- Returns:
- Throws:
- IllegalStateException
 
- 
launchInstanceFromSwingpublic static void launchInstanceFromSwing()Static method to launch QuPath from within a Swing/AWT application.This aims to handle several things: - initializing JavaFX in the appropriate thread
- flagging that shutting down QuPath should not terminate the JVM
- showing the QuPath UI window
 This can potentially be used from other environments (e.g. MATLAB, Fiji, Python). Afterwards, calls to getInstance()will return the QuPath instance as soon as it is available. However, note that depending upon the thread from which this method is called, the QuPath instance may not be available until some time after the method returns.If there is already an instance of QuPath running, this requests that it is made visible - but otherwise does nothing. 
- 
requestAutomaticUpdateCheckpublic void requestAutomaticUpdateCheck()Request an automated update check in a background thread. This will use the user preferences to determine whether or how to check for updates (i.e. if the preferences have disabled an update check, then it will not be run).- See Also:
 
- 
requestFullUpdateCheckpublic void requestFullUpdateCheck()Request a manual update check in a background thread. This should perform the check if possible, regardless of the user preferences.- See Also:
 
- 
showAnalysisPaneProperty- Returns:
- the showAnalysisPaneproperty
 
- 
uiBlockedObservable value indicating that the user interface is/should be blocked. This happens when a plugin or script is running.- Returns:
 
- 
openInBrowserTry to launch a browser window for a specified URL.- Parameters:
- url- the URL to open in the browser
- Returns:
- true if this was (as far as we know...) successful, and false otherwise
- Since:
- v0.5.0 (renamed from launchInBrowserWindow(String}
 
- 
getToolManagerGet the ToolManager that handles available and selected tools.- Returns:
 
- 
getThreadPoolManagerGet aSharedThreadPoolManagerto help with submitting tasks in other threads. A benefit of using this is that all the thread pools created will be shutdown when QuPath is exited.- Returns:
 
- 
getExtensionCatalogManagerpublic static qupath.ext.extensionmanager.core.ExtensionCatalogManager getExtensionCatalogManager()- Returns:
- the ExtensionCatalogManagerthat manage catalogs and extensions of this QuPath GUI
 
- 
getViewerManagerGet the viewer manager, which gives access to all the viewers available within this QuPath instance.- Returns:
 
- 
getAvailablePathClassesGet an observable list of available PathClasses.- Returns:
 
- 
getDefaultDragDropListenerGet a reference to the default drag & drop listener, so this may be added to additional windows if needed.- Returns:
 
- 
resetAvailablePathClassespublic boolean resetAvailablePathClasses()Populate the availablePathClasses with a default list.- Returns:
- true if changes were mad to the available classes, false otherwise
 
- 
getAnalysisTabPaneAccess the main tab pane shown in the QuPath window. This enables extensions to add or remove tabs - but be cautious!- Removing tabs can impact other functionality
- If adding a tab, it is usually best to apply FXUtils.makeTabUndockable(Tab)
 - Returns:
 
- 
isStandalonepublic boolean isStandalone()Query whether this is a standalone QuPathGUI instance, as flagged during startup. It can be important to know this so as to avoid calling System.exit(0) or similar, and bringing down some other application entirely.- Returns:
- true if this is a standalone QuPathGUI instance, false otherwise
 
- 
getAllViewersGet an unmodifiable observable list of all viewers.- Returns:
- See Also:
 
- 
getViewerGet the currently active viewer.- Returns:
 
- 
getInstanceGet the static instance of the current QuPath GUI.- Returns:
 
- 
openSavedDatapublic boolean openSavedData(QuPathViewer viewer, File file, boolean keepExistingServer, boolean promptToSaveChanges) throws IOException Open a saved data file within a particular viewer, optionally keeping the same ImageServer as is currently open. The purpose of this is to make it possible for a project (for example) to open the correct server prior to opening the data file, enabling it to make use of relative path names and not have to rely on the absolute path encoded within the ImageData.- Parameters:
- viewer-
- file-
- keepExistingServer- if true and the viewer already has an ImageServer, then any ImageServer path recorded within the data file will be ignored
- promptToSaveChanges- if true, the user will be prompted to ask whether to save changes or not
- Returns:
- Throws:
- IOException
 
- 
openImageEntryOpen the image represented by the specified ProjectImageEntry.If an image is currently open, this command will prompt to save any changes. - Parameters:
- entry-
- Returns:
 
- 
promptToOpenImageFilepublic boolean promptToOpenImageFile()Show a file chooser to open a new image in the current viewer.If this encounters an exception, an error message will be shown. - Returns:
- true if the image was opened, false otherwise
 
- 
promptToOpenImageFileOrUripublic boolean promptToOpenImageFileOrUri()Show a dialog to open a new image in the current viewer, with support for entering a URL (rather than requiring a local file only).If this encounters an exception, an error message will be shown. - Returns:
- true if the image was opened, false otherwise
 
- 
openImage- Throws:
- IOException
 
- 
openImagepublic boolean openImage(QuPathViewer viewer, String pathNew, boolean prompt, boolean includeURLs) throws IOException Open a new whole slide image server, or ImageData. If the path is the same as a currently-open server, do nothing.- Parameters:
- viewer- the viewer into which the image should be opened
- pathNew-
- prompt- if true, give the user the opportunity to cancel opening if a whole slide server is already set
- includeURLs- if true, any prompt should support URL input and not only a file chooser
- Returns:
- true if the server was set for this GUI, false otherwise
- Throws:
- IOException
 
- 
installGroovyCommandInstall a Groovy script as a new command in QuPath.- Parameters:
- menuPath- menu where the command should be installed; see- lookupMenuItem(String, String...)for the specification. If only a name is provided, the command will be added to the "Extensions" menu. If a menu item already exists for the given path, it will be removed.
- file- the Groovy script to run; note that this will be reloaded each time it is required
- Returns:
- the MenuItemfor the command
- See Also:
 
- 
installGroovyCommandInstall a Groovy script as a new command in QuPath.- Parameters:
- menuPath- menu where the command should be installed; see- lookupMenuItem(String, String...)for the specification. If only a name is provided, the command will be added to the "Extensions" menu. If a menu item already exists for the given path, it will be removed.
- script- the Groovy script to run
- Returns:
- the MenuItemfor the command
- See Also:
 
- 
installImageDataCommandpublic MenuItem installImageDataCommand(String menuPath, Consumer<ImageData<BufferedImage>> command) Install a new command in QuPath that takes the currentImageDataas input. The command will only be enabled when an image is available.- Parameters:
- menuPath- menu where the command should be installed; see- lookupMenuItem(String, String...)for the specification. If only a name is provided, the command will be added to the "Extensions" menu. If a menu item already exists for the given path, it will be removed.
- command- the command to run
- Returns:
- the MenuItemfor the command
- See Also:
 
- 
installCommandInstall a new command in QuPath.- Parameters:
- menuPath- menu where the command should be installed; see- lookupMenuItem(String, String...)for the specification. If only a name is provided, the command will be added to the "Extensions" menu. If a menu item already exists for the given path, it will be removed.
- runnable- the command to run
- Returns:
- the MenuItemfor the command. This can be further customized if needed.
 
- 
runScriptConvenience method to execute a script. Either a script file or the text of the script must be provided, or both.If only the script text is given, the language is assumed to be Groovy. - Parameters:
- file- the file containing the script to run
- script- the script to run
- Returns:
- result of the script execution
- Throws:
- ScriptException
- IllegalArgumentException- if both file and script are null
 
- 
getPreferencePaneGet a reference to thePreferencePane. This can be used by extensions to add in their own preferences.- Returns:
 
- 
lookupAcceleratorGet the action or menu item associated with an accelerator. This is particularly useful to check whether a key combination is in use before using it for a new command.- Parameters:
- combo-
- Returns:
- an ActionorMenuItemassociated with the accelerator, or null
- Since:
- v0.4.0
 
- 
lookupAcceleratorGet the action or menu item associated with an key combination. This is particularly useful to check whether a key combination is in use before using it for a new command.- Parameters:
- combo-
- Returns:
- an ActionorMenuItemassociated with the accelerator, or null
- Since:
- v0.4.0
 
- 
setAcceleratorSet an accelerator for the specified menu command. The command is defined as described inlookupMenuItem(String, String...), and the accelerator is the the format used byKeyCombination.valueOf(String). An example:
 Where possible, the accelerator for an action associated with a menu item will be changed. If the combo is null, any existing accelerator will be removed. Additionally, if the accelerator is already assigned to another item then it will be removed from that item.setAccelerator("File>Open...", "shift+o");- Parameters:
- menuCommand-
- combo-
- Returns:
- true if a change was made, false otherwise
- See Also:
 
- 
setAcceleratorSet the accelerator for the specified menu item. Where possible, the accelerator will be set via any action that controls the menu item - so that it is applied consistently for other related buttons or menu items.If the combo is null, any existing accelerator will be removed. Additionally, if the accelerator is already assigned to another item then it will be removed from that item. - Parameters:
- item-
- combo-
- Returns:
- true if changes were made, false otherwise
- See Also:
 
- 
setAcceleratorSet the accelerator for the specified action. If the combo is null, any existing accelerator will be removed. Additionally, if the accelerator is already assigned to another action then it will be removed from that item.- Parameters:
- action-
- combo-
- Returns:
- true if changes were made, false otherwise
- See Also:
 
- 
createPluginActionpublic org.controlsfx.control.action.Action createPluginAction(String name, Class<? extends PathPlugin> pluginClass, String arg) Create an action for a plugin to be run through this QuPath instance.- Parameters:
- name- name of the plugin
- pluginClass- class of the plugin
- arg- optional argument (may be required by some plugins)
- Returns:
 
- 
createPluginActionpublic org.controlsfx.control.action.Action createPluginAction(String name, PathPlugin<BufferedImage> plugin, String arg) Create an Action to call the specified plugin for the current image.- Parameters:
- name- plugin name
- plugin- the plugin to call
- arg- any argument required by the plugin
- Returns:
- an action that may be called to run the plugin
 
- 
sendQuitRequestpublic void sendQuitRequest()Request to quit QuPath.
- 
runPluginpublic boolean runPlugin(PathPlugin<BufferedImage> plugin, String arg, boolean doInteractive) throws Exception Run a plugin, interactively (i.e. launching a dialog) if necessary.Note that this does not in itself perform any exception handling. - Parameters:
- plugin- the plugin to run
- arg- optional string argument (usually JSON)
- doInteractive- if true, show an interactive dialog if the plugin is an instance of- PathInteractivePlugin
- Returns:
- true if running the plugin was successful and was not cancelled.
              Note that if doInteractive == trueand the dialog was launched but not run, this will also return true.
- Throws:
- Exception
 
- 
createPluginCreate a plugin from a specified class.- Parameters:
- pluginClass-
- Returns:
 
- 
getToolBarGet the main toolbar.- Returns:
 
- 
getUndoRedoManagerGet theUndoRedoManager, which can be useful if needing to clear it in cases where available memory is low.- Returns:
 
- 
isReadOnlypublic boolean isReadOnly()Query whether QuPath is in 'read-only' mode. This suppresses dialogs that ask about saving changes.- Returns:
- See Also:
- API Note
- Read only mode is an experimental feature; its behavior is subject to change in future versions.
 
- 
readOnlyPropertyProperty indicating whether QuPath is in 'read-only' mode.- Returns:
- See Also:
 
- 
setReadOnlypublic void setReadOnly(boolean readOnly) Specify whether QuPath should be in 'read-only' mode.- Parameters:
- readOnly-
- See Also:
- API Note
- Read only mode is an experimental feature; its behavior is subject to change in future versions.
 
- 
getScriptEditorGet a reference to the currentScriptEditor(which may or may not be open at the moment).- Returns:
 
- 
setScriptEditorSet a new ScriptEditor, which will be used from now on.- Parameters:
- scriptEditor-
 
- 
getOverlayOptionsReturn the globalOverlayOptionsinstance, used to control display within viewers by default.- Returns:
 
- 
getImageRegionStoreReturn the globalDefaultImageRegionStoreinstance, used to cache and paint image tiles.- Returns:
 
- 
getMenuBarGet the menubar for the main QuPath application.- Returns:
 
- 
getMenuGet a reference to an existing menu from the main QuPath menubar, optionally creating a new menu if it is not present.- Parameters:
- name-
- createMenu-
- Returns:
 
- 
getStageGet the main QuPath stage.- Returns:
 
- 
refreshTitlepublic void refreshTitle()Refresh the title bar in the main QuPath window.
- 
getDisplayedImageNameGet the image name to display for a specified image. This can be used to determine a name to display in the title bar, for example.- Parameters:
- imageData-
- Returns:
 
- 
getBuildStringGet a String representing the QuPath version & build time.- Returns:
 
- 
getVersionGet the current QuPath version.- Returns:
 
- 
imageDataPropertyRead-only property containing the image open within the currently-active viewer. To change the open image data, you should do so directly within the viewer.- Returns:
- See Also:
 
- 
setProjectSet the active project, triggering any necessary GUI updates.- Parameters:
- project-
 
- 
refreshProjectpublic void refreshProject()Refresh the project, updating the display if required. This can be called whenever the project has changed (e.g. by adding or removing items).
- 
projectPropertyRead-only property representing the currently-open project.- Returns:
- See Also:
 
- 
getProjectGet the value ofprojectProperty().- Returns:
 
- 
getImageDataGet the value ofimageDataProperty().- Returns:
 
- 
viewerPropertyProperty representing the viewer currently active.- Returns:
- See Also:
 
- 
closeViewerClose the image within a viewer, prompting to save changes if necessary.- Parameters:
- viewer-
- Returns:
- True if the viewer no longer contains an open image (either because it never did contain one, or the image was successfully closed), false otherwise (e.g. if the user thwarted the close request)
 
- 
getLogViewerCommandGet the log viewer associated with this QuPath instance.- Returns:
- Since:
- v0.5.0
 
- 
createImageDataActionpublic org.controlsfx.control.action.Action createImageDataAction(Consumer<ImageData<BufferedImage>> command) Create anActionthat depends upon anImageData. When the action is invoked, it will be passed the currentImageDataas a parameter. The action will also be disabled if no image data is present.- Parameters:
- command- the command to run
- Returns:
- an Actionwith appropriate properties set
 
- 
showInputDisplayPropertyProperty to indicate whether the input display is currently showing- Returns:
- input display property
 
- 
createViewerActionCreate anActionthat depends upon anQuPathViewer. When the action is invoked, it will be passed the currentQuPathVieweras a parameter. The action will also be disabled if no viewer is present.- Parameters:
- command- the command to run
- Returns:
- an Actionwith appropriate properties set
 
- 
createImageDataActionpublic org.controlsfx.control.action.Action createImageDataAction(Consumer<ImageData<BufferedImage>> command, String name) Create anActionthat depends upon anImageData. When the action is invoked, it will be passed the currentQuPathVieweras a parameter. The action will also be disabled if no viewer is present.- Parameters:
- command- the command to run
- name- text of the action
- Returns:
- an Actionwith appropriate properties set
 
- 
createProjectActionpublic org.controlsfx.control.action.Action createProjectAction(Consumer<Project<BufferedImage>> command) Create anActionthat depends upon aProject. When the action is invoked, it will be passed the currentProjectas a parameter. The action will also be disabled if no image data is present.- Parameters:
- command- the command to run
- Returns:
- an Actionwith appropriate properties set
 
- 
installActionsInstall the specified actions. It is assumed that these have been configured viaActionTools, and therefore have sufficient information associated with them (including a menu path).- Parameters:
- actions-
 
- 
getCommonActionsGet the common actions associated with this QuPath instance.- Returns:
 
- 
getAutomateActionsGet the automated actions associated with this QuPath instance.- Returns:
 
- 
lookupActionByTextSearch for an action based upon its text (name) property.- Parameters:
- text- the text to search for
- Returns:
- the action, if found, or null otherwise
 
- 
lookupMenuItemSearch for a menu item based upon its path.
 This supports two possible syntaxes: one using>as a delimiter, and the other providing multiple parts as separate strings. This means the following are equivalent:lookupMenuItem("Main menu>Submenu>Name"); lookupMenuItem("Main menu", "Submenu", "Name");- Parameters:
- menuPath- path to the menu item, or first component of the path
- parts- optional additional parts of the path to the menu item
- Returns:
- the menu item corresponding to this path, or null if no menu item is found
- Since:
- v0.6.0 (previously, only a single delimited string input was supported)
- Implementation Note
- The delimiter ">"is used internally. This means that the method currently cannot support menus or menu items that contain>in their text.
 
- 
getOverlayActionsGet the actions associated with the viewer overlay options. This includes showing/hiding/filling objects, or adjusting opacity.- Returns:
 
- 
getViewerActionsGet the associations associated with QuPath image viewers.- Returns:
 
- 
createSingleThreadExecutorDeprecated.since v0.5.0; usegetThreadPoolManager()Create an executor using a single thread.Optionally specify an owner, in which case the same Executor will be returned for the owner for so long as the Executor has not been shut down; if it has been shut down, a new Executor will be returned. Specifying an owner is a good idea if there is a chance that any submitted tasks could block, since the same Executor will be returned for all requests that give a null owner. The advantage of using this over creating an ExecutorService some other way is that shutdown will be called on any pools created this way whenever QuPath is quit. - Parameters:
- owner-
- Returns:
 
- 
submitShortTaskDeprecated.since v0.5.0; usegetThreadPoolManager()Submit a short task to a shared thread pool- Parameters:
- runnable-
 
 
- 
getThreadPoolManager()