Merge branch 'patch/JAL-840_clustalx_docs_fix' into develop
[jalview.git] / src / jalview / appletgui / AlignViewport.java
index 2bead46..c1de259 100644 (file)
@@ -71,20 +71,20 @@ public class AlignViewport extends AlignmentViewport
       {
         try
         {
-          widthScale = new Float(param).floatValue();
+          widthScale = Float.valueOf(param).floatValue();
         } catch (Exception e)
         {
         }
         if (widthScale <= 1.0)
         {
-          System.err.println(
+          jalview.bin.Console.errPrintln(
                   "Invalid alignment character width scaling factor ("
                           + widthScale + "). Ignoring.");
           widthScale = 1;
         }
         if (JalviewLite.debug)
         {
-          System.err.println(
+          jalview.bin.Console.errPrintln(
                   "Alignment character width scaling factor is now "
                           + widthScale);
         }
@@ -94,20 +94,20 @@ public class AlignViewport extends AlignmentViewport
       {
         try
         {
-          heightScale = new Float(param).floatValue();
+          heightScale = Float.valueOf(param).floatValue();
         } catch (Exception e)
         {
         }
         if (heightScale <= 1.0)
         {
-          System.err.println(
+          jalview.bin.Console.errPrintln(
                   "Invalid alignment character height scaling factor ("
                           + heightScale + "). Ignoring.");
           heightScale = 1;
         }
         if (JalviewLite.debug)
         {
-          System.err.println(
+          jalview.bin.Console.errPrintln(
                   "Alignment character height scaling factor is now "
                           + heightScale);
         }
@@ -192,9 +192,8 @@ public class AlignViewport extends AlignmentViewport
 
       if (colour != null)
       {
-        residueShading = new ResidueShader(
-                ColourSchemeProperty.getColourScheme(this, alignment,
-                        colour));
+        residueShading = new ResidueShader(ColourSchemeProperty
+                .getColourScheme(this, alignment, colour));
         if (residueShading != null)
         {
           residueShading.setConsensus(hconsensus);
@@ -395,7 +394,7 @@ public class AlignViewport extends AlignmentViewport
    * Applies the supplied feature settings descriptor to currently known
    * features. This supports an 'initial configuration' of feature colouring
    * based on a preset or user favourite. This may then be modified in the usual
-   * way using the Feature Settings dialogue.
+   * way using the Feature Settings dialogue. NOT IMPLEMENTED FOR APPLET
    * 
    * @param featureSettings
    */
@@ -405,4 +404,18 @@ public class AlignViewport extends AlignmentViewport
     // TODO implement for applet
   }
 
+  /**
+   * Merges the supplied feature settings descriptor with existing feature
+   * styles. This supports an 'initial configuration' of feature colouring based
+   * on a preset or user favourite. This may then be modified in the usual way
+   * using the Feature Settings dialogue. NOT IMPLEMENTED FOR APPLET
+   * 
+   * @param featureSettings
+   */
+  @Override
+  public void mergeFeaturesStyle(FeatureSettingsModelI featureSettings)
+  {
+    // TODO Auto-generated method stub
+
+  }
 }