JAL-2629 add option to set HMM Logo letter height to info content
[jalview.git] / src / jalview / viewmodel / AlignmentViewport.java
index ad12035..c2c2c5d 100644 (file)
@@ -616,6 +616,8 @@ public abstract class AlignmentViewport
 
   protected boolean ignoreBelowBackGroundFrequencyCalculation = false;
 
+  protected boolean infoLetterHeight = false;
+
   protected ResidueShaderI residueShading = new ResidueShader();
 
   @Override
@@ -1370,6 +1372,16 @@ public abstract class AlignmentViewport
 
   }
 
+  public void setInfoLetterHeight(boolean b, AlignmentViewPanel ap)
+  {
+    infoLetterHeight = b;
+    if (ap != null)
+    {
+      updateInformation(ap);
+    }
+
+  }
+
   private long sgrouphash = -1, colselhash = -1;
 
   /**
@@ -1430,6 +1442,12 @@ public abstract class AlignmentViewport
     return ignoreBelowBackGroundFrequencyCalculation;
   }
 
+  @Override
+  public boolean isInfoLetterHeight()
+  {
+    return infoLetterHeight;
+  }
+
   // property change stuff
   // JBPNote Prolly only need this in the applet version.
   private PropertyChangeSupport changeSupport = new PropertyChangeSupport(