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-4366 provide options for updating (or not) the linked alignment or existing align...
[jalview.git]
/
src
/
jalview
/
gui
/
AnnotationChooser.java
diff --git
a/src/jalview/gui/AnnotationChooser.java
b/src/jalview/gui/AnnotationChooser.java
index
84883d7
..
d976815
100644
(file)
--- a/
src/jalview/gui/AnnotationChooser.java
+++ b/
src/jalview/gui/AnnotationChooser.java
@@
-20,11
+20,6
@@
*/
package jalview.gui;
*/
package jalview.gui;
-import jalview.datamodel.AlignmentAnnotation;
-import jalview.datamodel.AlignmentI;
-import jalview.datamodel.SequenceGroup;
-import jalview.util.MessageManager;
-
import java.awt.BorderLayout;
import java.awt.Checkbox;
import java.awt.CheckboxGroup;
import java.awt.BorderLayout;
import java.awt.Checkbox;
import java.awt.CheckboxGroup;
@@
-45,6
+40,11
@@
import javax.swing.JInternalFrame;
import javax.swing.JLayeredPane;
import javax.swing.JPanel;
import javax.swing.JLayeredPane;
import javax.swing.JPanel;
+import jalview.datamodel.AlignmentAnnotation;
+import jalview.datamodel.AlignmentI;
+import jalview.datamodel.SequenceGroup;
+import jalview.util.MessageManager;
+
/**
* A panel that allows the user to select which sequence-associated annotation
* rows to show or hide.
/**
* A panel that allows the user to select which sequence-associated annotation
* rows to show or hide.
@@
-195,14
+195,7
@@
public class AnnotationChooser extends JPanel
{
setAnnotationVisibility(true);
{
setAnnotationVisibility(true);
- // copied from AnnotationLabel.actionPerformed (after show/hide row)...
- // TODO should drive this functionality into AlignmentPanel
ap.updateAnnotation();
ap.updateAnnotation();
- // this.ap.annotationPanel.adjustPanelHeight();
- // this.ap.alabels.setSize(this.ap.alabels.getSize().width,
- // this.ap.annotationPanel.getSize().height);
- // this.ap.validate();
- this.ap.paintAlignment(true, false);
}
/**
}
/**
@@
-229,11
+222,6
@@
public class AnnotationChooser extends JPanel
}
}
ap.updateAnnotation();
}
}
ap.updateAnnotation();
- // // this.ap.annotationPanel.adjustPanelHeight();
- // this.ap.alabels.setSize(this.ap.alabels.getSize().width,
- // this.ap.annotationPanel.getSize().height);
- // this.ap.validate();
- this.ap.paintAlignment(true, false);
}
/**
}
/**
@@
-249,9
+237,7
@@
public class AnnotationChooser extends JPanel
{
setAnnotationVisibility(false);
{
setAnnotationVisibility(false);
- this.ap.updateAnnotation();
- // this.ap.annotationPanel.adjustPanelHeight();
- this.ap.paintAlignment(true, false);
+ ap.updateAnnotation();
}
/**
}
/**
@@
-616,6
+602,7
@@
public class AnnotationChooser extends JPanel
private void showFrame()
{
frame = new JInternalFrame();
private void showFrame()
{
frame = new JInternalFrame();
+ frame.setFrameIcon(null);
frame.setContentPane(this);
frame.setLayer(JLayeredPane.PALETTE_LAYER);
Desktop.addInternalFrame(frame,
frame.setContentPane(this);
frame.setLayer(JLayeredPane.PALETTE_LAYER);
Desktop.addInternalFrame(frame,