import jalview.api.AlignViewportI;
import jalview.api.AlignmentViewPanel;
import jalview.api.FeatureColourI;
-import jalview.bin.Cache;
+import jalview.bin.Console;
import jalview.datamodel.GraphLine;
import jalview.datamodel.features.FeatureAttributes;
import jalview.datamodel.features.FeatureAttributes.Datatype;
JRadioButton graduatedColour = new JRadioButton();
JPanel coloursPanel;
-
+
JPanel filtersPanel;
JPanel singleColour = new JPanel();
ap = fr.ap;
originalFilter = fr.getFeatureFilter(theType);
originalColour = fr.getFeatureColours().get(theType);
-
+
adjusting = true;
-
+
try
{
initialise();
ex.printStackTrace();
return;
}
-
+
updateColoursPanel();
-
+
updateFiltersPanel();
-
+
adjusting = false;
-
+
colourChanged(false);
-
+
String title = MessageManager
.formatMessage("label.display_settings_for", new String[]
{ theType });
}
/**
- * Configures the widgets on the Colours panel according to the current feature
- * colour scheme
+ * Configures the widgets on the Colours panel according to the current
+ * feature colour scheme
*/
private void updateColoursPanel()
{
{
if (minColour.isEnabled())
{
- String ttl = MessageManager.getString("label.select_colour_minimum_value");
+ String ttl = MessageManager
+ .getString("label.select_colour_minimum_value");
showColourChooser(minColour, ttl);
}
}
{
if (maxColour.isEnabled())
{
- String ttl = MessageManager.getString("label.select_colour_maximum_value");
+ String ttl = MessageManager
+ .getString("label.select_colour_maximum_value");
showColourChooser(maxColour, ttl);
}
}
// }
// else
// {
- singleColour.setBackground(originalColour.getColour());
- singleColour.setForeground(originalColour.getColour());
+ singleColour.setBackground(originalColour.getColour());
+ singleColour.setForeground(originalColour.getColour());
// }
singleColour.addMouseListener(new MouseAdapter()
{
{
if (simpleColour.isSelected())
{
- String ttl = MessageManager.formatMessage("label.select_colour_for", featureType);
+ String ttl = MessageManager
+ .formatMessage("label.select_colour_for", featureType);
showColourChooser(singleColour, ttl);
}
}
colourChanged(true);
}
};
- JalviewColourChooser.showColourChooser(this, title,
- colourPanel.getBackground(), listener);
+ JalviewColourChooser.showColourChooser(this, title,
+ colourPanel.getBackground(), listener);
}
/**
*/
adjusting = true;
float f = Float.parseFloat(thresholdValue.getText());
- f = Float.max(f, this.min);
+ f = Float.max(f, this.min);
f = Float.min(f, this.max);
setThresholdValueText(f);
slider.setSliderValue(f);
}
/**
- * Sets the text field for threshold value, rounded to four significant figures
+ * Sets the text field for threshold value, rounded to four significant
+ * figures
*
* @param f
*/
List<Object> displayAttsObjects = new ArrayList<>(displayAtts);
JComboBox<Object> attCombo = JvSwingUtils
.buildComboWithTooltips(displayAttsObjects, tooltips);
-
+
return attCombo;
}
attName = (String) attCombo.getSelectedItem();
} catch (Exception e)
{
- Cache.error("Problem casting Combo box entry to String");
+ Console.error("Problem casting Combo box entry to String");
attName = attCombo.getSelectedItem().toString();
}
Condition cond = (Condition) condCombo.getSelectedItem();