package jalview.api;
+import jalview.datamodel.AlignmentAnnotation;
+
public interface AlignCalcWorkerI extends Runnable
{
+ public boolean involves(AlignmentAnnotation annot);
+
+ public void updateAnnotation();
}
*/
package jalview.workers;
+import java.util.List;
+
import jalview.api.AlignCalcManagerI;
import jalview.api.AlignCalcWorkerI;
import jalview.api.AlignViewportI;
import jalview.api.AlignmentViewPanel;
+import jalview.datamodel.AlignmentAnnotation;
/**
* Base class for alignment calculation workers
protected AlignViewportI alignViewport;
protected AlignCalcManagerI calcMan;
protected AlignmentViewPanel ap;
-
+ protected List<AlignmentAnnotation> ourAnnots=null;
+
public AlignCalcWorker(AlignViewportI alignViewport,
AlignmentViewPanel alignPanel)
{
ap=null;
}
-
+ public boolean involves(AlignmentAnnotation i)
+ {
+ return ourAnnots!=null && ourAnnots.contains(i);
+ }
}