new sort by length method, justify edit menu entries and experimental support for...
[jalview.git] / src / jalview / gui / AlignViewport.java
index ac3ff77..587ce55 100755 (executable)
@@ -58,6 +58,8 @@ import jalview.structure.StructureSelectionManager;
  */
 public class AlignViewport implements SelectionSource
 {
+  private static final int RIGHT_JUSTIFY = 1;
+
   int startRes;
 
   int endRes;
@@ -1879,7 +1881,6 @@ public class AlignViewport implements SelectionSource
     {
       alignment.padGaps();
     }
-
     if (hconsensus != null && autoCalculateConsensus)
     {
       updateConsensus(ap);
@@ -2147,6 +2148,8 @@ public class AlignViewport implements SelectionSource
     return followSelection;
   }
   private long sgrouphash=-1,colselhash=-1;
+
+  boolean showSeqFeaturesHeight;
   /**
    * checks current SelectionGroup against record of last hash value, and updates record.
    * @return true if SelectionGroup changed since last call
@@ -2177,5 +2180,13 @@ public class AlignViewport implements SelectionSource
   {
     jalview.structure.StructureSelectionManager.getStructureSelectionManager().sendSelection(new SequenceGroup(getSelectionGroup()), new ColumnSelection(getColumnSelection()), this);
   }
+  public void setShowSequenceFeaturesHeight(boolean selected)
+  {
+    showSeqFeaturesHeight = selected; 
+  }
+  public boolean getShowSequenceFeaturesHeight()
+  {
+    return showSeqFeaturesHeight; 
+  }
 
 }