javascript callback for selection, mousover, and functions for selection and highligh...
[jalview.git] / src / jalview / appletgui / PaintRefresher.java
index ab3325b..f08bd66 100755 (executable)
@@ -225,4 +225,23 @@ public class PaintRefresher
       }
     }
   }
+
+  public static AlignmentPanel[] getAssociatedPanels(String id)
+  {
+    Vector comps = (Vector) components.get(id);
+    Vector tmp = new Vector();
+    int i, iSize = comps.size();
+    for (i = 0; i < iSize; i++)
+    {
+      if (comps.elementAt(i) instanceof AlignmentPanel)
+      {
+        tmp.addElement(((AlignmentPanel) comps.elementAt(i)));
+      }
+    }
+    AlignmentPanel[] result = new AlignmentPanel[tmp.size()];
+    tmp.toArray(result);
+
+    return result;
+  }
+
 }