From: Jim Procter Date: Mon, 30 May 2016 14:43:06 +0000 (+0100) Subject: JAL-1551 formatting X-Git-Tag: Release_2_10_0~196^2~3^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0ff10fddf3364f8a3c657355cfb4bc45ab5485a8;p=jalview.git JAL-1551 formatting --- diff --git a/src/jalview/appletgui/AnnotationLabels.java b/src/jalview/appletgui/AnnotationLabels.java index 5727e9c..c963202 100755 --- a/src/jalview/appletgui/AnnotationLabels.java +++ b/src/jalview/appletgui/AnnotationLabels.java @@ -162,6 +162,7 @@ public class AnnotationLabels extends Panel implements ActionListener, return row; } + @Override public void actionPerformed(ActionEvent evt) { AlignmentAnnotation[] aa = av.getAlignment().getAlignmentAnnotation(); @@ -261,6 +262,7 @@ public class AnnotationLabels extends Panel implements ActionListener, boolean resizePanel = false; + @Override public void mouseMoved(MouseEvent evt) { resizePanel = evt.getY() < 10 && evt.getX() < 14; @@ -306,6 +308,7 @@ public class AnnotationLabels extends Panel implements ActionListener, dragCancelled = true; } + @Override public void mouseDragged(MouseEvent evt) { if (dragCancelled) @@ -365,10 +368,12 @@ public class AnnotationLabels extends Panel implements ActionListener, } } + @Override public void mouseClicked(MouseEvent evt) { } + @Override public void mouseReleased(MouseEvent evt) { if (!resizePanel && !dragCancelled) @@ -400,6 +405,7 @@ public class AnnotationLabels extends Panel implements ActionListener, ap.annotationPanel.repaint(); } + @Override public void mouseEntered(MouseEvent evt) { if (evt.getY() < 10 && evt.getX() < 14) @@ -409,6 +415,7 @@ public class AnnotationLabels extends Panel implements ActionListener, } } + @Override public void mouseExited(MouseEvent evt) { dragCancelled = false; @@ -427,6 +434,7 @@ public class AnnotationLabels extends Panel implements ActionListener, repaint(); } + @Override public void mousePressed(MouseEvent evt) { oldY = evt.getY(); @@ -522,6 +530,7 @@ public class AnnotationLabels extends Panel implements ActionListener, final AlignmentAnnotation aaa = aa[selectedRow]; cbmi.addItemListener(new ItemListener() { + @Override public void itemStateChanged(ItemEvent e) { if (aaa.groupRef != null) @@ -545,6 +554,7 @@ public class AnnotationLabels extends Panel implements ActionListener, aa[selectedRow].groupRef.isShowConsensusHistogram()); chist.addItemListener(new ItemListener() { + @Override public void itemStateChanged(ItemEvent e) { // TODO: pass on reference @@ -564,6 +574,7 @@ public class AnnotationLabels extends Panel implements ActionListener, aa[selectedRow].groupRef.isShowSequenceLogo()); cprofl.addItemListener(new ItemListener() { + @Override public void itemStateChanged(ItemEvent e) { // TODO: pass on reference @@ -585,6 +596,7 @@ public class AnnotationLabels extends Panel implements ActionListener, aa[selectedRow].groupRef.isNormaliseSequenceLogo()); cprofn.addItemListener(new ItemListener() { + @Override public void itemStateChanged(ItemEvent e) { // TODO: pass on reference @@ -608,6 +620,7 @@ public class AnnotationLabels extends Panel implements ActionListener, av.isShowConsensusHistogram()); chist.addItemListener(new ItemListener() { + @Override public void itemStateChanged(ItemEvent e) { // TODO: pass on reference @@ -631,6 +644,7 @@ public class AnnotationLabels extends Panel implements ActionListener, av.isShowSequenceLogo()); cprof.addItemListener(new ItemListener() { + @Override public void itemStateChanged(ItemEvent e) { // TODO: pass on reference @@ -655,6 +669,7 @@ public class AnnotationLabels extends Panel implements ActionListener, av.isNormaliseSequenceLogo()); cprofn.addItemListener(new ItemListener() { + @Override public void itemStateChanged(ItemEvent e) { // TODO: pass on reference @@ -794,11 +809,13 @@ public class AnnotationLabels extends Panel implements ActionListener, } } + @Override public void update(Graphics g) { paint(g); } + @Override public void paint(Graphics g) { int w = getSize().width; diff --git a/src/jalview/appletgui/IdPanel.java b/src/jalview/appletgui/IdPanel.java index 8f24f11..b4ed6d9 100755 --- a/src/jalview/appletgui/IdPanel.java +++ b/src/jalview/appletgui/IdPanel.java @@ -100,6 +100,7 @@ public class IdPanel extends Panel implements MouseListener, Tooltip tooltip; + @Override public void mouseMoved(MouseEvent e) { int seq = alignPanel.seqPanel.findSeq(e); @@ -188,6 +189,7 @@ public class IdPanel extends Panel implements MouseListener, tooltiptext = null; } + @Override public void mouseDragged(MouseEvent e) { mouseDragging = true; @@ -207,6 +209,7 @@ public class IdPanel extends Panel implements MouseListener, alignPanel.paintAlignment(false); } + @Override public void mouseClicked(MouseEvent e) { if (e.getClickCount() < 2) @@ -270,6 +273,7 @@ public class IdPanel extends Panel implements MouseListener, } } + @Override public void mouseEntered(MouseEvent e) { if (scrollThread != null) @@ -278,6 +282,7 @@ public class IdPanel extends Panel implements MouseListener, } } + @Override public void mouseExited(MouseEvent e) { if (av.getWrapAlignment()) @@ -297,6 +302,7 @@ public class IdPanel extends Panel implements MouseListener, } } + @Override public void mousePressed(MouseEvent e) { if (e.getClickCount() > 1) @@ -401,6 +407,7 @@ public class IdPanel extends Panel implements MouseListener, } + @Override public void mouseReleased(MouseEvent e) { if (scrollThread != null) @@ -455,6 +462,7 @@ public class IdPanel extends Panel implements MouseListener, running = false; } + @Override public void run() { running = true;