if (oldcs instanceof AnnotationColourGradient)
{
AnnotationColourGradient acg = (AnnotationColourGradient) oldcs;
- currentColours.setState(acg.predefinedColours);
- if (!acg.predefinedColours)
+ currentColours.setState(acg.isPredefinedColours());
+ if (!acg.isPredefinedColours())
{
minColour.setBackground(acg.getMinColour());
maxColour.setBackground(acg.getMaxColour());
if (currentAnnotation.graphMin == 0f
&& currentAnnotation.graphMax == 0f)
{
- acg.predefinedColours = true;
+ acg.setPredefinedColours(true);
}
acg.thresholdIsMinMax = thresholdIsMin.getState();
if (oldcs instanceof AnnotationColourGradient)
{
AnnotationColourGradient acg = (AnnotationColourGradient) oldcs;
- currentColours.setSelected(acg.predefinedColours);
- if (!acg.predefinedColours)
+ currentColours.setSelected(acg.isPredefinedColours());
+ if (!acg.isPredefinedColours())
{
minColour.setBackground(acg.getMinColour());
maxColour.setBackground(acg.getMaxColour());
if (currentAnnotation.graphMin == 0f
&& currentAnnotation.graphMax == 0f)
{
- acg.predefinedColours = true;
+ acg.setPredefinedColours(true);
}
acg.thresholdIsMinMax = thresholdIsMin.isSelected();
sequence.getAnnotation()[0], null,
AnnotationColourGradient.NO_THRESHOLD);
- acg.predefinedColours = true;
+ acg.setPredefinedColours(true);
sg.cs = acg;
refresh();
ColourSchemeI colourScheme;
- public boolean predefinedColours = false;
+ private boolean predefinedColours = false;
- public boolean seqAssociated = false;
+ private boolean seqAssociated = false;
IdentityHashMap<SequenceI, AlignmentAnnotation> seqannot = null;
return currentColour;
}
+ public boolean isPredefinedColours()
+ {
+ return predefinedColours;
+ }
+
+ public void setPredefinedColours(boolean predefinedColours)
+ {
+ this.predefinedColours = predefinedColours;
+ }
+
public boolean isSeqAssociated()
{
return seqAssociated;