public class ImageLabelStrategy extends SinglePathStrategy
Constructor and Description |
---|
ImageLabelStrategy() |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
annotationLabelFor(ProvidesStackInput item,
OperationContext context)
A human-friendly textual description of the annotation, or
Optional.empty() if no
label is available. |
List<AnnotationLabel> |
getLabels() |
int |
getWeightWidthDescription() |
GroupedAnnotationLabels |
groupedLabels() |
void |
setLabels(List<AnnotationLabel> labels) |
void |
setWeightWidthDescription(int weightWidthDescription) |
int |
weightWidthDescription()
The degree as to how lengthy the labels from
AnnotatorStrategy.annotationLabelFor(ProvidesStackInput,
OperationContext) can be. |
getPathAnnotation, pathFor, setPathAnnotation
getBackground, getStackReader, setBackground, setStackReader
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Optional<String> annotationLabelFor(ProvidesStackInput item, OperationContext context) throws OperationFailedException
AnnotatorStrategy
Optional.empty()
if no
label is available.annotationLabelFor
in class AnnotatorStrategy
item
- the input to find an annotation label for.context
- TODOOperationFailedException
- if a label cannot be successfully determined.public GroupedAnnotationLabels groupedLabels()
public int weightWidthDescription()
AnnotatorStrategy
AnnotatorStrategy.annotationLabelFor(ProvidesStackInput,
OperationContext)
can be.
The higher the number, the lengthier AnnotatorStrategy.annotationLabelFor(ProvidesStackInput,
OperationContext)
can be.
weightWidthDescription
in class AnnotatorStrategy
public List<AnnotationLabel> getLabels()
public void setLabels(List<AnnotationLabel> labels)
public int getWeightWidthDescription()
public void setWeightWidthDescription(int weightWidthDescription)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.