git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1397 getters for originalColours flag
[jalview.git]
/
src
/
jalview
/
gui
/
AnnotationColourChooser.java
diff --git
a/src/jalview/gui/AnnotationColourChooser.java
b/src/jalview/gui/AnnotationColourChooser.java
index
61ef75f
..
3278a76
100644
(file)
--- a/
src/jalview/gui/AnnotationColourChooser.java
+++ b/
src/jalview/gui/AnnotationColourChooser.java
@@
-123,8
+123,8
@@
public class AnnotationColourChooser extends JPanel
if (oldcs instanceof AnnotationColourGradient)
{
AnnotationColourGradient acg = (AnnotationColourGradient) oldcs;
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());
{
minColour.setBackground(acg.getMinColour());
maxColour.setBackground(acg.getMaxColour());
@@
-550,7
+550,7
@@
public class AnnotationColourChooser extends JPanel
if (currentAnnotation.graphMin == 0f
&& currentAnnotation.graphMax == 0f)
{
if (currentAnnotation.graphMin == 0f
&& currentAnnotation.graphMax == 0f)
{
- acg.predefinedColours = true;
+ acg.setPredefinedColours(true);
}
acg.thresholdIsMinMax = thresholdIsMin.isSelected();
}
acg.thresholdIsMinMax = thresholdIsMin.isSelected();