From 193706597b5b7cdd6437f6284930b37fd749dfd2 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 25 May 2005 16:35:16 +0000 Subject: [PATCH] output values to textbox --- src/jalview/gui/AnnotationLabels.java | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index 9b29451..22a416c 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -6,6 +6,7 @@ import java.awt.event.*; import java.awt.*; import java.awt.image.*; import jalview.datamodel.*; +import jalview.io.FormatAdapter; public class AnnotationLabels extends JPanel implements MouseListener, MouseMotionListener, ActionListener { @@ -14,10 +15,11 @@ public class AnnotationLabels extends JPanel implements MouseListener, MouseMoti AlignmentPanel ap ; boolean resizing = false; int oldY, mouseX; - static String ADDNEW = "Add new row"; - static String HIDE = "Hide this row"; - static String DELETE = "Delete this row"; - static String SHOWALL="Show all hidden rows"; + static String ADDNEW = "Add New Row"; + static String HIDE = "Hide This Row"; + static String DELETE = "Delete This Row"; + static String SHOWALL="Show All Hidden Rows"; + static String OUTPUT_TEXT="Show Values In Textbox"; int selectedRow = 0; int scrollOffset = 0; @@ -72,6 +74,12 @@ public class AnnotationLabels extends JPanel implements MouseListener, MouseMoti else if(evt.getActionCommand().equals(HIDE)) { aa[selectedRow].visible = false; + if(aa[selectedRow].label.equals("Conservation")) + ap.av.showConservation = false; + if(aa[selectedRow].label.equals("Quality")) + ap.av.showQuality = false; + if(aa[selectedRow].label.equals("Consensus")) + ap.av.showIdentity = false; } else if(evt.getActionCommand().equals(DELETE)) { @@ -82,6 +90,14 @@ public class AnnotationLabels extends JPanel implements MouseListener, MouseMoti for(int i=0; i