view settings in view submenu and user preferences to control display of non-position...
[jalview.git] / src / jalview / gui / AlignViewport.java
index d7a52c2..9f1d3c6 100755 (executable)
@@ -232,7 +232,9 @@ public class AlignViewport
     autoCalculateConsensus = Cache.getDefault("AUTO_CALC_CONSENSUS", true);
 
     padGaps = Cache.getDefault("PAD_GAPS", true);
-
+    shownpfeats = Cache.getDefault("SHOW_NPFEATS_TOOLTIP",true);
+    showdbrefs = Cache.getDefault("SHOW_DBREFS_TOOLTIP",true);
+    
     String fontName = Cache.getDefault("FONT_NAME", "SansSerif");
     String fontStyle = Cache.getDefault("FONT_STYLE", Font.PLAIN + "");
     String fontSize = Cache.getDefault("FONT_SIZE", "10");
@@ -493,6 +495,10 @@ public class AlignViewport
    */
   boolean centreColumnLabels = false;
 
+  private boolean showdbrefs;
+
+  private boolean shownpfeats;
+
   /**
    * trigger update of conservation annotation
    */
@@ -2000,4 +2006,38 @@ public class AlignViewport
       }
     }
   }
+
+  /**
+   *  enable or disable the display of Database Cross References in the sequence ID tooltip
+   */ 
+  public void setShowDbRefs(boolean show)
+  {
+    showdbrefs=show;
+  }
+
+  /**
+   * 
+   * @return true if Database References are to be displayed on tooltips.
+   */
+  public boolean isShowDbRefs()
+  {
+    return showdbrefs;
+  }
+
+  /**
+   * 
+   * @return true if Non-positional features are to be displayed on tooltips.
+   */
+  public boolean isShowNpFeats()
+  {
+    return shownpfeats;
+  }
+  /**
+   * enable or disable the display of Non-Positional sequence features in the sequence ID tooltip 
+   * @param show 
+   */
+  public void setShowNpFeats(boolean show)
+  {
+    shownpfeats=show;
+  }
 }