*/
package jalview.gui;
--import java.util.*;
- import java.awt.*;
- import java.awt.event.*;
- import java.awt.image.*;
- import java.beans.PropertyChangeListener;
-
- import javax.swing.*;
-
- import jalview.datamodel.*;
-import java.util.concurrent.ConcurrentHashMap;
-
-import java.awt.*;
-import java.awt.event.*;
-import java.awt.image.*;
-import java.beans.PropertyChangeListener;
-import java.beans.PropertyChangeSupport;
-
-import javax.swing.*;
-
-import jalview.datamodel.*;
++import jalview.datamodel.SearchResults;
++import jalview.datamodel.SequenceFeature;
++import jalview.datamodel.SequenceI;
import jalview.schemes.GraduatedColor;
import jalview.util.MessageManager;
++import java.awt.BorderLayout;
++import java.awt.Color;
++import java.awt.Dimension;
++import java.awt.Font;
++import java.awt.GridLayout;
++import java.awt.event.ActionEvent;
++import java.awt.event.ActionListener;
++import java.awt.event.ItemEvent;
++import java.awt.event.ItemListener;
++import java.awt.event.MouseAdapter;
++import java.awt.event.MouseEvent;
++
++import javax.swing.JColorChooser;
++import javax.swing.JComboBox;
++import javax.swing.JLabel;
++import javax.swing.JOptionPane;
++import javax.swing.JPanel;
++import javax.swing.JScrollPane;
++import javax.swing.JSpinner;
++import javax.swing.JTextArea;
++import javax.swing.JTextField;
++import javax.swing.SwingConstants;
++
/**
* DOCUMENT ME!
*
lastDescriptionAdded = description.getText().replaceAll("\n", " ");
// TODO: determine if the null feature group is valid
if (lastFeatureGroupAdded.length() < 1)
++ {
lastFeatureGroupAdded = null;
++ }
}
if (!newFeatures)
ffile.parseDescriptionHTML(features[i], false);
}
-
- if (av.getFeaturesDisplayed() == null)
- {
- av.setFeaturesDisplayed(new Hashtable());
- }
-
if (lastFeatureGroupAdded != null)
{
- if (featureGroups == null)
- featureGroups = new Hashtable();
- featureGroups.put(lastFeatureGroupAdded, new Boolean(true));
+ setGroupVisibility(lastFeatureGroupAdded, true);
}
setColour(lastFeatureAdded, fcol);
- av.getFeaturesDisplayed().put(lastFeatureAdded,
- getColour(lastFeatureAdded));
+ setVisible(lastFeatureAdded);
findAllFeatures(false);
{
public void actionPerformed(ActionEvent e)
{
- sortByDens(null);
+ af.avc.sortAlignmentByFeatureDensity(null);
+ }
+ });
+ help.setFont(JvSwingUtils.getLabelFont());
+ help.setText(MessageManager.getString("action.help"));
+ help.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent e)
+ {
++ try
++ {
++ Help.showHelpWindow(HelpId.SequenceFeatureSettings);
++ } catch (HelpSetException e1)
++ {
++ e1.printStackTrace();
++ }
+ }
+ });
+ help.setFont(JvSwingUtils.getLabelFont());
+ help.setText(MessageManager.getString("action.help"));
+ help.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent e)
+ {
try
{
Help.showHelpWindow(HelpId.SequenceFeatureSettings);