From: Jim Procter Date: Tue, 27 Oct 2015 12:13:18 +0000 (+0000) Subject: JAL-1667 make transferSettings an API method X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ad94837c547f33373f9604efb556ceb809003d80;p=jalview.git JAL-1667 make transferSettings an API method --- diff --git a/src/jalview/api/FeatureRenderer.java b/src/jalview/api/FeatureRenderer.java index 0d0adaa..4df99f6 100644 --- a/src/jalview/api/FeatureRenderer.java +++ b/src/jalview/api/FeatureRenderer.java @@ -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); + } diff --git a/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java b/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java index 8db907c..28eda82 100644 --- a/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java +++ b/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java @@ -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