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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinstallDragAndDropHandler(QuPathGUI qupath) Command to install a drag and drop file handler for exported TMA data.static booleanpromptToAddColumnAfterSelected(ImageData<?> imageData) Prompt to add a column to a TMA grid after the column containing the currently-selected object.static booleanpromptToAddColumnBeforeSelected(ImageData<?> imageData) Prompt to add a column to a TMA grid before the column containing the currently-selected object.static voidpromptToAddNoteToSelectedCores(ImageData<?> imageData) Prompt to type a node to associate with the selected TMA cores.static booleanpromptToAddRowAfterSelected(ImageData<?> imageData) Prompt to add a row to a TMA grid after the row containing the currently-selected object.static booleanpromptToAddRowBeforeSelected(ImageData<?> imageData) Prompt to add a row to a TMA grid before the row containing the currently-selected object.static booleanpromptToCreateTMAGrid(ImageData<?> imageData) Prompt the user to manually create a new TMA grid.static booleanpromptToDeleteTMAGridColumn(ImageData<?> imageData) Prompt to delete a column from a TMA grid.static booleanpromptToDeleteTMAGridRow(ImageData<?> imageData) Prompt to delete a row from a TMA grid.static voidpromptToExportTMAData(QuPathGUI qupath, ImageData<BufferedImage> imageData) Prompt to export summary TMA data for a specific image to a directory.static voidpromptToImportTMAData(ImageData<?> imageData) Prompt to import TMA data for the specified image data.static voidpromptToRelabelTMAGrid(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)
-