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;
}