Clover icon

Coverage Report

  1. Project Clover database Thu Nov 28 2024 18:06:40 GMT
  2. Package jalview.jbgui

File GPairwiseAlignPanel.java

 

Coverage histogram

../../img/srcFileCovDistChart8.png
22% of files have more coverage

Code metrics

0
15
4
1
102
50
5
0.33
3.75
4
1.25

Classes

Class Line # Actions
GPairwiseAlignPanel 39 15 5
0.789473778.9%
 

Contributing tests

This file is covered by 2 tests. .

Source view

1    /*
2    * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3    * Copyright (C) $$Year-Rel$$ The Jalview Authors
4    *
5    * This file is part of Jalview.
6    *
7    * Jalview is free software: you can redistribute it and/or
8    * modify it under the terms of the GNU General Public License
9    * as published by the Free Software Foundation, either version 3
10    * of the License, or (at your option) any later version.
11    *
12    * Jalview is distributed in the hope that it will be useful, but
13    * WITHOUT ANY WARRANTY; without even the implied warranty
14    * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15    * PURPOSE. See the GNU General Public License for more details.
16    *
17    * You should have received a copy of the GNU General Public License
18    * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19    * The Jalview Authors are detailed in the 'AUTHORS' file.
20    */
21    package jalview.jbgui;
22   
23    import jalview.util.MessageManager;
24   
25    import java.awt.BorderLayout;
26    import java.awt.event.ActionEvent;
27   
28    import javax.swing.JButton;
29    import javax.swing.JPanel;
30    import javax.swing.JScrollPane;
31    import javax.swing.JTextArea;
32   
33    /**
34    * DOCUMENT ME!
35    *
36    * @author $author$
37    * @version $Revision$
38    */
 
39    public class GPairwiseAlignPanel extends JPanel
40    {
41    protected JScrollPane scrollPane = new JScrollPane();
42   
43    protected JTextArea textarea = new JTextArea();
44   
45    protected JButton viewInEditorButton = new JButton();
46   
47    JPanel jPanel1 = new JPanel();
48   
49    BorderLayout borderLayout1 = new BorderLayout();
50   
51    /**
52    * Creates a new GPairwiseAlignPanel object.
53    */
 
54  2 toggle public GPairwiseAlignPanel()
55    {
56  2 try
57    {
58  2 jbInit();
59    } catch (Exception e)
60    {
61  0 e.printStackTrace();
62    }
63    }
64   
65    /**
66    * DOCUMENT ME!
67    *
68    * @throws Exception
69    * DOCUMENT ME!
70    */
 
71  2 toggle private void jbInit() throws Exception
72    {
73  2 this.setLayout(borderLayout1);
74  2 textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
75  2 textarea.setText("");
76  2 textarea.setWrapStyleWord(false);
77  2 viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
78  2 viewInEditorButton.setText(
79    MessageManager.getString("label.view_alignment_editor"));
80  2 viewInEditorButton.addActionListener(new java.awt.event.ActionListener()
81    {
 
82  0 toggle public void actionPerformed(ActionEvent e)
83    {
84  0 viewInEditorButton_actionPerformed(e);
85    }
86    });
87  2 this.add(scrollPane, BorderLayout.CENTER);
88  2 scrollPane.getViewport().add(textarea, null);
89  2 this.add(jPanel1, BorderLayout.SOUTH);
90  2 jPanel1.add(viewInEditorButton, null);
91    }
92   
93    /**
94    * DOCUMENT ME!
95    *
96    * @param e
97    * DOCUMENT ME!
98    */
 
99  0 toggle protected void viewInEditorButton_actionPerformed(ActionEvent e)
100    {
101    }
102    }