Package qupath.lib.gui.commands
Class TMACommands
java.lang.Object
qupath.lib.gui.commands.TMACommands
Helper class implementing simple 'single-method' commands related to tissue microarrays for easy inclusion in the GUI.
- Author:
- Pete Bankhead
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
installDragAndDropHandler
(QuPathGUI qupath) Command to install a drag and drop file handler for exported TMA data.static boolean
promptToAddColumnAfterSelected
(ImageData<?> imageData) Prompt to add a column to a TMA grid after the column containing the currently-selected object.static boolean
promptToAddColumnBeforeSelected
(ImageData<?> imageData) Prompt to add a column to a TMA grid before the column containing the currently-selected object.static void
promptToAddNoteToSelectedCores
(ImageData<?> imageData) Prompt to type a node to associate with the selected TMA cores.static boolean
promptToAddRowAfterSelected
(ImageData<?> imageData) Prompt to add a row to a TMA grid after the row containing the currently-selected object.static boolean
promptToAddRowBeforeSelected
(ImageData<?> imageData) Prompt to add a row to a TMA grid before the row containing the currently-selected object.static boolean
promptToCreateTMAGrid
(ImageData<?> imageData) Prompt the user to manually create a new TMA grid.static boolean
promptToDeleteTMAGridColumn
(ImageData<?> imageData) Prompt to delete a column from a TMA grid.static boolean
promptToDeleteTMAGridRow
(ImageData<?> imageData) Prompt to delete a row from a TMA grid.static void
promptToExportTMAData
(QuPathGUI qupath, ImageData<BufferedImage> imageData) Prompt to export summary TMA data for a specific image to a directory.static void
promptToImportTMAData
(ImageData<?> imageData) Prompt to import TMA data for the specified image data.static void
promptToRelabelTMAGrid
(ImageData<?> imageData) Prompt to relabel the core names within a TMA grid.
-
Constructor Details
-
TMACommands
public TMACommands()
-
-
Method Details
-
promptToAddNoteToSelectedCores
Prompt to type a node to associate with the selected TMA cores.- Parameters:
imageData
-
-
promptToExportTMAData
Prompt to export summary TMA data for a specific image to a directory.- Parameters:
qupath
-imageData
-
-
installDragAndDropHandler
Command to install a drag and drop file handler for exported TMA data.- Parameters:
qupath
- QuPath instance to which the handler should be installed
-
promptToImportTMAData
Prompt to import TMA data for the specified image data.- Parameters:
imageData
- the image data for which the TMA data should be imported
-
promptToRelabelTMAGrid
Prompt to relabel the core names within a TMA grid.- Parameters:
imageData
- image containing the TMA grid
-
promptToDeleteTMAGridRow
Prompt to delete a row from a TMA grid. The row is identified as being the one that contains the current selected TMA core, or the core that contains the selected object.After this command is run, the user will be prompted to relabel the TMA grid.
- Parameters:
imageData
- the image data containing the TMA grid- Returns:
- true if the TMA grid was modified, false otherwise (e.g. if the user cancelled)
-
promptToDeleteTMAGridColumn
Prompt to delete a column from a TMA grid. The column is identified as being the one that contains the current selected TMA core, or the core that contains the selected object.After this command is run, the user will be prompted to relabel the TMA grid.
- Parameters:
imageData
- the image data containing the TMA grid- Returns:
- true if the TMA grid was modified, false otherwise (e.g. if the user cancelled)
-
promptToCreateTMAGrid
Prompt the user to manually create a new TMA grid.- Parameters:
imageData
-- Returns:
- See Also:
-
promptToAddRowAfterSelected
Prompt to add a row to a TMA grid after the row containing the currently-selected object.After this command is run, the user will be prompted to relabel the TMA grid.
- Parameters:
imageData
- the image data containing the TMA grid- Returns:
- true if the TMA grid was modified, false otherwise (e.g. if the user cancelled)
-
promptToAddRowBeforeSelected
Prompt to add a row to a TMA grid before the row containing the currently-selected object.After this command is run, the user will be prompted to relabel the TMA grid.
- Parameters:
imageData
- the image data containing the TMA grid- Returns:
- true if the TMA grid was modified, false otherwise (e.g. if the user cancelled)
-
promptToAddColumnAfterSelected
Prompt to add a column to a TMA grid after the column containing the currently-selected object.After this command is run, the user will be prompted to relabel the TMA grid.
- Parameters:
imageData
- the image data containing the TMA grid- Returns:
- true if the TMA grid was modified, false otherwise (e.g. if the user cancelled)
-
promptToAddColumnBeforeSelected
Prompt to add a column to a TMA grid before the column containing the currently-selected object.After this command is run, the user will be prompted to relabel the TMA grid.
- Parameters:
imageData
- the image data containing the TMA grid- Returns:
- true if the TMA grid was modified, false otherwise (e.g. if the user cancelled)
-