T
- type of rejection-reasonpublic class DualMarksAnnotation<T> extends Object implements AnnotationWithMarks
It also contains a possible reason for rejecting the entire image.
Constructor and Description |
---|
DualMarksAnnotation() |
Modifier and Type | Method and Description |
---|---|
void |
assignAccepted(DualMarks dualMark)
Assigns marks with an overall accepted state.
|
void |
assignPaused(DualMarks dualMark)
Assigns marks with an overall paused state.
|
void |
assignRejected(DualMarks dualMark,
T reason)
Assigns marks with an overall rejected state.
|
MarkCollection |
getMarksReject()
Marks covering area that should be rejected, can be null
|
T |
getRejectionReason()
A reason for rejection, if the annotation was rejected by the annotator.
|
Date |
getTimeAnnotationLastUpdated()
Number of seconds since the UNIX epoch
|
boolean |
isAccepted()
Whether the the annotation was marked as accepted by the annotator?
|
boolean |
isFinished() |
MarkCollection |
marks()
The marks associated with the annotation
|
RegionMembershipWithFlags |
region()
The region(s) of the marks that specifies the annotation.
|
void |
scaleXY(ScaleFactor scaleFactor)
Scales the marks in the annotation in X and Y dimensions.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertToObjects
public void assignAccepted(DualMarks dualMark)
dualMark
- the marks to assign to the annotation.public void assignPaused(DualMarks dualMark)
dualMark
- the marks to assign to the annotation.public void assignRejected(DualMarks dualMark, T reason)
The so far accepted/rejected marks are still stored in case there's a later change of mind.
dualMark
- the marks to assign to the annotation.reason
- the reason for rejectionpublic MarkCollection marks()
AnnotationWithMarks
marks
in interface AnnotationWithMarks
public void scaleXY(ScaleFactor scaleFactor) throws CheckedUnsupportedOperationException
scaleFactor
- how much to scale byCheckedUnsupportedOperationException
- if the type of mark used in the annotation does
not supported scaling.public RegionMembershipWithFlags region()
AnnotationWithMarks
As marks have multiple regions, this identifies which regions are included in the annotation.
region
in interface AnnotationWithMarks
public boolean isAccepted()
public T getRejectionReason()
public MarkCollection getMarksReject()
public Date getTimeAnnotationLastUpdated()
public boolean isFinished()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.