Merge branch 'features/JAL-2068groovyAnnotationWorker' into develop
authorJim Procter <jprocter@issues.jalview.org>
Mon, 18 Jul 2016 13:01:49 +0000 (14:01 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 18 Jul 2016 13:01:49 +0000 (14:01 +0100)
minor conflicts in constructor/imports for unification of Graduated/FeatureColour

1  2 
src/jalview/appletgui/FeatureRenderer.java
src/jalview/gui/FeatureRenderer.java
src/jalview/renderer/seqfeatures/FeatureRenderer.java
src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java
src/jalview/workers/StrucConsensusThread.java

Simple merge
@@@ -50,8 -51,16 +51,18 @@@ public class FeatureRenderer extends Fe
  
    boolean av_validCharWidth, av_isShowSeqFeatureHeight;
  
 +  private Integer currentColour;
 +
+   /**
+    * Constructor given a viewport
+    * 
+    * @param viewport
+    */
+   public FeatureRenderer(AlignViewportI viewport)
+   {
+     this.av = viewport;
+   }
    protected void updateAvConfig()
    {
      av_charHeight = av.getCharHeight();
@@@ -27,9 -27,7 +27,8 @@@ import jalview.datamodel.AlignmentI
  import jalview.datamodel.SequenceFeature;
  import jalview.datamodel.SequenceI;
  import jalview.renderer.seqfeatures.FeatureRenderer;
 -import jalview.schemes.GraduatedColor;
 +import jalview.schemes.FeatureColour;
 +import jalview.schemes.UserColourScheme;
- import jalview.viewmodel.AlignmentViewport;
  
  import java.awt.Color;
  import java.beans.PropertyChangeListener;
@@@ -64,8 -65,14 +63,8 @@@ public abstract class FeatureRendererMo
    protected PropertyChangeSupport changeSupport = new PropertyChangeSupport(
            this);
  
-   protected AlignmentViewport av;
+   protected AlignViewportI av;
  
 -  /*
 -   * map holds per feature type, {{min, max}, {min, max}} feature score
 -   * values for positional and non-positional features respectively
 -   */
 -  private Map<String, float[][]> minmax = new Hashtable<String, float[][]>();
 -
    @Override
    public AlignViewportI getViewport()
    {