Class ImageLabelStrategy

Object
AnchorBean<AnnotatorStrategy>
AnnotatorStrategy
SinglePathStrategy
ImageLabelStrategy

public class ImageLabelStrategy extends SinglePathStrategy
Assigns a single label per image, as a whole.
Author:
Owen Feehan
  • Constructor Details

    • ImageLabelStrategy

      public ImageLabelStrategy()
  • Method Details

    • annotationLabelFor

      public Optional<String> annotationLabelFor(ProvidesStackInput item, OperationContext context) throws OperationFailedException
      Specified by:
      annotationLabelFor in class AnnotatorStrategy
      Throws:
      OperationFailedException
    • groupedLabels

      public GroupedAnnotationLabels groupedLabels()
      Creates a GroupedAnnotationLabels from the current labels.

      This is actually called twice during a typical opening of an annotation. But overhead is minor (assuming not very many labels).

      Returns:
      a new GroupedAnnotationLabels instance.
    • weightWidthDescription

      public int weightWidthDescription()
      Specified by:
      weightWidthDescription in class AnnotatorStrategy
    • getLabels

      public List<AnnotationLabel> getLabels()
      List of AnnotationLabels available for annotation.
    • setLabels

      public void setLabels(List<AnnotationLabel> labels)
      List of AnnotationLabels available for annotation.
    • getWeightWidthDescription

      public int getWeightWidthDescription()
      The weight to use for the width of the description.
    • setWeightWidthDescription

      public void setWeightWidthDescription(int weightWidthDescription)
      The weight to use for the width of the description.