JAL-1640 more properties moved to style bean and rationalisation of layout update...
[jalview.git] / src / jalview / viewmodel / styles / ViewStyle.java
index 9f845e4..1e97af4 100644 (file)
@@ -24,12 +24,25 @@ public class ViewStyle implements ViewStyleI
 
   int charWidth;
 
+  int idWidth = -1;
+
   /**
    * gui state - changes to colour scheme propagated to all groups
    */
   private boolean colourAppliesToAllGroups;
 
   /**
+   * centre columnar annotation labels in displayed alignment annotation
+   */
+  boolean centreColumnLabels = false;
+
+  private boolean showdbrefs;
+
+  private boolean shownpfeats;
+
+  // --------END Structure Conservation
+
+  /**
    * colour according to the reference sequence defined on the alignment
    */
   private boolean colourByReferenceSeq = false;
@@ -122,6 +135,15 @@ public class ViewStyle implements ViewStyleI
    */
   boolean upperCasebold = false;
 
+  /**
+   * name of base font for view
+   */
+  private String fontName;
+  /**
+   * size for base font
+   */
+  private int fontSize;
+  
   public ViewStyle(ViewStyleI viewStyle)
   {
     ViewStyle.configureFrom(this, viewStyle);
@@ -249,6 +271,8 @@ public class ViewStyle implements ViewStyleI
    */
   int wrappedWidth;
 
+  private int fontStyle;
+
   /**
    * GUI state
    * 
@@ -559,6 +583,7 @@ public class ViewStyle implements ViewStyleI
     abovePIDThreshold = b;
   }
 
+  
   /**
    * DOCUMENT ME!
    * 
@@ -869,4 +894,114 @@ public class ViewStyle implements ViewStyleI
   {
     return equivalent(this, them);
   }
+
+  @Override
+  public String getFontName()
+  {
+    return fontName;
+  }
+
+  @Override
+  public int getFontSize()
+  {
+    return fontSize;
+  }
+
+  @Override
+  public int getFontStyle()
+  {
+    return fontStyle;
+  }
+
+  @Override
+  public void setFontName(String name)
+  {
+    fontName = name;
+  }
+
+  @Override
+  public void setFontSize(int size)
+  {
+    fontSize = size;
+
+  }
+
+  @Override
+  public void setFontStyle(int style)
+  {
+    fontStyle = style;
+  }
+
+  @Override
+  public int getIdWidth()
+  {
+    return idWidth;
+  }
+
+  /**
+   * @param idWidth
+   *          the idWidth to set
+   */
+  @Override
+  public void setIdWidth(int idWidth)
+  {
+    this.idWidth = idWidth;
+  }
+
+  /**
+   * @return the centreColumnLabels
+   */
+  @Override
+  public boolean isCentreColumnLabels()
+  {
+    return centreColumnLabels;
+  }
+
+  /**
+   * @param centreColumnLabels
+   *          the centreColumnLabels to set
+   */
+  @Override
+  public void setCentreColumnLabels(boolean centreColumnLabels)
+  {
+    this.centreColumnLabels = centreColumnLabels;
+  }
+
+  /**
+   * @return the showdbrefs
+   */
+  @Override
+  public boolean isShowDBRefs()
+  {
+    return showdbrefs;
+  }
+
+  /**
+   * @param showdbrefs
+   *          the showdbrefs to set
+   */
+  @Override
+  public void setShowDBRefs(boolean showdbrefs)
+  {
+    this.showdbrefs = showdbrefs;
+  }
+
+  /**
+   * @return the shownpfeats
+   */
+  @Override
+  public boolean isShowNPFeats()
+  {
+    return shownpfeats;
+  }
+
+  /**
+   * @param shownpfeats
+   *          the shownpfeats to set
+   */
+  @Override
+  public void setShowNPFeats(boolean shownpfeats)
+  {
+    this.shownpfeats = shownpfeats;
+  }
 }