From 4dc3b9dcd01f1f09aa58aaf7032030c45479d8c6 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 27 Nov 2014 10:31:31 +0000 Subject: [PATCH] JAL-674 JAL-966 new method to retrieve all views --- src/jalview/gui/AlignFrame.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 07c4a54..0087e8d 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -30,6 +30,7 @@ import jalview.analysis.ParseProperties; import jalview.analysis.SequenceIdMatcher; import jalview.api.AlignViewControllerGuiI; import jalview.api.AlignViewControllerI; +import jalview.api.AlignmentViewPanel; import jalview.api.analysis.ScoreModelI; import jalview.bin.Cache; import jalview.commands.CommandI; @@ -115,6 +116,7 @@ import java.beans.PropertyChangeEvent; import java.io.File; import java.net.URL; import java.util.ArrayList; +import java.util.Arrays; import java.util.Enumeration; import java.util.Hashtable; import java.util.List; @@ -5816,6 +5818,15 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, .setShowAutocalculatedAbove(isShowAutoCalculatedAbove()); alignPanel.paintAlignment(true); } + + /** + * + * @return alignment panels in this alignemnt frame + */ + public List getAlignPanels() + { + return alignPanels == null ? Arrays.asList(alignPanel) : alignPanels; + } } class PrintThread extends Thread -- 1.7.10.2