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 SummaryConstructors
- 
Method SummaryModifier 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- 
TMACommandspublic TMACommands()
 
- 
- 
Method Details- 
promptToAddNoteToSelectedCoresPrompt to type a node to associate with the selected TMA cores.- Parameters:
- imageData-
 
- 
promptToExportTMADataPrompt to export summary TMA data for a specific image to a directory.- Parameters:
- qupath-
- imageData-
 
- 
installDragAndDropHandlerCommand to install a drag and drop file handler for exported TMA data.- Parameters:
- qupath- QuPath instance to which the handler should be installed
 
- 
promptToImportTMADataPrompt to import TMA data for the specified image data.- Parameters:
- imageData- the image data for which the TMA data should be imported
 
- 
promptToRelabelTMAGridPrompt to relabel the core names within a TMA grid.- Parameters:
- imageData- image containing the TMA grid
 
- 
promptToDeleteTMAGridRowPrompt 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)
 
- 
promptToDeleteTMAGridColumnPrompt 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)
 
- 
promptToCreateTMAGridPrompt the user to manually create a new TMA grid.- Parameters:
- imageData-
- Returns:
- See Also:
 
- 
promptToAddRowAfterSelectedPrompt 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)
 
- 
promptToAddRowBeforeSelectedPrompt 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)
 
- 
promptToAddColumnAfterSelectedPrompt 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)
 
- 
promptToAddColumnBeforeSelectedPrompt 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)
 
 
-