X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fappletgui%2FAnnotationColourChooser.java;h=430bf65b6553e9315d5ee7eda74a1828e48cc07e;hb=d0b7395c10aec7c5da5a5662fc69783ec78fae8d;hp=80d39e80ef783c2fa43dad6952136461b257a184;hpb=7bc226b58110fa26d9dbd3f0c78095d06909ffc3;p=jalview.git diff --git a/src/jalview/appletgui/AnnotationColourChooser.java b/src/jalview/appletgui/AnnotationColourChooser.java index 80d39e8..430bf65 100755 --- a/src/jalview/appletgui/AnnotationColourChooser.java +++ b/src/jalview/appletgui/AnnotationColourChooser.java @@ -28,7 +28,7 @@ import jalview.schemes.*; public class AnnotationColourChooser extends Panel implements ActionListener, - AdjustmentListener, ItemListener + AdjustmentListener, ItemListener, MouseListener { Frame frame; AlignViewport av; @@ -63,6 +63,7 @@ public class AnnotationColourChooser this.ap = ap; slider.addAdjustmentListener(this); + slider.addMouseListener(this); if (av.alignment.getAlignmentAnnotation() == null) { @@ -214,7 +215,7 @@ public class AnnotationColourChooser else if (evt.getSource() == cancel) { reset(); - ap.repaint(); + ap.paintAlignment(true); frame.setVisible(false); } @@ -253,7 +254,7 @@ public class AnnotationColourChooser } currentAnnotation.threshold.value = (float) slider.getValue() / 1000f; - ap.repaint(); + ap.paintAlignment(false); } } @@ -410,7 +411,7 @@ public class AnnotationColourChooser } } - ap.repaint(); + ap.paintAlignment(false); } void reset() @@ -426,8 +427,15 @@ public class AnnotationColourChooser sg.cs = (ColourSchemeI) oldgroupColours.get(sg); } } - ap.repaint(); + ap.paintAlignment(true); } + public void mouseClicked(MouseEvent evt){} + public void mousePressed(MouseEvent evt){} + public void mouseReleased(MouseEvent evt){ ap.paintAlignment(true);} + public void mouseEntered(MouseEvent evt){} + public void mouseExited(MouseEvent evt){} + + }