JAL-244 JAL-4091 allow calculation of label id width off screen including sequence...
[jalview.git] / src / jalview / gui / AlignmentPanel.java
index cd9b70c..baf9e26 100644 (file)
@@ -317,7 +317,17 @@ public class AlignmentPanel extends GAlignmentPanel implements
   {
     return calculateIdWidth(maxwidth, true, false);
   }
-
+  /**
+   * Calculate the width of the alignment labels based on the displayed names
+   * and any bounds on label width set in preferences.
+   * 
+   * @param maxwidth
+   *          -1 or maximum width allowed for IdWidth
+   * @param includeAnnotations - when true includes width of any additional marks in annotation id panel 
+   * @param visibleOnly -  
+   * @return Dimension giving the maximum width of the alignment label panel
+   *         that should be used.
+   */
   public Dimension calculateIdWidth(int maxwidth,
           boolean includeAnnotations, boolean visibleOnly)
   {
@@ -346,7 +356,7 @@ public class AlignmentPanel extends GAlignmentPanel implements
       {
         AnnotationLabels aal = getAlabels();
         int stringWidth = aal.drawLabels(null, false, idWidth, false, false,
-                fm);
+                fm,false);
         idWidth = Math.max(idWidth, stringWidth);
       }
       else