JAL-1605 merge commit
authorCharles Ofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 5 Dec 2014 12:45:11 +0000 (12:45 +0000)
committerCharles Ofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 5 Dec 2014 12:45:11 +0000 (12:45 +0000)
1  2 
src/jalview/gui/AlignFrame.java
src/jalview/gui/AlignViewport.java
src/jalview/gui/AlignmentPanel.java
src/jalview/gui/AnnotationExporter.java
src/jalview/gui/ChimeraViewFrame.java
src/jalview/gui/FeatureRenderer.java
src/jalview/gui/FeatureSettings.java
src/jalview/gui/Jalview2XML.java
src/jalview/gui/Jalview2XML_V1.java
src/jalview/gui/PopupMenu.java
src/jalview/gui/SeqPanel.java

@@@ -1230,17 -1227,12 +1230,18 @@@ public class AlignFrame extends GAlignF
    @Override
    protected void htmlMenuItem_actionPerformed(ActionEvent e)
    {
-     new HTMLOutput(alignPanel,
-             alignPanel.seqPanel.seqCanvas.getSequenceRenderer(),
-             alignPanel.seqPanel.seqCanvas.getFeatureRenderer());
+     // new HTMLOutput(alignPanel,
+     // alignPanel.getSeqPanel().seqCanvas.getSequenceRenderer(),
+     // alignPanel.getSeqPanel().seqCanvas.getFeatureRenderer());
+     new HtmlSvgOutput(alignPanel);
    }
  
 +  @Override
 +  public void bioJSMenuItem_actionPerformed(ActionEvent e)
 +  {
 +    new BioJsHTMLOutput(alignPanel,
-             alignPanel.seqPanel.seqCanvas.getFeatureRenderer());
++            alignPanel.getSeqPanel().seqCanvas.getFeatureRenderer());
 +  }
    public void createImageMap(File file, String image)
    {
      alignPanel.makePNGImageMap(file, image);
Simple merge
Simple merge
   */
  package jalview.gui;
  
--import java.util.*;
++import jalview.datamodel.AlignmentAnnotation;
++import jalview.datamodel.SequenceGroup;
++import jalview.io.AnnotationFile;
++import jalview.io.FeaturesFile;
++import jalview.io.JalviewFileChooser;
++import jalview.io.JalviewFileView;
++import jalview.util.MessageManager;
++
++import java.awt.BorderLayout;
++import java.awt.Color;
++import java.awt.FlowLayout;
++import java.awt.event.ActionEvent;
++import java.awt.event.ActionListener;
++import java.util.Enumeration;
++import java.util.Hashtable;
  import java.util.List;
  
--import java.awt.*;
--import java.awt.event.*;
--import javax.swing.*;
--
--import jalview.datamodel.*;
--import jalview.io.*;
--import jalview.util.MessageManager;
++import javax.swing.BorderFactory;
++import javax.swing.ButtonGroup;
++import javax.swing.JButton;
++import javax.swing.JInternalFrame;
++import javax.swing.JLabel;
++import javax.swing.JLayeredPane;
++import javax.swing.JPanel;
++import javax.swing.JRadioButton;
++import javax.swing.SwingConstants;
  
  /**
   * 
@@@ -214,8 -214,8 +230,9 @@@ public class AnnotationExporter extend
      {
        return fcols;
      }
 -    Enumeration en = ap.av.featuresDisplayed.keys();
++
 +    Enumeration en = ap.av.getFeaturesDisplayed().keys();
-     FeatureRenderer fr = ap.seqPanel.seqCanvas.getFeatureRenderer(); // consider
+     FeatureRenderer fr = ap.getSeqPanel().seqCanvas.getFeatureRenderer(); // consider
                                                                       // higher
                                                                       // level
                                                                       // method ?
Simple merge
Simple merge
Simple merge
@@@ -1180,9 -1180,9 +1180,9 @@@ public class Jalview2XM
                        .getColour(renderOrder[ro]).getRGB());
              }
  
 -            setting.setDisplay(av.featuresDisplayed
 +            setting.setDisplay(av.getFeaturesDisplayed()
                      .containsKey(renderOrder[ro]));
-             float rorder = ap.seqPanel.seqCanvas.getFeatureRenderer()
+             float rorder = ap.getSeqPanel().seqCanvas.getFeatureRenderer()
                      .getOrder(renderOrder[ro]);
              if (rorder > -1)
              {
Simple merge
Simple merge
Simple merge