JAL-1667 make transferSettings an API method
authorJim Procter <jprocter@issues.jalview.org>
Tue, 27 Oct 2015 12:13:18 +0000 (12:13 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 27 Oct 2015 12:13:18 +0000 (12:13 +0000)
src/jalview/api/FeatureRenderer.java
src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java

index 0d0adaa..4df99f6 100644 (file)
@@ -177,4 +177,12 @@ public interface FeatureRenderer
    */
   void setVisible(String featureType);
 
+  /**
+   * update from another feature renderer
+   * 
+   * @param fr
+   *          settings to copy
+   */
+  void transferSettings(FeatureRenderer _fr);
+
 }
index 8db907c..28eda82 100644 (file)
@@ -63,6 +63,7 @@ public abstract class FeatureRendererModel implements
 
   protected AlignmentViewport av;
 
+  @Override
   public AlignViewportI getViewport()
   {
     return av;
@@ -82,12 +83,7 @@ public abstract class FeatureRendererModel implements
     this.featureOrder = fr.featureOrder;
   }
 
-  /**
-   * update from another feature renderer
-   * 
-   * @param fr
-   *          settings to copy
-   */
+  @Override
   public void transferSettings(jalview.api.FeatureRenderer _fr)
   {
     FeatureRenderer fr = (FeatureRenderer) _fr;
@@ -537,6 +533,7 @@ public abstract class FeatureRendererModel implements
    * @param featureType
    * @return java.awt.Color or GraduatedColor
    */
+  @Override
   public Object getFeatureStyle(String featureType)
   {
     Object fc = featureColours.get(featureType);
@@ -617,6 +614,7 @@ public abstract class FeatureRendererModel implements
     return av.getFeaturesDisplayed().isVisible(type);
   }
 
+  @Override
   public void setColour(String featureType, Object col)
   {
     // overwrite