X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FAlignCalcWorkerI.java;fp=src%2Fjalview%2Fapi%2FAlignCalcWorkerI.java;h=06dc05401e70c0291f217f3ac5edaae98913a76c;hb=99d5f1d805e530f23a53dad4484d44ecd0fbfdf3;hp=872528b00fc60f596f11ae9ec747c8bcc159b66f;hpb=e6134bccddc2c7faad28fad1a4e77ccd0ceb3d84;p=jalview.git diff --git a/src/jalview/api/AlignCalcWorkerI.java b/src/jalview/api/AlignCalcWorkerI.java index 872528b..06dc054 100644 --- a/src/jalview/api/AlignCalcWorkerI.java +++ b/src/jalview/api/AlignCalcWorkerI.java @@ -22,12 +22,30 @@ package jalview.api; import jalview.datamodel.AlignmentAnnotation; +/** + * Interface describing a worker that calculates alignment annotation(s). The + * main (re-)calculation should be performed by the inherited run() method. + */ public interface AlignCalcWorkerI extends Runnable { - + /** + * Answers true if this worker updates the given annotation (regardless of its + * current state) + * + * @param annot + * @return + */ public boolean involves(AlignmentAnnotation annot); + /** + * Updates the display of calculated annotation values (does not recalculate + * the values). This allows for quick redraw of annotations when display + * settings are changed. + */ public void updateAnnotation(); - void removeOurAnnotation(); + /** + * Removes any annotation managed by this worker from the alignment + */ + void removeAnnotation(); }