Class TMACommands

java.lang.Object
qupath.lib.gui.commands.TMACommands

public class TMACommands extends Object
Helper class implementing simple 'single-method' commands related to tissue microarrays for easy inclusion in the GUI.
Author:
Pete Bankhead
  • Constructor Details

    • TMACommands

      public TMACommands()
  • Method Details

    • promptToAddNoteToSelectedCores

      public static void promptToAddNoteToSelectedCores(ImageData<?> imageData)
      Prompt to type a node to associate with the selected TMA cores.
      Parameters:
      imageData -
    • promptToExportTMAData

      public static void promptToExportTMAData(QuPathGUI qupath, ImageData<BufferedImage> imageData)
      Prompt to export summary TMA data for a specific image to a directory.
      Parameters:
      qupath -
      imageData -
    • installDragAndDropHandler

      public static void installDragAndDropHandler(QuPathGUI qupath)
      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

      public static void promptToImportTMAData(ImageData<?> imageData)
      Prompt to import TMA data for the specified image data.
      Parameters:
      imageData - the image data for which the TMA data should be imported
    • promptToRelabelTMAGrid

      public static void promptToRelabelTMAGrid(ImageData<?> imageData)
      Prompt to relabel the core names within a TMA grid.
      Parameters:
      imageData - image containing the TMA grid
    • promptToDeleteTMAGridRow

      public static boolean promptToDeleteTMAGridRow(ImageData<?> imageData)
      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

      public static boolean promptToDeleteTMAGridColumn(ImageData<?> imageData)
      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

      public static boolean promptToCreateTMAGrid(ImageData<?> imageData)
      Prompt the user to manually create a new TMA grid.
      Parameters:
      imageData -
      Returns:
      See Also:
    • promptToAddRowAfterSelected

      public static boolean promptToAddRowAfterSelected(ImageData<?> imageData)
      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

      public static boolean promptToAddRowBeforeSelected(ImageData<?> imageData)
      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

      public static boolean promptToAddColumnAfterSelected(ImageData<?> imageData)
      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

      public static boolean promptToAddColumnBeforeSelected(ImageData<?> imageData)
      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)