/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
- * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
+ * Copyright (C) 2014 The Jalview Authors
*
* This file is part of Jalview.
*
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
*/
package jalview.appletgui;
slider.addAdjustmentListener(this);
slider.addMouseListener(this);
owner = (af != null) ? af : fs.frame;
- frame = new JVDialog(owner, "Graduated Feature Colour for " + type,
+ frame = new JVDialog(owner, MessageManager.formatMessage("label.graduated_color_for_params", new String[]{type}),
true, 480, 248);
frame.setMainPanel(this);
validate();
jPanel2.setBackground(Color.white);
jPanel4.setBackground(Color.white);
threshold.addItemListener(this);
- threshold.addItem("No Threshold");
- threshold.addItem("Above Threshold");
- threshold.addItem("Below Threshold");
+ threshold.addItem(MessageManager.getString("label.threshold_feature_no_thereshold"));
+ threshold.addItem(MessageManager.getString("label.threshold_feature_above_thereshold"));
+ threshold.addItem(MessageManager.getString("label.threshold_feature_below_thereshold"));
thresholdValue.addActionListener(this);
slider.setBackground(Color.white);
slider.setEnabled(false);
{
UserDefinedColours udc = new UserDefinedColours(this,
minColour.getBackground(), owner,
- "Select Colour for Minimum Value"); // frame.owner,
+ MessageManager.getString("label.select_colour_minimum_value")); // frame.owner,
}
else
{
// "Select Colour for Maximum Value",maxColour.getBackground(),true);
UserDefinedColours udc = new UserDefinedColours(this,
maxColour.getBackground(), owner,
- "Select Colour for Maximum Value");
+ MessageManager.getString("label.select_colour_maximum_value"));
}
else
{
}
int aboveThreshold = AnnotationColourGradient.NO_THRESHOLD;
- if (threshold.getSelectedItem().equals("Above Threshold"))
+ if (threshold.getSelectedIndex()==1)
{
aboveThreshold = AnnotationColourGradient.ABOVE_THRESHOLD;
}
- else if (threshold.getSelectedItem().equals("Below Threshold"))
+ else if (threshold.getSelectedIndex()==2)
{
aboveThreshold = AnnotationColourGradient.BELOW_THRESHOLD;
}