JPanel maxColour = new JPanel();
private JCheckBox thresholdIsMin = new JCheckBox();
+ private JCheckBox transparency = new JCheckBox();
protected static final int MIN_WIDTH = 500;
}
});
+ transparency.setBackground(Color.white);
+ transparency.setFont(JvSwingUtils.getLabelFont());
+ transparency
+ .setText(MessageManager.getString("Use Transparency"));
+ transparency.addActionListener(new ActionListener()
+ {
+
+ @Override
+ public void actionPerformed(ActionEvent arg0)
+ {
+ transparency_actionPerformed();
+ }
+ });
this.setLayout(new BorderLayout());
JPanel jPanel1 = new JPanel();
JPanel jPanel2 = new JPanel();
jPanel2.add(annotations, "grow, wrap");
jPanel2.add(seqAssociated);
jPanel2.add(useOriginalColours);
+ jPanel2.add(transparency);
JPanel colpanel = new JPanel(new FlowLayout());
colpanel.setBackground(Color.white);
colpanel.add(minColour);
this.validate();
}
+ protected void transparency_actionPerformed()
+ {
+ updateView();
+ }
protected void resetColours_actionPerformed()
{
setDefaultMinMax();
acg.setThresholdIsMinMax(thresholdIsMin.isSelected());
+ acg.setPositionToTransparency(transparency.isSelected());
+
this.ap.alignFrame.changeColour(acg);
if (av.getAlignment().getGroups() != null)