import jalview.api.FeatureSettingsControllerI;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.SequenceFeature;
+import jalview.util.ColorUtils;
import jalview.util.MessageManager;
import java.awt.BorderLayout;
final FeatureColourI typeCol = fr.getFeatureStyle(type);
PopupMenu men = new PopupMenu(MessageManager.formatMessage(
"label.settings_for_type", new String[] { type }));
- java.awt.MenuItem scr = new MenuItem(
+ MenuItem scr = new MenuItem(
MessageManager.getString("label.sort_by_score"));
men.add(scr);
final FeatureSettings me = this;
FeatureColourI fcol = fr.getFeatureStyle(check.type);
if (fcol.isSimpleColour())
{
- new UserDefinedColours(this, check.type, fcol.getColour());
+ new UserDefinedColours(this, check.type, ColorUtils.getColor(fcol
+ .getColour()));
}
else
{
col = newcol;
if (col.isSimpleColour())
{
- setBackground(col.getColour());
+ setBackground(ColorUtils.getColor(col.getColour()));
}
else
{
}
else
{
- setBackground(col.getMinColour());
+ setBackground(ColorUtils.getColor(col.getMinColour()));
}
this.setLabel(vlabel);
}
* height/g.getFontMetrics().getHeight()))); g.drawString("Label",
* width/2, 0);
*/
-
}
else if (col.isGraduatedColour())
{
- Color maxCol = col.getMaxColour();
+ Color maxCol = ColorUtils.getColor(col.getMaxColour());
g.setColor(maxCol);
g.fillRect(d.width / 2, 0, d.width / 2, d.height);
-
}
}