Class PathObjectLabels

java.lang.Object
qupath.lib.gui.tools.PathObjectLabels

public class PathObjectLabels extends Object
Create standardized ListCell and TreeCell instances for displaying a PathObject, or a generic pane to use elsewhere.
Since:
v0.4.0
  • Constructor Details

    • PathObjectLabels

      public PathObjectLabels()
  • Method Details

    • createPane

      public static PathObjectLabels.PathObjectMiniPane createPane()
      Create a PathObjectLabels.PathObjectMiniPane using the default PathObject.toString() method.
      Returns:
    • createPane

      public static PathObjectLabels.PathObjectMiniPane createPane(Function<qupath.lib.objects.PathObject,String> stringExtractor)
      Create a PathObjectLabels.PathObjectMiniPane using a custom method to create a string representation of the object.
      Parameters:
      stringExtractor -
      Returns:
    • createListCell

      public static ListCell<qupath.lib.objects.PathObject> createListCell()
      Create a ListCell for displaying a PathObject using the default PathObject.toString() method.
      Returns:
    • createListCell

      public static ListCell<qupath.lib.objects.PathObject> createListCell(Function<qupath.lib.objects.PathObject,String> stringExtractor)
      Create a ListCell for displaying a PathObject using a custom method to create a string representation of the object.
      Parameters:
      stringExtractor -
      Returns:
    • createTreeCell

      public static TreeCell<qupath.lib.objects.PathObject> createTreeCell()
      Create a TreeCell for displaying a PathObject using the default PathObject.toString() method.
      Returns:
    • createTreeCell

      public static TreeCell<qupath.lib.objects.PathObject> createTreeCell(Function<qupath.lib.objects.PathObject,String> stringExtractor)
      Create a TreeCell for displaying a PathObject using a custom method to create a string representation of the object.
      Parameters:
      stringExtractor -
      Returns: