X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FAlignCalcWorkerI.java;fp=src%2Fjalview%2Fapi%2FAlignCalcWorkerI.java;h=85157c466c31e11b66eeea25b8aced2bccb066c8;hb=f642f166c0eeb010c9f5006d8450f83390924b8a;hp=06dc05401e70c0291f217f3ac5edaae98913a76c;hpb=0555b298d22be533a0a67a3cd0ce2db883bae8bd;p=jalview.git diff --git a/src/jalview/api/AlignCalcWorkerI.java b/src/jalview/api/AlignCalcWorkerI.java index 06dc054..85157c4 100644 --- a/src/jalview/api/AlignCalcWorkerI.java +++ b/src/jalview/api/AlignCalcWorkerI.java @@ -35,17 +35,26 @@ public interface AlignCalcWorkerI extends Runnable * @param annot * @return */ - public boolean involves(AlignmentAnnotation annot); + 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. + * the values). This allows ßquick redraw of annotations when display settings + * are changed. */ - public void updateAnnotation(); + void updateAnnotation(); /** - * Removes any annotation managed by this worker from the alignment + * Removes any annotation(s) managed by this worker from the alignment */ void removeAnnotation(); + + /** + * Answers true if the worker should be deleted entirely when its annotation + * is deleted from the display, or false if it should continue to run. Some + * workers are required to run for their side-effects. + * + * @return + */ + boolean isDeletable(); }