import java.awt.MenuBar;
import java.awt.MenuItem;
import java.awt.Panel;
+import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
case KeyEvent.VK_F2:
viewport.cursorMode = !viewport.cursorMode;
- setStatus(MessageManager
- .formatMessage("label.keyboard_editing_mode", new String[]
+ setStatus(MessageManager.formatMessage("label.keyboard_editing_mode",
+ new String[]
{ (viewport.cursorMode ? "on" : "off") }));
if (viewport.cursorMode)
{
}
else if (source == featureSettings)
{
- new FeatureSettings(alignPanel);
+ showFeatureSettingsUI();
}
else if (source == alProperties)
{
{
features = formatter.printJalviewFormat(
viewport.getAlignment().getSequencesArray(),
- alignPanel.getFeatureRenderer(), true);
+ alignPanel.getFeatureRenderer(), true, false);
}
else
{
- features = formatter.printGffFormat(viewport.getAlignment()
- .getSequencesArray(), alignPanel.getFeatureRenderer(), true);
+ features = formatter.printGffFormat(
+ viewport.getAlignment().getSequencesArray(),
+ alignPanel.getFeatureRenderer(), true, false);
}
if (displayTextbox)
catch (java.net.MalformedURLException ex)
{
url = viewport.applet.getCodeBase() + url;
- }
- catch (UnsupportedEncodingException ex)
+ } catch (UnsupportedEncodingException ex)
{
System.err.println(
"WARNING = IMPLEMENTATION ERROR - UNSUPPORTED ENCODING EXCEPTION FOR "
column, al);
}
- setStatus(MessageManager
- .formatMessage("label.removed_columns", new String[]
+ setStatus(MessageManager.formatMessage("label.removed_columns",
+ new String[]
{ Integer.valueOf(trimRegion.getSize()).toString() }));
addHistoryItem(trimRegion);
addHistoryItem(removeGapCols);
- setStatus(MessageManager
- .formatMessage("label.removed_empty_columns", new String[]
+ setStatus(MessageManager.formatMessage("label.removed_empty_columns",
+ new String[]
{ Integer.valueOf(removeGapCols.getSize()).toString() }));
// This is to maintain viewport position on first residue
hydrophobicityColour.setLabel(
MessageManager.getString("label.colourScheme_hydrophobic"));
hydrophobicityColour.addActionListener(this);
- helixColour.setLabel(MessageManager
- .getString("label.colourScheme_helix_propensity"));
+ helixColour.setLabel(
+ MessageManager.getString("label.colourScheme_helixpropensity"));
helixColour.addActionListener(this);
strandColour.setLabel(MessageManager
- .getString("label.colourScheme_strand_propensity"));
+ .getString("label.colourScheme_strandpropensity"));
strandColour.addActionListener(this);
turnColour.setLabel(
- MessageManager.getString("label.colourScheme_turn_propensity"));
+ MessageManager.getString("label.colourScheme_turnpropensity"));
turnColour.addActionListener(this);
buriedColour.setLabel(
- MessageManager.getString("label.colourScheme_buried_index"));
+ MessageManager.getString("label.colourScheme_buriedindex"));
buriedColour.addActionListener(this);
purinePyrimidineColour.setLabel(MessageManager
.getString("label.colourScheme_purine/pyrimidine"));
// .getString("label.rna_interaction"));
// RNAInteractionColour.addActionListener(this);
RNAHelixColour.setLabel(
- MessageManager.getString("label.colourScheme_rna_helices"));
+ MessageManager.getString("label.colourScheme_rnahelices"));
RNAHelixColour.addActionListener(this);
userDefinedColour
.setLabel(MessageManager.getString("action.user_defined"));
userDefinedColour.addActionListener(this);
PIDColour.setLabel(
- MessageManager.getString("label.colourScheme_%_identity"));
+ MessageManager.getString("label.colourScheme_%identity"));
PIDColour.addActionListener(this);
BLOSUM62Colour.setLabel(
MessageManager.getString("label.colourScheme_blosum62"));
BLOSUM62Colour.addActionListener(this);
tcoffeeColour.setLabel(
- MessageManager.getString("label.colourScheme_t-coffee_scores"));
+ MessageManager.getString("label.colourScheme_t-coffeescores"));
// it will be enabled only if a score file is provided
tcoffeeColour.setEnabled(false);
tcoffeeColour.addActionListener(this);
* without an additional javascript library to exchange messages between the
* distinct applets. See http://issues.jalview.org/browse/JAL-621
*
- * @param viewer
+ * @param jmolViewer
* JmolViewer instance
* @param sequenceIds
* - sequence Ids to search for associations
{
// register the association(s) and quit, don't create any windows.
if (StructureSelectionManager.getStructureSelectionManager(applet)
- .setMapping(seqs, chains, pdb.getFile(), protocol, null) == null)
+ .setMapping(seqs, chains, pdb.getFile(), protocol,
+ null) == null)
{
System.err.println("Failed to map " + pdb.getFile() + " ("
+ protocol + ") to any sequences");
return alignPanel.av.featureSettings;
}
+ @Override
+ public FeatureSettingsControllerI showFeatureSettingsUI()
+ {
+ return new FeatureSettings(alignPanel);
+ }
+
+ private Rectangle fs_bounds = null;
+
+ @Override
+ public void setFeatureSettingsGeometry(Rectangle bounds)
+ {
+ fs_bounds = bounds;
+ }
+
+ @Override
+ public Rectangle getFeatureSettingsGeometry()
+ {
+ return fs_bounds;
+ }
+
}