* @param sequenceGroup
* the SequenceGroup context (only for group pop-menu option)
*/
- public void chooseColour(AlignmentPanel alignPanel, SequenceGroup sequenceGroup)
+ public void chooseColour(AlignmentPanel alignPanel,
+ SequenceGroup sequenceGroup)
{
this.ap = alignPanel;
this.sg = sequenceGroup;
JPanel panel = new JPanel();
bigpanel.add(panel, BorderLayout.CENTER);
bigpanel.add(
- new JLabel(
- "<html>"
- + MessageManager
- .getString("label.select_dark_light_set_threshold")
- + "</html>"), BorderLayout.NORTH);
+ new JLabel("<html>"
+ + MessageManager.getString(
+ "label.select_dark_light_set_threshold")
+ + "</html>"),
+ BorderLayout.NORTH);
panel.add(col1);
panel.add(slider);
panel.add(col2);
}
});
- int reply = JvOptionPane
- .showInternalOptionDialog(
- alignPanel,
- bigpanel,
- MessageManager
- .getString("label.adjunst_foreground_text_colour_threshold"),
- JvOptionPane.OK_CANCEL_OPTION,
- JvOptionPane.QUESTION_MESSAGE, null, null, null);
+ int reply = JvOptionPane.showInternalOptionDialog(alignPanel, bigpanel,
+ MessageManager.getString(
+ "label.adjunst_foreground_text_colour_threshold"),
+ JvOptionPane.OK_CANCEL_OPTION, JvOptionPane.QUESTION_MESSAGE,
+ null, null, null);
if (reply == JvOptionPane.CANCEL_OPTION)
{
*/
protected void saveInitialSettings()
{
- groupColour1 = new HashMap<SequenceGroup, Color>();
- groupColour2 = new HashMap<SequenceGroup, Color>();
- groupThreshold = new HashMap<SequenceGroup, Integer>();
+ groupColour1 = new HashMap<>();
+ groupColour2 = new HashMap<>();
+ groupThreshold = new HashMap<>();
if (sg == null)
{
sg.textColour = col;
}
- ap.paintAlignment(true);
+ ap.paintAlignment(false, false);
}
void colour2Changed(Color col)
sg.textColour2 = col;
}
- ap.paintAlignment(true);
+ ap.paintAlignment(false, false);
}
void thresholdChanged(int value)
sg.thresholdTextColour = value;
}
- ap.paintAlignment(true);
+ ap.paintAlignment(false, false);
}
void setGroupTextColour()