Commit 3021b19b6bb2dfc58223f4af5ff1bab2f756dc8a
1 parent
787485aa
Exists in
master
remove deprecated epntapclient/App.java and epntapclient/view/EpnTapView.java.
Showing
2 changed files
with
0 additions
and
152 deletions
Show diff stats
src/main/java/eu/omp/irap/vespa/epntapclient/App.java deleted
... | ... | @@ -1,52 +0,0 @@ |
1 | -/** | |
2 | - * This file is a part of EpnTAPClient. | |
3 | - * This program aims to provide EPN-TAP support for software clients, like CASSIS spectrum analyzer. | |
4 | - * See draft specifications: https://voparis-confluence.obspm.fr/pages/viewpage.action?pageId=559861 | |
5 | - * Copyright (C) 2016 Institut de Recherche en Astrophysique et Planétologie. | |
6 | - * | |
7 | - * This program is free software: you can | |
8 | - * redistribute it and/or modify it under the terms of the GNU General Public License as published | |
9 | - * by the Free Software Foundation, either version 3 of the License, or (at your option) any later | |
10 | - * version. This program is distributed in the hope that it will be useful, but WITHOUT ANY | |
11 | - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | |
12 | - * PURPOSE. See the GNU General Public License for more details. You should have received a copy of | |
13 | - * the GNU General Public License along with this program. If not, see | |
14 | - * <http://www.gnu.org/licenses/>. | |
15 | - */ | |
16 | - | |
17 | -package eu.omp.irap.vespa.epntapclient; | |
18 | - | |
19 | -import javax.swing.JFrame; | |
20 | -import javax.swing.SwingUtilities; | |
21 | - | |
22 | -import eu.omp.irap.vespa.epntapclient.controller.EpnTapController; | |
23 | -import eu.omp.irap.vespa.epntapclient.utils.Str; | |
24 | - | |
25 | -/** | |
26 | - * Simple class to have a main function to launch the application by itself (debug...). | |
27 | - * | |
28 | - * @author N. Jourdane | |
29 | - */ | |
30 | -public class App { | |
31 | - | |
32 | - /** | |
33 | - * Main function to start the application as standalone. | |
34 | - * | |
35 | - * @param args The program arguments. Not used for now. | |
36 | - */ | |
37 | - public static void main(String[] args) { | |
38 | - SwingUtilities.invokeLater(new Runnable() { | |
39 | - @Override | |
40 | - public void run() { | |
41 | - EpnTapController ssapControl = new EpnTapController(); | |
42 | - JFrame frame = new JFrame(Str.APP_TITLE); | |
43 | - frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
44 | - frame.setContentPane(ssapControl.getView()); | |
45 | - frame.setVisible(true); | |
46 | - frame.pack(); | |
47 | - // frame.setSize(800, 600); | |
48 | - frame.setLocationRelativeTo(null); | |
49 | - } | |
50 | - }); | |
51 | - } | |
52 | -} | |
53 | 0 | \ No newline at end of file |
src/main/java/eu/omp/irap/vespa/epntapclient/view/EpnTapView.java deleted
... | ... | @@ -1,100 +0,0 @@ |
1 | -/** | |
2 | - * This file is a part of EpnTAPClient. | |
3 | - * This program aims to provide EPN-TAP support for software clients, like CASSIS spectrum analyzer. | |
4 | - * See draft specifications: https://voparis-confluence.obspm.fr/pages/viewpage.action?pageId=559861 | |
5 | - * Copyright (C) 2016 Institut de Recherche en Astrophysique et Planétologie. | |
6 | - * | |
7 | - * This program is free software: you can | |
8 | - * redistribute it and/or modify it under the terms of the GNU General Public License as published | |
9 | - * by the Free Software Foundation, either version 3 of the License, or (at your option) any later | |
10 | - * version. This program is distributed in the hope that it will be useful, but WITHOUT ANY | |
11 | - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | |
12 | - * PURPOSE. See the GNU General Public License for more details. You should have received a copy of | |
13 | - * the GNU General Public License along with this program. If not, see | |
14 | - * <http://www.gnu.org/licenses/>. | |
15 | - */ | |
16 | - | |
17 | -package eu.omp.irap.vespa.epntapclient.view; | |
18 | - | |
19 | -import java.awt.BorderLayout; | |
20 | -import java.util.List; | |
21 | - | |
22 | -import javax.swing.JOptionPane; | |
23 | -import javax.swing.JPanel; | |
24 | -import javax.swing.JTable; | |
25 | - | |
26 | -import eu.omp.irap.vespa.epntapclient.controller.EpnTapController; | |
27 | -import eu.omp.irap.vespa.epntapclient.model.TAPService; | |
28 | - | |
29 | -/** | |
30 | - * The main class of the View of the application. | |
31 | - * | |
32 | - * @author N. Jourdane | |
33 | - */ | |
34 | -public class EpnTapView extends JPanel { | |
35 | - | |
36 | - /** The serial version UID (affected with a random number). */ | |
37 | - private static final long serialVersionUID = -7823290271099283814L; | |
38 | - | |
39 | - /** */ | |
40 | - private EpnTapController control; | |
41 | - | |
42 | - /** | |
43 | - * The constructor of the view. | |
44 | - * | |
45 | - * @param epnTapControl The Controller of the application. | |
46 | - */ | |
47 | - public EpnTapView(EpnTapController epnTapControl) { | |
48 | - control = epnTapControl; | |
49 | - createGui(); | |
50 | - } | |
51 | - | |
52 | - /** | |
53 | - * Configure and set the GUI. | |
54 | - */ | |
55 | - private void createGui() { | |
56 | - setLayout(new BorderLayout()); | |
57 | - } | |
58 | - | |
59 | - /** | |
60 | - * Build a table (JTable) in the window, to display a list of TAP services. | |
61 | - * | |
62 | - * @param listServices The list of TAP services which fill the table. | |
63 | - */ | |
64 | - public void fillTable(List<TAPService> listServices) { | |
65 | - String[] keys = listServices.get(0).getKeys(); | |
66 | - | |
67 | - Object[][] values = new Object[listServices.size()][keys.length]; | |
68 | - for (int i = 0; i < values.length; i++) { | |
69 | - values[i] = listServices.get(i).getValuesArray(); | |
70 | - } | |
71 | - | |
72 | - JTable tableau = new JTable(values, keys); | |
73 | - | |
74 | - setLayout(new BorderLayout()); | |
75 | - JPanel northPanel = new JPanel(new BorderLayout()); | |
76 | - | |
77 | - add(northPanel, BorderLayout.NORTH); | |
78 | - | |
79 | - northPanel.add(tableau.getTableHeader(), BorderLayout.NORTH); | |
80 | - northPanel.add(tableau, BorderLayout.CENTER); | |
81 | - } | |
82 | - | |
83 | - /** | |
84 | - * Display an error. | |
85 | - * | |
86 | - * @param title The title of the error. | |
87 | - * @param message The message of the error. | |
88 | - */ | |
89 | - public void displayError(String title, String message) { | |
90 | - JOptionPane.showMessageDialog(this, message, title, JOptionPane.ERROR_MESSAGE); | |
91 | - } | |
92 | - | |
93 | - /** | |
94 | - * @return The controller | |
95 | - */ | |
96 | - public EpnTapController getControl() { | |
97 | - return control; | |
98 | - } | |
99 | - | |
100 | -} |